From 1fda9c399f0d595830c11ccd31dbcaff2d4fa4bc Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Tue, 2 Jul 2024 17:51:23 +0800 Subject: [PATCH] feat: show plugin settings modal when share url is not config (#24) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持在进入 Umami 页面时检查是否配置 Umami 共享链接,如果没有配置,则弹出插件设置界面引导用户设置。 image /kind feature ```release-note 支持在未设置共享链接时,自动打开插件设置界面。 ``` --- console/package.json | 3 +- console/src/views/UmamiView.vue | 49 ++++++++++++++------------ console/vite.config.ts | 62 +++++++-------------------------- src/main/resources/plugin.yaml | 2 +- 4 files changed, 41 insertions(+), 75 deletions(-) diff --git a/console/package.json b/console/package.json index a747dfd..308833e 100644 --- a/console/package.json +++ b/console/package.json @@ -1,6 +1,7 @@ { + "type": "module", "scripts": { - "dev": "vite build --watch", + "dev": "vite build --watch --mode=development", "build": "vite build", "preview": "vite preview --port 4173", "test:unit": "vitest --environment jsdom", diff --git a/console/src/views/UmamiView.vue b/console/src/views/UmamiView.vue index ebf2c70..e03adb0 100644 --- a/console/src/views/UmamiView.vue +++ b/console/src/views/UmamiView.vue @@ -1,39 +1,42 @@