156 Commits

Author SHA1 Message Date
wood chen
648e7f69cf
Merge pull request #4 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.12.0
chore(deps): bump golang.org/x/time from 0.11.0 to 0.12.0
v1.0.1
2025-06-15 06:17:45 +08:00
c050955157 新增数据预加载功能,优化配置缓存逻辑,支持健康检查接口,调整兰空图床获取器的重试机制(指数退避),提升系统性能和稳定性。 2025-06-15 06:12:46 +08:00
26d214c44b 更新favicon图标,修改布局文件中的标题和描述以提升准确性和用户体验。 v1.0.0 2025-06-14 23:34:27 +08:00
c3dc214f9b 移除CachedURL模型及相关缓存逻辑,更新数据源处理逻辑以使用内存缓存,调整缓存时长设置,优化数据源管理界面,简化代码结构,提升性能和可维护性。 2025-06-14 22:24:30 +08:00
310f627a9e 优化首页布局,更新背景图链接,调整样式以提升视觉效果;简化系统状态和API端点统计部分的展示,增强用户体验。 2025-06-14 22:03:52 +08:00
10b530ee3c 在管理后台布局中引入Next.js的Link组件,优化导航链接的实现方式,提升用户体验。 2025-06-14 20:32:37 +08:00
5960444dc9 重构处理器逻辑,统一Handler命名为handler,更新相关引用;重命名模型为model,优化数据库迁移和配置获取逻辑,移除不再使用的处理器文件,简化代码结构。 2025-06-14 20:24:34 +08:00
bcc333b142 重构路由设置逻辑,统一配置所有路由,新增公开首页配置处理方法,更新前端API调用路径以匹配新路由结构。 2025-06-14 20:17:41 +08:00
5176cc85db 重构Handlers结构,新增HandlePublicEndpoints方法以处理公开端点信息请求,优化URL统计缓存逻辑,更新Router以支持新路由,简化认证信息管理,移除不再使用的刷新令牌逻辑。 2025-06-14 20:00:01 +08:00
0465adbb36 更新UpdateEndpoint方法,优化字段更新逻辑,避免覆盖created_at和sort_order字段,同时支持条件更新sort_order字段。 2025-06-14 19:28:50 +08:00
7ba8856e57 移除静态文件处理中的调试日志,简化代码逻辑,保持功能一致性。 2025-06-14 19:11:45 +08:00
797a941172 重构静态文件处理逻辑,新增tryFiles方法以实现类似Nginx的try_files功能,优化路径处理和调试日志;移除不再使用的resolveFilePath方法,简化ServeStatic逻辑。 2025-06-14 19:11:24 +08:00
2394ef7f15 更新静态文件处理逻辑,新增resolveFilePath方法以处理Next.js静态导出的路由问题;在路由处理器中规范化路径以解决尾斜杠问题;禁用尾斜杠以避免路由冲突;在管理端点页面中添加编辑功能,支持更新端点信息。 2025-06-14 19:03:58 +08:00
2c0073f266 更新Dockerfile以简化前端依赖安装和源代码复制流程,调整工作目录和构建命令,优化构建过程。 2025-06-14 18:05:33 +08:00
bb8c011062 删除不再使用的.dockerignore文件,清理项目中的多余配置,优化Docker构建过程。 2025-06-14 17:59:22 +08:00
3f27f418fa 删除Docker部署说明文档,更新Dockerfile以使用Node.js 22版本,并简化GitHub Actions工作流,移除多余的步骤和配置,优化构建和推送过程。 2025-06-14 17:58:19 +08:00
641f00de96 更新Dockerfile以优化前后端构建流程,添加必要的配置文件复制,调整用户权限,增强安全性。同时更新.gitignore以排除新生成的文件和目录。 2025-06-14 17:54:44 +08:00
de92403f68 更新Dockerfile以安装前端依赖,包括开发依赖,支持构建过程 2025-06-14 17:45:16 +08:00
dependabot[bot]
fc53459b92
chore(deps): bump golang.org/x/time from 0.11.0 to 0.12.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/time/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-version: 0.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-14 09:41:58 +00:00
f2456e116b 删除不再使用的配置文件和脚本,更新Dockerfile以支持前后端构建,重构配置加载逻辑,添加OAuth2.0支持,优化API处理和路由设置。 2025-06-14 17:40:31 +08:00
efd55448e1 fix(album_mapping.json): 添加缺失的相册ID以确保CSV生成的完整性 2025-05-27 07:38:35 +08:00
54067cd123 fix(album_mapping.json): 移除不再使用的相册ID,更新生成CSV的逻辑以读取本地配置 2025-05-17 17:01:48 +08:00
bd5f86d928 fix(index.md): 更新帖子链接为新域名 2025-04-18 19:55:47 +08:00
bd1e91ada7 fix(css): 更新背景图像链接为正常图像 2025-04-12 10:24:41 +08:00
4f5f639108 refactor(public/index.html): 移除不必要的样式标签和分析脚本 2025-04-12 10:21:35 +08:00
2fb9100f00 refactor(public/index.html): 移除不再使用的字体样式链接
移除不再使用的 `czlfonts/slice/font.css` 链接,以简化页面加载并减少不必要的资源请求
2025-03-20 18:52:46 +08:00
56e4dc6f25 gomod tidy 2025-03-14 00:39:45 +08:00
wood chen
3487895c01
Merge pull request #3 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.11.0
chore(deps): bump golang.org/x/time from 0.10.0 to 0.11.0
2025-03-14 00:23:05 +08:00
dependabot[bot]
dab19ef252
chore(deps): bump golang.org/x/time from 0.10.0 to 0.11.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/time/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 16:06:46 +00:00
wood chen
1e3086a393
Update readme.md 2025-02-15 02:00:05 +08:00
wood chen
8654132e7b
Merge pull request #2 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.10.0
chore(deps): bump golang.org/x/time from 0.9.0 to 0.10.0
2025-02-11 15:03:56 +08:00
dependabot[bot]
d6b91cd6bf
chore(deps): bump golang.org/x/time from 0.9.0 to 0.10.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/time/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 15:42:29 +00:00
e02a5d7a13 对 CSV 内容格式验证的增强:
- 在`loadCSVContent` 函数中添加了严格的 URL 格式验证
- 增加了对空文件的检查
- 添加了对非法字符的检查
- 优化了错误信息的处理和返回
- 保留了对注释行和空行的过滤
- 维持了 URL 去重的功能
2025-01-27 23:46:08 +08:00
wood chen
701cb70fdb
Merge pull request #1 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.9.0
chore(deps): bump golang.org/x/time from 0.8.0 to 0.9.0
2025-01-15 01:20:40 +08:00
dependabot[bot]
dac8619e3f
chore(deps): bump golang.org/x/time from 0.8.0 to 0.9.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/time/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 16:10:58 +00:00
4bb4ba1460 Merge branch 'main' of https://github.com/woodchen-ink/random-api-go 2025-01-04 19:31:02 +08:00
075a3f19e7 fix(public): 更新 index.md 中的帖子链接到正确的 URL 2025-01-04 19:31:00 +08:00
wood chen
3e3e7408b7
Update readme.md 2025-01-04 19:29:27 +08:00
wood chen
0bf2bd3adb
Update readme.md 2025-01-01 02:56:21 +08:00
885ce7e187 fix(public): 更新 index.md 中的链接到正确的 URL 2025-01-01 02:56:10 +08:00
ec06638654 Merge branch 'main' of https://github.com/woodchen-ink/random-api-go 2025-01-01 01:36:25 +08:00
73b13fd60b fix(public): update link in index.md to correct URL 2025-01-01 01:36:23 +08:00
wood chen
52d2e1bdb7
Update readme.md 2024-12-31 15:34:28 +08:00
wood chen
1ca0ec6ad7
Update readme.md 2024-12-31 12:11:27 +08:00
226135aea2 refactor(public, workflows): update public file paths and remove top referers display
- Changed the file paths in the Docker workflow to reflect the new directory structure for public assets.
- Removed the top referers display section from index.html to streamline the user interface and improve performance.
- Ensured proper cleanup and permissions for the new public data directory in the Docker workflow.
2024-12-02 05:58:56 +08:00
32fb07a2ee feat(public): add top referers display to metrics summary
- Introduced a new section in the index.html to display the top referers with their respective counts.
- Implemented dynamic rendering of referers based on available data, enhancing user insights into traffic sources.
- Ensured the referers are sorted by count for better visibility and understanding of user access patterns.
2024-12-02 05:53:02 +08:00
b252b8313e refactor(handlers): simplify referer handling in API request logging
- Removed custom referer parsing logic and replaced it with direct usage of r.Referer() for cleaner code.
- Updated logging to consistently use the referer from the request object across all relevant handlers.
- Enhanced readability and maintainability by eliminating redundant code related to referer extraction.
2024-12-02 05:45:39 +08:00
d3933374af refactor(middleware, monitoring, public): streamline metrics handling and remove top referers display
- Simplified MetricsMiddleware by removing unnecessary comments and focusing on essential request logging.
- Updated RequestLog structure to exclude the Referer field from JSON serialization, enhancing data privacy.
- Removed top referers tracking and associated HTML/CSS elements to declutter the user interface and improve performance.
- Cleaned up CSS styles related to referers for a more streamlined design.
2024-12-02 05:35:24 +08:00
6a0df0bdc7 feat(public): enhance system metrics display and user interface
- Added a main title to the index.html for better context.
- Introduced a new stats container to organize summary and detail statistics.
- Implemented a refresh animation for loading stats, improving user experience.
- Updated the updateStats function to streamline data handling and display.
- Enhanced the metrics section with improved formatting and error handling.
- Refined CSS styles for better visual presentation and responsiveness.
- Ensured a cleaner layout for system metrics and top referers, contributing to a more intuitive interface.
2024-12-01 02:47:23 +08:00
454fe7380f fix(public): update metrics API endpoint for consistency 2024-12-01 02:13:32 +08:00