Correccion de traducciones
parent
a0dd9a1803
commit
4a3b8029da
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## [1.5.3] - 2026-04-24
|
||||
### Improved
|
||||
- Corregidas traducciones
|
||||
|
||||
## [1.5.2] - 2026-04-24
|
||||
### Added
|
||||
- Añadido campo resolución en los ajustes de red de aulas y grupos para propagarlo a los equipos.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
.dashboard-container {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20px 20px 10px 20px;
|
||||
gap: 10px;
|
||||
border-bottom: 1px solid #eee;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.dashboard-tabs {
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
.tab-icon {
|
||||
margin-right: 12px;
|
||||
font-size: 24px;
|
||||
color: #3f51b5;
|
||||
}
|
||||
|
||||
.tab-label-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
line-height: 1.2;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.tab-title {
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.tab-subtitle {
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.tab-content {
|
||||
padding: 0;
|
||||
background: #fff;
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
::ng-deep .mat-mdc-tab-body-wrapper {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
<div class="dashboard-container">
|
||||
<div class="header">
|
||||
<button mat-icon-button (click)="goBack()" [matTooltip]="'labelGoBackToServers' | translate">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
<h1>{{ 'labelServerManagement' | translate }}: {{ serverName }}</h1>
|
||||
</div>
|
||||
|
||||
<mat-tab-group animationDuration="0ms" class="dashboard-tabs">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">album</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">{{ 'labelOgLives' | translate }}</span>
|
||||
<span class="tab-subtitle">{{ 'labelOgLiveVersTooltip' | translate }}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe-images [selectedServerId]="serverUuid"></app-pxe-images>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">assignment</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">{{ 'pxeTemplates' | translate }}</span>
|
||||
<span class="tab-subtitle">{{ 'labelPxeTemplatesDescription' | translate }}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe [selectedServerId]="serverUuid"></app-pxe>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">save</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">{{ 'pxeBootFiles' | translate }}</span>
|
||||
<span class="tab-subtitle">{{ 'labelPxeBootFilesDescription' | translate }}</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe-boot-files [selectedServerId]="serverUuid"></app-pxe-boot-files>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
</div>
|
||||
|
|
@ -2,89 +2,26 @@ import { Component, OnInit } from '@angular/core';
|
|||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { ConfigService } from '@services/config.service';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-boot-server-dashboard',
|
||||
template: `
|
||||
<div class="dashboard-container">
|
||||
<div class="header">
|
||||
<button mat-icon-button (click)="goBack()" matTooltip="Volver a servidores">
|
||||
<mat-icon>arrow_back</mat-icon>
|
||||
</button>
|
||||
<h1>Gestión de Servidor: {{ serverName }}</h1>
|
||||
</div>
|
||||
|
||||
<mat-tab-group animationDuration="0ms" class="dashboard-tabs">
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">album</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">OgLives</span>
|
||||
<span class="tab-subtitle">Versiones de OgLive disponibles</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe-images [selectedServerId]="serverUuid"></app-pxe-images>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">assignment</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">Plantillas PXE</span>
|
||||
<span class="tab-subtitle">Configuraciones de arranque PXE</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe [selectedServerId]="serverUuid"></app-pxe>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
|
||||
<mat-tab>
|
||||
<ng-template mat-tab-label>
|
||||
<mat-icon class="tab-icon">save</mat-icon>
|
||||
<div class="tab-label-content">
|
||||
<span class="tab-title">Arranque PXE</span>
|
||||
<span class="tab-subtitle">Ficheros de arranque de clientes</span>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="tab-content">
|
||||
@if (serverUuid) {
|
||||
<app-pxe-boot-files [selectedServerId]="serverUuid"></app-pxe-boot-files>
|
||||
}
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
</div>
|
||||
`,
|
||||
styles: [`
|
||||
.dashboard-container { padding: 0; }
|
||||
.header { display: flex; align-items: center; padding: 20px 20px 10px 20px; gap: 10px; border-bottom: 1px solid #eee; background: #fff; }
|
||||
.header h1 { margin: 0; font-size: 20px; font-weight: 500; }
|
||||
.dashboard-tabs { background: #fafafa; }
|
||||
.tab-icon { margin-right: 12px; font-size: 24px; color: #3f51b5; }
|
||||
.tab-label-content { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; padding: 10px 0; }
|
||||
.tab-title { font-weight: 600; font-size: 14px; }
|
||||
.tab-subtitle { font-size: 11px; color: #666; font-weight: 400; }
|
||||
.tab-content { padding: 0; background: #fff; min-height: 400px; }
|
||||
::ng-deep .mat-mdc-tab-body-wrapper { padding-top: 0 !important; }
|
||||
`]
|
||||
templateUrl: './boot-server-dashboard.component.html',
|
||||
styleUrls: ['./boot-server-dashboard.component.css']
|
||||
})
|
||||
export class BootServerDashboardComponent implements OnInit {
|
||||
serverUuid: string | null = null;
|
||||
serverName: string = 'Cargando...';
|
||||
serverName: string = '';
|
||||
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private router: Router,
|
||||
private http: HttpClient,
|
||||
private configService: ConfigService
|
||||
) {}
|
||||
private configService: ConfigService,
|
||||
private translateService: TranslateService
|
||||
) {
|
||||
this.serverName = this.translateService.instant('loadingDots');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.serverUuid = this.route.snapshot.paramMap.get('uuid');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"apiUrl": "https://127.0.0.1:8443",
|
||||
"mercureUrl": "http://localhost:3000/.well-known/mercure",
|
||||
"logUrl": "https://localhost:3030"
|
||||
}
|
||||
"logUrl": "https://localhost:3030",
|
||||
"languages": {
|
||||
"es": "Español",
|
||||
"en": "English",
|
||||
"cat": "Català"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue