feat(frontend): show UI build version on system info page

Inject the frontend package.json version at build time via Vite and
render it as a dedicated "UI Version" row in System Info, alongside
the existing app (backend) version returned by /system/info. When the
two versions differ a warning tag is shown so users can tell at a
glance that their weknora-ui image is out of sync with weknora-app
(e.g. missing config fields for newer providers like SearXNG).

Rename the existing version row label from "System Version" to
"App Version" to distinguish it from the new UI version row in all
four locales (zh-CN, en-US, ko-KR, ru-RU).
This commit is contained in:
wizardchen
2026-05-13 17:45:35 +08:00
committed by lyingbug
parent 588394a8e6
commit 6cb493eda2
7 changed files with 50 additions and 9 deletions
+3 -1
View File
@@ -3,4 +3,6 @@
// 这段代码告诉 TypeScript,所有以 .vue 结尾的文件都是 Vue 组件,可以通过 import 语句进行导入。这样做通常可以解决无法识别模块的问题。
declare module '*.vue' {
import { Component } from 'vue'; const component: Component; export default component;
}
}
declare const __FRONTEND_VERSION__: string;