Commit Graph
11 Commits
Author SHA1 Message Date
zimonianhua 5f1f8385c1 fix(embed): 修正静态资源嵌入路径以包含所有子目录
Docker Build and Push / build (push) Has been cancelled
使用 `all:` 前缀替代通配符 `*` 以确保 `web/dist` 目录下的所有文件及其子目录都被正确嵌入,避免因路径匹配问题导致资源加载失败。
2026-02-10 21:16:38 +08:00
zimonianhua 9e38fe239d build: 将 mime-support 替换为 media-types
Docker Build and Push / build (push) Has been cancelled
Debian 12 中已弃用 mime-support 包,media-types 是其替代品。此变更为确保在较新 Debian 版本中能成功构建镜像。
2026-02-10 21:07:23 +08:00
zimonianhua 2ca4ad5437 fix: 修复日志记录函数调用错误
Docker Build and Push / build (push) Has been cancelled
- 将 `logrus.Errorf("Server err: ", err)` 修正为 `logrus.Errorf("Server err: %v", err)`,以正确格式化错误信息。
- 将 `logrus.Infof(startInfo)` 修正为 `logrus.Info(startInfo)`,因为 `startInfo` 已经是格式化的字符串。
- 在多处将 `logrus.Error` 和 `entry.Errorf` 错误用法修正为 `logrus.Errorf` 和 `entry.Error`,确保日志格式化与函数签名匹配。
2026-02-10 21:02:30 +08:00
zimonianhua 1e85ad88ff fix: 添加mime-support包并注册MIME类型以修复静态文件响应
Docker Build and Push / build (push) Has been cancelled
在Dockerfile中添加mime-support包以确保正确的MIME类型检测,同时在Go代码中显式注册.js、.mjs、.css和.map文件的MIME类型,避免浏览器因Content-Type不正确而拒绝加载静态资源。
2026-02-10 20:57:39 +08:00
zimonianhua 07f4be3fc1 build: 移除Dockerfile中的mailcap依赖并优化前端配置
Docker Build and Push / build (push) Has been cancelled
- 删除Dockerfile中不必要的mailcap包以精简镜像
- 将前端配置从process.env改为import.meta.env以适配现代构建工具
- 移除Go代码中手动设置mime类型的冗余逻辑
- 修复静态资源路由路径格式(/assets改为assets/)
- 优化导入语句格式和代码结构
2026-02-10 20:46:06 +08:00
zimonianhua 7f9b638553 fix: use all: prefix for embed to include files starting with underscore
Docker Build and Push / build (push) Has been cancelled
2026-02-10 20:40:35 +08:00
zimonianhua 39d61dd7ad fix: 修复Docker镜像中静态资源加载问题
Docker Build and Push / build (push) Has been cancelled
- 在Dockerfile中添加mailcap包以提供mime类型支持
- 修正静态资源路由路径从"assets/"改为"/assets"
- 显式注册.js和.css文件的mime类型,防止因缺少mime配置导致浏览器加载失败
2026-02-10 20:31:31 +08:00
zimonianhua 3519a26495 chore: 删除已弃用的部署工作流并更新生产环境检测
Docker Build and Push / build (push) Has been cancelled
删除三个已弃用的 GitHub Actions 工作流文件 (deploy_docs_pages.yml, demo_site_deploy.yml, custom_deploy.yml),这些工作流已不再使用。
同时更新 web/config.js 中的生产环境检测逻辑,使其同时识别 'prod' 和 'production' 环境变量值,提高配置的灵活性。
2026-02-10 20:17:26 +08:00
zimonianhua fbf7885131 build: 分离开发与发布环境的 Docker 构建配置
Docker Build and Push / build (push) Has been cancelled
custom-deploy-your-server / build-deploy (push) Has been cancelled
deploy-demo-site / build-deploy (push) Has been cancelled
Deploy Docs to GitHub Pages / build (push) Has been cancelled
Deploy Docs to GitHub Pages / Deploy (push) Has been cancelled
- 新增 Dockerfile.release 用于生产环境,仅包含运行所需的最小依赖
- 重构原 Dockerfile 为多阶段构建,集成前端构建与后端编译
- 更新 .goreleaser.yaml 以使用新的发布镜像配置
- 新增 GitHub Actions 工作流用于自动构建和推送 Docker 镜像
2026-02-10 19:57:51 +08:00
zimonianhua 26e45ce8c3 build: 更新 go.mod 中的依賴項版本
custom-deploy-your-server / build-deploy (push) Has been cancelled
deploy-demo-site / build-deploy (push) Has been cancelled
Deploy Docs to GitHub Pages / build (push) Has been cancelled
Deploy Docs to GitHub Pages / Deploy (push) Has been cancelled
更新多個依賴項至新版本,包括 google/uuid (v1.3.0 → v1.6.0)、modernc.org/sqlite (v1.23.1 → v1.45.0) 及其相關模組,並添加了新的依賴項 ncruces/go-strftime 和 golang.org/x/exp。
2026-02-10 19:00:38 +08:00
zimonianhua 9538ab481b feat: 新增企业微信应用消息发送渠道
custom-deploy-your-server / build-deploy (push) Has been cancelled
deploy-demo-site / build-deploy (push) Has been cancelled
Deploy Docs to GitHub Pages / build (push) Has been cancelled
Deploy Docs to GitHub Pages / Deploy (push) Has been cancelled
- 添加 WeChatCorpAccount 消息类型常量
- 新增企业微信应用配置结构体和渠道验证逻辑
- 实现企业微信应用消息发送服务,支持 text、markdown 和 textcard 格式
- 添加前端配置界面,支持动态接收者设置
- 集成代理支持(HTTP/HTTPS/SOCKS5)
2026-02-10 18:52:59 +08:00