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": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
"maximumWarning": "1mb",
"maximumError": "10mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
"maximumWarning": "20kb",
"maximumError": "40kb"
}
],
"fileReplacements": [

View File

@ -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();

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";
export const HttpLoaderFactory = (http: HttpClient): TranslateHttpLoader => {
return new TranslateHttpLoader(http, "/assets/i18n/")
return new TranslateHttpLoader(http, "./assets/i18n/")
}
@NgModule({

View File

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