From cd028dc6553ee42ad306da6619c623a650e781aa Mon Sep 17 00:00:00 2001 From: liszt01 <61107001+liszt01@users.noreply.github.com> Date: Fri, 3 Nov 2023 16:48:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A8=E3=83=87=E3=82=A3=E3=82=BF=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E3=83=A1=E3=82=A4=E3=83=B3=E7=94=BB=E9=9D=A2=E3=81=A7?= =?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=83=87=E3=83=BC=E3=83=88=E3=82=92?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E3=81=99=E3=82=8B=20(#1616)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hiroshiba --- .env.production | 2 + .env.test | 2 + src/components/UpdateNotificationDialog.vue | 107 ++++++++++++++++++++ src/components/help/HelpDialog.vue | 47 +-------- src/composables/useFetchNewUpdateInfos.ts | 47 +++++++++ src/store/type.ts | 3 + src/store/ui.ts | 2 + src/views/EditorHome.vue | 25 +++++ src/vite-env.d.ts | 2 + tests/unit/store/Vuex.spec.ts | 1 + 10 files changed, 194 insertions(+), 44 deletions(-) create mode 100644 src/components/UpdateNotificationDialog.vue create mode 100644 src/composables/useFetchNewUpdateInfos.ts diff --git a/.env.production b/.env.production index 69203956d9..5b0dcb0498 100644 --- a/.env.production +++ b/.env.production @@ -9,4 +9,6 @@ VITE_DEFAULT_ENGINE_INFOS=`[ "host": "http://127.0.0.1:50021" } ]` +VITE_OFFICIAL_WEBSITE_URL=https://voicevox.hiroshiba.jp/ +VITE_LATEST_UPDATE_INFOS_URL=https://raw.githubusercontent.com/VOICEVOX/voicevox_blog/master/src/data/updateInfos.json VITE_GTM_CONTAINER_ID=GTM-DUMMY diff --git a/.env.test b/.env.test index a2c27972a3..dcf447f8b2 100644 --- a/.env.test +++ b/.env.test @@ -9,4 +9,6 @@ VITE_DEFAULT_ENGINE_INFOS=`[ "host": "http://127.0.0.1:50021" } ]` +VITE_OFFICIAL_WEBSITE_URL=https://voicevox.hiroshiba.jp/ +VITE_LATEST_UPDATE_INFOS_URL=https://raw.githubusercontent.com/VOICEVOX/voicevox_blog/master/src/data/updateInfos.json VITE_GTM_CONTAINER_ID=GTM-DUMMY diff --git a/src/components/UpdateNotificationDialog.vue b/src/components/UpdateNotificationDialog.vue new file mode 100644 index 0000000000..54d76bcfb4 --- /dev/null +++ b/src/components/UpdateNotificationDialog.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/components/help/HelpDialog.vue b/src/components/help/HelpDialog.vue index 153d963384..653d9c8234 100644 --- a/src/components/help/HelpDialog.vue +++ b/src/components/help/HelpDialog.vue @@ -86,7 +86,6 @@