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:
@@ -1480,8 +1480,11 @@ export default {
|
||||
sectionDescription: 'Просмотр сведений о версии системы и конфигурации учётной записи пользователя',
|
||||
loadingInfo: 'Загрузка данных...',
|
||||
retry: 'Повторить',
|
||||
versionLabel: 'Версия системы',
|
||||
versionDescription: 'Текущий номер версии системы',
|
||||
versionLabel: 'Версия приложения',
|
||||
versionDescription: 'Версия сервиса приложения (weknora-app)',
|
||||
frontendVersionLabel: 'Версия UI',
|
||||
frontendVersionDescription: 'Версия сборки UI (weknora-ui)',
|
||||
versionMismatch: 'Не совпадает с версией приложения',
|
||||
buildTimeLabel: 'Время сборки',
|
||||
buildTimeDescription: 'Время, когда система была собрана',
|
||||
goVersionLabel: 'Версия Go',
|
||||
|
||||
Reference in New Issue
Block a user