This commit is contained in:
杜恒 2021-04-01 10:46:21 +08:00
parent 408321b4c3
commit a8c87e941b
6 changed files with 14418 additions and 19 deletions

View File

@ -2,7 +2,7 @@
/* 获取主题当前版本号 */
function _getVersion()
{
return "6.2.5";
return "6.2.6";
};
/* 判断是否是手机 */

View File

@ -1,6 +1,6 @@
{
"name": "typecho-joe-next",
"version": "6.2.5",
"version": "6.2.6",
"description": "A Theme Of Typecho",
"main": "index.php",
"keywords": [

View File

@ -415,4 +415,7 @@ export default class JoeAction {
}
});
}
handleDraft() {
$('#btn-save').click();
}
}

View File

@ -139,6 +139,11 @@ export default [
title: '全屏/取消全屏',
innerHTML: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M181.2 803.4V637H98v208c0 45.9 37.2 83.2 83.2 83.2h208V845H222.8c-23 0-41.6-18.6-41.6-41.6zM844.8 98.6h-208v83.2h166.4c23 0 41.6 18.6 41.6 41.6v166.4H928v-208c0-46-37.3-83.2-83.2-83.2zm-746.6 83v208h83.2V223.2c0-23 18.6-41.6 41.6-41.6h166.4V98.4h-208c-46 0-83.2 37.3-83.2 83.2zm746.4 455.6v166.4c0 23-18.6 41.6-41.6 41.6H636.6v83.2h208c45.9 0 83.2-37.2 83.2-83.2v-208h-83.2z"/></svg>'
},
{
type: 'draft',
title: '保存草稿',
innerHTML: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M96 960a32 32 0 1 1 0-64h832a32 32 0 1 1 0 64H96zm632.96-625.152L593.088 199.104l-340.48 340.48L240 690.432l148.032-14.784 340.8-340.8zm45.184-45.248l45.248-45.248-135.744-135.744-45.248 45.248L774.144 289.6zm-45.12-226.176l135.808 135.808c31.232 31.232 24.832 65.408-.192 90.368L412.16 742.144l-247.168 24.448 20.864-250.688L638.336 63.36c25.024-24.96 59.456-31.168 90.688.064z"/></svg>'
},
{
type: 'publish',
title: '发布文章',

File diff suppressed because one or more lines are too long

View File

@ -267,6 +267,9 @@ class Joe extends JoeAction {
case 'dplayer':
super.handleDplayer(this.cm);
break;
case 'draft':
super.handleDraft();
break;
}
});
$('.cm-tools').append(el);