Front version (#6181)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-07-30 14:52:10 +07:00
committed by Andrey Sobolev
parent 8a45a3fdde
commit 51ae72b5cb
17 changed files with 101 additions and 26 deletions
+3 -2
View File
@@ -3,7 +3,6 @@
"COLLABORATOR_URL": "ws://localhost:3078",
"COLLABORATOR_API_URL": "http://localhost:3078",
"UPLOAD_URL":"/files",
"MODEL_VERSION": null,
"TELEGRAM_URL": "http://localhost:8086",
"GMAIL_URL": "http://localhost:8088",
"CALENDAR_URL": "http://localhost:8095",
@@ -15,5 +14,7 @@
"PRINT_URL": "http://localhost:4005",
"SIGN_URL": "http://localhost:4006",
"ANALYTICS_COLLECTOR_URL": "http://localhost:4077",
"BRANDING_URL": "/branding.json"
"BRANDING_URL": "/branding.json",
"VERSION": "0.6.266",
"MODEL_VERSION": "0.6.266"
}
+6 -1
View File
@@ -120,6 +120,7 @@ export interface Config {
ACCOUNTS_URL: string
UPLOAD_URL: string
MODEL_VERSION: string
VERSION: string
COLLABORATOR_URL: string
COLLABORATOR_API_URL: string
REKONI_URL: string
@@ -291,7 +292,11 @@ export async function configurePlatform() {
if (config.MODEL_VERSION != null) {
console.log('Minimal Model version requirement', config.MODEL_VERSION)
setMetadata(presentation.metadata.RequiredVersion, config.MODEL_VERSION)
setMetadata(presentation.metadata.ModelVersion, config.MODEL_VERSION)
}
if (config.VERSION != null) {
console.log('Minimal version requirement', config.VERSION)
setMetadata(presentation.metadata.FrontVersion, config.VERSION)
}
setMetadata(telegram.metadata.TelegramURL, config.TELEGRAM_URL ?? 'http://localhost:8086')
setMetadata(gmail.metadata.GmailURL, config.GMAIL_URL ?? 'http://localhost:8087')