Skip to content

Commit eb7a2a7

Browse files
syns2191evereq
andauthored
[Fix] name and label server api (#7868)
* fix: name and label server api * fix: translation server api * fix: added translation value * Update env.ts * Update env.ts --------- Co-authored-by: Ruslan Konviser <[email protected]>
1 parent cedcc59 commit eb7a2a7

File tree

17 files changed

+56
-17
lines changed

17 files changed

+56
-17
lines changed

.scripts/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export const env: Env = cleanEnv(
311311
default: 'gauzy-api-server'
312312
}),
313313
DESKTOP_API_SERVER_APP_DESCRIPTION: str({
314-
default: 'Gauzy API Server'
314+
default: 'Ever Gauzy API Server'
315315
}),
316316
DESKTOP_API_SERVER_APP_ID: str({
317317
default: 'com.ever.gauzyapiserver'

packages/desktop-ui-lib/src/lib/server-dashboard/server-dashboard.component.html

+9-2
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@
66
<div class="col-12 text-center margin-content">
77
<img [src]="gauzyIcon" [class]="styles.icon" />
88
</div>
9-
<div class="col-12 text-center margin-content">
9+
<div class="col-12 text-center margin-content" *ngIf="!isServerApi">
1010
<h4 *ngIf="isExpandWindow">{{'SERVER' | translate| uppercase}}</h4>
1111
<h5 *ngIf="!isExpandWindow">{{'SERVER' | translate| uppercase}}</h5>
1212
</div>
13+
<div class="col-12 text-center margin-content" *ngIf="isServerApi">
14+
<h4 *ngIf="isExpandWindow">{{'SERVER_API' | translate| uppercase}}</h4>
15+
<h5 *ngIf="!isExpandWindow">{{'SERVER_API' | translate| uppercase}}</h5>
16+
</div>
1317
<div class="col-12 text-center accordion margin-content" *ngIf="isExpandWindow">
1418
<nb-accordion multi>
1519
<nb-accordion-item #logServer [expanded]="logIsOpen"
1620
(collapsedChange)="logBoxChange($event)">
17-
<nb-accordion-item-header>
21+
<nb-accordion-item-header *ngIf="!isServerApi">
1822
{{'SERVER_LOG' | translate}}
1923
</nb-accordion-item-header>
24+
<nb-accordion-item-header *ngIf="isServerApi">
25+
{{'SERVER_API_LOG' | translate}}
26+
</nb-accordion-item-header>
2027
<nb-accordion-item-body class="log-box">
2128
<div class="log-content" #logBox>
2229
<p class="content-text" *ngFor="let content of logContents">

packages/desktop-ui-lib/src/lib/server-dashboard/server-dashboard.component.ts

+4
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,8 @@ export class ServerDashboardComponent implements OnInit, AfterViewInit {
187187
this.logIsOpen = true;
188188
}
189189
}
190+
191+
public get isServerApi(): boolean {
192+
return this._environment.IS_SERVER_API;
193+
}
190194
}

packages/ui-sdk/src/lib/i18n/assets/i18n/ach.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3999,5 +3999,7 @@
39993999
"NO_IMAGE": {
40004000
"ADD_DROP": "crwdns11241:0crwdne11241:0",
40014001
"AVAILABLE": "crwdns11243:0crwdne11243:0"
4002-
}
4002+
},
4003+
"SERVER_API": "API Server",
4004+
"SERVER_API_LOG": "API Server Log"
40034005
}

packages/ui-sdk/src/lib/i18n/assets/i18n/ar.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4587,5 +4587,7 @@
45874587
"NO_IMAGE": {
45884588
"ADD_DROP": "أضف أو أزل الصورة",
45894589
"AVAILABLE": "الصورة غير متاحة"
4590-
}
4590+
},
4591+
"SERVER_API": "خادم واجهة برمجة التطبيقات",
4592+
"SERVER_API_LOG": "سجل خادم API"
45914593
}

packages/ui-sdk/src/lib/i18n/assets/i18n/bg.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4579,5 +4579,7 @@
45794579
"NO_IMAGE": {
45804580
"ADD_DROP": "Add or Drop Image",
45814581
"AVAILABLE": "Image not available"
4582-
}
4582+
},
4583+
"SERVER_API": "API сървър",
4584+
"SERVER_API_LOG": "Дневник на API сървъра"
45834585
}

packages/ui-sdk/src/lib/i18n/assets/i18n/de.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4584,5 +4584,7 @@
45844584
"NO_IMAGE": {
45854585
"ADD_DROP": "Bild hinzufügen oder entfernen",
45864586
"AVAILABLE": "Bild nicht verfügbar"
4587-
}
4587+
},
4588+
"SERVER_API": "API Server",
4589+
"SERVER_API_LOG": "API Server Log"
45884590
}

packages/ui-sdk/src/lib/i18n/assets/i18n/en.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4723,5 +4723,7 @@
47234723
"NO_IMAGE": {
47244724
"ADD_DROP": "Add or Drop Image",
47254725
"AVAILABLE": "Image not available"
4726-
}
4726+
},
4727+
"SERVER_API": "API Server",
4728+
"SERVER_API_LOG": "API Server Log"
47274729
}

packages/ui-sdk/src/lib/i18n/assets/i18n/es.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4590,5 +4590,7 @@
45904590
"NO_IMAGE": {
45914591
"ADD_DROP": "Agregar o Eliminar Imagen",
45924592
"AVAILABLE": "Imagen no disponible"
4593-
}
4593+
},
4594+
"SERVER_API": "Servidor API",
4595+
"SERVER_API_LOG": "Registro del servidor API"
45944596
}

packages/ui-sdk/src/lib/i18n/assets/i18n/fr.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4589,5 +4589,7 @@
45894589
"NO_IMAGE": {
45904590
"ADD_DROP": "Ajouter ou supprimer une image",
45914591
"AVAILABLE": "Image non disponible"
4592-
}
4592+
},
4593+
"SERVER_API": "Serveur API",
4594+
"SERVER_API_LOG": "Journal du serveur API"
45934595
}

packages/ui-sdk/src/lib/i18n/assets/i18n/he.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4569,5 +4569,7 @@
45694569
"NO_IMAGE": {
45704570
"ADD_DROP": "Add or Drop Image",
45714571
"AVAILABLE": "Image not available"
4572-
}
4572+
},
4573+
"SERVER_API": "API Server",
4574+
"SERVER_API_LOG": "API Server Log"
45734575
}

packages/ui-sdk/src/lib/i18n/assets/i18n/it.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4588,5 +4588,7 @@
45884588
"NO_IMAGE": {
45894589
"ADD_DROP": "Aggiungi o Rimuovi Immagine",
45904590
"AVAILABLE": "Immagine non disponibile"
4591-
}
4591+
},
4592+
"SERVER_API": "API Server",
4593+
"SERVER_API_LOG": "Registro del server API"
45924594
}

packages/ui-sdk/src/lib/i18n/assets/i18n/nl.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4588,5 +4588,7 @@
45884588
"NO_IMAGE": {
45894589
"ADD_DROP": "Afbeelding toevoegen of verwijderen",
45904590
"AVAILABLE": "Afbeelding niet beschikbaar"
4591-
}
4591+
},
4592+
"SERVER_API": "API Server",
4593+
"SERVER_API_LOG": "API Server Log"
45924594
}

packages/ui-sdk/src/lib/i18n/assets/i18n/pl.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4588,5 +4588,7 @@
45884588
"NO_IMAGE": {
45894589
"ADD_DROP": "Dodaj lub usuń obraz",
45904590
"AVAILABLE": "Zdjęcie niedostępne"
4591-
}
4591+
},
4592+
"SERVER_API": "Serwer API",
4593+
"SERVER_API_LOG": "Dziennik serwera API"
45924594
}

packages/ui-sdk/src/lib/i18n/assets/i18n/pt.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4588,5 +4588,7 @@
45884588
"NO_IMAGE": {
45894589
"ADD_DROP": "Adicionar ou Remover Imagem",
45904590
"AVAILABLE": "Imagem não disponível."
4591-
}
4591+
},
4592+
"SERVER_API": "Servidor API",
4593+
"SERVER_API_LOG": "Log do servidor API"
45924594
}

packages/ui-sdk/src/lib/i18n/assets/i18n/ru.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4577,5 +4577,7 @@
45774577
"NO_IMAGE": {
45784578
"ADD_DROP": "Добавить или выложить изображение",
45794579
"AVAILABLE": "Изображение недоступно"
4580-
}
4580+
},
4581+
"SERVER_API": "API-сервер",
4582+
"SERVER_API_LOG": "Журнал API-сервера"
45814583
}

packages/ui-sdk/src/lib/i18n/assets/i18n/zh.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -4588,5 +4588,7 @@
45884588
"NO_IMAGE": {
45894589
"ADD_DROP": "添加或删除图像",
45904590
"AVAILABLE": "图像不可用"
4591-
}
4591+
},
4592+
"SERVER_API": "API服务器",
4593+
"SERVER_API_LOG": "API服务器日志"
45924594
}

0 commit comments

Comments
 (0)