diff --git a/README.md b/README.md index f64cf43..8127d87 100644 --- a/README.md +++ b/README.md @@ -57,30 +57,24 @@ cd frontend ### 安装依赖 ```bash -# 使用 pnpm (推荐) pnpm install - -# 或使用 npm -npm install ``` ## 🚀 开发 ### 启动开发服务器 ```bash -pnpm run dev +pnpm dev ``` -访问 `http://localhost:5500` - ### 构建生产版本 ```bash -pnpm run build +pnpm build ``` ### 预览生产构建 ```bash -pnpm run preview +pnpm preview ``` ## 📁 项目结构 @@ -234,7 +228,7 @@ pnpm run build ## 🙏 致谢 -- [@Asuna](https://saop.cc/) - 提供服务器和技术支持 +- [Asuna](https://saop.cc/) - 提供服务器和技术支持 - [VNDB](https://vndb.org/) - 游戏数据库 - [Artalk](https://artalk.js.org/) - 评论系统 - 所有 Galgame 资源站点 diff --git a/.eslintrc.md b/docs/.eslintrc.md similarity index 100% rename from .eslintrc.md rename to docs/.eslintrc.md diff --git a/CHANGELOG.md b/docs/CHANGELOG.md similarity index 100% rename from CHANGELOG.md rename to docs/CHANGELOG.md diff --git a/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to docs/CODE_OF_CONDUCT.md diff --git a/CONTRIBUTING.md b/docs/CONTRIBUTING.md similarity index 100% rename from CONTRIBUTING.md rename to docs/CONTRIBUTING.md diff --git a/public/FAVICON_GUIDE.md b/docs/FAVICON_GUIDE.md similarity index 100% rename from public/FAVICON_GUIDE.md rename to docs/FAVICON_GUIDE.md diff --git a/RESPONSIVE_DESIGN.md b/docs/RESPONSIVE_DESIGN.md similarity index 100% rename from RESPONSIVE_DESIGN.md rename to docs/RESPONSIVE_DESIGN.md diff --git a/THEME_SYSTEM.md b/docs/THEME_SYSTEM.md similarity index 100% rename from THEME_SYSTEM.md rename to docs/THEME_SYSTEM.md diff --git a/src/App.vue b/src/App.vue index 0857131..c173976 100644 --- a/src/App.vue +++ b/src/App.vue @@ -44,6 +44,7 @@ import { applyTheme, watchSystemTheme, loadCustomCSS, + saveCustomCSS, applyCustomCSS, } from '@/utils/theme' import StatsCorner from '@/components/StatsCorner.vue' @@ -433,7 +434,8 @@ function saveSettings(customApi: string, newCustomCSS: string) { searchStore.setCustomApi(customApi) // 保存并应用自定义CSS customCSS.value = newCustomCSS - applyCustomCSS(newCustomCSS) + saveCustomCSS(newCustomCSS) // 保存到 localStorage + applyCustomCSS(newCustomCSS) // 应用到页面 } diff --git a/src/components/CommentsModal.vue b/src/components/CommentsModal.vue index e6d2ff8..98a37a4 100644 --- a/src/components/CommentsModal.vue +++ b/src/components/CommentsModal.vue @@ -91,7 +91,7 @@ function initArtalk() { pageTitle: 'Galgame 聚合搜索', server: 'https://artalk.saop.cc', site: 'Galgame 聚合搜索', - darkMode: "auto", + darkMode: 'auto', } as any) } catch (error) { // 静默处理错误 diff --git a/src/components/SearchHeader.vue b/src/components/SearchHeader.vue index b83d892..64b4d46 100644 --- a/src/components/SearchHeader.vue +++ b/src/components/SearchHeader.vue @@ -96,12 +96,13 @@
使用说明
.dark
- 选择器定义暗色模式样式留空使用默认 API 地址。例如: https://cfapi.searchgal.homes 或 http://127.0.0.1:8787 @@ -98,7 +118,8 @@
@@ -162,7 +162,16 @@