From ff3297e879bb239bb0ab040ec41145ced0202bea Mon Sep 17 00:00:00 2001 From: Timi Date: Thu, 30 Apr 2026 11:04:28 +0800 Subject: [PATCH] refactor Setting --- .env.development | 1 + examples/Root.vue | 16 ++- examples/main.ts | 21 +++- examples/vite-env.d.ts | 8 ++ package.json | 2 +- src/api/CommonAPI.ts | 35 ++++--- src/assets/style/timi-web.less | 31 ++++-- src/components/copyright/index.vue | 12 ++- src/types/Setting.ts | 51 +++++---- src/utils/IOSize.ts | 20 ++-- src/utils/Markdown.ts | 68 +----------- src/utils/SettingMapper.ts | 162 +++++++++++++---------------- src/utils/Text.test.ts | 21 +++- src/utils/Text.ts | 18 +++- src/utils/Time.ts | 4 +- 15 files changed, 239 insertions(+), 231 deletions(-) create mode 100644 .env.development diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..1a6b152 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_API=http://localhost:8091 diff --git a/examples/Root.vue b/examples/Root.vue index 17ac0b8..9239e41 100644 --- a/examples/Root.vue +++ b/examples/Root.vue @@ -5,7 +5,21 @@