Able to use client app in subdirectories

This commit is contained in:
Carlos 2022-06-16 16:37:09 +02:00
parent 7d13d219d1
commit 3435c1e07b
5 changed files with 7 additions and 10 deletions

View File

@ -40,13 +40,13 @@
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
"maximumWarning": "500kb", "maximumWarning": "1mb",
"maximumError": "1mb" "maximumError": "10mb"
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "2kb", "maximumWarning": "20kb",
"maximumError": "4kb" "maximumError": "40kb"
} }
], ],
"fileReplacements": [ "fileReplacements": [

View File

@ -195,6 +195,7 @@ export class WebconsoleService {
if (serverConnection) { if (serverConnection) {
serverConnection.subject$.complete(); serverConnection.subject$.complete();
serverConnection.connectionStatus = ConnectionStatusEnum.Disconnected; serverConnection.connectionStatus = ConnectionStatusEnum.Disconnected;
this.webSocketClients[serverName]?.close();
this.webSocketClients[serverName] = undefined; this.webSocketClients[serverName] = undefined;
this.activeConnections = this.activeConnections.filter(e => e.serverName !== serverName); this.activeConnections = this.activeConnections.filter(e => e.serverName !== serverName);
this.activeConnectionsChangedSubject$.next(); this.activeConnectionsChangedSubject$.next();

View File

@ -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

View File

@ -5,7 +5,7 @@ import { TranslateHttpLoader } from "@ngx-translate/http-loader";
import { LanguageService } from "../_services/language.service"; import { LanguageService } from "../_services/language.service";
export const HttpLoaderFactory = (http: HttpClient): TranslateHttpLoader => { export const HttpLoaderFactory = (http: HttpClient): TranslateHttpLoader => {
return new TranslateHttpLoader(http, "/assets/i18n/") return new TranslateHttpLoader(http, "./assets/i18n/")
} }
@NgModule({ @NgModule({

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>WebConsole Client</title> <title>WebConsole Client</title>
<base href="/"> <base href="./">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
</head> </head>