From 3435c1e07be69d02cd0a2c7736c84972200d852b Mon Sep 17 00:00:00 2001 From: Carlos <28845529+mesacarlos@users.noreply.github.com> Date: Thu, 16 Jun 2022 16:37:09 +0200 Subject: [PATCH] Able to use client app in subdirectories --- client/angular.json | 8 ++++---- client/src/app/_services/webconsole.service.ts | 1 + client/src/app/content/console/console.component.ts | 4 ---- client/src/app/core/language.module.ts | 2 +- client/src/index.html | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/client/angular.json b/client/angular.json index e8276f0..44f5d8a 100644 --- a/client/angular.json +++ b/client/angular.json @@ -40,13 +40,13 @@ "budgets": [ { "type": "initial", - "maximumWarning": "500kb", - "maximumError": "1mb" + "maximumWarning": "1mb", + "maximumError": "10mb" }, { "type": "anyComponentStyle", - "maximumWarning": "2kb", - "maximumError": "4kb" + "maximumWarning": "20kb", + "maximumError": "40kb" } ], "fileReplacements": [ diff --git a/client/src/app/_services/webconsole.service.ts b/client/src/app/_services/webconsole.service.ts index 556bc9b..6181776 100644 --- a/client/src/app/_services/webconsole.service.ts +++ b/client/src/app/_services/webconsole.service.ts @@ -195,6 +195,7 @@ export class WebconsoleService { if (serverConnection) { serverConnection.subject$.complete(); serverConnection.connectionStatus = ConnectionStatusEnum.Disconnected; + this.webSocketClients[serverName]?.close(); this.webSocketClients[serverName] = undefined; this.activeConnections = this.activeConnections.filter(e => e.serverName !== serverName); this.activeConnectionsChangedSubject$.next(); diff --git a/client/src/app/content/console/console.component.ts b/client/src/app/content/console/console.component.ts index bb8e043..4bd3b61 100644 --- a/client/src/app/content/console/console.component.ts +++ b/client/src/app/content/console/console.component.ts @@ -390,7 +390,3 @@ export class ConsoleComponent implements OnInit, AfterViewInit, OnDestroy { } } - -//TODO falta por hacer: -//1. Listado de activeConnections para desktop a modo pestaƱas -//2. Listado de activeConnections en responsive \ No newline at end of file diff --git a/client/src/app/core/language.module.ts b/client/src/app/core/language.module.ts index 82b22fe..06db363 100644 --- a/client/src/app/core/language.module.ts +++ b/client/src/app/core/language.module.ts @@ -5,7 +5,7 @@ import { TranslateHttpLoader } from "@ngx-translate/http-loader"; import { LanguageService } from "../_services/language.service"; export const HttpLoaderFactory = (http: HttpClient): TranslateHttpLoader => { - return new TranslateHttpLoader(http, "/assets/i18n/") + return new TranslateHttpLoader(http, "./assets/i18n/") } @NgModule({ diff --git a/client/src/index.html b/client/src/index.html index b57e518..e923462 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -3,7 +3,7 @@