From 751fdddc71aab640b849c30ede99a4a2d9edb4ea Mon Sep 17 00:00:00 2001 From: YGC <131973071+RRTiamo@users.noreply.github.com> Date: Thu, 2 Jul 2026 21:38:54 +0800 Subject: [PATCH] feat: improve admin workflows and open-source docs --- .env.development | 3 + .env.production | 2 + README.md | 182 ++++++++- src/api/request.ts | 4 +- src/views/about/index.vue | 6 +- .../components/AchievementFormModal.vue | 2 +- src/views/articles/components/ArticleForm.vue | 38 +- src/views/articles/index.vue | 70 +++- src/views/config/components/AiConfig.vue | 6 +- src/views/config/components/AmapConfig.vue | 6 +- src/views/config/components/BeianConfig.vue | 6 +- src/views/config/components/BrandConfig.vue | 6 +- .../config/components/DatabaseConfig.vue | 8 +- src/views/config/components/StorageConfig.vue | 8 +- src/views/config/components/ThemeConfig.vue | 10 +- .../config/components/VisibilityConfig.vue | 6 +- src/views/files/index.vue | 358 ++++++++++++++---- src/views/gallery/components/PhotoForm.vue | 2 +- src/views/letter/index.vue | 2 +- src/views/love/components/HeroTab.vue | 2 +- src/views/now/components/NowStatusForm.vue | 6 +- vite.config.ts | 17 +- 22 files changed, 598 insertions(+), 152 deletions(-) create mode 100644 .env.development create mode 100644 .env.production diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..5c67c68 --- /dev/null +++ b/.env.development @@ -0,0 +1,3 @@ +# The browser calls Vite on the same origin; Vite forwards /api to this target. +VITE_API_BASE_URL=/api +VITE_DEV_API_TARGET=http://localhost:8080 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..49caac4 --- /dev/null +++ b/.env.production @@ -0,0 +1,2 @@ +# The production OpenResty site forwards /api to the Java service. +VITE_API_BASE_URL=/api diff --git a/README.md b/README.md index 33895ab..aff1afc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,181 @@ -# Vue 3 + TypeScript + Vite +# My House · 生活档案馆管理后台(Admin) -This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `