@esfaenza/admin-module 19.2.28 → 19.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,6 +96,7 @@ const POST_Director_GetSystemParameters = "/api/Director/GetSystemParameters";
|
|
|
96
96
|
const POST_Director_UpdatSystemParameter = "/api/Director/UpdatSystemParameter";
|
|
97
97
|
const GET_Director_ResetSystemParameter = "/api/Director/ResetSystemParameter";
|
|
98
98
|
const GET_Director_GetInstances = "/api/Director/GetInstances";
|
|
99
|
+
const GET_Director_GetLogTargets = "/api/Director/GetLogTargets";
|
|
99
100
|
class AdminModuleBaseService {
|
|
100
101
|
constructor(injector) {
|
|
101
102
|
this.injector = injector;
|
|
@@ -141,8 +142,8 @@ class AdminModuleBaseService {
|
|
|
141
142
|
let ret = await firstValueFrom(this.http.get(GET_Director_GetConsumerGroups, pars));
|
|
142
143
|
return ret;
|
|
143
144
|
}
|
|
144
|
-
async getServerLogs(be, from, to) {
|
|
145
|
-
var pars = new HttpParams().set("from", from ?? "").set("to", to ?? "").set("be", be ?? "");
|
|
145
|
+
async getServerLogs(be, from, to, instance, target) {
|
|
146
|
+
var pars = new HttpParams().set("from", from ?? "").set("to", to ?? "").set("instance", instance ?? "").set("target", target ?? "").set("be", be ?? "");
|
|
146
147
|
let ret = await firstValueFrom(this.http.get(GET_Director_GetServerLogs, pars));
|
|
147
148
|
return ret;
|
|
148
149
|
}
|
|
@@ -223,6 +224,11 @@ class AdminModuleBaseService {
|
|
|
223
224
|
let ret = await firstValueFrom(this.http.get(GET_Director_GetInstances, pars));
|
|
224
225
|
return ret;
|
|
225
226
|
}
|
|
227
|
+
async getLogTargets(be, instance) {
|
|
228
|
+
var pars = new HttpParams().set("be", be ?? "").set("instance", instance ?? "");
|
|
229
|
+
let ret = await firstValueFrom(this.http.get(GET_Director_GetLogTargets, pars));
|
|
230
|
+
return ret;
|
|
231
|
+
}
|
|
226
232
|
async updateSystemParameter(be, dto) {
|
|
227
233
|
var pars = new HttpParams().set("be", be ?? "");
|
|
228
234
|
let ret = await firstValueFrom(this.http.post(POST_Director_UpdatSystemParameter, dto, pars));
|
|
@@ -982,8 +988,8 @@ class AdmTopActivitiesComponent {
|
|
|
982
988
|
let reference = (searchViewOverride ?? this.searchView).items[0];
|
|
983
989
|
this.TopNodes = reference.topnodes;
|
|
984
990
|
this.TopSessions = reference.topsessions;
|
|
985
|
-
this.DirInfos = dirInfos
|
|
986
|
-
this.DirInfosGlobal = !dirInfos
|
|
991
|
+
this.DirInfos = dirInfos?.cluster ? dirInfos : null;
|
|
992
|
+
this.DirInfosGlobal = !dirInfos?.cluster ? dirInfos : null;
|
|
987
993
|
if (!reference.actsessions || reference.actsessions.length == 0) {
|
|
988
994
|
this.TopActiveSessions = null;
|
|
989
995
|
return;
|
|
@@ -1374,23 +1380,30 @@ class AdmLogsComponent {
|
|
|
1374
1380
|
this.adms = adms;
|
|
1375
1381
|
this.filterfrom = "";
|
|
1376
1382
|
this.filterto = "";
|
|
1383
|
+
this.filterinstance = "";
|
|
1384
|
+
this.filtertarget = "";
|
|
1377
1385
|
this.be = route.snapshot.params["be"] || "";
|
|
1378
1386
|
this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1379
1387
|
}
|
|
1380
1388
|
async ngOnInit() {
|
|
1389
|
+
this.instanceChanged();
|
|
1390
|
+
this.AvailableInstances = await this.adms.getInstances(this.be);
|
|
1381
1391
|
await this.sendSearch();
|
|
1382
1392
|
}
|
|
1393
|
+
async instanceChanged() {
|
|
1394
|
+
this.AvailableTargets = await this.adms.getLogTargets(this.be, this.filterinstance);
|
|
1395
|
+
}
|
|
1383
1396
|
async sendSearch() {
|
|
1384
1397
|
this.searchinprogress = true;
|
|
1385
|
-
this.Log = await this.adms.getServerLogs(this.be, this.filterfrom, this.filterto);
|
|
1398
|
+
this.Log = await this.adms.getServerLogs(this.be, this.filterfrom, this.filterto, this.filterinstance, this.filtertarget);
|
|
1386
1399
|
this.searchinprogress = false;
|
|
1387
1400
|
}
|
|
1388
1401
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AdmLogsComponent, deps: [{ token: i1$1.InterComService }, { token: i1.LocalizationService }, { token: i4.ActivatedRoute }, { token: AdminModuleBaseService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1389
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AdmLogsComponent, isStandalone: false, selector: "adm_logs", ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterfrom\" name=\"filterfrom\" [Placeholder]=\"'Da'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterto\" name=\"filterto\" [Placeholder]=\"'A'\"></form-date>\r\n </div>\r\n <button [disabled]=\"searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20 app-margin-right-5\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap app-log-monospace\" [innerHTML]=\"Log\"></p>\r\n\r\n</div>", styles: [".app-log-monospace{font-family:monospace}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i9.EsFormDateComponent, selector: "form-date", inputs: ["InOutFormat", "FloatingLabel"] }], viewProviders: [{ provide: LocalizationService, useClass: AdmLogsLoc }] }); }
|
|
1402
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: AdmLogsComponent, isStandalone: false, selector: "adm_logs", ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterfrom\" name=\"filterfrom\" [Placeholder]=\"'Da'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterto\" name=\"filterto\" [Placeholder]=\"'A'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterinstance\" name=\"filterinstance\" [Placeholder]=\"'Istanza'\" [Source]=\"AvailableInstances\" (inputChange)=\"instanceChanged();\"></form-select>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filtertarget\" name=\"filtertarget\" [Placeholder]=\"'Target'\" [Source]=\"AvailableTargets\"></form-select>\r\n </div>\r\n <button [disabled]=\"searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20 app-margin-right-5\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap app-log-monospace\" [innerHTML]=\"Log\"></p>\r\n\r\n</div>", styles: [".app-log-monospace{font-family:monospace}\n"], dependencies: [{ kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i7.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i9.EsFormSelectComponent, selector: "form-select" }, { kind: "component", type: i9.EsFormDateComponent, selector: "form-date", inputs: ["InOutFormat", "FloatingLabel"] }], viewProviders: [{ provide: LocalizationService, useClass: AdmLogsLoc }] }); }
|
|
1390
1403
|
}
|
|
1391
1404
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AdmLogsComponent, decorators: [{
|
|
1392
1405
|
type: Component,
|
|
1393
|
-
args: [{ selector: "adm_logs", viewProviders: [{ provide: LocalizationService, useClass: AdmLogsLoc }], standalone: false, template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterfrom\" name=\"filterfrom\" [Placeholder]=\"'Da'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterto\" name=\"filterto\" [Placeholder]=\"'A'\"></form-date>\r\n </div>\r\n <button [disabled]=\"searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20 app-margin-right-5\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap app-log-monospace\" [innerHTML]=\"Log\"></p>\r\n\r\n</div>", styles: [".app-log-monospace{font-family:monospace}\n"] }]
|
|
1406
|
+
args: [{ selector: "adm_logs", viewProviders: [{ provide: LocalizationService, useClass: AdmLogsLoc }], standalone: false, template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterfrom\" name=\"filterfrom\" [Placeholder]=\"'Da'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterto\" name=\"filterto\" [Placeholder]=\"'A'\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filterinstance\" name=\"filterinstance\" [Placeholder]=\"'Istanza'\" [Source]=\"AvailableInstances\" (inputChange)=\"instanceChanged();\"></form-select>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"filtertarget\" name=\"filtertarget\" [Placeholder]=\"'Target'\" [Source]=\"AvailableTargets\"></form-select>\r\n </div>\r\n <button [disabled]=\"searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20 app-margin-right-5\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap app-log-monospace\" [innerHTML]=\"Log\"></p>\r\n\r\n</div>", styles: [".app-log-monospace{font-family:monospace}\n"] }]
|
|
1394
1407
|
}], ctorParameters: () => [{ type: i1$1.InterComService }, { type: i1.LocalizationService }, { type: i4.ActivatedRoute }, { type: AdminModuleBaseService }] });
|
|
1395
1408
|
|
|
1396
1409
|
class DynamicViewsView extends AppSearch {
|