From 7264db7a5d5ab808aa836116765e39c1819fb4fa Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 12 Apr 2022 18:15:13 +0800 Subject: [PATCH] =?UTF-8?q?menu=E6=A8=A1=E5=9D=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/components/AboutThis.vue | 88 ++++++++++++++++++ src/components/CommandEditor.vue | 4 +- src/components/ConfigurationMenu.vue | 130 +++++---------------------- src/components/PanelSetting.vue | 13 +++ src/components/UserInfo.vue | 74 +++++++++++++++ src/js/options/aboutLinks.js | 36 -------- src/pages/ConfigurationPage.vue | 2 - 8 files changed, 204 insertions(+), 147 deletions(-) create mode 100644 src/components/AboutThis.vue create mode 100644 src/components/PanelSetting.vue create mode 100644 src/components/UserInfo.vue delete mode 100644 src/js/options/aboutLinks.js diff --git a/src/App.vue b/src/App.vue index dcfaea8..dbf542a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,7 @@ diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index 743d431..d51346e 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -186,7 +186,7 @@ export default { resultMaxLength: 10000, showSidebar: this.action.type !== "run", isRunCodePage: this.action.type === "run", - parent: this.$parent.$parent.$parent.$parent, + configurationPage: this.$root.$refs.configuration, commandString: this.$q.platform.is.mac ? "⌘" : "ctrl", }; }, @@ -200,7 +200,7 @@ export default { computed: { allQuickCommandTags() { return _.without( - this.parent.allQuickCommandTags, + this.configurationPage?.allQuickCommandTags, "默认", "未分类", "搜索结果" diff --git a/src/components/ConfigurationMenu.vue b/src/components/ConfigurationMenu.vue index fb74b15..ff9b688 100644 --- a/src/components/ConfigurationMenu.vue +++ b/src/components/ConfigurationMenu.vue @@ -6,63 +6,8 @@ transition-hide="jump-down" > -
-
- - - - -
-
- -
- - {{ - allQuickcommandsLength - }} - Quickcommands - 当前拥有的「快捷命令」数 - - - {{ - allFeaturesLength - }} - Features - 当前启用的「快捷命令」数 - - - - {{ userLevel.number }}Level - 使用本插件次数越多,等级越高,uTools VIP 有额外加成哟 -
不要问我为什么 VIP 有加成,因为我白嫖了一个永久 VIP
- 所以怎么也加点「会员特权」吧
- 至于这个等级有啥用,我也不知道╮(╯▽╰)╭ -
-
- 距离下一级还剩{{ (1 - userLevel.process) * 100 }}% -
-
+ + @@ -196,13 +141,13 @@ - + 取消收藏 - + @@ -222,40 +167,13 @@ 关于 + - - - - - - {{ pluginInfo.pluginName }} v{{ pluginInfo.version }} - - {{ pluginInfo.description }} - -
- {{ item.desc }} -
-
-
- - - - -
+ +
+ + + @@ -263,30 +181,33 @@ diff --git a/src/components/PanelSetting.vue b/src/components/PanelSetting.vue new file mode 100644 index 0000000..737d4f1 --- /dev/null +++ b/src/components/PanelSetting.vue @@ -0,0 +1,13 @@ + diff --git a/src/components/UserInfo.vue b/src/components/UserInfo.vue new file mode 100644 index 0000000..1c8eb0a --- /dev/null +++ b/src/components/UserInfo.vue @@ -0,0 +1,74 @@ + + + diff --git a/src/js/options/aboutLinks.js b/src/js/options/aboutLinks.js deleted file mode 100644 index d9b4eee..0000000 --- a/src/js/options/aboutLinks.js +++ /dev/null @@ -1,36 +0,0 @@ -const links = { - plugin: [{ - name: "帮助", - url: "", - desc: "查看插件使用帮助" - }, - { - name: "源码", - url: "https://github.com/fofolee/uTools-quickcommand", - desc: "本插件完全开源,记得 Star 哟" - }, { - name: "论坛", - url: "https://yuanliao.info/d/424-242-242", - desc: "到猿料论坛参与讨论吧" - } - ], - tech: [{ - name: "Vue.js", - url: "https://v3.cn.vuejs.org/", - desc: "基于 Vue.js 开发" - }, { - name: "Quasar Framework", - url: "https://quasar.dev/", - desc: "基于 Quasar Framework 开发" - }, { - name: "Google Fonts", - url: "https://fonts.google.com/", - desc: "文字图标来自 Google Fonts" - }, { - name: "Icon8s", - url: "https://icons8.com/", - desc: "彩色图标来自 Icon8s" - }] -} - -export default links \ No newline at end of file diff --git a/src/pages/ConfigurationPage.vue b/src/pages/ConfigurationPage.vue index 3e114c9..7dbe47a 100644 --- a/src/pages/ConfigurationPage.vue +++ b/src/pages/ConfigurationPage.vue @@ -163,8 +163,6 @@