修复若干问题

This commit is contained in:
zqlit committed 2026-05-21 13:45:17 +08:00
1 parent 6ced7903d4
commit c1bf4de76f
5 files changed
+8 -8

No files matched your search

@@ -256,7 +256,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca
> "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)" > "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)"
### API 对接 ### API 对接
> "对接 rssapi.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" > "对接 api.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端"
### 常见问题描述 ### 常见问题描述
- "布局太窄了" → 去掉 max-w 限制 - "布局太窄了" → 去掉 max-w 限制
+1 -1
View File
@@ -2,7 +2,7 @@ const fs = require('fs');
const path = require('path'); const path = require('path');
const axios = require('axios'); const axios = require('axios');
const API_BASE = 'https://rssapi.usj.cc'; const API_BASE = 'https://api.usj.cc';
const HEALTH_URL = `${API_BASE}/api/health`; const HEALTH_URL = `${API_BASE}/api/health`;
const LINKS_URL = `${API_BASE}/api/links`; const LINKS_URL = `${API_BASE}/api/links`;
+1 -1
View File
@@ -448,7 +448,7 @@
hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(window.FriendCircle.CACHE_OPTIONS.hardTtl) : window.FriendCircle.CACHE_OPTIONS.hardTtl hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(window.FriendCircle.CACHE_OPTIONS.hardTtl) : window.FriendCircle.CACHE_OPTIONS.hardTtl
}); });
} }
return fetch("https://rssapi.usj.cc/api/articles?limit=50") return fetch("https://api.usj.cc/api/articles?limit=50")
.then(function(res) { .then(function(res) {
if (!res.ok) throw new Error("Network response was not ok"); if (!res.ok) throw new Error("Network response was not ok");
return res.json(); return res.json();
+1 -1
View File
@@ -126,7 +126,7 @@
softTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.softTtl) : CACHE_OPTIONS.softTtl, softTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.softTtl) : CACHE_OPTIONS.softTtl,
hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.hardTtl) : CACHE_OPTIONS.hardTtl hardTtl: window.BrowserCache ? window.BrowserCache.formatDuration(CACHE_OPTIONS.hardTtl) : CACHE_OPTIONS.hardTtl
}); });
return fetch('https://rssapi.usj.cc/api/links') return fetch('https://api.usj.cc/api/links')
.then(function(res) { .then(function(res) {
if (!res.ok) throw new Error('Failed to fetch links'); if (!res.ok) throw new Error('Failed to fetch links');
return res.json(); return res.json();
+4 -4
View File
@@ -25,11 +25,11 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca
- 回复评论时显示父级评论引用 - 回复评论时显示父级评论引用
### 4. 订阅源管理 `/feeds` ### 4. 订阅源管理 `/feeds`
- 对接 `rssapi.usj.cc`,token 存储在 `.env` 服务端 - 对接 `api.usj.cc`,token 存储在 `.env` 服务端
- 增删 RSS 订阅源,批量检测存活状态 - 增删 RSS 订阅源,批量检测存活状态
### 5. 友链管理 `/links` ### 5. 友链管理 `/links`
- 对接 `rssapi.usj.cc`,token 存储在 `.env` 服务端 - 对接 `api.usj.cc`,token 存储在 `.env` 服务端
- 增删改友链,支持隐藏/显示切换 - 增删改友链,支持隐藏/显示切换
- 单个/批量存活检测,失联标记 - 单个/批量存活检测,失联标记
@@ -59,7 +59,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca
- **样式**: Tailwind CSS 4,SEN 主题暖色系 - **样式**: Tailwind CSS 4,SEN 主题暖色系
- **数据**: 直接读写 Hugo Markdown 文件(gray-matter),无数据库 - **数据**: 直接读写 Hugo Markdown 文件(gray-matter),无数据库
- **评论**: Artalk API v2 - **评论**: Artalk API v2
- **RSS/友链**: 自建 API `rssapi.usj.cc` + SCF 代理 - **RSS/友链**: 自建 API `api.usj.cc` + SCF 代理
- **部署**: 执行 shell git push - **部署**: 执行 shell git push
## 提示词指南 ## 提示词指南
@@ -75,7 +75,7 @@ Hugo 博客的本地管理后台,Next.js 16 + Tailwind CSS 4,运行在 `loca
> "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)" > "把 XXX 页面的色调整体改为 SEN 暖色系(bg: #fcfaf5, text: #223d66, accent: #1d3d6c, line: #e4dfd2)"
### API 对接 ### API 对接
> "对接 rssapi.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端" > "对接 api.usj.cc 的 XXX 接口,token 在 .env 的 RSS_API_TOKEN,后端代理不要暴露到前端"
### 常见问题描述 ### 常见问题描述
- "布局太窄了" → 去掉 max-w 限制 - "布局太窄了" → 去掉 max-w 限制