update:1.添加页面底部版本显示

This commit is contained in:
xiamuceer
2025-11-23 13:28:42 +08:00
parent 244aa4db4f
commit c14a963d0f
5 changed files with 245 additions and 4 deletions
+41
View File
@@ -0,0 +1,41 @@
/**
* 应用版本信息配置
* 版本号遵循语义化版本规范 (Semantic Versioning)
*/
export const VERSION_INFO = {
// 应用版本号
version: '1.0.1',
// 构建时间(将在构建时由 Vite 注入)
buildTime: import.meta.env.VITE_BUILD_TIME || new Date().toISOString().split('T')[0],
// 项目信息
projectName: 'MuMuAINovel',
projectFullName: 'MuMu AI 小说创作助手',
// 链接信息
githubUrl: 'https://github.com/xiamuceer-j/MuMuAINovel',
linuxDoUrl: 'https://linux.do/t/topic/1106333',
// 许可证
license: 'GPL v3.0',
licenseUrl: 'https://www.gnu.org/licenses/gpl-3.0.html',
// 作者信息
author: 'xiamuceer-j',
};
/**
* 获取格式化的版本信息
*/
export const getVersionString = () => {
return `v${VERSION_INFO.version}`;
};
/**
* 获取完整的版本描述
*/
export const getFullVersionInfo = () => {
return `${VERSION_INFO.projectName} ${getVersionString()} - Build ${VERSION_INFO.buildTime}`;
};