Files
PolyHermes/frontend/src/vite-env.d.ts
T
WrBug b069e54b89 feat: 添加版本号显示和自动构建/删除 Docker 镜像功能
- 添加前端版本号显示(桌面端和移动端)
- 实现 GitHub Actions 自动构建和推送 Docker 镜像
- 实现删除 release 时自动删除对应 Docker 镜像
- 支持版本号格式:v数字.数字.数字 或 v数字.数字.数字-后缀
- 添加版本号管理文档
- 更新 Dockerfile 和部署脚本支持版本号构建参数
2025-12-07 16:46:18 +08:00

24 lines
454 B
TypeScript

/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_URL?: string
readonly VITE_WS_URL?: string
readonly VITE_APP_VERSION?: string
readonly VITE_APP_GIT_TAG?: string
readonly VITE_APP_GITHUB_REPO_URL?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
// 版本号全局变量类型定义
interface Window {
__VERSION__?: {
version: string
gitTag: string
githubRepoUrl: string
}
}