From 90d21c0779c40755da196afada0fcaaf8b2f7ec8 Mon Sep 17 00:00:00 2001 From: apuente Date: Wed, 9 Oct 2024 11:12:10 +0200 Subject: [PATCH] refs #909 Create dockerfile --- ogWebconsole/dockerfile | 14 ++ .../advanced-search.component.html | 2 +- .../advanced-search.component.ts | 11 -- .../app/components/groups/groups.component.ts | 1 - .../app/layout/sidebar/sidebar.component.html | 120 ------------------ 5 files changed, 15 insertions(+), 133 deletions(-) create mode 100644 ogWebconsole/dockerfile diff --git a/ogWebconsole/dockerfile b/ogWebconsole/dockerfile new file mode 100644 index 0000000..47594cb --- /dev/null +++ b/ogWebconsole/dockerfile @@ -0,0 +1,14 @@ +FROM node:22.1.0 + +WORKDIR /app + +RUN npm install -g npm@latest + +RUN npm install -g @angular/cli@^12.0.0 + +COPY . /app +RUN npm install + +EXPOSE 4200 + +CMD ["ng", "serve", "--host", "0.0.0.0", "--disable-host-check"] \ No newline at end of file diff --git a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.html b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.html index b192713..944582c 100644 --- a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.html +++ b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.html @@ -99,7 +99,7 @@ - + diff --git a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts index 1a5a00a..5d80354 100644 --- a/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts +++ b/ogWebconsole/src/app/components/groups/components/advanced-search/advanced-search.component.ts @@ -414,15 +414,4 @@ export class AdvancedSearchComponent { - onDobleClick(event: MouseEvent, data: any, type: string): void { - console.log('Doble click en:', data); - - if (type === 'client') { - this.router.navigate(['client', data]); - } - else { - console.error('ADD VIEW FOR OU'); - } - } - } diff --git a/ogWebconsole/src/app/components/groups/groups.component.ts b/ogWebconsole/src/app/components/groups/groups.component.ts index 133e09b..1e65b69 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.ts @@ -259,7 +259,6 @@ export class GroupsComponent implements OnInit { if (type != "client") { const dialogRef = this.dialog.open(EditOrganizationalUnitComponent, { data: { uuid }, width: '700px'}); } else { - console.log('Editar cliente'); const dialogRef = this.dialog.open(EditClientComponent, { data: { uuid }, width: '700px' } ); } } diff --git a/ogWebconsole/src/app/layout/sidebar/sidebar.component.html b/ogWebconsole/src/app/layout/sidebar/sidebar.component.html index ace6206..3a33a6d 100644 --- a/ogWebconsole/src/app/layout/sidebar/sidebar.component.html +++ b/ogWebconsole/src/app/layout/sidebar/sidebar.component.html @@ -14,98 +14,6 @@ - - - playlist_play - Acciones - - - - - - - - chevron_right - Comandos - - - - - chevron_right - Grupos - - - - - chevron_right - Tareas - - - - - notifications - Trazas - - - - - - - - - settings_ethernet - DHCP - - - - - - - - lan - Subnets - - - - - - - - - desktop_windows - Boot - - - - - - - - analytics - Estado - - - - - album - ogLive - - - - - assignment - Plantillas PXE - - - - - save - Arranque PXE - - - - - calendar_month @@ -113,33 +21,5 @@ - - - settings_input_component - Componentes - - - - - - warehouse - Repositorios - - - - - - list - MenĂºs - - - - - - search - Buscar - - -