From de0ec3536a6d15f32e3dde7786d08a3b7a5bd4ad Mon Sep 17 00:00:00 2001 From: 7836246 Date: Tue, 26 Mar 2024 09:44:00 +0800 Subject: [PATCH] =?UTF-8?q?:triangular=5Fflag=5Fon=5Fpost:=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.config.ts | 27 +++++ app.vue | 37 +++---- components/common/Bulletin.vue | 4 +- components/common/ColorChange.vue | 4 +- components/common/DomainList.vue | 5 +- components/common/Footer.vue | 6 +- lang/zh.ts | 2 +- layouts/default.vue | 108 ++++++++++++-------- nuxt.config.ts | 123 ++++++++++++----------- package.json | 2 +- pages/settings/index.vue | 2 +- pages/whois/[domain].html.vue | 23 +++-- plugins/setTheme.client.ts | 14 +++ pnpm-lock.yaml | 162 +++++++++++++++--------------- server/api/whois.post.ts | 2 +- stores/domain.ts | 10 ++ tailwind.config.ts | 2 +- 17 files changed, 304 insertions(+), 229 deletions(-) create mode 100644 app.config.ts create mode 100644 plugins/setTheme.client.ts diff --git a/app.config.ts b/app.config.ts new file mode 100644 index 0000000..e226917 --- /dev/null +++ b/app.config.ts @@ -0,0 +1,27 @@ +import {_colors, _fontFamily} from "#tailwind-config/theme.mjs"; + +export default defineAppConfig({ + naiveui: { + themeConfig: { + shared: { + common: { + fontFamily: _fontFamily.sans.join(", "), + }, + }, + light: { + common: { + primaryColor: _colors.blue[600], + primaryColorHover: _colors.blue[500], + primaryColorPressed: _colors.blue[700], + }, + }, + dark: { + common: { + primaryColor: _colors.blue[500], + primaryColorHover: _colors.blue[400], + primaryColorPressed: _colors.blue[600], + }, + }, + }, + }, +}); diff --git a/app.vue b/app.vue index 31a3083..6bb99be 100644 --- a/app.vue +++ b/app.vue @@ -1,5 +1,11 @@ diff --git a/components/common/Bulletin.vue b/components/common/Bulletin.vue index 8f78719..5558b92 100644 --- a/components/common/Bulletin.vue +++ b/components/common/Bulletin.vue @@ -6,14 +6,14 @@ defineProps({