From 4e879e6dc2d8bf40aa1efcbb2dbe47cf188e17f9 Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 15 Apr 2022 17:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=89=E4=B8=AA=E5=AE=9E?= =?UTF-8?q?=E7=94=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot/global.js | 16 +++- src/components/ConfigurationMenu.vue | 118 ++++++++++++++++++++++++++- src/js/options/quickFeatures.js | 48 +++++++++++ src/pages/quickFeaturesPage.vue | 29 +++++++ src/router/routes.js | 21 +++-- 5 files changed, 221 insertions(+), 11 deletions(-) create mode 100644 src/js/options/quickFeatures.js create mode 100644 src/pages/quickFeaturesPage.vue diff --git a/src/boot/global.js b/src/boot/global.js index ef2bde7..6e28842 100644 --- a/src/boot/global.js +++ b/src/boot/global.js @@ -11,6 +11,20 @@ let defaultProfile = { defaultPrimaryColor: "#009688", backgroundImg: null, codeHistory: {}, + quickFeatures: { + favFile: { + enable: false, + tag: "文件" + }, + favUrl: { + enable: false, + tag: "网址" + }, + pluNickName: { + enable: false, + tag: "别名" + }, + } } let userProfile = UTOOLS.getDB( UTOOLS.DBPRE.CFG + "preferences" @@ -19,7 +33,7 @@ Object.assign(defaultProfile, userProfile) // "async" is optional; // more info on params: https://v2.quasar.dev/quasar-cli/boot-files -export default boot(async({ +export default boot(async ({ app }) => { app.config.globalProperties.$utools = UTOOLS diff --git a/src/components/ConfigurationMenu.vue b/src/components/ConfigurationMenu.vue index d5613e3..e5864a9 100644 --- a/src/components/ConfigurationMenu.vue +++ b/src/components/ConfigurationMenu.vue @@ -1,6 +1,6 @@