@firestitch/system 9.1.8 → 9.2.2
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.
- package/app/components/api-logs/api-logs.component.d.ts +1 -3
- package/app/components/crons/crons.component.d.ts +1 -3
- package/app/components/dashboard/dashboard.component.d.ts +1 -3
- package/app/components/processes/processes.component.d.ts +1 -3
- package/app/components/server-logs/server-logs.component.d.ts +1 -3
- package/app/components/settings/settings.component.d.ts +1 -3
- package/app/components/upgrade-logs/upgrade-logs.component.d.ts +0 -3
- package/app/enums/setting-interface-type.enum.d.ts +4 -2
- package/app/interfaces/system-config.d.ts +0 -1
- package/bundles/firestitch-system.umd.js +54 -114
- package/bundles/firestitch-system.umd.js.map +1 -1
- package/bundles/firestitch-system.umd.min.js +2 -2
- package/bundles/firestitch-system.umd.min.js.map +1 -1
- package/esm2015/app/components/api-logs/api-logs.component.js +5 -9
- package/esm2015/app/components/crons/crons.component.js +8 -12
- package/esm2015/app/components/dashboard/dashboard.component.js +3 -7
- package/esm2015/app/components/processes/processes.component.js +4 -8
- package/esm2015/app/components/server-logs/server-logs.component.js +6 -10
- package/esm2015/app/components/settings/settings.component.js +10 -9
- package/esm2015/app/components/upgrade-logs/upgrade-logs.component.js +4 -10
- package/esm2015/app/enums/setting-interface-type.enum.js +4 -2
- package/esm2015/app/fs-system.module.js +1 -5
- package/esm2015/app/interfaces/system-config.js +1 -1
- package/esm2015/app/pipes/key-name-value.pipe.js +2 -2
- package/esm2015/firestitch-system.js +15 -17
- package/esm5/app/components/api-logs/api-logs.component.js +5 -9
- package/esm5/app/components/crons/crons.component.js +8 -12
- package/esm5/app/components/dashboard/dashboard.component.js +3 -7
- package/esm5/app/components/processes/processes.component.js +4 -8
- package/esm5/app/components/server-logs/server-logs.component.js +6 -10
- package/esm5/app/components/settings/settings.component.js +10 -9
- package/esm5/app/components/upgrade-logs/upgrade-logs.component.js +4 -10
- package/esm5/app/enums/setting-interface-type.enum.js +4 -2
- package/esm5/app/fs-system.module.js +1 -5
- package/esm5/app/interfaces/system-config.js +1 -1
- package/esm5/app/pipes/key-name-value.pipe.js +1 -1
- package/esm5/firestitch-system.js +15 -17
- package/fesm2015/firestitch-system.js +41 -98
- package/fesm2015/firestitch-system.js.map +1 -1
- package/fesm5/firestitch-system.js +40 -100
- package/fesm5/firestitch-system.js.map +1 -1
- package/firestitch-system.d.ts +14 -17
- package/firestitch-system.metadata.json +1 -1
- package/package.json +1 -1
- package/app/services/index.d.ts +0 -1
- package/app/services/system.service.d.ts +0 -7
- package/esm2015/app/services/index.js +0 -2
- package/esm2015/app/services/system.service.js +0 -43
- package/esm5/app/services/index.js +0 -2
- package/esm5/app/services/system.service.js +0 -46
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { __decorate,
|
|
2
|
-
import { InjectionToken,
|
|
3
|
-
import * as _snakecaseKeys from 'snakecase-keys';
|
|
4
|
-
import * as _camelcaseKeys from 'camelcase-keys';
|
|
5
|
-
import { isArray, groupBy, reduce } from 'lodash-es';
|
|
1
|
+
import { __decorate, __metadata, __param, __assign, __spread } from 'tslib';
|
|
2
|
+
import { InjectionToken, ChangeDetectorRef, Input, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, Output, Pipe, Injectable, ElementRef, NgModule } from '@angular/core';
|
|
6
3
|
import { CommonModule } from '@angular/common';
|
|
7
4
|
import { FormsModule } from '@angular/forms';
|
|
8
5
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -31,55 +28,16 @@ import { differenceInMinutes } from 'date-fns';
|
|
|
31
28
|
import { ItemType } from '@firestitch/filter';
|
|
32
29
|
import { SelectionActionType } from '@firestitch/selection';
|
|
33
30
|
import { FsPrompt } from '@firestitch/prompt';
|
|
31
|
+
import { groupBy, reduce } from 'lodash-es';
|
|
34
32
|
import { ClipboardService, ClipboardModule } from 'ngx-clipboard';
|
|
35
33
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
36
34
|
|
|
37
35
|
var FS_SYSTEM_CONFIG = new InjectionToken('fs-system-config');
|
|
38
36
|
|
|
39
|
-
var snakecaseKeys = _snakecaseKeys;
|
|
40
|
-
var camelcaseKeys = _camelcaseKeys;
|
|
41
|
-
var SystemService = /** @class */ (function () {
|
|
42
|
-
function SystemService(_config) {
|
|
43
|
-
this._config = _config;
|
|
44
|
-
}
|
|
45
|
-
SystemService.prototype.input = function (data) {
|
|
46
|
-
var _this = this;
|
|
47
|
-
if (isArray(data)) {
|
|
48
|
-
return data.map(function (item) {
|
|
49
|
-
return _this._config.case === 'snake' ? camelcaseKeys(item, { deep: true }) : item;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this._config.case === 'snake' ? camelcaseKeys(data, { deep: true }) : data;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
SystemService.prototype.output = function (data) {
|
|
57
|
-
var _this = this;
|
|
58
|
-
if (isArray(data)) {
|
|
59
|
-
return data.map(function (item) {
|
|
60
|
-
return _this._config.case === 'snake' ? snakecaseKeys(item, { deep: true }) : item;
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this._config.case === 'snake' ? snakecaseKeys(data, { deep: true }) : data;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
SystemService.ctorParameters = function () { return [
|
|
68
|
-
{ type: undefined, decorators: [{ type: Inject, args: [FS_SYSTEM_CONFIG,] }] }
|
|
69
|
-
]; };
|
|
70
|
-
SystemService = __decorate([
|
|
71
|
-
Injectable(),
|
|
72
|
-
__param(0, Inject(FS_SYSTEM_CONFIG)),
|
|
73
|
-
__metadata("design:paramtypes", [Object])
|
|
74
|
-
], SystemService);
|
|
75
|
-
return SystemService;
|
|
76
|
-
}());
|
|
77
|
-
|
|
78
37
|
var DashboardComponent = /** @class */ (function () {
|
|
79
|
-
function DashboardComponent(_message, _cdRef,
|
|
38
|
+
function DashboardComponent(_message, _cdRef, _buildService) {
|
|
80
39
|
this._message = _message;
|
|
81
40
|
this._cdRef = _cdRef;
|
|
82
|
-
this._systemService = _systemService;
|
|
83
41
|
this._buildService = _buildService;
|
|
84
42
|
this.buttonActions = [];
|
|
85
43
|
this.menuActions = [];
|
|
@@ -103,7 +61,7 @@ var DashboardComponent = /** @class */ (function () {
|
|
|
103
61
|
var _this = this;
|
|
104
62
|
this.load()
|
|
105
63
|
.subscribe(function (dashboard) {
|
|
106
|
-
_this.dashboard =
|
|
64
|
+
_this.dashboard = dashboard;
|
|
107
65
|
_this.dashboard.cronRanAttention = !dashboard.cronRan ||
|
|
108
66
|
differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
|
|
109
67
|
_this._cdRef.markForCheck();
|
|
@@ -134,7 +92,6 @@ var DashboardComponent = /** @class */ (function () {
|
|
|
134
92
|
DashboardComponent.ctorParameters = function () { return [
|
|
135
93
|
{ type: FsMessage },
|
|
136
94
|
{ type: ChangeDetectorRef },
|
|
137
|
-
{ type: SystemService },
|
|
138
95
|
{ type: FsBuildService }
|
|
139
96
|
]; };
|
|
140
97
|
__decorate([
|
|
@@ -162,7 +119,6 @@ var DashboardComponent = /** @class */ (function () {
|
|
|
162
119
|
}),
|
|
163
120
|
__metadata("design:paramtypes", [FsMessage,
|
|
164
121
|
ChangeDetectorRef,
|
|
165
|
-
SystemService,
|
|
166
122
|
FsBuildService])
|
|
167
123
|
], DashboardComponent);
|
|
168
124
|
return DashboardComponent;
|
|
@@ -190,12 +146,14 @@ var SettingInterfaceType;
|
|
|
190
146
|
SettingInterfaceType["RadioButton"] = "R";
|
|
191
147
|
SettingInterfaceType["InputBox"] = "I";
|
|
192
148
|
SettingInterfaceType["Textarea"] = "T";
|
|
193
|
-
SettingInterfaceType["
|
|
149
|
+
SettingInterfaceType["Select"] = "D";
|
|
150
|
+
SettingInterfaceType["SelectMultiple"] = "W";
|
|
194
151
|
SettingInterfaceType["Date"] = "A";
|
|
195
152
|
SettingInterfaceType["File"] = "F";
|
|
196
153
|
SettingInterfaceType["Static"] = "S";
|
|
197
154
|
SettingInterfaceType["Password"] = "P";
|
|
198
155
|
SettingInterfaceType["Time"] = "M";
|
|
156
|
+
SettingInterfaceType["None"] = "N";
|
|
199
157
|
})(SettingInterfaceType || (SettingInterfaceType = {}));
|
|
200
158
|
|
|
201
159
|
var ApiLogState;
|
|
@@ -385,9 +343,8 @@ var CronComponent = /** @class */ (function () {
|
|
|
385
343
|
}());
|
|
386
344
|
|
|
387
345
|
var CronsComponent = /** @class */ (function () {
|
|
388
|
-
function CronsComponent(_message,
|
|
346
|
+
function CronsComponent(_message, _dialog) {
|
|
389
347
|
this._message = _message;
|
|
390
|
-
this._systemService = _systemService;
|
|
391
348
|
this._dialog = _dialog;
|
|
392
349
|
this.config = null;
|
|
393
350
|
this.cronStates = indexNameValue(CronStates);
|
|
@@ -416,7 +373,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
416
373
|
fetch: function (query) {
|
|
417
374
|
query.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
418
375
|
return _this.loadCrons(query)
|
|
419
|
-
.pipe(map(function (response) { return ({ data:
|
|
376
|
+
.pipe(map(function (response) { return ({ data: response }); }));
|
|
420
377
|
},
|
|
421
378
|
};
|
|
422
379
|
if (this.bulk) {
|
|
@@ -460,7 +417,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
460
417
|
return [
|
|
461
418
|
{
|
|
462
419
|
action: function (data) {
|
|
463
|
-
return _this.queue(
|
|
420
|
+
return _this.queue(data)
|
|
464
421
|
.pipe(tap(function () {
|
|
465
422
|
_this._message.success('Queued cron');
|
|
466
423
|
_this.list.reload();
|
|
@@ -473,7 +430,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
473
430
|
},
|
|
474
431
|
{
|
|
475
432
|
action: function (data) {
|
|
476
|
-
return _this.run(
|
|
433
|
+
return _this.run(data)
|
|
477
434
|
.pipe(tap(function () {
|
|
478
435
|
_this._message.success('Cron ran');
|
|
479
436
|
_this.list.reload();
|
|
@@ -486,7 +443,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
486
443
|
},
|
|
487
444
|
{
|
|
488
445
|
action: function (data) {
|
|
489
|
-
return _this.enable(
|
|
446
|
+
return _this.enable(data)
|
|
490
447
|
.pipe(tap(function () {
|
|
491
448
|
_this._message.success('Enabled cron');
|
|
492
449
|
_this.list.reload();
|
|
@@ -499,7 +456,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
499
456
|
},
|
|
500
457
|
{
|
|
501
458
|
action: function (data) {
|
|
502
|
-
return _this.disable(
|
|
459
|
+
return _this.disable(data)
|
|
503
460
|
.pipe(tap(function () {
|
|
504
461
|
_this._message.success('Disabled cron');
|
|
505
462
|
_this.list.reload();
|
|
@@ -512,7 +469,7 @@ var CronsComponent = /** @class */ (function () {
|
|
|
512
469
|
},
|
|
513
470
|
{
|
|
514
471
|
action: function (data) {
|
|
515
|
-
return _this.kill(
|
|
472
|
+
return _this.kill(data)
|
|
516
473
|
.pipe(tap(function () {
|
|
517
474
|
_this._message.success('Killed cron');
|
|
518
475
|
_this.list.reload();
|
|
@@ -527,7 +484,6 @@ var CronsComponent = /** @class */ (function () {
|
|
|
527
484
|
};
|
|
528
485
|
CronsComponent.ctorParameters = function () { return [
|
|
529
486
|
{ type: FsMessage },
|
|
530
|
-
{ type: SystemService },
|
|
531
487
|
{ type: MatDialog }
|
|
532
488
|
]; };
|
|
533
489
|
__decorate([
|
|
@@ -577,16 +533,14 @@ var CronsComponent = /** @class */ (function () {
|
|
|
577
533
|
styles: [""]
|
|
578
534
|
}),
|
|
579
535
|
__metadata("design:paramtypes", [FsMessage,
|
|
580
|
-
SystemService,
|
|
581
536
|
MatDialog])
|
|
582
537
|
], CronsComponent);
|
|
583
538
|
return CronsComponent;
|
|
584
539
|
}());
|
|
585
540
|
|
|
586
541
|
var SettingsComponent = /** @class */ (function () {
|
|
587
|
-
function SettingsComponent(_message,
|
|
542
|
+
function SettingsComponent(_message, _clipboardService, _prompt, _cdRef) {
|
|
588
543
|
this._message = _message;
|
|
589
|
-
this._systemService = _systemService;
|
|
590
544
|
this._clipboardService = _clipboardService;
|
|
591
545
|
this._prompt = _prompt;
|
|
592
546
|
this._cdRef = _cdRef;
|
|
@@ -600,12 +554,17 @@ var SettingsComponent = /** @class */ (function () {
|
|
|
600
554
|
var _this = this;
|
|
601
555
|
this.loadSettings()
|
|
602
556
|
.subscribe(function (settings) {
|
|
603
|
-
settings =
|
|
604
|
-
|
|
557
|
+
settings = settings
|
|
558
|
+
.filter(function (setting) {
|
|
559
|
+
return setting.interfaceType !== SettingInterfaceType.None;
|
|
560
|
+
})
|
|
561
|
+
.map(function (setting) {
|
|
605
562
|
switch (setting.interfaceType) {
|
|
606
563
|
case SettingInterfaceType.Date:
|
|
607
564
|
case SettingInterfaceType.Time:
|
|
608
565
|
setting.value = parse(setting.value);
|
|
566
|
+
case SettingInterfaceType.SelectMultiple:
|
|
567
|
+
setting.value = Array.isArray(setting.value) ? setting.value : [];
|
|
609
568
|
break;
|
|
610
569
|
}
|
|
611
570
|
return setting;
|
|
@@ -671,7 +630,6 @@ var SettingsComponent = /** @class */ (function () {
|
|
|
671
630
|
};
|
|
672
631
|
SettingsComponent.ctorParameters = function () { return [
|
|
673
632
|
{ type: FsMessage },
|
|
674
|
-
{ type: SystemService },
|
|
675
633
|
{ type: ClipboardService },
|
|
676
634
|
{ type: FsPrompt },
|
|
677
635
|
{ type: ChangeDetectorRef }
|
|
@@ -695,12 +653,11 @@ var SettingsComponent = /** @class */ (function () {
|
|
|
695
653
|
SettingsComponent = __decorate([
|
|
696
654
|
Component({
|
|
697
655
|
selector: 'fs-system-settings',
|
|
698
|
-
template: "\r\n<mat-accordion>\r\n <mat-expansion-panel hideToggle *ngFor=\"let group of groups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <div class=\"title-row\">\r\n <div class=\"title\">{{group || 'General'}}</div>\r\n <div class=\"actions\">\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Export ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"export($event, groupedSettings[group])\">\r\n <mat-icon>cloud_download</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Import ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"import($event, group)\">\r\n <mat-icon>cloud_upload</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div hideToggle *ngFor=\"let setting of groupedSettings[group]\">\r\n <mat-form-field class=\"full-width\"
|
|
656
|
+
template: "\r\n<mat-accordion>\r\n <mat-expansion-panel hideToggle *ngFor=\"let group of groups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <div class=\"title-row\">\r\n <div class=\"title\">{{group || 'General'}}</div>\r\n <div class=\"actions\">\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Export ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"export($event, groupedSettings[group])\">\r\n <mat-icon>cloud_download</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Import ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"import($event, group)\">\r\n <mat-icon>cloud_upload</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div hideToggle *ngFor=\"let setting of groupedSettings[group]\">\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\"\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.InputBox\">\r\n <input\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Textarea\">\r\n <textarea\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n </textarea>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Select || setting.interfaceType===SettingInterfaceType.SelectMultiple\">\r\n <mat-select\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [multiple]=\"setting.interfaceType===SettingInterfaceType.SelectMultiple\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-option *ngFor=\"let item of setting.values | keyNameValue\" [value]=\"item.value\">\r\n {{item.name}}\r\n </mat-option>\r\n </mat-select>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Date\">\r\n <input\r\n matInput\r\n fsDatePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Time\">\r\n <input\r\n matInput\r\n fsTimePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <fs-file-picker\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.File\"\r\n [allowRemove]=\"true\"\r\n [allowDownload]=\"true\"\r\n (select)=\"fileSelect.emit({ setting: setting, file: $event.file })\"\r\n (remove)=\"fileRemove.emit(setting)\"\r\n [url]=\"setting.value\">\r\n <div fsFileLabel>{{setting.label}}</div>\r\n </fs-file-picker>\r\n </div>\r\n\r\n <button mat-raised-button color=\"primary\" type=\"button\" (click)=\"saveGroup(group)\">Save</button>\r\n\r\n </mat-expansion-panel>\r\n\r\n</mat-accordion>\r\n",
|
|
699
657
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
700
658
|
styles: [".mat-expansion-panel-header{font-size:19px}.full-width{width:100%}.title-row{flex-direction:row;box-sizing:border-box;display:flex;place-content:center flex-start;align-items:center;width:100%}.title-row .title{display:flex;flex:1}:host ::ng-deep .mat-expansion-panel-header-title{margin:0}:host ::ng-deep .mat-expansion-panel .actions{display:none}:host ::ng-deep .mat-expansion-panel.mat-expanded .actions{display:block}"]
|
|
701
659
|
}),
|
|
702
660
|
__metadata("design:paramtypes", [FsMessage,
|
|
703
|
-
SystemService,
|
|
704
661
|
ClipboardService,
|
|
705
662
|
FsPrompt,
|
|
706
663
|
ChangeDetectorRef])
|
|
@@ -827,8 +784,7 @@ var ProcessComponent = /** @class */ (function () {
|
|
|
827
784
|
}());
|
|
828
785
|
|
|
829
786
|
var ProcessesComponent = /** @class */ (function () {
|
|
830
|
-
function ProcessesComponent(
|
|
831
|
-
this._systemService = _systemService;
|
|
787
|
+
function ProcessesComponent(_dialog, _message) {
|
|
832
788
|
this._dialog = _dialog;
|
|
833
789
|
this._message = _message;
|
|
834
790
|
this.actions = [];
|
|
@@ -860,7 +816,7 @@ var ProcessesComponent = /** @class */ (function () {
|
|
|
860
816
|
],
|
|
861
817
|
fetch: function (query) {
|
|
862
818
|
return _this.loadProcesses(query)
|
|
863
|
-
.pipe(map(function (response) { return ({ data:
|
|
819
|
+
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
864
820
|
}
|
|
865
821
|
};
|
|
866
822
|
if (this.run) {
|
|
@@ -947,7 +903,6 @@ var ProcessesComponent = /** @class */ (function () {
|
|
|
947
903
|
this._destroy$.complete();
|
|
948
904
|
};
|
|
949
905
|
ProcessesComponent.ctorParameters = function () { return [
|
|
950
|
-
{ type: SystemService },
|
|
951
906
|
{ type: MatDialog },
|
|
952
907
|
{ type: FsMessage }
|
|
953
908
|
]; };
|
|
@@ -989,8 +944,7 @@ var ProcessesComponent = /** @class */ (function () {
|
|
|
989
944
|
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a (click)=\"open(row)\">{{row.prettyName}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ProcessStates[row.state]}}\r\n <small>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.percent\">Complete: {{ row.percent }}%</div>\r\n <div *ngIf=\"row.state===ProcessState.Completed && row.filename\">Download: <a href=\"javascript:;\" (click)=\"download(row)\">{{ row.filename }}</a></div>\r\n <div *ngIf=\"row.pid\">PID: {{ row.pid }}</div>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.notify\">Notify: {{ row.notify }}</div>\r\n </small>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Duration</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ row.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Completed</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.endDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
|
|
990
945
|
styles: [""]
|
|
991
946
|
}),
|
|
992
|
-
__metadata("design:paramtypes", [
|
|
993
|
-
MatDialog,
|
|
947
|
+
__metadata("design:paramtypes", [MatDialog,
|
|
994
948
|
FsMessage])
|
|
995
949
|
], ProcessesComponent);
|
|
996
950
|
return ProcessesComponent;
|
|
@@ -1028,9 +982,8 @@ var ServerLogComponent = /** @class */ (function () {
|
|
|
1028
982
|
}());
|
|
1029
983
|
|
|
1030
984
|
var ServerLogsComponent = /** @class */ (function () {
|
|
1031
|
-
function ServerLogsComponent(_dialog
|
|
985
|
+
function ServerLogsComponent(_dialog) {
|
|
1032
986
|
this._dialog = _dialog;
|
|
1033
|
-
this._systemService = _systemService;
|
|
1034
987
|
this.config = null;
|
|
1035
988
|
this.logTypes = [];
|
|
1036
989
|
}
|
|
@@ -1049,19 +1002,18 @@ var ServerLogsComponent = /** @class */ (function () {
|
|
|
1049
1002
|
],
|
|
1050
1003
|
fetch: function (query) {
|
|
1051
1004
|
return _this.loadLogs(query)
|
|
1052
|
-
.pipe(map(function (response) { return ({ data:
|
|
1005
|
+
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1053
1006
|
}
|
|
1054
1007
|
};
|
|
1055
1008
|
};
|
|
1056
1009
|
ServerLogsComponent.prototype.open = function (log) {
|
|
1057
|
-
|
|
1010
|
+
this._dialog.open(ServerLogComponent, {
|
|
1058
1011
|
data: { log: log },
|
|
1059
1012
|
width: '85%'
|
|
1060
1013
|
});
|
|
1061
1014
|
};
|
|
1062
1015
|
ServerLogsComponent.ctorParameters = function () { return [
|
|
1063
|
-
{ type: MatDialog }
|
|
1064
|
-
{ type: SystemService }
|
|
1016
|
+
{ type: MatDialog }
|
|
1065
1017
|
]; };
|
|
1066
1018
|
__decorate([
|
|
1067
1019
|
ViewChild('list', { static: true }),
|
|
@@ -1077,15 +1029,13 @@ var ServerLogsComponent = /** @class */ (function () {
|
|
|
1077
1029
|
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.message}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Type</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.type}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
|
|
1078
1030
|
styles: [""]
|
|
1079
1031
|
}),
|
|
1080
|
-
__metadata("design:paramtypes", [MatDialog
|
|
1081
|
-
SystemService])
|
|
1032
|
+
__metadata("design:paramtypes", [MatDialog])
|
|
1082
1033
|
], ServerLogsComponent);
|
|
1083
1034
|
return ServerLogsComponent;
|
|
1084
1035
|
}());
|
|
1085
1036
|
|
|
1086
1037
|
var UpgradeLogsComponent = /** @class */ (function () {
|
|
1087
|
-
function UpgradeLogsComponent(
|
|
1088
|
-
this._systemService = _systemService;
|
|
1038
|
+
function UpgradeLogsComponent() {
|
|
1089
1039
|
this.config = null;
|
|
1090
1040
|
this.logTypes = [];
|
|
1091
1041
|
}
|
|
@@ -1105,13 +1055,10 @@ var UpgradeLogsComponent = /** @class */ (function () {
|
|
|
1105
1055
|
],
|
|
1106
1056
|
fetch: function (query) {
|
|
1107
1057
|
return _this.loadUpgradeLogs(query)
|
|
1108
|
-
.pipe(map(function (response) { return ({ data:
|
|
1058
|
+
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1109
1059
|
}
|
|
1110
1060
|
};
|
|
1111
1061
|
};
|
|
1112
|
-
UpgradeLogsComponent.ctorParameters = function () { return [
|
|
1113
|
-
{ type: SystemService }
|
|
1114
|
-
]; };
|
|
1115
1062
|
__decorate([
|
|
1116
1063
|
ViewChild(FsListComponent, { static: true }),
|
|
1117
1064
|
__metadata("design:type", FsListComponent)
|
|
@@ -1125,8 +1072,7 @@ var UpgradeLogsComponent = /** @class */ (function () {
|
|
|
1125
1072
|
selector: 'fs-system-upgrade-logs',
|
|
1126
1073
|
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.name}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Function</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.function}}()\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
|
|
1127
1074
|
styles: [""]
|
|
1128
|
-
})
|
|
1129
|
-
__metadata("design:paramtypes", [SystemService])
|
|
1075
|
+
})
|
|
1130
1076
|
], UpgradeLogsComponent);
|
|
1131
1077
|
return UpgradeLogsComponent;
|
|
1132
1078
|
}());
|
|
@@ -1158,9 +1104,8 @@ var ApiLogComponent = /** @class */ (function () {
|
|
|
1158
1104
|
}());
|
|
1159
1105
|
|
|
1160
1106
|
var ApiLogsComponent = /** @class */ (function () {
|
|
1161
|
-
function ApiLogsComponent(_dialog
|
|
1107
|
+
function ApiLogsComponent(_dialog) {
|
|
1162
1108
|
this._dialog = _dialog;
|
|
1163
|
-
this._systemService = _systemService;
|
|
1164
1109
|
this.config = null;
|
|
1165
1110
|
this.apiLogStates = indexNameValue(ApiLogStates);
|
|
1166
1111
|
}
|
|
@@ -1191,7 +1136,7 @@ var ApiLogsComponent = /** @class */ (function () {
|
|
|
1191
1136
|
fetch: function (query) {
|
|
1192
1137
|
Object.assign(query, {});
|
|
1193
1138
|
return _this.loadApiLogs(query)
|
|
1194
|
-
.pipe(map(function (response) { return ({ data:
|
|
1139
|
+
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1195
1140
|
}
|
|
1196
1141
|
};
|
|
1197
1142
|
};
|
|
@@ -1202,8 +1147,7 @@ var ApiLogsComponent = /** @class */ (function () {
|
|
|
1202
1147
|
});
|
|
1203
1148
|
};
|
|
1204
1149
|
ApiLogsComponent.ctorParameters = function () { return [
|
|
1205
|
-
{ type: MatDialog }
|
|
1206
|
-
{ type: SystemService }
|
|
1150
|
+
{ type: MatDialog }
|
|
1207
1151
|
]; };
|
|
1208
1152
|
__decorate([
|
|
1209
1153
|
ViewChild(FsListComponent, { static: true }),
|
|
@@ -1219,8 +1163,7 @@ var ApiLogsComponent = /** @class */ (function () {
|
|
|
1219
1163
|
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.type || 'Unknown'}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{apiLogStates[row.state]}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"row.length\">Duration: {{ row.length | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
|
|
1220
1164
|
styles: [""]
|
|
1221
1165
|
}),
|
|
1222
|
-
__metadata("design:paramtypes", [MatDialog
|
|
1223
|
-
SystemService])
|
|
1166
|
+
__metadata("design:paramtypes", [MatDialog])
|
|
1224
1167
|
], ApiLogsComponent);
|
|
1225
1168
|
return ApiLogsComponent;
|
|
1226
1169
|
}());
|
|
@@ -1330,9 +1273,6 @@ var FsSystemModule = /** @class */ (function () {
|
|
|
1330
1273
|
CronComponent,
|
|
1331
1274
|
CronLogComponent,
|
|
1332
1275
|
],
|
|
1333
|
-
providers: [
|
|
1334
|
-
SystemService
|
|
1335
|
-
],
|
|
1336
1276
|
})
|
|
1337
1277
|
], FsSystemModule);
|
|
1338
1278
|
return FsSystemModule;
|
|
@@ -1342,5 +1282,5 @@ var FsSystemModule = /** @class */ (function () {
|
|
|
1342
1282
|
* Generated bundle index. Do not edit.
|
|
1343
1283
|
*/
|
|
1344
1284
|
|
|
1345
|
-
export { ApiLogState, ApiLogStates, CronState, CronStates, FS_SYSTEM_CONFIG, FsSystemModule, ProcessState, ProcessStates, DashboardComponent as ɵa,
|
|
1285
|
+
export { ApiLogState, ApiLogStates, CronState, CronStates, FS_SYSTEM_CONFIG, FsSystemModule, ProcessState, ProcessStates, DashboardComponent as ɵa, CronsComponent as ɵb, SettingsComponent as ɵc, FileManagerComponent as ɵd, ProcessesComponent as ɵe, ServerLogsComponent as ɵf, UpgradeLogsComponent as ɵg, ApiLogsComponent as ɵh, InfoComponent as ɵi, KeyNameValuePipe as ɵj, ServerLogComponent as ɵk, ApiLogComponent as ɵl, ProcessComponent as ɵm, CronComponent as ɵn, CronLogComponent as ɵo };
|
|
1346
1286
|
//# sourceMappingURL=firestitch-system.js.map
|