From 817c504df8c179a46ad3e7b9dc5ecedcea1f8fc9 Mon Sep 17 00:00:00 2001 From: jooooock Date: Sat, 16 Nov 2024 10:29:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BE=E7=89=87=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.vue | 11 ----------- components/ArticleItem.vue | 3 ++- components/DownloadSetting.vue | 14 ++++++++++++++ components/Header.vue | 5 +++-- components/ProxySetting.vue | 2 +- config/index.ts | 2 ++ pages/dashboard.vue | 3 ++- pages/dashboard/album.vue | 3 ++- pages/dashboard/settings.vue | 2 ++ public/register.js | 20 -------------------- public/sw.js | 17 ----------------- public/unregister.js | 15 --------------- 12 files changed, 28 insertions(+), 69 deletions(-) create mode 100644 components/DownloadSetting.vue delete mode 100644 public/register.js delete mode 100644 public/sw.js delete mode 100644 public/unregister.js diff --git a/app.vue b/app.vue index cb3a26b..21754d1 100644 --- a/app.vue +++ b/app.vue @@ -13,24 +13,13 @@ const isDev = !import.meta.env.PROD const runtimeConfig = useRuntimeConfig() const websiteID = runtimeConfig.public.umamiWebsiteID -console.log(websiteID) if (!useLoginAccount().value) { navigateTo('/login', {replace: true}) } useHead({ - meta: [ - { - name: 'referrer', - content: 'no-referrer', - tagPriority: -20, - } - ], script: [ - { - src: '/unregister.js', - }, websiteID ? { src: 'https://cloud.umami.is/script.js', diff --git a/components/ArticleItem.vue b/components/ArticleItem.vue index 5c43a48..d49c1ac 100644 --- a/components/ArticleItem.vue +++ b/components/ArticleItem.vue @@ -3,7 +3,7 @@
@@ -46,6 +46,7 @@ import {saveAs} from 'file-saver' import {Loader} from 'lucide-vue-next'; import {formatTimeStamp, downloadArticleHTML, packHTMLAssets, formatItemShowType} from "~/utils"; import type {AppMsgAlbumInfo, RGB} from "~/types/types"; +import {IMAGE_REFERER_PROXY} from '~/config' interface Props { diff --git a/components/DownloadSetting.vue b/components/DownloadSetting.vue new file mode 100644 index 0000000..c29bd1c --- /dev/null +++ b/components/DownloadSetting.vue @@ -0,0 +1,14 @@ + + + diff --git a/components/Header.vue b/components/Header.vue index ee8381f..9b94bee 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -26,7 +26,7 @@
- + {{loginAccount.nickname}}
@@ -45,7 +45,7 @@ :class="{active: account.fakeid === activeAccount?.fakeid}" @click="selectAccount(account)" > - +

{{ account.nickname }}

@@ -80,6 +80,7 @@ import {Loader, ArrowRightLeft} from "lucide-vue-next"; import {packHTMLAssets} from "~/utils"; import {ACCOUNT_LIST_PAGE_SIZE, ACCOUNT_TYPE} from "~/config"; import {getAccountList} from "~/apis"; +import {IMAGE_REFERER_PROXY} from '~/config' const loginAccount = useLoginAccount() diff --git a/components/ProxySetting.vue b/components/ProxySetting.vue index b01dd5e..029aa8f 100644 --- a/components/ProxySetting.vue +++ b/components/ProxySetting.vue @@ -1,5 +1,5 @@