@firestitch/system 12.3.0 → 12.4.0
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/fs-system.module.d.ts +34 -36
- package/bundles/firestitch-system.umd.js +516 -582
- package/bundles/firestitch-system.umd.js.map +1 -1
- package/esm2015/app/components/api-log/api-log.component.js +4 -5
- package/esm2015/app/components/api-logs/api-logs.component.js +2 -3
- package/esm2015/app/components/cron/cron.component.js +2 -3
- package/esm2015/app/components/cron-log/cron-log.component.js +2 -3
- package/esm2015/app/components/crons/crons.component.js +1 -1
- package/esm2015/app/components/dashboard/dashboard.component.js +6 -8
- package/esm2015/app/components/process/process.component.js +4 -5
- package/esm2015/app/components/processes/processes.component.js +1 -1
- package/esm2015/app/components/server-log/server-log.component.js +4 -5
- package/esm2015/app/components/server-logs/server-logs.component.js +1 -1
- package/esm2015/app/components/settings/settings.component.js +5 -7
- package/esm2015/app/components/upgrade-logs/upgrade-logs.component.js +1 -1
- package/esm2015/app/fs-system.module.js +24 -33
- package/esm2015/public_api.js +11 -12
- package/fesm2015/firestitch-system.js +371 -434
- package/fesm2015/firestitch-system.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +11 -12
- package/app/components/file-manager/file-manager.component.d.ts +0 -17
- package/app/components/file-manager/index.d.ts +0 -1
- package/esm2015/app/components/file-manager/file-manager.component.js +0 -54
- package/esm2015/app/components/file-manager/index.js +0 -2
|
@@ -1,145 +1,59 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { InjectionToken, Component, ChangeDetectionStrategy, Input, Inject, ViewChild, Pipe, Injectable, EventEmitter, Output, NgModule } from '@angular/core';
|
|
3
|
-
import * as i9 from '@angular/common';
|
|
1
|
+
import * as i7 from '@angular/common';
|
|
4
2
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component, Inject, ViewChild, Input, ChangeDetectionStrategy, Pipe, Injectable, EventEmitter, Output, InjectionToken, NgModule } from '@angular/core';
|
|
5
|
+
import * as i16 from '@angular/forms';
|
|
6
6
|
import { FormsModule } from '@angular/forms';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
7
|
+
import * as i4 from '@angular/material/button';
|
|
8
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
9
|
+
import * as i1 from '@angular/material/dialog';
|
|
10
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
9
11
|
import * as i4$3 from '@angular/material/expansion';
|
|
10
12
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
11
|
-
import * as
|
|
13
|
+
import * as i7$1 from '@angular/material/form-field';
|
|
14
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
15
|
+
import * as i6 from '@angular/material/icon';
|
|
16
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
+
import * as i15 from '@angular/material/input';
|
|
12
18
|
import { MatInputModule } from '@angular/material/input';
|
|
13
19
|
import * as i8 from '@angular/material/select';
|
|
14
20
|
import { MatSelectModule } from '@angular/material/select';
|
|
15
|
-
import * as
|
|
16
|
-
import {
|
|
17
|
-
import * as
|
|
21
|
+
import * as i3$1 from '@angular/material/tabs';
|
|
22
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
23
|
+
import * as i9 from '@angular/material/tooltip';
|
|
18
24
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
19
|
-
import * as
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import * as i4 from '@angular/material/button';
|
|
23
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
24
|
-
import * as i4$2 from '@firestitch/date';
|
|
25
|
+
import * as i11 from '@firestitch/colorpicker';
|
|
26
|
+
import { FsColorPickerModule } from '@firestitch/colorpicker';
|
|
27
|
+
import * as i4$1 from '@firestitch/date';
|
|
25
28
|
import { parse, FsDateModule } from '@firestitch/date';
|
|
26
|
-
import * as i10
|
|
29
|
+
import * as i10 from '@firestitch/datepicker';
|
|
27
30
|
import { FsDatePickerModule } from '@firestitch/datepicker';
|
|
28
|
-
import * as
|
|
29
|
-
import { FsSkeletonModule } from '@firestitch/skeleton';
|
|
30
|
-
import * as i2$3 from '@firestitch/list';
|
|
31
|
-
import { FsListComponent, FsListModule } from '@firestitch/list';
|
|
32
|
-
import * as i1$2 from '@firestitch/file-manager';
|
|
33
|
-
import { FsFileManagerModule } from '@firestitch/file-manager';
|
|
34
|
-
import * as i2$2 from '@firestitch/dialog';
|
|
31
|
+
import * as i2 from '@firestitch/dialog';
|
|
35
32
|
import { FsDialogModule } from '@firestitch/dialog';
|
|
36
|
-
import * as i2$1 from '@firestitch/label';
|
|
37
|
-
import { FsLabelModule } from '@firestitch/label';
|
|
38
33
|
import * as i12 from '@firestitch/file';
|
|
39
34
|
import { FsFileModule } from '@firestitch/file';
|
|
40
|
-
import
|
|
35
|
+
import { FsFileManagerModule } from '@firestitch/file-manager';
|
|
36
|
+
import * as i3 from '@firestitch/label';
|
|
37
|
+
import { FsLabelModule } from '@firestitch/label';
|
|
38
|
+
import * as i2$1 from '@firestitch/list';
|
|
39
|
+
import { FsListComponent, FsListModule } from '@firestitch/list';
|
|
40
|
+
import * as i4$2 from '@firestitch/menu';
|
|
41
41
|
import { FsMenuModule } from '@firestitch/menu';
|
|
42
42
|
import * as i5$1 from '@firestitch/popover';
|
|
43
43
|
import { FsPopoverModule } from '@firestitch/popover';
|
|
44
|
-
import * as
|
|
45
|
-
import {
|
|
46
|
-
import * as i1 from '@firestitch/message';
|
|
47
|
-
import * as i2 from '@firestitch/build';
|
|
48
|
-
import { takeUntil, map, tap, switchMap } from 'rxjs/operators';
|
|
49
|
-
import { Subject } from 'rxjs';
|
|
50
|
-
import { differenceInMinutes, differenceInSeconds } from 'date-fns';
|
|
51
|
-
import * as i6$1 from '@angular/flex-layout/flex';
|
|
52
|
-
import * as i10 from '@angular/flex-layout/extended';
|
|
44
|
+
import * as i5 from '@firestitch/skeleton';
|
|
45
|
+
import { FsSkeletonModule } from '@firestitch/skeleton';
|
|
53
46
|
import { ItemType } from '@firestitch/filter';
|
|
54
|
-
import
|
|
55
|
-
import
|
|
47
|
+
import { map, tap, switchMap, takeUntil } from 'rxjs/operators';
|
|
48
|
+
import * as i1$1 from '@firestitch/message';
|
|
49
|
+
import { Subject } from 'rxjs';
|
|
56
50
|
import { SelectionActionType } from '@firestitch/selection';
|
|
57
|
-
import * as i3$
|
|
58
|
-
import
|
|
51
|
+
import * as i3$2 from '@firestitch/prompt';
|
|
52
|
+
import { differenceInSeconds, differenceInMinutes } from 'date-fns';
|
|
53
|
+
import * as i2$2 from '@firestitch/build';
|
|
54
|
+
import * as i2$3 from '@firestitch/clipboard';
|
|
59
55
|
import * as i9$1 from '@angular/material/core';
|
|
60
56
|
|
|
61
|
-
const FS_SYSTEM_CONFIG = new InjectionToken('fs-system-config');
|
|
62
|
-
|
|
63
|
-
class DashboardComponent {
|
|
64
|
-
constructor(_message, _cdRef, _buildService) {
|
|
65
|
-
this._message = _message;
|
|
66
|
-
this._cdRef = _cdRef;
|
|
67
|
-
this._buildService = _buildService;
|
|
68
|
-
this.buttonActions = [];
|
|
69
|
-
this.menuActions = [];
|
|
70
|
-
this._destroy$ = new Subject();
|
|
71
|
-
this.actions = [];
|
|
72
|
-
}
|
|
73
|
-
ngOnInit() {
|
|
74
|
-
this._load();
|
|
75
|
-
this.buttonActions = this.actions.filter(item => { return !item.menu; });
|
|
76
|
-
this.menuActions = this.actions.filter(item => { return item.menu; });
|
|
77
|
-
this.build = this._buildService.build;
|
|
78
|
-
this._buildService.buildChange$
|
|
79
|
-
.pipe(takeUntil(this._destroy$))
|
|
80
|
-
.subscribe((build) => {
|
|
81
|
-
this.build = build;
|
|
82
|
-
this._cdRef.markForCheck();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
_load() {
|
|
86
|
-
this.load()
|
|
87
|
-
.subscribe((dashboard) => {
|
|
88
|
-
this.dashboard = dashboard;
|
|
89
|
-
this.dashboard.cronRanAttention = !dashboard.cronRan ||
|
|
90
|
-
differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
|
|
91
|
-
this._cdRef.markForCheck();
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
ngOnDestroy() {
|
|
95
|
-
this._destroy$.next();
|
|
96
|
-
this._destroy$.complete();
|
|
97
|
-
}
|
|
98
|
-
actionClick(action) {
|
|
99
|
-
action.click();
|
|
100
|
-
}
|
|
101
|
-
initClick() {
|
|
102
|
-
this.init()
|
|
103
|
-
.subscribe(() => {
|
|
104
|
-
this._message.success('Successfully initialized the system');
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
upgradeClick() {
|
|
108
|
-
this.upgrade()
|
|
109
|
-
.subscribe(() => {
|
|
110
|
-
this._load();
|
|
111
|
-
this._message.success('Successfully upgraded the system');
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DashboardComponent, deps: [{ token: i1.FsMessage }, { token: i0.ChangeDetectorRef }, { token: i2.FsBuildService }], target: i0.ɵɵFactoryTarget.Component });
|
|
116
|
-
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DashboardComponent, selector: "fs-system-dashboard", inputs: { init: "init", upgrade: "upgrade", load: "load", actions: "actions" }, ngImport: i0, template: "<div *fsSkeleton=\"dashboard\">\r\n\r\n <div class=\"h2-container\">\r\n\r\n <div class=\"actions\">\r\n <h2>Actions</h2>\r\n <div fxLayout=\"row\" fxLayoutGap=\"5px\" fxLayout.xs=\"column\">\r\n <button mat-raised-button (click)=\"upgradeClick()\">Run Upgrades</button>\r\n <button mat-raised-button (click)=\"initClick()\">Init System</button>\r\n\r\n <button\r\n *ngFor=\"let action of buttonActions\"\r\n mat-raised-button\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </button>\r\n\r\n <ng-container *ngIf=\"menuActions.length\">\r\n\r\n <fs-menu buttonClass=\"mat-raised-button menu-button\">\r\n <ng-template\r\n *ngFor=\"let action of menuActions\"\r\n fs-menu-item\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </ng-template>\r\n </fs-menu>\r\n\r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n fxLayout=\"row wrap\"\r\n fxLayout.xs=\"column\"\r\n fxLayoutGap.xs=\"0px\"\r\n fxLayoutAlign=\"start start\"\r\n fxLayoutGap=\"50px\">\r\n\r\n <div>\r\n <h2>Server</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.serverTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.serverTimezone}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Hostname</fs-label>\r\n {{dashboard.serverHostname}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Directory</fs-label>\r\n {{dashboard.appDirectory}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>System</h2>\r\n <fs-label-field>\r\n <fs-label>Mode</fs-label>\r\n {{dashboard.appMode}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Notification Recipients</fs-label>\r\n {{dashboard.notifyRecipients.join(', ')}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Database</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Name</fs-label>\r\n {{dashboard.databaseName}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.databaseTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.databaseTimezone}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div *ngIf=\"build || dashboard.upgrades.length\">\r\n <h2>Build</h2>\r\n\r\n <ng-container *ngIf=\"build\">\r\n <fs-label-field>\r\n <fs-label>Version</fs-label>\r\n {{build.version}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date</fs-label>\r\n {{ build.date | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n </ng-container>\r\n\r\n <fs-label-field *ngIf=\"dashboard.upgrades.length\">\r\n <fs-label>Pending Upgrades</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': !!dashboard.upgrades.length }\">\r\n {{dashboard.upgrades.length}}\r\n <mat-icon\r\n [matTooltip]=\"dashboard.upgrades.join('\\n')\"\r\n matTooltipClass=\"tooltip-pending-upgrades\"\r\n >\r\n warning\r\n </mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Cron</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Last Ran</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': dashboard.cronRanAttention }\">\r\n <span *ngIf=\"!dashboard.cronRan\">Never</span>\r\n <span *ngIf=\"dashboard.cronRan\">{{dashboard.cronRan | fsDateFormat: 'date-time'}}</span>\r\n <mat-icon>warning</mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".actions{margin-bottom:1.25em}table td{padding:3px}.attention{display:flex;align-items:center}.attention mat-icon{display:none;margin-left:2px}.attention.needs-attention{color:#c00}.attention.needs-attention mat-icon{display:inline}::ng-deep .tooltip-pending-upgrades{white-space:pre-line}@media (max-width: 600px){:host ::ng-deep .menu-button{width:100%;border-radius:4px}}@media (min-width: 600px){:host ::ng-deep .menu-button{box-shadow:none}}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$1.FsMenuComponent, selector: "fs-menu", inputs: ["class", "buttonClass"], outputs: ["opened", "closed"] }, { type: i2$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i2$1.FsLabelComponent, selector: "fs-label" }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i6$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i6$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$1.FsMenuItemDirective, selector: "fs-menu-group,[fs-menu-item]", inputs: ["fsClass", "class", "id", "label", "hidden", "groupHidden", "dismissAfterClick", "link", "target", "queryParams"], outputs: ["click"] }, { type: i6$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i10.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "fsDateFormat": i4$2.FsDateFormatPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
118
|
-
type: Component,
|
|
119
|
-
args: [{
|
|
120
|
-
selector: 'fs-system-dashboard',
|
|
121
|
-
templateUrl: 'dashboard.component.html',
|
|
122
|
-
styleUrls: ['dashboard.component.scss'],
|
|
123
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
124
|
-
}]
|
|
125
|
-
}], ctorParameters: function () { return [{ type: i1.FsMessage }, { type: i0.ChangeDetectorRef }, { type: i2.FsBuildService }]; }, propDecorators: { init: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}], upgrade: [{
|
|
128
|
-
type: Input
|
|
129
|
-
}], load: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], actions: [{
|
|
132
|
-
type: Input
|
|
133
|
-
}] } });
|
|
134
|
-
|
|
135
|
-
function indexNameValue(arry) {
|
|
136
|
-
const obj = {};
|
|
137
|
-
arry.forEach(item => {
|
|
138
|
-
obj[item.value] = item.name;
|
|
139
|
-
});
|
|
140
|
-
return obj;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
57
|
var CronState;
|
|
144
58
|
(function (CronState) {
|
|
145
59
|
CronState["Running"] = "running";
|
|
@@ -200,21 +114,6 @@ var CronLogState;
|
|
|
200
114
|
CronLogState["LongRunning"] = "long_running";
|
|
201
115
|
})(CronLogState || (CronLogState = {}));
|
|
202
116
|
|
|
203
|
-
const CronLogStates = [
|
|
204
|
-
{ name: 'Message', value: CronLogState.Message, color: '#29B7FF' },
|
|
205
|
-
{ name: 'Disabled', value: CronLogState.Disabled, color: '#29B7FF' },
|
|
206
|
-
{ name: 'Reset', value: CronLogState.Reset, color: '#29B7FF' },
|
|
207
|
-
{ name: 'Enabled', value: CronLogState.Enabled, color: '#29B7FF' },
|
|
208
|
-
{ name: 'Queued', value: CronLogState.Queued, color: '#29B7FF' },
|
|
209
|
-
{ name: 'Started', value: CronLogState.Started, color: '#D17333' },
|
|
210
|
-
{ name: 'Running', value: CronLogState.Running, color: '#34BD43' },
|
|
211
|
-
{ name: 'Completed', value: CronLogState.Completed, color: '#34BD43' },
|
|
212
|
-
{ name: 'Failed', value: CronLogState.Failed, color: '#FA7567' },
|
|
213
|
-
{ name: 'Killed', value: CronLogState.Killed, color: '#FA7567' },
|
|
214
|
-
{ name: 'Stagnant', value: CronLogState.Stagnant, color: '#FA7567' },
|
|
215
|
-
{ name: 'Long Running', value: CronLogState.LongRunning, color: '#FA7567' },
|
|
216
|
-
];
|
|
217
|
-
|
|
218
117
|
const CronStates = [
|
|
219
118
|
{ name: 'Running', value: CronState.Running },
|
|
220
119
|
{ name: 'Idle', value: CronState.Idle },
|
|
@@ -240,6 +139,113 @@ const ProcessStates = [
|
|
|
240
139
|
{ name: 'Deleted', value: ProcessState.Deleted }
|
|
241
140
|
];
|
|
242
141
|
|
|
142
|
+
function indexNameValue(arry) {
|
|
143
|
+
const obj = {};
|
|
144
|
+
arry.forEach(item => {
|
|
145
|
+
obj[item.value] = item.name;
|
|
146
|
+
});
|
|
147
|
+
return obj;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class ApiLogComponent {
|
|
151
|
+
constructor(_dialogRef, data) {
|
|
152
|
+
this._dialogRef = _dialogRef;
|
|
153
|
+
this.data = data;
|
|
154
|
+
}
|
|
155
|
+
ngOnInit() {
|
|
156
|
+
this.apiLogStates = indexNameValue(ApiLogStates);
|
|
157
|
+
if (this.data.apiLog) {
|
|
158
|
+
this.apiLog = this.data.apiLog;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
ApiLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ApiLogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
163
|
+
ApiLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ApiLogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"apiLog\">\n\n <div mat-dialog-title>API Log</div>\n\n <mat-dialog-content>\n <div class=\"fs-row.gap-large.wrap\">\n <div>\n <fs-label-field>\n <fs-label>\n Type\n </fs-label>\n {{apiLog.type}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{apiLogStates[apiLog.state]}}\n </fs-label-field>\n\n\n <fs-label-field *ngIf=\"apiLog.code\">\n <fs-label>\n Code\n </fs-label>\n {{apiLog.code}}\n </fs-label-field>\n\n </div>\n <div>\n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n {{apiLog.createDate|fsDateFormat: 'full-date-time'}}\n </fs-label-field>\n\n\n <fs-label-field *ngIf=\"apiLog.direction\">\n <fs-label>\n Direction\n </fs-label>\n {{apiLog.direction}}\n </fs-label-field>\n\n\n <fs-label-field *ngIf=\"apiLog.length\">\n <fs-label>\n Duration\n </fs-label>\n {{ apiLog.length | fsDateDuration }}\n </fs-label-field>\n </div>\n </div>\n\n <div>\n <fs-label-field *ngIf=\"apiLog.message\">\n <fs-label>\n Message\n </fs-label>\n {{apiLog.message}}\n </fs-label-field>\n </div>\n\n\n <div class=\"fs-row.gap-large.wrap\">\n <div>\n <fs-label-field *ngIf=\"apiLog.method\">\n <fs-label>\n Method\n </fs-label>\n {{apiLog.method}}\n </fs-label-field>\n </div>\n <div>\n <fs-label-field *ngIf=\"apiLog.url\">\n <fs-label>\n URL\n </fs-label>\n {{apiLog.url}}\n </fs-label-field>\n </div>\n </div>\n\n <div>\n <fs-label-field *ngIf=\"apiLog.request\">\n <fs-label>\n Request\n </fs-label>\n <pre>{{apiLog.request|json}}</pre>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"apiLog.response\">\n <fs-label>\n Response\n </fs-label>\n <pre>{{apiLog.response|json}}</pre>\n </fs-label-field>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i4$1.FsDateFormatPipe, "fsDateDuration": i4$1.FsDateDurationPipe, "json": i7.JsonPipe } });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ApiLogComponent, decorators: [{
|
|
165
|
+
type: Component,
|
|
166
|
+
args: [{
|
|
167
|
+
templateUrl: './api-log.component.html',
|
|
168
|
+
styleUrls: ['./api-log.component.scss']
|
|
169
|
+
}]
|
|
170
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
171
|
+
type: Inject,
|
|
172
|
+
args: [MAT_DIALOG_DATA]
|
|
173
|
+
}] }]; } });
|
|
174
|
+
|
|
175
|
+
class ApiLogsComponent {
|
|
176
|
+
constructor(_dialog) {
|
|
177
|
+
this._dialog = _dialog;
|
|
178
|
+
this.config = null;
|
|
179
|
+
this.apiLogStates = indexNameValue(ApiLogStates);
|
|
180
|
+
}
|
|
181
|
+
ngOnInit() {
|
|
182
|
+
this._configList();
|
|
183
|
+
}
|
|
184
|
+
_configList() {
|
|
185
|
+
this.config = {
|
|
186
|
+
filters: [
|
|
187
|
+
{
|
|
188
|
+
type: ItemType.Keyword,
|
|
189
|
+
name: 'keyword',
|
|
190
|
+
label: 'Search'
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
type: ItemType.Select,
|
|
194
|
+
name: 'state',
|
|
195
|
+
label: 'Status',
|
|
196
|
+
values: ApiLogStates
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'createDate',
|
|
200
|
+
type: ItemType.DateRange,
|
|
201
|
+
label: ['From Date', 'To Date'],
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
fetch: query => {
|
|
205
|
+
Object.assign(query, {});
|
|
206
|
+
return this.loadApiLogs(query)
|
|
207
|
+
.pipe(map((response) => ({ data: response.data, paging: response.paging })));
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
open(apiLog) {
|
|
212
|
+
this._dialog.open(ApiLogComponent, {
|
|
213
|
+
data: { apiLog: apiLog },
|
|
214
|
+
width: '85%'
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
ApiLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ApiLogsComponent, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
219
|
+
ApiLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ApiLogsComponent, selector: "fs-system-api-logs", inputs: { loadApiLogs: "loadApiLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true, static: true }], ngImport: i0, template: "<fs-list [config]=\"config\">\n <fs-list-column>\n <ng-template fs-list-header>Name</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <a href=\"javascript:;\" (click)=\"open(row)\">\n {{row.type || 'Unknown'}}\n <mat-icon class=\"direction\" *ngIf=\"row.direction=='outgoing'\">arrow_upward</mat-icon>\n <mat-icon class=\"direction\" *ngIf=\"row.direction=='incoming'\">arrow_downward</mat-icon>\n </a>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Status</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{apiLogStates[row.state]}}\n <span *ngIf=\"row.code\" class=\"code\" [ngClass]=\"{'success': row.code==200,'error': row.code!=200 }\">[{{row.code}}]</span>\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Message</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n {{row.message}}\n </ng-template>\n </fs-list-column>\n <fs-list-column>\n <ng-template fs-list-header>Date</ng-template>\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\n <div><small *ngIf=\"row.length\">Duration: {{ row.length | fsDateDuration }}</small></div>\n </ng-template>\n </fs-list-column>\n </fs-list>\n", styles: [".code.success{color:green}.code.error{color:red}.direction{font-size:14px;height:14px;line-height:14px;width:14px}\n"], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "fsDateDuration": i4$1.FsDateDurationPipe } });
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ApiLogsComponent, decorators: [{
|
|
221
|
+
type: Component,
|
|
222
|
+
args: [{
|
|
223
|
+
selector: 'fs-system-api-logs',
|
|
224
|
+
templateUrl: './api-logs.component.html',
|
|
225
|
+
styleUrls: ['./api-logs.component.scss']
|
|
226
|
+
}]
|
|
227
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }]; }, propDecorators: { list: [{
|
|
228
|
+
type: ViewChild,
|
|
229
|
+
args: [FsListComponent, { static: true }]
|
|
230
|
+
}], loadApiLogs: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}] } });
|
|
233
|
+
|
|
234
|
+
const CronLogStates = [
|
|
235
|
+
{ name: 'Message', value: CronLogState.Message, color: '#29B7FF' },
|
|
236
|
+
{ name: 'Disabled', value: CronLogState.Disabled, color: '#29B7FF' },
|
|
237
|
+
{ name: 'Reset', value: CronLogState.Reset, color: '#29B7FF' },
|
|
238
|
+
{ name: 'Enabled', value: CronLogState.Enabled, color: '#29B7FF' },
|
|
239
|
+
{ name: 'Queued', value: CronLogState.Queued, color: '#29B7FF' },
|
|
240
|
+
{ name: 'Started', value: CronLogState.Started, color: '#D17333' },
|
|
241
|
+
{ name: 'Running', value: CronLogState.Running, color: '#34BD43' },
|
|
242
|
+
{ name: 'Completed', value: CronLogState.Completed, color: '#34BD43' },
|
|
243
|
+
{ name: 'Failed', value: CronLogState.Failed, color: '#FA7567' },
|
|
244
|
+
{ name: 'Killed', value: CronLogState.Killed, color: '#FA7567' },
|
|
245
|
+
{ name: 'Stagnant', value: CronLogState.Stagnant, color: '#FA7567' },
|
|
246
|
+
{ name: 'Long Running', value: CronLogState.LongRunning, color: '#FA7567' },
|
|
247
|
+
];
|
|
248
|
+
|
|
243
249
|
class CronLogComponent {
|
|
244
250
|
constructor(_data) {
|
|
245
251
|
this._data = _data;
|
|
@@ -256,7 +262,7 @@ class CronLogComponent {
|
|
|
256
262
|
}
|
|
257
263
|
}
|
|
258
264
|
CronLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronLogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
259
|
-
CronLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronLogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"cronLog\">\r\n <div mat-dialog-title>Cron Log</div>\r\n <mat-dialog-content>\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n <div [ngStyle]=\"{ color: CronLogStateColors[cronLog.state]}\">\r\n {{CronLogStates[cronLog.state] || cronLog.state}}\r\n </div>\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n <fs-date-ago [date]=\"cronLog.createDate\"></fs-date-ago>\r\n </fs-label-field>\r\n </div>\r\n \r\n <fs-label-field *ngIf=\"cronLog.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n <div class=\"message\">\r\n {{cronLog.message}}\r\n </div>\r\n </fs-label-field>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [".message{white-space:pre-line}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}\n"], components: [{ type: i2
|
|
265
|
+
CronLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronLogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"cronLog\">\r\n <div mat-dialog-title>Cron Log</div>\r\n <mat-dialog-content>\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n <div [ngStyle]=\"{ color: CronLogStateColors[cronLog.state]}\">\r\n {{CronLogStates[cronLog.state] || cronLog.state}}\r\n </div>\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n <fs-date-ago [date]=\"cronLog.createDate\"></fs-date-ago>\r\n </fs-label-field>\r\n </div>\r\n \r\n <fs-label-field *ngIf=\"cronLog.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n <div class=\"message\">\r\n {{cronLog.message}}\r\n </div>\r\n </fs-label-field>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [".message{white-space:pre-line}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}\n"], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
260
266
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronLogComponent, decorators: [{
|
|
261
267
|
type: Component,
|
|
262
268
|
args: [{
|
|
@@ -339,8 +345,8 @@ class CronComponent {
|
|
|
339
345
|
});
|
|
340
346
|
}
|
|
341
347
|
}
|
|
342
|
-
CronComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1
|
|
343
|
-
CronComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"cron\">\r\n <h1 mat-dialog-title>\r\n Cron\r\n <div class=\"small\">{{cron.name}}</div>\r\n </h1>\r\n <mat-dialog-content>\r\n <mat-tab-group (selectedIndexChange)=\"selectedIndexChange($event)\">\r\n <mat-tab label=\"Overview\">\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{CronStates[cron.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"cron.cronSetting\">\r\n <fs-label>\r\n Run Frequency\r\n </fs-label>\r\n {{cron.cronSetting.summary}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Last Ran\r\n </fs-label>\r\n <ng-container *ngIf=\"cron.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"cron.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"cron.duration\">Duration: {{ cron.duration | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-label-field>\r\n </div>\r\n\r\n <fs-label-field *ngIf=\"cron.message\">\r\n <fs-label>\r\n Last Message\r\n </fs-label>\r\n <div class=\"message\">{{cron.message}}</div>\r\n </fs-label-field>\r\n </mat-tab>\r\n <mat-tab label=\"Logs\" *ngIf=\"config\">\r\n <ng-template matTabContent>\r\n <fs-list [config]=\"config\">\r\n <fs-list-column name=\"state\" title=\"Status\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a \r\n (click)=\"cronLogOpen(row)\"\r\n [ngStyle]=\"{ color: CronLogStateColors[row.state] }\">\r\n {{CronLogStates[row.state] || row.state}}\r\n </a>\r\n </ng-template>\r\n </fs-list-column>\r\n \r\n <fs-list-column title=\"Message\" class=\"col-message\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <div class=\"message\">{{row.message}}</div>\r\n </ng-template>\r\n </fs-list-column>\r\n \r\n <fs-list-column title=\"Duration\" class=\"col-message\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.duration\">\r\n {{row.duration | fsDateDuration: 'hour-minute-second'}}\r\n </ng-container>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column name=\"create_date\" title=\"Date\" class=\"col-date\">\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 </ng-template>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n </mat-dialog-content>\r\n <mat-dialog-actions> \r\n <button \r\n mat-button \r\n [mat-dialog-close]=\"true\" \r\n color=\"primary\">\r\n Done\r\n </button>\r\n <ng-container *ngIf=\"tabIndex === 0\">\r\n <button \r\n *ngFor=\"let cronAction of cronActions\"\r\n mat-button \r\n (click)=\"cronActionClick(cronAction)\">\r\n {{cronAction.label}}\r\n </button> \r\n </ng-container>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [":host ::ng-deep .col-message .message{white-space:break-spaces;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}:host ::ng-deep .col-date{white-space:nowrap}h1 .small{line-height:normal}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}.message{white-space:pre-line}\n"], components: [{ type: i2
|
|
348
|
+
CronComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialog }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
349
|
+
CronComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"cron\">\r\n <h1 mat-dialog-title>\r\n Cron\r\n <div class=\"small\">{{cron.name}}</div>\r\n </h1>\r\n <mat-dialog-content>\r\n <mat-tab-group (selectedIndexChange)=\"selectedIndexChange($event)\">\r\n <mat-tab label=\"Overview\">\r\n <div class=\"row\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{CronStates[cron.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"cron.cronSetting\">\r\n <fs-label>\r\n Run Frequency\r\n </fs-label>\r\n {{cron.cronSetting.summary}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Last Ran\r\n </fs-label>\r\n <ng-container *ngIf=\"cron.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"cron.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"cron.duration\">Duration: {{ cron.duration | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-label-field>\r\n </div>\r\n\r\n <fs-label-field *ngIf=\"cron.message\">\r\n <fs-label>\r\n Last Message\r\n </fs-label>\r\n <div class=\"message\">{{cron.message}}</div>\r\n </fs-label-field>\r\n </mat-tab>\r\n <mat-tab label=\"Logs\" *ngIf=\"config\">\r\n <ng-template matTabContent>\r\n <fs-list [config]=\"config\">\r\n <fs-list-column name=\"state\" title=\"Status\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a \r\n (click)=\"cronLogOpen(row)\"\r\n [ngStyle]=\"{ color: CronLogStateColors[row.state] }\">\r\n {{CronLogStates[row.state] || row.state}}\r\n </a>\r\n </ng-template>\r\n </fs-list-column>\r\n \r\n <fs-list-column title=\"Message\" class=\"col-message\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <div class=\"message\">{{row.message}}</div>\r\n </ng-template>\r\n </fs-list-column>\r\n \r\n <fs-list-column title=\"Duration\" class=\"col-message\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.duration\">\r\n {{row.duration | fsDateDuration: 'hour-minute-second'}}\r\n </ng-container>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column name=\"create_date\" title=\"Date\" class=\"col-date\">\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 </ng-template>\r\n </mat-tab>\r\n </mat-tab-group>\r\n\r\n </mat-dialog-content>\r\n <mat-dialog-actions> \r\n <button \r\n mat-button \r\n [mat-dialog-close]=\"true\" \r\n color=\"primary\">\r\n Done\r\n </button>\r\n <ng-container *ngIf=\"tabIndex === 0\">\r\n <button \r\n *ngFor=\"let cronAction of cronActions\"\r\n mat-button \r\n (click)=\"cronActionClick(cronAction)\">\r\n {{cronAction.label}}\r\n </button> \r\n </ng-container>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [":host ::ng-deep .col-message .message{white-space:break-spaces;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}:host ::ng-deep .col-date{white-space:nowrap}h1 .small{line-height:normal}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}.message{white-space:pre-line}\n"], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i3$1.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3$1.MatTabContent, selector: "[matTabContent]" }, { type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "fsDateDuration": i4$1.FsDateDurationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
344
350
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronComponent, decorators: [{
|
|
345
351
|
type: Component,
|
|
346
352
|
args: [{
|
|
@@ -351,7 +357,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
351
357
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
352
358
|
type: Inject,
|
|
353
359
|
args: [MAT_DIALOG_DATA]
|
|
354
|
-
}] }, { type: i1
|
|
360
|
+
}] }, { type: i1.MatDialog }, { type: i0.ChangeDetectorRef }]; } });
|
|
355
361
|
|
|
356
362
|
class CronsComponent {
|
|
357
363
|
constructor(_message, _dialog, _prompt) {
|
|
@@ -527,8 +533,8 @@ class CronsComponent {
|
|
|
527
533
|
this._destroy$.complete();
|
|
528
534
|
}
|
|
529
535
|
}
|
|
530
|
-
CronsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronsComponent, deps: [{ token: i1.FsMessage }, { token: i1
|
|
531
|
-
CronsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronsComponent, selector: "fs-system-crons", inputs: { enable: "enable", disable: "disable", kill: "kill", queue: "queue", run: "run", loadCrons: "loadCrons", loadCron: "loadCron", loadCronLogs: "loadCronLogs", bulk: "bulk" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true, static: true }], ngImport: i0, 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.name}}</a>\r\n <div *ngIf=\"row.cronSetting\">\r\n <small>{{row.cronSetting.summary}}</small>\r\n </div>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column align=\"center\">\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.host || row.processId; else status\">\r\n <fs-popover \r\n [maxWidth]=\"null\"\r\n [template]=\"statusPopover\" \r\n size=\"small\">\r\n <ng-container *ngTemplateOutlet=\"status\"></ng-container>\r\n </fs-popover>\r\n <ng-template #statusPopover>\r\n <div *ngIf=\"row.host\">Host: {{row.host}}</div>\r\n <div *ngIf=\"row.processId\">Process ID: {{row.processId}}</div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #status>\r\n {{cronStates[row.state]}}\r\n </ng-template>\r\n <ng-container *ngIf=\"row.state === CronState.Running\">\r\n <div class=\"small\">\r\n Duration: {{ row.runningDuration | fsDateDuration: { hours: true, minutes: true, seconds: true } }}\r\n </div>\r\n </ng-container> \r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Last Ran</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div class=\"small\" *ngIf=\"row.duration\">\r\n Duration: {{ row.duration | fsDateDuration: { hours: true, minutes: true, seconds: true } }}\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n", styles: [""], components: [{ type: i2$
|
|
536
|
+
CronsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronsComponent, deps: [{ token: i1$1.FsMessage }, { token: i1.MatDialog }, { token: i3$2.FsPrompt }], target: i0.ɵɵFactoryTarget.Component });
|
|
537
|
+
CronsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CronsComponent, selector: "fs-system-crons", inputs: { enable: "enable", disable: "disable", kill: "kill", queue: "queue", run: "run", loadCrons: "loadCrons", loadCron: "loadCron", loadCronLogs: "loadCronLogs", bulk: "bulk" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true, static: true }], ngImport: i0, 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.name}}</a>\r\n <div *ngIf=\"row.cronSetting\">\r\n <small>{{row.cronSetting.summary}}</small>\r\n </div>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column align=\"center\">\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.host || row.processId; else status\">\r\n <fs-popover \r\n [maxWidth]=\"null\"\r\n [template]=\"statusPopover\" \r\n size=\"small\">\r\n <ng-container *ngTemplateOutlet=\"status\"></ng-container>\r\n </fs-popover>\r\n <ng-template #statusPopover>\r\n <div *ngIf=\"row.host\">Host: {{row.host}}</div>\r\n <div *ngIf=\"row.processId\">Process ID: {{row.processId}}</div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #status>\r\n {{cronStates[row.state]}}\r\n </ng-template>\r\n <ng-container *ngIf=\"row.state === CronState.Running\">\r\n <div class=\"small\">\r\n Duration: {{ row.runningDuration | fsDateDuration: { hours: true, minutes: true, seconds: true } }}\r\n </div>\r\n </ng-container> \r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Last Ran</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <ng-container *ngIf=\"row.duration===null; else lastRan\">\r\n Never\r\n </ng-container>\r\n <ng-template #lastRan>\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div class=\"small\" *ngIf=\"row.duration\">\r\n Duration: {{ row.duration | fsDateDuration: { hours: true, minutes: true, seconds: true } }}\r\n </div>\r\n </ng-template>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n", styles: [""], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i5$1.FsPopoverComponent, selector: "fs-popover" }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "fsDateDuration": i4$1.FsDateDurationPipe } });
|
|
532
538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CronsComponent, decorators: [{
|
|
533
539
|
type: Component,
|
|
534
540
|
args: [{
|
|
@@ -536,7 +542,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
536
542
|
templateUrl: './crons.component.html',
|
|
537
543
|
styleUrls: ['./crons.component.scss'],
|
|
538
544
|
}]
|
|
539
|
-
}], ctorParameters: function () { return [{ type: i1.FsMessage }, { type: i1
|
|
545
|
+
}], ctorParameters: function () { return [{ type: i1$1.FsMessage }, { type: i1.MatDialog }, { type: i3$2.FsPrompt }]; }, propDecorators: { list: [{
|
|
540
546
|
type: ViewChild,
|
|
541
547
|
args: [FsListComponent, { static: true }]
|
|
542
548
|
}], enable: [{
|
|
@@ -559,187 +565,109 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
559
565
|
type: Input
|
|
560
566
|
}] } });
|
|
561
567
|
|
|
562
|
-
class
|
|
563
|
-
|
|
564
|
-
return Object.keys(values).map((key) => {
|
|
565
|
-
return { value: key, name: values[key] };
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
KeyNameValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
570
|
-
KeyNameValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, name: "keyNameValue" });
|
|
571
|
-
KeyNameValuePipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe });
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, decorators: [{
|
|
573
|
-
type: Pipe,
|
|
574
|
-
args: [{
|
|
575
|
-
name: 'keyNameValue'
|
|
576
|
-
}]
|
|
577
|
-
}, {
|
|
578
|
-
type: Injectable
|
|
579
|
-
}] });
|
|
580
|
-
|
|
581
|
-
class SettingsComponent {
|
|
582
|
-
constructor(_message, _clipboard, _prompt, _cdRef) {
|
|
568
|
+
class DashboardComponent {
|
|
569
|
+
constructor(_message, _cdRef, _buildService) {
|
|
583
570
|
this._message = _message;
|
|
584
|
-
this._clipboard = _clipboard;
|
|
585
|
-
this._prompt = _prompt;
|
|
586
571
|
this._cdRef = _cdRef;
|
|
587
|
-
this.
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
}
|
|
593
|
-
ngOnInit() {
|
|
594
|
-
this.
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
})
|
|
603
|
-
.map((setting) => {
|
|
604
|
-
switch (setting.interfaceType) {
|
|
605
|
-
case SettingInterfaceType.Date:
|
|
606
|
-
case SettingInterfaceType.Time:
|
|
607
|
-
return Object.assign(Object.assign({}, setting), { value: parse(setting.value) });
|
|
608
|
-
case SettingInterfaceType.SelectMultiple:
|
|
609
|
-
return Object.assign(Object.assign({}, setting), { value: Array.isArray(setting.value) ? setting.value : [] });
|
|
610
|
-
}
|
|
611
|
-
return setting;
|
|
612
|
-
});
|
|
613
|
-
this.groupedSettings = settings.reduce((accum, item) => {
|
|
614
|
-
if (accum[item.group] === undefined) {
|
|
615
|
-
accum[item.group] = [];
|
|
616
|
-
}
|
|
617
|
-
accum[item.group].push(item);
|
|
618
|
-
return accum;
|
|
619
|
-
}, {});
|
|
620
|
-
this.groups = Object.keys(this.groupedSettings);
|
|
572
|
+
this._buildService = _buildService;
|
|
573
|
+
this.buttonActions = [];
|
|
574
|
+
this.menuActions = [];
|
|
575
|
+
this._destroy$ = new Subject();
|
|
576
|
+
this.actions = [];
|
|
577
|
+
}
|
|
578
|
+
ngOnInit() {
|
|
579
|
+
this._load();
|
|
580
|
+
this.buttonActions = this.actions.filter(item => { return !item.menu; });
|
|
581
|
+
this.menuActions = this.actions.filter(item => { return item.menu; });
|
|
582
|
+
this.build = this._buildService.build;
|
|
583
|
+
this._buildService.build$
|
|
584
|
+
.pipe(takeUntil(this._destroy$))
|
|
585
|
+
.subscribe((build) => {
|
|
586
|
+
this.build = build;
|
|
621
587
|
this._cdRef.markForCheck();
|
|
622
588
|
});
|
|
623
589
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
};
|
|
590
|
+
_load() {
|
|
591
|
+
this.load()
|
|
592
|
+
.subscribe((dashboard) => {
|
|
593
|
+
this.dashboard = dashboard;
|
|
594
|
+
this.dashboard.cronRanAttention = !dashboard.cronRan ||
|
|
595
|
+
differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
|
|
596
|
+
this._cdRef.markForCheck();
|
|
632
597
|
});
|
|
633
|
-
this._clipboard.copy(JSON.stringify(data));
|
|
634
|
-
this._message.success('Copied to clipboard');
|
|
635
598
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
this.
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
const data = JSON.parse(value);
|
|
648
|
-
data.forEach((item) => {
|
|
649
|
-
const setting = settings.find((s) => {
|
|
650
|
-
return item.name === s.name;
|
|
651
|
-
});
|
|
652
|
-
if (setting) {
|
|
653
|
-
Object.assign(setting, item);
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
this._cdRef.markForCheck();
|
|
657
|
-
}
|
|
658
|
-
catch (e) {
|
|
659
|
-
this._message.error(e);
|
|
660
|
-
}
|
|
661
|
-
}
|
|
599
|
+
ngOnDestroy() {
|
|
600
|
+
this._destroy$.next();
|
|
601
|
+
this._destroy$.complete();
|
|
602
|
+
}
|
|
603
|
+
actionClick(action) {
|
|
604
|
+
action.click();
|
|
605
|
+
}
|
|
606
|
+
initClick() {
|
|
607
|
+
this.init()
|
|
608
|
+
.subscribe(() => {
|
|
609
|
+
this._message.success('Successfully initialized the system');
|
|
662
610
|
});
|
|
663
611
|
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
const values = settings.reduce((result, value) => {
|
|
667
|
-
return (result[value.name] = value.value, result);
|
|
668
|
-
}, {});
|
|
669
|
-
this.save(group, values)
|
|
612
|
+
upgradeClick() {
|
|
613
|
+
this.upgrade()
|
|
670
614
|
.subscribe(() => {
|
|
671
|
-
this.
|
|
615
|
+
this._load();
|
|
616
|
+
this._message.success('Successfully upgraded the system');
|
|
672
617
|
});
|
|
673
618
|
}
|
|
674
619
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
620
|
+
DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DashboardComponent, deps: [{ token: i1$1.FsMessage }, { token: i0.ChangeDetectorRef }, { token: i2$2.FsBuildService }], target: i0.ɵɵFactoryTarget.Component });
|
|
621
|
+
DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DashboardComponent, selector: "fs-system-dashboard", inputs: { init: "init", upgrade: "upgrade", load: "load", actions: "actions" }, ngImport: i0, template: "<div *fsSkeleton=\"dashboard\">\r\n\r\n <div class=\"h2-container\">\r\n\r\n <div class=\"actions\">\r\n <h2>Actions</h2>\r\n <div class=\"fs-row.gap-tiny.wrap\">\r\n <button mat-raised-button (click)=\"upgradeClick()\">Run Upgrades</button>\r\n <button mat-raised-button (click)=\"initClick()\">Init System</button>\r\n\r\n <button\r\n *ngFor=\"let action of buttonActions\"\r\n mat-raised-button\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </button>\r\n\r\n <ng-container *ngIf=\"menuActions.length\">\r\n <fs-menu buttonClass=\"mat-raised-button menu-button\">\r\n <ng-template\r\n *ngFor=\"let action of menuActions\"\r\n fs-menu-item\r\n (click)=\"actionClick(action)\">\r\n {{action.label}}\r\n </ng-template>\r\n </fs-menu>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"fs-row.gap-large.wrap\">\r\n <div>\r\n <h2>Server</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.serverTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.serverTimezone}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Hostname</fs-label>\r\n {{dashboard.serverHostname}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Directory</fs-label>\r\n {{dashboard.appDirectory}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>System</h2>\r\n <fs-label-field>\r\n <fs-label>Mode</fs-label>\r\n {{dashboard.appMode}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Notification Recipients</fs-label>\r\n {{dashboard.notifyRecipients.join(', ')}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Database</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Name</fs-label>\r\n {{dashboard.databaseName}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date/Time</fs-label>\r\n {{dashboard.databaseTime | fsDateFormat: 'date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Timezone</fs-label>\r\n {{dashboard.databaseTimezone}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div *ngIf=\"build || dashboard.upgrades.length\">\r\n <h2>Build</h2>\r\n\r\n <ng-container *ngIf=\"build\">\r\n <fs-label-field>\r\n <fs-label>Version</fs-label>\r\n {{build.version}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>Date</fs-label>\r\n {{ build.date | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n </ng-container>\r\n\r\n <fs-label-field *ngIf=\"dashboard.upgrades.length\">\r\n <fs-label>Pending Upgrades</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': !!dashboard.upgrades.length }\">\r\n {{dashboard.upgrades.length}}\r\n <mat-icon\r\n [matTooltip]=\"dashboard.upgrades.join('\\n')\"\r\n matTooltipClass=\"tooltip-pending-upgrades\"\r\n >\r\n warning\r\n </mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n\r\n <div>\r\n <h2>Cron</h2>\r\n\r\n <fs-label-field>\r\n <fs-label>Last Ran</fs-label>\r\n <span class=\"attention\" [ngClass]=\"{ 'needs-attention': dashboard.cronRanAttention }\">\r\n <span *ngIf=\"!dashboard.cronRan\">Never</span>\r\n <span *ngIf=\"dashboard.cronRan\">{{dashboard.cronRan | fsDateFormat: 'date-time'}}</span>\r\n <mat-icon>warning</mat-icon>\r\n </span>\r\n </fs-label-field>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".actions{margin-bottom:1.25em}table td{padding:3px}.attention{display:flex;align-items:center}.attention mat-icon{display:none;margin-left:2px}.attention.needs-attention{color:#c00}.attention.needs-attention mat-icon{display:inline}::ng-deep .tooltip-pending-upgrades{white-space:pre-line}@media (max-width: 600px){:host ::ng-deep .menu-button{width:100%;border-radius:4px}}@media (min-width: 600px){:host ::ng-deep .menu-button{box-shadow:none}}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$2.FsMenuComponent, selector: "fs-menu", inputs: ["class", "buttonClass", "buttonType", "buttonColor"], outputs: ["opened", "closed"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4$2.FsMenuItemDirective, selector: "fs-menu-group,[fs-menu-item]" }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "fsDateFormat": i4$1.FsDateFormatPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DashboardComponent, decorators: [{
|
|
678
623
|
type: Component,
|
|
679
624
|
args: [{
|
|
680
|
-
selector: 'fs-system-
|
|
681
|
-
templateUrl: '
|
|
682
|
-
styleUrls: ['
|
|
625
|
+
selector: 'fs-system-dashboard',
|
|
626
|
+
templateUrl: 'dashboard.component.html',
|
|
627
|
+
styleUrls: ['dashboard.component.scss'],
|
|
683
628
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
684
629
|
}]
|
|
685
|
-
}], ctorParameters: function () { return [{ type: i1.FsMessage }, { type:
|
|
630
|
+
}], ctorParameters: function () { return [{ type: i1$1.FsMessage }, { type: i0.ChangeDetectorRef }, { type: i2$2.FsBuildService }]; }, propDecorators: { init: [{
|
|
686
631
|
type: Input
|
|
687
|
-
}],
|
|
632
|
+
}], upgrade: [{
|
|
633
|
+
type: Input
|
|
634
|
+
}], load: [{
|
|
635
|
+
type: Input
|
|
636
|
+
}], actions: [{
|
|
688
637
|
type: Input
|
|
689
|
-
}], fileRemove: [{
|
|
690
|
-
type: Output
|
|
691
|
-
}], fileSelect: [{
|
|
692
|
-
type: Output
|
|
693
638
|
}] } });
|
|
694
639
|
|
|
695
|
-
class
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
this._configFileManager();
|
|
640
|
+
class InfoComponent {
|
|
641
|
+
ngAfterViewInit() {
|
|
642
|
+
this._load();
|
|
699
643
|
}
|
|
700
|
-
|
|
701
|
-
this.
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
createDirectory: (path) => {
|
|
712
|
-
return this.createDirectory(path);
|
|
713
|
-
},
|
|
714
|
-
download: (path) => {
|
|
715
|
-
return this.download(path);
|
|
716
|
-
},
|
|
717
|
-
upload: (path, file) => {
|
|
718
|
-
return this.upload(path, file);
|
|
719
|
-
}
|
|
720
|
-
};
|
|
644
|
+
_load() {
|
|
645
|
+
this.load()
|
|
646
|
+
.subscribe((info) => {
|
|
647
|
+
info += '<style>body { background: transparent; }</style>';
|
|
648
|
+
const doc = this.iframe.nativeElement.contentDocument || this.iframe.nativeElement.contentWindow;
|
|
649
|
+
doc.open();
|
|
650
|
+
doc.write(info);
|
|
651
|
+
doc.close();
|
|
652
|
+
const scrollHeight = (this.iframe.nativeElement.contentWindow.document.documentElement.scrollHeight + 100);
|
|
653
|
+
this.iframe.nativeElement.style.height = `${scrollHeight}px`;
|
|
654
|
+
});
|
|
721
655
|
}
|
|
722
656
|
}
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
657
|
+
InfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
658
|
+
InfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: InfoComponent, selector: "fs-system-info", inputs: { load: "load" }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: "<iframe #iframe></iframe>\r\n", styles: ["iframe{width:100%;border:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InfoComponent, decorators: [{
|
|
726
660
|
type: Component,
|
|
727
661
|
args: [{
|
|
728
|
-
selector: 'fs-system-
|
|
729
|
-
templateUrl: '
|
|
730
|
-
styleUrls: ['
|
|
662
|
+
selector: 'fs-system-info',
|
|
663
|
+
templateUrl: 'info.component.html',
|
|
664
|
+
styleUrls: ['info.component.scss'],
|
|
665
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
731
666
|
}]
|
|
732
|
-
}],
|
|
733
|
-
type:
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}], deleteDirectory: [{
|
|
737
|
-
type: Input
|
|
738
|
-
}], createDirectory: [{
|
|
739
|
-
type: Input
|
|
740
|
-
}], download: [{
|
|
741
|
-
type: Input
|
|
742
|
-
}], upload: [{
|
|
667
|
+
}], propDecorators: { iframe: [{
|
|
668
|
+
type: ViewChild,
|
|
669
|
+
args: ['iframe']
|
|
670
|
+
}], load: [{
|
|
743
671
|
type: Input
|
|
744
672
|
}] } });
|
|
745
673
|
|
|
@@ -780,8 +708,8 @@ class ProcessComponent {
|
|
|
780
708
|
this.data.download(this.data.process);
|
|
781
709
|
}
|
|
782
710
|
}
|
|
783
|
-
ProcessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
784
|
-
ProcessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"process\">\r\n <div mat-dialog-title>Process</div>\r\n <mat-dialog-content>\r\n <div
|
|
711
|
+
ProcessComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.FsMessage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
712
|
+
ProcessComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"process\">\r\n <div mat-dialog-title>Process</div>\r\n <mat-dialog-content>\r\n <div class=\"column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Name\r\n </fs-label>\r\n {{process.prettyName}}\r\n </fs-label-field>\r\n\r\n <div class=\"fs-row.gap-large.wrap\">\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{ProcessStates[process.state]}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.notify\">\r\n <fs-label>\r\n Notification Email\r\n </fs-label>\r\n {{process.notify}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.pid\">\r\n <fs-label>\r\n PID\r\n </fs-label>\r\n {{process.pid}}\r\n </fs-label-field>\r\n </div>\r\n\r\n <div class=\"fs-row.gap-large.wrap\">\r\n <fs-label-field *ngIf=\"process.createDate\">\r\n <fs-label>\r\n Create Date\r\n </fs-label>\r\n {{ process.createDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.startDate\">\r\n <fs-label>\r\n Start Date\r\n </fs-label>\r\n {{ process.startDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.endDate\">\r\n <fs-label>\r\n Complete Date\r\n </fs-label>\r\n {{ process.endDate | fsDateFormat: 'date-time' }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.duration\">\r\n <fs-label>\r\n Duration\r\n </fs-label>\r\n {{ process.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\r\n </fs-label-field>\r\n </div>\r\n\r\n <fs-label-field *ngIf=\"process.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{process.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"process.log\" class=\"log\">\r\n <fs-label>\r\n Log\r\n </fs-label>{{process.log}}\r\n </fs-label-field>\r\n\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button \r\n mat-button \r\n [mat-dialog-close]=\"true\" \r\n color=\"primary\">\r\n Close\r\n </button>\r\n <button\r\n *ngIf=\"process.state === ProcessState.Running && data.loadProcess\"\r\n mat-button\r\n (click)=\"load()\">\r\n Refresh\r\n </button>\r\n <button \r\n *ngIf=\"process.state !== ProcessState.Running && data.run\" \r\n mat-button \r\n (click)=\"run()\">\r\n Run\r\n </button>\r\n <button\r\n *ngIf=\"process.filename\"\r\n mat-button\r\n (click)=\"download()\">\r\n Download\r\n </button> \r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [":host ::ng-deep .log .field-content{white-space:pre-wrap;font-family:monospace;font-size:14px}\n"], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i4$1.FsDateFormatPipe, "fsDateDuration": i4$1.FsDateDurationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
785
713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessComponent, decorators: [{
|
|
786
714
|
type: Component,
|
|
787
715
|
args: [{
|
|
@@ -792,7 +720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
792
720
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
793
721
|
type: Inject,
|
|
794
722
|
args: [MAT_DIALOG_DATA]
|
|
795
|
-
}] }, { type: i1.FsMessage }, { type: i0.ChangeDetectorRef }]; } });
|
|
723
|
+
}] }, { type: i1$1.FsMessage }, { type: i0.ChangeDetectorRef }]; } });
|
|
796
724
|
|
|
797
725
|
class ProcessesComponent {
|
|
798
726
|
constructor(_dialog, _message) {
|
|
@@ -918,8 +846,8 @@ class ProcessesComponent {
|
|
|
918
846
|
this._destroy$.complete();
|
|
919
847
|
}
|
|
920
848
|
}
|
|
921
|
-
ProcessesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessesComponent, deps: [{ token: i1
|
|
922
|
-
ProcessesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessesComponent, selector: "fs-system-processes", inputs: { loadProcesses: "loadProcesses", loadProcess: "loadProcess", run: "run", kill: "kill", delete: "delete", download: "download", actions: "actions" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, 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", styles: [""], components: [{ type: i2$
|
|
849
|
+
ProcessesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessesComponent, deps: [{ token: i1.MatDialog }, { token: i1$1.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
|
|
850
|
+
ProcessesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ProcessesComponent, selector: "fs-system-processes", inputs: { loadProcesses: "loadProcesses", loadProcess: "loadProcess", run: "run", kill: "kill", delete: "delete", download: "download", actions: "actions" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true }], ngImport: i0, 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", styles: [""], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsDateDuration": i4$1.FsDateDurationPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
923
851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ProcessesComponent, decorators: [{
|
|
924
852
|
type: Component,
|
|
925
853
|
args: [{
|
|
@@ -928,7 +856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
928
856
|
styleUrls: ['./processes.component.scss'],
|
|
929
857
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
930
858
|
}]
|
|
931
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
859
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: i1$1.FsMessage }]; }, propDecorators: { list: [{
|
|
932
860
|
type: ViewChild,
|
|
933
861
|
args: [FsListComponent]
|
|
934
862
|
}], loadProcesses: [{
|
|
@@ -966,7 +894,7 @@ class ServerLogComponent {
|
|
|
966
894
|
}
|
|
967
895
|
}
|
|
968
896
|
ServerLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServerLogComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
969
|
-
ServerLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"log\">\r\n <div mat-dialog-title>Log</div>\r\n <mat-dialog-content>\r\n <div
|
|
897
|
+
ServerLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog *fsSkeleton=\"log\">\r\n <div mat-dialog-title>Log</div>\r\n <mat-dialog-content>\r\n <div class=\"fs-column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Error Type\r\n </fs-label>\r\n {{log.type}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{log.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n URL\r\n </fs-label>\r\n {{log.url}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Date\r\n </fs-label>\r\n {{log.createDate|fsDateFormat: 'full-date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n File\r\n </fs-label>\r\n {{log.file}} @ {{log.line}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Backtrace\r\n </fs-label>\r\n <pre>{{log.backtrace|json}}</pre>\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n $_SERVER\r\n </fs-label>\r\n <pre>{{log.server|json}}</pre>\r\n </fs-label-field>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions>\r\n <button mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n", styles: [""], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i3.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i3.FsLabelComponent, selector: "fs-label" }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i5.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i4$1.FsDateFormatPipe, "json": i7.JsonPipe } });
|
|
970
898
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServerLogComponent, decorators: [{
|
|
971
899
|
type: Component,
|
|
972
900
|
args: [{
|
|
@@ -1009,8 +937,8 @@ class ServerLogsComponent {
|
|
|
1009
937
|
});
|
|
1010
938
|
}
|
|
1011
939
|
}
|
|
1012
|
-
ServerLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServerLogsComponent, deps: [{ token: i1
|
|
1013
|
-
ServerLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogsComponent, selector: "fs-system-server-logs", inputs: { loadLogs: "loadLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], ngImport: i0, 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", styles: [""], components: [{ type: i2$
|
|
940
|
+
ServerLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServerLogsComponent, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
941
|
+
ServerLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ServerLogsComponent, selector: "fs-system-server-logs", inputs: { loadLogs: "loadLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, static: true }], ngImport: i0, 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", styles: [""], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
|
|
1014
942
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ServerLogsComponent, decorators: [{
|
|
1015
943
|
type: Component,
|
|
1016
944
|
args: [{
|
|
@@ -1018,171 +946,187 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1018
946
|
templateUrl: './server-logs.component.html',
|
|
1019
947
|
styleUrls: ['./server-logs.component.scss']
|
|
1020
948
|
}]
|
|
1021
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
949
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }]; }, propDecorators: { list: [{
|
|
1022
950
|
type: ViewChild,
|
|
1023
951
|
args: ['list', { static: true }]
|
|
1024
952
|
}], loadLogs: [{
|
|
1025
953
|
type: Input
|
|
1026
954
|
}] } });
|
|
1027
955
|
|
|
1028
|
-
class
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
ngOnInit() {
|
|
1034
|
-
this._configList();
|
|
1035
|
-
}
|
|
1036
|
-
_configList() {
|
|
1037
|
-
this.config = {
|
|
1038
|
-
paging: false,
|
|
1039
|
-
filters: [
|
|
1040
|
-
{
|
|
1041
|
-
type: ItemType.Keyword,
|
|
1042
|
-
name: 'keyword',
|
|
1043
|
-
label: 'Search'
|
|
1044
|
-
}
|
|
1045
|
-
],
|
|
1046
|
-
fetch: query => {
|
|
1047
|
-
return this.loadUpgradeLogs(query)
|
|
1048
|
-
.pipe(map((response) => ({ data: response.data, paging: response.paging })));
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
956
|
+
class KeyNameValuePipe {
|
|
957
|
+
transform(values) {
|
|
958
|
+
return Object.keys(values).map((key) => {
|
|
959
|
+
return { value: key, name: values[key] };
|
|
960
|
+
});
|
|
1051
961
|
}
|
|
1052
962
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
i0.ɵɵ
|
|
1056
|
-
|
|
963
|
+
KeyNameValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
964
|
+
KeyNameValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, name: "keyNameValue" });
|
|
965
|
+
KeyNameValuePipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe });
|
|
966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: KeyNameValuePipe, decorators: [{
|
|
967
|
+
type: Pipe,
|
|
1057
968
|
args: [{
|
|
1058
|
-
|
|
1059
|
-
templateUrl: './upgrade-logs.component.html',
|
|
1060
|
-
styleUrls: ['./upgrade-logs.component.scss']
|
|
969
|
+
name: 'keyNameValue'
|
|
1061
970
|
}]
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}], loadUpgradeLogs: [{
|
|
1066
|
-
type: Input
|
|
1067
|
-
}] } });
|
|
971
|
+
}, {
|
|
972
|
+
type: Injectable
|
|
973
|
+
}] });
|
|
1068
974
|
|
|
1069
|
-
class
|
|
1070
|
-
constructor(
|
|
1071
|
-
this.
|
|
1072
|
-
this.
|
|
975
|
+
class SettingsComponent {
|
|
976
|
+
constructor(_message, _clipboard, _prompt, _cdRef) {
|
|
977
|
+
this._message = _message;
|
|
978
|
+
this._clipboard = _clipboard;
|
|
979
|
+
this._prompt = _prompt;
|
|
980
|
+
this._cdRef = _cdRef;
|
|
981
|
+
this.fileRemove = new EventEmitter();
|
|
982
|
+
this.fileSelect = new EventEmitter();
|
|
983
|
+
this.groupedSettings = [];
|
|
984
|
+
this.groups = [];
|
|
985
|
+
this.SettingInterfaceType = SettingInterfaceType;
|
|
1073
986
|
}
|
|
1074
987
|
ngOnInit() {
|
|
1075
|
-
this.
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
988
|
+
this.loadSettings({
|
|
989
|
+
visible: true,
|
|
990
|
+
})
|
|
991
|
+
.subscribe((settings) => {
|
|
992
|
+
settings = settings
|
|
993
|
+
.filter((setting) => {
|
|
994
|
+
return setting.interfaceType !== SettingInterfaceType.None;
|
|
995
|
+
})
|
|
996
|
+
.map((setting) => {
|
|
997
|
+
switch (setting.interfaceType) {
|
|
998
|
+
case SettingInterfaceType.Date:
|
|
999
|
+
case SettingInterfaceType.Time:
|
|
1000
|
+
return Object.assign(Object.assign({}, setting), { value: parse(setting.value) });
|
|
1001
|
+
case SettingInterfaceType.SelectMultiple:
|
|
1002
|
+
return Object.assign(Object.assign({}, setting), { value: Array.isArray(setting.value) ? setting.value : [] });
|
|
1003
|
+
}
|
|
1004
|
+
return setting;
|
|
1005
|
+
});
|
|
1006
|
+
this.groupedSettings = settings.reduce((accum, item) => {
|
|
1007
|
+
if (accum[item.group] === undefined) {
|
|
1008
|
+
accum[item.group] = [];
|
|
1009
|
+
}
|
|
1010
|
+
accum[item.group].push(item);
|
|
1011
|
+
return accum;
|
|
1012
|
+
}, {});
|
|
1013
|
+
this.groups = Object.keys(this.groupedSettings);
|
|
1014
|
+
this._cdRef.markForCheck();
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
export(event, settings) {
|
|
1018
|
+
event.stopPropagation();
|
|
1019
|
+
const data = settings.map((setting) => {
|
|
1020
|
+
return {
|
|
1021
|
+
name: setting.name,
|
|
1022
|
+
value: setting.value,
|
|
1023
|
+
group: setting.group,
|
|
1024
|
+
};
|
|
1025
|
+
});
|
|
1026
|
+
this._clipboard.copy(JSON.stringify(data));
|
|
1027
|
+
this._message.success('Copied to clipboard');
|
|
1028
|
+
}
|
|
1029
|
+
import(event, group) {
|
|
1030
|
+
event.stopPropagation();
|
|
1031
|
+
this._prompt.input({
|
|
1032
|
+
label: 'JSON Import',
|
|
1033
|
+
title: 'Import Settings',
|
|
1034
|
+
commitLabel: 'Import',
|
|
1035
|
+
required: true,
|
|
1036
|
+
}).subscribe((value) => {
|
|
1037
|
+
if (value) {
|
|
1038
|
+
try {
|
|
1039
|
+
const settings = this.groupedSettings[group];
|
|
1040
|
+
const data = JSON.parse(value);
|
|
1041
|
+
data.forEach((item) => {
|
|
1042
|
+
const setting = settings.find((s) => {
|
|
1043
|
+
return item.name === s.name;
|
|
1044
|
+
});
|
|
1045
|
+
if (setting) {
|
|
1046
|
+
Object.assign(setting, item);
|
|
1047
|
+
}
|
|
1048
|
+
});
|
|
1049
|
+
this._cdRef.markForCheck();
|
|
1050
|
+
}
|
|
1051
|
+
catch (e) {
|
|
1052
|
+
this._message.error(e);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
saveGroup(group) {
|
|
1058
|
+
const settings = this.groupedSettings[group];
|
|
1059
|
+
const values = settings.reduce((result, value) => {
|
|
1060
|
+
return (result[value.name] = value.value, result);
|
|
1061
|
+
}, {});
|
|
1062
|
+
this.save(group, values)
|
|
1063
|
+
.subscribe(() => {
|
|
1064
|
+
this._message.success('Changes Saved');
|
|
1065
|
+
});
|
|
1079
1066
|
}
|
|
1080
1067
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
1068
|
+
SettingsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SettingsComponent, deps: [{ token: i1$1.FsMessage }, { token: i2$3.FsClipboard }, { token: i3$2.FsPrompt }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1069
|
+
SettingsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SettingsComponent, selector: "fs-system-settings", inputs: { loadSettings: "loadSettings", save: "save" }, outputs: { fileRemove: "fileRemove", fileSelect: "fileSelect" }, ngImport: i0, 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 \r\n hideToggle \r\n *ngFor=\"let setting of groupedSettings[group]\" \r\n class=\"setting\"\r\n [ngClass]=\"{ 'has-instruction': !! setting.instruction }\">\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.Color\">\r\n <input\r\n matInput\r\n fsColorPicker\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 <div fsFileHint>{{setting.instruction}}</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", 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}:host ::ng-deep .setting.has-instruction fs-file-picker fs-label-message{display:block;padding-bottom:1em}\n"], components: [{ type: i4$3.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i4$3.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7$1.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i8.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i9$1.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i10.FsDatePickerComponent, selector: "[fsDatePicker]", inputs: ["minYear", "maxYear", "minDate", "maxDate", "startOfDay", "view", "format", "minutes", "weekStartsOn"], outputs: ["change"] }, { type: i11.FsColorPickerComponent, selector: "[fsColorPicker]", inputs: ["showClear"] }, { type: i10.FsTimePickerComponent, selector: "[fsTimePicker]", inputs: ["view"] }, { type: i12.FsFilePickerComponent, selector: "fs-file-picker", inputs: ["minWidth", "minHeight", "imageWidth", "imageHeight", "imageQuality", "label", "showFilename", "allowDownload", "allowReupload", "multiple", "allowRemove", "url", "file", "accept", "disabled", "previewWidth", "previewHeight"], outputs: ["select", "remove", "download"] }], directives: [{ type: i4$3.MatAccordion, selector: "mat-accordion", inputs: ["multi", "displayMode", "togglePosition", "hideToggle"], exportAs: ["matAccordion"] }, { type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4$3.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i15.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i16.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i16.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i16.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7$1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { type: i12.FsFileLabelDirective, selector: "[fsFileLabel]" }], pipes: { "keyNameValue": KeyNameValuePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SettingsComponent, decorators: [{
|
|
1084
1071
|
type: Component,
|
|
1085
1072
|
args: [{
|
|
1086
|
-
|
|
1087
|
-
|
|
1073
|
+
selector: 'fs-system-settings',
|
|
1074
|
+
templateUrl: './settings.component.html',
|
|
1075
|
+
styleUrls: ['./settings.component.scss'],
|
|
1076
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1088
1077
|
}]
|
|
1089
|
-
}], ctorParameters: function () { return [{ type: i1$1.
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1078
|
+
}], ctorParameters: function () { return [{ type: i1$1.FsMessage }, { type: i2$3.FsClipboard }, { type: i3$2.FsPrompt }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { loadSettings: [{
|
|
1079
|
+
type: Input
|
|
1080
|
+
}], save: [{
|
|
1081
|
+
type: Input
|
|
1082
|
+
}], fileRemove: [{
|
|
1083
|
+
type: Output
|
|
1084
|
+
}], fileSelect: [{
|
|
1085
|
+
type: Output
|
|
1086
|
+
}] } });
|
|
1093
1087
|
|
|
1094
|
-
class
|
|
1095
|
-
constructor(
|
|
1096
|
-
this._dialog = _dialog;
|
|
1088
|
+
class UpgradeLogsComponent {
|
|
1089
|
+
constructor() {
|
|
1097
1090
|
this.config = null;
|
|
1098
|
-
this.
|
|
1091
|
+
this.logTypes = [];
|
|
1099
1092
|
}
|
|
1100
1093
|
ngOnInit() {
|
|
1101
1094
|
this._configList();
|
|
1102
1095
|
}
|
|
1103
1096
|
_configList() {
|
|
1104
1097
|
this.config = {
|
|
1098
|
+
paging: false,
|
|
1105
1099
|
filters: [
|
|
1106
1100
|
{
|
|
1107
1101
|
type: ItemType.Keyword,
|
|
1108
1102
|
name: 'keyword',
|
|
1109
1103
|
label: 'Search'
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
type: ItemType.Select,
|
|
1113
|
-
name: 'state',
|
|
1114
|
-
label: 'Status',
|
|
1115
|
-
values: ApiLogStates
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
name: 'createDate',
|
|
1119
|
-
type: ItemType.DateRange,
|
|
1120
|
-
label: ['From Date', 'To Date'],
|
|
1121
1104
|
}
|
|
1122
1105
|
],
|
|
1123
1106
|
fetch: query => {
|
|
1124
|
-
|
|
1125
|
-
return this.loadApiLogs(query)
|
|
1107
|
+
return this.loadUpgradeLogs(query)
|
|
1126
1108
|
.pipe(map((response) => ({ data: response.data, paging: response.paging })));
|
|
1127
1109
|
}
|
|
1128
1110
|
};
|
|
1129
1111
|
}
|
|
1130
|
-
open(apiLog) {
|
|
1131
|
-
this._dialog.open(ApiLogComponent, {
|
|
1132
|
-
data: { apiLog: apiLog },
|
|
1133
|
-
width: '85%'
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
1112
|
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type:
|
|
1113
|
+
UpgradeLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UpgradeLogsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1114
|
+
UpgradeLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: UpgradeLogsComponent, selector: "fs-system-upgrade-logs", inputs: { loadUpgradeLogs: "loadUpgradeLogs" }, viewQueries: [{ propertyName: "list", first: true, predicate: FsListComponent, descendants: true, static: true }], ngImport: i0, 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", styles: [""], components: [{ type: i2$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }], directives: [{ type: i2$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2$1.FsListHeaderDirective, selector: "[fs-list-header]", inputs: ["colspan", "align", "class"] }, { type: i2$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
|
|
1115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: UpgradeLogsComponent, decorators: [{
|
|
1140
1116
|
type: Component,
|
|
1141
1117
|
args: [{
|
|
1142
|
-
selector: 'fs-system-
|
|
1143
|
-
templateUrl: './
|
|
1144
|
-
styleUrls: ['./
|
|
1118
|
+
selector: 'fs-system-upgrade-logs',
|
|
1119
|
+
templateUrl: './upgrade-logs.component.html',
|
|
1120
|
+
styleUrls: ['./upgrade-logs.component.scss']
|
|
1145
1121
|
}]
|
|
1146
|
-
}],
|
|
1122
|
+
}], propDecorators: { list: [{
|
|
1147
1123
|
type: ViewChild,
|
|
1148
1124
|
args: [FsListComponent, { static: true }]
|
|
1149
|
-
}],
|
|
1125
|
+
}], loadUpgradeLogs: [{
|
|
1150
1126
|
type: Input
|
|
1151
1127
|
}] } });
|
|
1152
1128
|
|
|
1153
|
-
|
|
1154
|
-
ngAfterViewInit() {
|
|
1155
|
-
this._load();
|
|
1156
|
-
}
|
|
1157
|
-
_load() {
|
|
1158
|
-
this.load()
|
|
1159
|
-
.subscribe((info) => {
|
|
1160
|
-
info += '<style>body { background: transparent; }</style>';
|
|
1161
|
-
const doc = this.iframe.nativeElement.contentDocument || this.iframe.nativeElement.contentWindow;
|
|
1162
|
-
doc.open();
|
|
1163
|
-
doc.write(info);
|
|
1164
|
-
doc.close();
|
|
1165
|
-
const scrollHeight = (this.iframe.nativeElement.contentWindow.document.documentElement.scrollHeight + 100);
|
|
1166
|
-
this.iframe.nativeElement.style.height = `${scrollHeight}px`;
|
|
1167
|
-
});
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
InfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1171
|
-
InfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: InfoComponent, selector: "fs-system-info", inputs: { load: "load" }, viewQueries: [{ propertyName: "iframe", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0, template: "<iframe #iframe></iframe>\r\n", styles: ["iframe{width:100%;border:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: InfoComponent, decorators: [{
|
|
1173
|
-
type: Component,
|
|
1174
|
-
args: [{
|
|
1175
|
-
selector: 'fs-system-info',
|
|
1176
|
-
templateUrl: 'info.component.html',
|
|
1177
|
-
styleUrls: ['info.component.scss'],
|
|
1178
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1179
|
-
}]
|
|
1180
|
-
}], propDecorators: { iframe: [{
|
|
1181
|
-
type: ViewChild,
|
|
1182
|
-
args: ['iframe']
|
|
1183
|
-
}], load: [{
|
|
1184
|
-
type: Input
|
|
1185
|
-
}] } });
|
|
1129
|
+
const FS_SYSTEM_CONFIG = new InjectionToken('fs-system-config');
|
|
1186
1130
|
|
|
1187
1131
|
class FsSystemModule {
|
|
1188
1132
|
static forRoot(config) {
|
|
@@ -1190,7 +1134,7 @@ class FsSystemModule {
|
|
|
1190
1134
|
ngModule: FsSystemModule,
|
|
1191
1135
|
providers: [
|
|
1192
1136
|
{ provide: FS_SYSTEM_CONFIG, useValue: config || {} },
|
|
1193
|
-
]
|
|
1137
|
+
],
|
|
1194
1138
|
};
|
|
1195
1139
|
}
|
|
1196
1140
|
}
|
|
@@ -1199,7 +1143,6 @@ FsSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
1199
1143
|
CronsComponent,
|
|
1200
1144
|
SettingsComponent,
|
|
1201
1145
|
KeyNameValuePipe,
|
|
1202
|
-
FileManagerComponent,
|
|
1203
1146
|
ProcessesComponent,
|
|
1204
1147
|
ServerLogComponent,
|
|
1205
1148
|
ServerLogsComponent,
|
|
@@ -1210,7 +1153,6 @@ FsSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
1210
1153
|
ProcessComponent,
|
|
1211
1154
|
CronComponent,
|
|
1212
1155
|
CronLogComponent], imports: [CommonModule,
|
|
1213
|
-
FlexLayoutModule,
|
|
1214
1156
|
FormsModule,
|
|
1215
1157
|
MatButtonModule,
|
|
1216
1158
|
MatExpansionModule,
|
|
@@ -1234,7 +1176,6 @@ FsSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
1234
1176
|
FsColorPickerModule], exports: [DashboardComponent,
|
|
1235
1177
|
CronsComponent,
|
|
1236
1178
|
SettingsComponent,
|
|
1237
|
-
FileManagerComponent,
|
|
1238
1179
|
ProcessesComponent,
|
|
1239
1180
|
ServerLogsComponent,
|
|
1240
1181
|
UpgradeLogsComponent,
|
|
@@ -1242,7 +1183,6 @@ FsSystemModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
1242
1183
|
InfoComponent] });
|
|
1243
1184
|
FsSystemModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsSystemModule, imports: [[
|
|
1244
1185
|
CommonModule,
|
|
1245
|
-
FlexLayoutModule,
|
|
1246
1186
|
FormsModule,
|
|
1247
1187
|
MatButtonModule,
|
|
1248
1188
|
MatExpansionModule,
|
|
@@ -1270,7 +1210,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1270
1210
|
args: [{
|
|
1271
1211
|
imports: [
|
|
1272
1212
|
CommonModule,
|
|
1273
|
-
FlexLayoutModule,
|
|
1274
1213
|
FormsModule,
|
|
1275
1214
|
MatButtonModule,
|
|
1276
1215
|
MatExpansionModule,
|
|
@@ -1297,7 +1236,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1297
1236
|
DashboardComponent,
|
|
1298
1237
|
CronsComponent,
|
|
1299
1238
|
SettingsComponent,
|
|
1300
|
-
FileManagerComponent,
|
|
1301
1239
|
ProcessesComponent,
|
|
1302
1240
|
ServerLogsComponent,
|
|
1303
1241
|
UpgradeLogsComponent,
|
|
@@ -1309,7 +1247,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1309
1247
|
CronsComponent,
|
|
1310
1248
|
SettingsComponent,
|
|
1311
1249
|
KeyNameValuePipe,
|
|
1312
|
-
FileManagerComponent,
|
|
1313
1250
|
ProcessesComponent,
|
|
1314
1251
|
ServerLogComponent,
|
|
1315
1252
|
ServerLogsComponent,
|
|
@@ -1328,5 +1265,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1328
1265
|
* Generated bundle index. Do not edit.
|
|
1329
1266
|
*/
|
|
1330
1267
|
|
|
1331
|
-
export { ApiLogComponent, ApiLogState, ApiLogStates, ApiLogsComponent, CronComponent, CronLogComponent, CronState, CronStates, CronsComponent, DashboardComponent, FS_SYSTEM_CONFIG,
|
|
1268
|
+
export { ApiLogComponent, ApiLogState, ApiLogStates, ApiLogsComponent, CronComponent, CronLogComponent, CronState, CronStates, CronsComponent, DashboardComponent, FS_SYSTEM_CONFIG, FsSystemModule, InfoComponent, KeyNameValuePipe, ProcessComponent, ProcessState, ProcessStates, ProcessesComponent, ServerLogComponent, ServerLogsComponent, SettingsComponent, UpgradeLogsComponent };
|
|
1332
1269
|
//# sourceMappingURL=firestitch-system.js.map
|