diff --git a/.env.development b/.env.development index dde0d8c..57e8bda 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 开发环境配置 # API 配置(开发环境可以使用本地 API) -VITE_API_BASE_URL=https://cf.api.searchgal.homes +VITE_API_BASE_URL=https://cf.api.searchgal.top # VITE_API_BASE_URL=http://localhost:8787 # 开发配置 diff --git a/.env.example b/.env.example index 826f362..49458a6 100644 --- a/.env.example +++ b/.env.example @@ -11,22 +11,22 @@ VITE_APP_VERSION=1.0.0 # ============================================ # API 配置 # ============================================ -VITE_API_BASE_URL=https://cf.api.searchgal.homes +VITE_API_BASE_URL=https://cf.api.searchgal.top VITE_API_TIMEOUT=30000 -VITE_TRANSLATE_API_URL=https://translate.searchgal.homes +VITE_TRANSLATE_API_URL=https://translate.searchgal.top VITE_VNDB_API_URL=https://api.vndb.org/kana/v1 # ============================================ # 外部服务 # ============================================ -VITE_STATUS_URL=https://status.searchgal.homes +VITE_STATUS_URL=https://status.searchgal.top VITE_ARTALK_SERVER=https://artalk.saop.cc VITE_IMAGE_API_URL=https://api.illlights.com/v1/img # ============================================ # 网站信息 # ============================================ -VITE_SITE_URL=https://searchgal.homes +VITE_SITE_URL=https://searchgal.top VITE_SITE_NAME=SearchGal VITE_GITHUB_URL=https://github.com/Moe-Sakura/frontend diff --git a/.env.production b/.env.production index c00e1cb..f714d49 100644 --- a/.env.production +++ b/.env.production @@ -1,7 +1,7 @@ # 生产环境配置 # API 配置 -VITE_API_BASE_URL=https://cf.api.searchgal.homes +VITE_API_BASE_URL=https://cf.api.searchgal.top # 开发配置 VITE_ENABLE_DEBUG=false diff --git a/README.md b/README.md index 2357a5e..a718ade 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![TypeScript](https://img.shields.io/badge/TypeScript-5.9-blue.svg)](https://www.typescriptlang.org/) [![Tailwind CSS](https://img.shields.io/badge/Tailwind-4.1-38bdf8.svg)](https://tailwindcss.com/) -🌐 **在线访问**: [searchgal.homes](https://searchgal.homes) +🌐 **在线访问**: [searchgal.top](https://searchgal.top) ## ✨ 特性 @@ -169,7 +169,7 @@ frontend/ 默认使用 Cloudflare Workers API: ```typescript // src/api/search.ts -const apiUrl = 'https://cf.api.searchgal.homes' +const apiUrl = 'https://cf.api.searchgal.top' ``` 支持自定义 API 地址,在搜索页面输入框中填写即可。 @@ -220,7 +220,7 @@ pnpm run build 本项目遵循 [llms.txt](https://llmstxt.org/) 规范,为 AI 助手和大语言模型提供了结构化的项目文档。 - 📄 访问 `/llms.txt` 获取项目的 LLM 友好文档 -- 🔗 在线地址: [searchgal.homes/llms.txt](https://searchgal.homes/llms.txt) +- 🔗 在线地址: [searchgal.top/llms.txt](https://searchgal.top/llms.txt) ## 🤝 贡献 @@ -278,7 +278,7 @@ vim .env ## 📮 联系方式 - GitHub: [@Moe-Sakura](https://github.com/Moe-Sakura) -- 项目主页: [searchgal.homes](https://searchgal.homes) +- 项目主页: [searchgal.top](https://searchgal.top) --- diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b731d6a..1ef632c 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -77,7 +77,7 @@ ### 🔧 API 集成 - **Cloudflare Workers API** - - 端点:`https://cf.api.searchgal.homes` + - 端点:`https://cf.api.searchgal.top` - POST `/gal` - 搜索游戏资源 - POST `/patch` - 搜索补丁资源 - SSE 流式响应 diff --git a/docs/ENV_CONFIG.md b/docs/ENV_CONFIG.md index 6c0535d..5b2ba35 100644 --- a/docs/ENV_CONFIG.md +++ b/docs/ENV_CONFIG.md @@ -28,7 +28,7 @@ import { CONFIG } from '@/config' // 使用 API 配置 const apiUrl = CONFIG.api.defaultApiUrl -console.log(apiUrl) // https://cf.api.searchgal.homes +console.log(apiUrl) // https://cf.api.searchgal.top // 使用功能开关 if (CONFIG.features.enableComments) { diff --git a/docs/ENV_GUIDE.md b/docs/ENV_GUIDE.md index 9ca7af5..e6f4ceb 100644 --- a/docs/ENV_GUIDE.md +++ b/docs/ENV_GUIDE.md @@ -37,16 +37,16 @@ pnpm dev | 变量名 | 说明 | 默认值 | |--------|------|--------| -| `VITE_API_BASE_URL` | 搜索 API 地址 | https://cf.api.searchgal.homes | +| `VITE_API_BASE_URL` | 搜索 API 地址 | https://cf.api.searchgal.top | | `VITE_API_TIMEOUT` | API 超时时间(毫秒) | 30000 | -| `VITE_TRANSLATE_API_URL` | 翻译 API 地址 | https://translate.searchgal.homes | +| `VITE_TRANSLATE_API_URL` | 翻译 API 地址 | https://translate.searchgal.top | | `VITE_VNDB_API_URL` | VNDB API 地址 | https://api.vndb.org/kana/v1 | ### 外部服务 | 变量名 | 说明 | 默认值 | |--------|------|--------| -| `VITE_STATUS_URL` | 状态检查 URL | https://status.searchgal.homes | +| `VITE_STATUS_URL` | 状态检查 URL | https://status.searchgal.top | | `VITE_ARTALK_SERVER` | Artalk 评论服务器 | https://artalk.saop.cc | | `VITE_IMAGE_API_URL` | 随机图片 API | https://api.illlights.com/v1/img | @@ -54,7 +54,7 @@ pnpm dev | 变量名 | 说明 | 默认值 | |--------|------|--------| -| `VITE_SITE_URL` | 网站 URL | https://searchgal.homes | +| `VITE_SITE_URL` | 网站 URL | https://searchgal.top | | `VITE_SITE_NAME` | 网站名称 | SearchGal | | `VITE_GITHUB_URL` | GitHub 仓库 | https://github.com/Moe-Sakura/frontend | diff --git a/docs/ENV_USAGE_EXAMPLES.md b/docs/ENV_USAGE_EXAMPLES.md index e8708a1..001e6f9 100644 --- a/docs/ENV_USAGE_EXAMPLES.md +++ b/docs/ENV_USAGE_EXAMPLES.md @@ -6,7 +6,7 @@ **之前(硬编码):** ```typescript -const response = await fetch('https://cf.api.searchgal.homes/search') +const response = await fetch('https://cf.api.searchgal.top/search') ``` **之后(使用配置):** diff --git a/index.html b/index.html index 0786e7e..0a6b045 100644 --- a/index.html +++ b/index.html @@ -81,13 +81,13 @@ - + - + @@ -95,7 +95,7 @@ - + @@ -122,14 +122,14 @@ - + - + diff --git a/public/_redirects b/public/_redirects index 18c683f..47405f2 100644 --- a/public/_redirects +++ b/public/_redirects @@ -1,3 +1,3 @@ /* /404 404 -https://www.searchgal.homes/* https://searchgal.homes/:splat 301! -https://sg.saop.cc/* https://searchgal.homes/:splat 301! \ No newline at end of file +https://www.searchgal.top/* https://searchgal.top/:splat 301! +https://sg.saop.cc/* https://searchgal.top/:splat 301! \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt index fb8451d..c936af4 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,3 @@ User-agent: * Allow: / -Sitemap: https://searchgal.homes/sitemap.xml \ No newline at end of file +Sitemap: https://searchgal.top/sitemap.xml \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml index ad7e290..a4af05c 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -9,24 +9,24 @@ - https://searchgal.homes/ + https://searchgal.top/ 2025-12-21 daily 1.0 - https://searchgal.homes/logo.svg + https://searchgal.top/logo.svg SearchGal - Galgame 聚合搜索 Galgame 资源聚合搜索引擎,支持多站点搜索 - https://searchgal.homes/og-image.png + https://searchgal.top/og-image.png SearchGal 社交分享图 - https://searchgal.homes/llms.txt + https://searchgal.top/llms.txt 2025-12-21 weekly 0.6 @@ -34,7 +34,7 @@ - https://searchgal.homes/manifest.json + https://searchgal.top/manifest.json 2025-12-21 monthly 0.3 diff --git a/src/api/search.ts b/src/api/search.ts index 57d4b57..d5baa89 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -84,7 +84,7 @@ export async function searchGameStream( }, ) { try { - const apiUrl = searchParams.get('api') || 'https://cf.api.searchgal.homes' + const apiUrl = searchParams.get('api') || 'https://cf.api.searchgal.top' const gameName = searchParams.get('game') const searchMode = searchParams.get('mode') || 'game' diff --git a/src/components/CommentsModal.vue b/src/components/CommentsModal.vue index 0fe301b..5e1124b 100644 --- a/src/components/CommentsModal.vue +++ b/src/components/CommentsModal.vue @@ -146,7 +146,7 @@ function initArtalk() { try { artalkInstance = Artalk.init({ el: '#Comments', - pageKey: 'https://searchgal.homes', + pageKey: 'https://searchgal.top', pageTitle: 'Galgame 聚合搜索', server: 'https://artalk.saop.cc', site: 'Galgame 聚合搜索', diff --git a/src/components/SearchHeader.vue b/src/components/SearchHeader.vue index c0d9dbf..a345430 100644 --- a/src/components/SearchHeader.vue +++ b/src/components/SearchHeader.vue @@ -272,7 +272,7 @@ 关闭提示 @@ -383,7 +383,7 @@ @@ -439,7 +439,7 @@ diff --git a/src/components/StatsCorner.vue b/src/components/StatsCorner.vue index 9066cf1..a462b8a 100644 --- a/src/components/StatsCorner.vue +++ b/src/components/StatsCorner.vue @@ -2,7 +2,7 @@