From 865f1729a202bd14129db7724c0b27ccb7f1d1d3 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 16 Mar 2020 11:22:38 +0800 Subject: [PATCH] refactor: related functions for publishing posts. (#99) --- package-lock.json | 6 +- package.json | 2 +- src/components/Tools/UserMenu.vue | 11 ++- src/components/editor/MarkdownEditor.vue | 2 +- src/views/attachment/AttachmentList.vue | 2 +- .../components/AttachmentSelectDrawer.vue | 2 +- src/views/dashboard/Dashboard.vue | 2 +- src/views/interface/ThemeList.vue | 2 +- src/views/post/CategoryList.vue | 2 +- src/views/post/PostEdit.vue | 25 ++++--- src/views/post/PostList.vue | 2 - src/views/post/TagList.vue | 2 +- .../post/components/PostSettingDrawer.vue | 68 +++++++------------ src/views/sheet/SheetEdit.vue | 25 ++++--- .../sheet/components/CustomSheetList.vue | 1 + .../sheet/components/SheetSettingDrawer.vue | 55 ++++++++------- src/views/sheet/internal/JournalList.vue | 4 +- src/views/sheet/internal/LinkList.vue | 2 +- src/views/sheet/internal/PhotoList.vue | 4 +- src/views/system/ToolList.vue | 2 +- .../system/developer/tabs/OptionsList.vue | 2 +- .../system/developer/tabs/RuntimeLogs.vue | 2 +- src/views/system/optiontabs/GeneralTab.vue | 4 +- src/views/system/optiontabs/PostTab.vue | 4 +- src/views/user/Profile.vue | 2 +- 25 files changed, 114 insertions(+), 121 deletions(-) diff --git a/package-lock.json b/package-lock.json index 73deacac..d77ff25e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6581,9 +6581,9 @@ "optional": true }, "filepond": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/filepond/-/filepond-4.12.0.tgz", - "integrity": "sha512-43+WI8R3RtSiPsKTcofnf9CW3i26sENIJFC1VERlu593mg/c5o74SU+gUfoocRWqDWQxjwE2qrobe+CUCPRASg==" + "version": "4.13.0", + "resolved": "https://registry.npmjs.org/filepond/-/filepond-4.13.0.tgz", + "integrity": "sha512-M9bNneR2EBrhXqNMHZLDRZVRSPJ5fUa8hjKyfMuJ8dV61qW1oPsFWZY2Ubx7WmVKZXnBLJCef2WNGh6CaIoTew==" }, "filepond-plugin-image-preview": { "version": "4.6.1", diff --git a/package.json b/package.json index 613eee3f..e74afdbc 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "ant-design-vue": "^1.5.0-beta.1", "axios": "^0.19.2", "enquire.js": "^2.1.6", - "filepond": "^4.12.0", + "filepond": "^4.13.0", "filepond-plugin-image-preview": "^4.6.1", "halo-editor": "^2.8.2", "marked": "^0.8.0", diff --git a/src/components/Tools/UserMenu.vue b/src/components/Tools/UserMenu.vue index 9e2aa12b..ad0c9717 100644 --- a/src/components/Tools/UserMenu.vue +++ b/src/components/Tools/UserMenu.vue @@ -17,9 +17,14 @@ href="javascript:void(0)" @click="showOptionModal" > - - - + + + + + diff --git a/src/components/editor/MarkdownEditor.vue b/src/components/editor/MarkdownEditor.vue index 22e3532b..7617f1c5 100644 --- a/src/components/editor/MarkdownEditor.vue +++ b/src/components/editor/MarkdownEditor.vue @@ -2,7 +2,7 @@
diff --git a/src/views/attachment/components/AttachmentSelectDrawer.vue b/src/views/attachment/components/AttachmentSelectDrawer.vue index 88c10ed5..9ddfecb7 100644 --- a/src/views/attachment/components/AttachmentSelectDrawer.vue +++ b/src/views/attachment/components/AttachmentSelectDrawer.vue @@ -107,7 +107,7 @@ export default { drawerWidth: { type: Number, required: false, - default: 460 + default: 480 }, title: { type: String, diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index 3265b728..c763b623 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -233,7 +233,7 @@ > diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 20e3ba43..0b8e7fcc 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -128,7 +128,7 @@ 安装主题 diff --git a/src/views/post/CategoryList.vue b/src/views/post/CategoryList.vue index ec9182ce..7bd77b98 100644 --- a/src/views/post/CategoryList.vue +++ b/src/views/post/CategoryList.vue @@ -40,7 +40,7 @@ diff --git a/src/views/post/PostEdit.vue b/src/views/post/PostEdit.vue index 66acfdd6..47187173 100644 --- a/src/views/post/PostEdit.vue +++ b/src/views/post/PostEdit.vue @@ -12,17 +12,16 @@
- + /> -->
@@ -61,7 +60,7 @@ >发布 附件库 @@ -70,13 +69,13 @@