@firestitch/system 9.2.2 → 12.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/api-log/api-log.component.d.ts +3 -0
- package/app/components/api-log/index.d.ts +1 -0
- package/app/components/api-logs/api-logs.component.d.ts +3 -0
- package/app/components/api-logs/index.d.ts +1 -0
- package/app/components/cron/cron.component.d.ts +3 -0
- package/app/components/cron-log/cron-log.component.d.ts +3 -0
- package/app/components/crons/crons.component.d.ts +3 -0
- package/app/components/crons/index.d.ts +1 -0
- package/app/components/dashboard/dashboard.component.d.ts +3 -0
- package/app/components/dashboard/index.d.ts +1 -0
- package/app/components/file-manager/file-manager.component.d.ts +3 -0
- package/app/components/file-manager/index.d.ts +1 -0
- package/app/components/info/index.d.ts +1 -0
- package/app/components/info/info.component.d.ts +3 -0
- package/app/components/process/index.d.ts +1 -0
- package/app/components/process/process.component.d.ts +3 -0
- package/app/components/processes/index.d.ts +1 -0
- package/app/components/processes/processes.component.d.ts +3 -0
- package/app/components/server-log/index.d.ts +1 -0
- package/app/components/server-log/server-log.component.d.ts +3 -0
- package/app/components/server-logs/index.d.ts +1 -0
- package/app/components/server-logs/server-logs.component.d.ts +3 -0
- package/app/components/settings/index.d.ts +1 -0
- package/app/components/settings/settings.component.d.ts +3 -0
- package/app/components/upgrade-logs/index.d.ts +1 -0
- package/app/components/upgrade-logs/upgrade-logs.component.d.ts +3 -0
- package/app/fs-system.module.d.ts +41 -0
- package/app/pipes/key-name-value.pipe.d.ts +4 -0
- package/bundles/firestitch-system.umd.js +759 -612
- package/bundles/firestitch-system.umd.js.map +1 -1
- package/esm2015/app/components/api-log/api-log.component.js +24 -17
- package/esm2015/app/components/api-log/index.js +2 -0
- package/esm2015/app/components/api-logs/api-logs.component.js +23 -24
- package/esm2015/app/components/api-logs/index.js +2 -0
- package/esm2015/app/components/cron/cron.component.js +28 -21
- package/esm2015/app/components/cron/index.js +1 -1
- package/esm2015/app/components/cron-log/cron-log.component.js +24 -16
- package/esm2015/app/components/cron-log/index.js +1 -1
- package/esm2015/app/components/crons/crons.component.js +40 -58
- package/esm2015/app/components/crons/index.js +2 -0
- package/esm2015/app/components/dashboard/dashboard.component.js +37 -39
- package/esm2015/app/components/dashboard/index.js +2 -0
- package/esm2015/app/components/file-manager/file-manager.component.js +27 -37
- package/esm2015/app/components/file-manager/index.js +2 -0
- package/esm2015/app/components/info/index.js +2 -0
- package/esm2015/app/components/info/info.component.js +20 -21
- package/esm2015/app/components/process/index.js +2 -0
- package/esm2015/app/components/process/process.component.js +24 -17
- package/esm2015/app/components/processes/index.js +2 -0
- package/esm2015/app/components/processes/processes.component.js +36 -50
- package/esm2015/app/components/server-log/index.js +2 -0
- package/esm2015/app/components/server-log/server-log.component.js +24 -16
- package/esm2015/app/components/server-logs/index.js +2 -0
- package/esm2015/app/components/server-logs/server-logs.component.js +22 -24
- package/esm2015/app/components/settings/index.js +2 -0
- package/esm2015/app/components/settings/settings.component.js +40 -40
- package/esm2015/app/components/upgrade-logs/index.js +2 -0
- package/esm2015/app/components/upgrade-logs/upgrade-logs.component.js +21 -20
- package/esm2015/app/consts/api-log-states.const.js +1 -1
- package/esm2015/app/consts/cron-log-states.const.js +1 -1
- package/esm2015/app/consts/cron-states.const.js +1 -1
- package/esm2015/app/consts/index.js +1 -1
- package/esm2015/app/consts/process-states.const.js +1 -1
- package/esm2015/app/enums/api-log-state.enum.js +1 -1
- package/esm2015/app/enums/cron-log-state.enum.js +1 -1
- package/esm2015/app/enums/cron-state.enum.js +1 -1
- package/esm2015/app/enums/index.js +1 -1
- package/esm2015/app/enums/process-state.enum.js +1 -1
- package/esm2015/app/enums/setting-interface-type.enum.js +1 -1
- package/esm2015/app/fs-system.module.js +109 -41
- package/esm2015/app/helpers/index-name-value.js +1 -1
- package/esm2015/app/injectors/system-config.injector.js +1 -1
- package/esm2015/app/interfaces/dashboard-action.js +2 -1
- package/esm2015/app/interfaces/index.js +4 -1
- package/esm2015/app/interfaces/process-action.js +2 -1
- package/esm2015/app/interfaces/system-config.js +2 -1
- package/esm2015/app/pipes/key-name-value.pipe.js +15 -11
- package/esm2015/firestitch-system.js +1 -16
- package/esm2015/public_api.js +16 -1
- package/fesm2015/firestitch-system.js +427 -415
- package/fesm2015/firestitch-system.js.map +1 -1
- package/firestitch-system.d.ts +1 -15
- package/package.json +5 -9
- package/public_api.d.ts +15 -0
- package/bundles/firestitch-system.umd.min.js +0 -16
- package/bundles/firestitch-system.umd.min.js.map +0 -1
- package/esm5/app/components/api-log/api-log.component.js +0 -32
- package/esm5/app/components/api-logs/api-logs.component.js +0 -75
- package/esm5/app/components/cron/cron.component.js +0 -98
- package/esm5/app/components/cron/index.js +0 -2
- package/esm5/app/components/cron-log/cron-log.component.js +0 -34
- package/esm5/app/components/cron-log/index.js +0 -2
- package/esm5/app/components/crons/crons.component.js +0 -209
- package/esm5/app/components/dashboard/dashboard.component.js +0 -98
- package/esm5/app/components/file-manager/file-manager.component.js +0 -67
- package/esm5/app/components/info/info.component.js +0 -41
- package/esm5/app/components/process/process.component.js +0 -44
- package/esm5/app/components/processes/processes.component.js +0 -180
- package/esm5/app/components/server-log/server-log.component.js +0 -35
- package/esm5/app/components/server-logs/server-logs.component.js +0 -61
- package/esm5/app/components/settings/settings.component.js +0 -136
- package/esm5/app/components/upgrade-logs/upgrade-logs.component.js +0 -49
- package/esm5/app/consts/api-log-states.const.js +0 -7
- package/esm5/app/consts/cron-log-states.const.js +0 -15
- package/esm5/app/consts/cron-states.const.js +0 -9
- package/esm5/app/consts/index.js +0 -4
- package/esm5/app/consts/process-states.const.js +0 -10
- package/esm5/app/enums/api-log-state.enum.js +0 -7
- package/esm5/app/enums/cron-log-state.enum.js +0 -15
- package/esm5/app/enums/cron-state.enum.js +0 -9
- package/esm5/app/enums/index.js +0 -6
- package/esm5/app/enums/process-state.enum.js +0 -10
- package/esm5/app/enums/setting-interface-type.enum.js +0 -15
- package/esm5/app/fs-system.module.js +0 -113
- package/esm5/app/helpers/index-name-value.js +0 -8
- package/esm5/app/injectors/system-config.injector.js +0 -3
- package/esm5/app/interfaces/dashboard-action.js +0 -1
- package/esm5/app/interfaces/index.js +0 -1
- package/esm5/app/interfaces/process-action.js +0 -1
- package/esm5/app/interfaces/system-config.js +0 -1
- package/esm5/app/pipes/key-name-value.pipe.js +0 -20
- package/esm5/firestitch-system.js +0 -20
- package/esm5/public_api.js +0 -5
- package/fesm5/firestitch-system.js +0 -1286
- package/fesm5/firestitch-system.js.map +0 -1
- package/firestitch-system.metadata.json +0 -1
|
@@ -1,1286 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata, __param, __assign, __spread } from 'tslib';
|
|
2
|
-
import { InjectionToken, ChangeDetectorRef, Input, Component, ChangeDetectionStrategy, Inject, ViewChild, EventEmitter, Output, Pipe, Injectable, ElementRef, NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
6
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
7
|
-
import { MatInputModule } from '@angular/material/input';
|
|
8
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
9
|
-
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
|
10
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
11
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
13
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
-
import { parse, FsDateModule } from '@firestitch/date';
|
|
15
|
-
import { FsDatePickerModule } from '@firestitch/datepicker';
|
|
16
|
-
import { FsSkeletonModule } from '@firestitch/skeleton';
|
|
17
|
-
import { FsListComponent, FsListModule } from '@firestitch/list';
|
|
18
|
-
import { FsFileManagerModule } from '@firestitch/file-manager';
|
|
19
|
-
import { FsDialogModule } from '@firestitch/dialog';
|
|
20
|
-
import { FsLabelModule } from '@firestitch/label';
|
|
21
|
-
import { FsFileModule } from '@firestitch/file';
|
|
22
|
-
import { FsMenuModule } from '@firestitch/menu';
|
|
23
|
-
import { FsMessage } from '@firestitch/message';
|
|
24
|
-
import { FsBuildService } from '@firestitch/build';
|
|
25
|
-
import { takeUntil, map, tap } from 'rxjs/operators';
|
|
26
|
-
import { Subject } from 'rxjs';
|
|
27
|
-
import { differenceInMinutes } from 'date-fns';
|
|
28
|
-
import { ItemType } from '@firestitch/filter';
|
|
29
|
-
import { SelectionActionType } from '@firestitch/selection';
|
|
30
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
31
|
-
import { groupBy, reduce } from 'lodash-es';
|
|
32
|
-
import { ClipboardService, ClipboardModule } from 'ngx-clipboard';
|
|
33
|
-
import { MatTabsModule } from '@angular/material/tabs';
|
|
34
|
-
|
|
35
|
-
var FS_SYSTEM_CONFIG = new InjectionToken('fs-system-config');
|
|
36
|
-
|
|
37
|
-
var DashboardComponent = /** @class */ (function () {
|
|
38
|
-
function DashboardComponent(_message, _cdRef, _buildService) {
|
|
39
|
-
this._message = _message;
|
|
40
|
-
this._cdRef = _cdRef;
|
|
41
|
-
this._buildService = _buildService;
|
|
42
|
-
this.buttonActions = [];
|
|
43
|
-
this.menuActions = [];
|
|
44
|
-
this._destroy$ = new Subject();
|
|
45
|
-
this.actions = [];
|
|
46
|
-
}
|
|
47
|
-
DashboardComponent.prototype.ngOnInit = function () {
|
|
48
|
-
var _this = this;
|
|
49
|
-
this._load();
|
|
50
|
-
this.buttonActions = this.actions.filter(function (item) { return !item.menu; });
|
|
51
|
-
this.menuActions = this.actions.filter(function (item) { return item.menu; });
|
|
52
|
-
this.build = this._buildService.build;
|
|
53
|
-
this._buildService.buildChange$
|
|
54
|
-
.pipe(takeUntil(this._destroy$))
|
|
55
|
-
.subscribe(function (build) {
|
|
56
|
-
_this.build = build;
|
|
57
|
-
_this._cdRef.markForCheck();
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
DashboardComponent.prototype._load = function () {
|
|
61
|
-
var _this = this;
|
|
62
|
-
this.load()
|
|
63
|
-
.subscribe(function (dashboard) {
|
|
64
|
-
_this.dashboard = dashboard;
|
|
65
|
-
_this.dashboard.cronRanAttention = !dashboard.cronRan ||
|
|
66
|
-
differenceInMinutes(new Date(), new Date(dashboard.cronRan)) > 15;
|
|
67
|
-
_this._cdRef.markForCheck();
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
DashboardComponent.prototype.ngOnDestroy = function () {
|
|
71
|
-
this._destroy$.next();
|
|
72
|
-
this._destroy$.complete();
|
|
73
|
-
};
|
|
74
|
-
DashboardComponent.prototype.actionClick = function (action) {
|
|
75
|
-
action.click();
|
|
76
|
-
};
|
|
77
|
-
DashboardComponent.prototype.initClick = function () {
|
|
78
|
-
var _this = this;
|
|
79
|
-
this.init()
|
|
80
|
-
.subscribe(function () {
|
|
81
|
-
_this._message.success('Successfully initialized the system');
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
DashboardComponent.prototype.upgradeClick = function () {
|
|
85
|
-
var _this = this;
|
|
86
|
-
this.upgrade()
|
|
87
|
-
.subscribe(function () {
|
|
88
|
-
_this._load();
|
|
89
|
-
_this._message.success('Successfully upgraded the system');
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
DashboardComponent.ctorParameters = function () { return [
|
|
93
|
-
{ type: FsMessage },
|
|
94
|
-
{ type: ChangeDetectorRef },
|
|
95
|
-
{ type: FsBuildService }
|
|
96
|
-
]; };
|
|
97
|
-
__decorate([
|
|
98
|
-
Input(),
|
|
99
|
-
__metadata("design:type", Function)
|
|
100
|
-
], DashboardComponent.prototype, "init", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
Input(),
|
|
103
|
-
__metadata("design:type", Function)
|
|
104
|
-
], DashboardComponent.prototype, "upgrade", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
Input(),
|
|
107
|
-
__metadata("design:type", Function)
|
|
108
|
-
], DashboardComponent.prototype, "load", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
Input(),
|
|
111
|
-
__metadata("design:type", Array)
|
|
112
|
-
], DashboardComponent.prototype, "actions", void 0);
|
|
113
|
-
DashboardComponent = __decorate([
|
|
114
|
-
Component({
|
|
115
|
-
selector: 'fs-system-dashboard',
|
|
116
|
-
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",
|
|
117
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
118
|
-
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}}"]
|
|
119
|
-
}),
|
|
120
|
-
__metadata("design:paramtypes", [FsMessage,
|
|
121
|
-
ChangeDetectorRef,
|
|
122
|
-
FsBuildService])
|
|
123
|
-
], DashboardComponent);
|
|
124
|
-
return DashboardComponent;
|
|
125
|
-
}());
|
|
126
|
-
|
|
127
|
-
function indexNameValue(arry) {
|
|
128
|
-
var obj = {};
|
|
129
|
-
arry.forEach(function (item) {
|
|
130
|
-
obj[item.value] = item.name;
|
|
131
|
-
});
|
|
132
|
-
return obj;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
var CronState;
|
|
136
|
-
(function (CronState) {
|
|
137
|
-
CronState["Running"] = "running";
|
|
138
|
-
CronState["Idle"] = "idle";
|
|
139
|
-
CronState["Failed"] = "failed";
|
|
140
|
-
CronState["Queued"] = "queued";
|
|
141
|
-
CronState["Disabled"] = "disabled";
|
|
142
|
-
})(CronState || (CronState = {}));
|
|
143
|
-
|
|
144
|
-
var SettingInterfaceType;
|
|
145
|
-
(function (SettingInterfaceType) {
|
|
146
|
-
SettingInterfaceType["RadioButton"] = "R";
|
|
147
|
-
SettingInterfaceType["InputBox"] = "I";
|
|
148
|
-
SettingInterfaceType["Textarea"] = "T";
|
|
149
|
-
SettingInterfaceType["Select"] = "D";
|
|
150
|
-
SettingInterfaceType["SelectMultiple"] = "W";
|
|
151
|
-
SettingInterfaceType["Date"] = "A";
|
|
152
|
-
SettingInterfaceType["File"] = "F";
|
|
153
|
-
SettingInterfaceType["Static"] = "S";
|
|
154
|
-
SettingInterfaceType["Password"] = "P";
|
|
155
|
-
SettingInterfaceType["Time"] = "M";
|
|
156
|
-
SettingInterfaceType["None"] = "N";
|
|
157
|
-
})(SettingInterfaceType || (SettingInterfaceType = {}));
|
|
158
|
-
|
|
159
|
-
var ApiLogState;
|
|
160
|
-
(function (ApiLogState) {
|
|
161
|
-
ApiLogState["Success"] = "success";
|
|
162
|
-
ApiLogState["Failed"] = "failed";
|
|
163
|
-
ApiLogState["Deleted"] = "deleted";
|
|
164
|
-
})(ApiLogState || (ApiLogState = {}));
|
|
165
|
-
|
|
166
|
-
var ProcessState;
|
|
167
|
-
(function (ProcessState) {
|
|
168
|
-
ProcessState["Queued"] = "Q";
|
|
169
|
-
ProcessState["Running"] = "R";
|
|
170
|
-
ProcessState["Completed"] = "C";
|
|
171
|
-
ProcessState["Killed"] = "K";
|
|
172
|
-
ProcessState["Deleted"] = "D";
|
|
173
|
-
ProcessState["Failed"] = "F";
|
|
174
|
-
})(ProcessState || (ProcessState = {}));
|
|
175
|
-
|
|
176
|
-
var CronLogState;
|
|
177
|
-
(function (CronLogState) {
|
|
178
|
-
CronLogState["Message"] = "message";
|
|
179
|
-
CronLogState["Disabled"] = "disabled";
|
|
180
|
-
CronLogState["Started"] = "started";
|
|
181
|
-
CronLogState["Running"] = "running";
|
|
182
|
-
CronLogState["Completed"] = "completed";
|
|
183
|
-
CronLogState["Failed"] = "failed";
|
|
184
|
-
CronLogState["Killed"] = "killed";
|
|
185
|
-
CronLogState["Queued"] = "queued";
|
|
186
|
-
CronLogState["Reset"] = "reset";
|
|
187
|
-
CronLogState["Stagnant"] = "stagnant";
|
|
188
|
-
CronLogState["LongRunning"] = "long_running";
|
|
189
|
-
})(CronLogState || (CronLogState = {}));
|
|
190
|
-
|
|
191
|
-
var CronLogStates = [
|
|
192
|
-
{ name: 'Message', value: CronLogState.Message, color: '#29B7FF' },
|
|
193
|
-
{ name: 'Disabled', value: CronLogState.Disabled, color: '#29B7FF' },
|
|
194
|
-
{ name: 'Started', value: CronLogState.Started, color: '#34BD43' },
|
|
195
|
-
{ name: 'Running', value: CronLogState.Running, color: '#34BD43' },
|
|
196
|
-
{ name: 'Completed', value: CronLogState.Completed, color: '#34BD43' },
|
|
197
|
-
{ name: 'Failed', value: CronLogState.Failed, color: '#FA7567' },
|
|
198
|
-
{ name: 'Killed', value: CronLogState.Killed, color: '#29B7FF' },
|
|
199
|
-
{ name: 'Queued', value: CronLogState.Queued, color: '#29B7FF' },
|
|
200
|
-
{ name: 'Reset', value: CronLogState.Reset, color: '#29B7FF' },
|
|
201
|
-
{ name: 'Stagnant', value: CronLogState.Stagnant, color: '#FA7567' },
|
|
202
|
-
{ name: 'Long Running', value: CronLogState.LongRunning, color: '#FA7567' },
|
|
203
|
-
];
|
|
204
|
-
|
|
205
|
-
var CronStates = [
|
|
206
|
-
{ name: 'Running', value: CronState.Running },
|
|
207
|
-
{ name: 'Idle', value: CronState.Idle },
|
|
208
|
-
{ name: 'Failed', value: CronState.Failed },
|
|
209
|
-
{ name: 'Queued', value: CronState.Queued },
|
|
210
|
-
{ name: 'Disabled', value: CronState.Disabled }
|
|
211
|
-
];
|
|
212
|
-
|
|
213
|
-
var ApiLogStates = [
|
|
214
|
-
{ name: 'Success', value: ApiLogState.Success },
|
|
215
|
-
{ name: 'Failed', value: ApiLogState.Failed },
|
|
216
|
-
{ name: 'Deleted', value: ApiLogState.Deleted }
|
|
217
|
-
];
|
|
218
|
-
|
|
219
|
-
var ProcessStates = [
|
|
220
|
-
{ name: 'Queued', value: ProcessState.Queued },
|
|
221
|
-
{ name: 'Running', value: ProcessState.Running },
|
|
222
|
-
{ name: 'Completed', value: ProcessState.Completed },
|
|
223
|
-
{ name: 'Killed', value: ProcessState.Killed },
|
|
224
|
-
{ name: 'Failed', value: ProcessState.Failed },
|
|
225
|
-
{ name: 'Deleted', value: ProcessState.Deleted }
|
|
226
|
-
];
|
|
227
|
-
|
|
228
|
-
var CronLogComponent = /** @class */ (function () {
|
|
229
|
-
function CronLogComponent(_data) {
|
|
230
|
-
this._data = _data;
|
|
231
|
-
this.CronLogStates = indexNameValue(CronLogStates);
|
|
232
|
-
this.CronLogStateColors = {};
|
|
233
|
-
}
|
|
234
|
-
CronLogComponent.prototype.ngOnInit = function () {
|
|
235
|
-
this.cronLog = this._data.cronLog;
|
|
236
|
-
this.CronLogStateColors = CronLogStates
|
|
237
|
-
.reduce(function (accum, cronLogState) {
|
|
238
|
-
accum[cronLogState.value] = cronLogState.color;
|
|
239
|
-
return accum;
|
|
240
|
-
}, {});
|
|
241
|
-
};
|
|
242
|
-
CronLogComponent.ctorParameters = function () { return [
|
|
243
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
244
|
-
]; };
|
|
245
|
-
CronLogComponent = __decorate([
|
|
246
|
-
Component({
|
|
247
|
-
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",
|
|
248
|
-
styles: [".message{white-space:pre-line}.row{display:flex;flex-wrap:wrap}.row fs-label-field:not(:last-child){margin-right:40px}"]
|
|
249
|
-
}),
|
|
250
|
-
__param(0, Inject(MAT_DIALOG_DATA)),
|
|
251
|
-
__metadata("design:paramtypes", [Object])
|
|
252
|
-
], CronLogComponent);
|
|
253
|
-
return CronLogComponent;
|
|
254
|
-
}());
|
|
255
|
-
|
|
256
|
-
var CronComponent = /** @class */ (function () {
|
|
257
|
-
function CronComponent(_data, _dialog, _cdRef) {
|
|
258
|
-
this._data = _data;
|
|
259
|
-
this._dialog = _dialog;
|
|
260
|
-
this._cdRef = _cdRef;
|
|
261
|
-
this.tabIndex = 0;
|
|
262
|
-
this.CronStates = indexNameValue(CronStates);
|
|
263
|
-
this.CronLogStates = indexNameValue(CronLogStates);
|
|
264
|
-
this.CronLogStateColors = {};
|
|
265
|
-
}
|
|
266
|
-
CronComponent.prototype.ngOnInit = function () {
|
|
267
|
-
this.load();
|
|
268
|
-
this.CronLogStateColors = CronLogStates
|
|
269
|
-
.reduce(function (accum, cronLogState) {
|
|
270
|
-
accum[cronLogState.value] = cronLogState.color;
|
|
271
|
-
return accum;
|
|
272
|
-
}, {});
|
|
273
|
-
};
|
|
274
|
-
CronComponent.prototype.cronLogOpen = function (cronLog) {
|
|
275
|
-
this._dialog.open(CronLogComponent, {
|
|
276
|
-
data: {
|
|
277
|
-
cronLog: cronLog,
|
|
278
|
-
},
|
|
279
|
-
width: '85%'
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
CronComponent.prototype.cronActionClick = function (cronAction) {
|
|
283
|
-
var _this = this;
|
|
284
|
-
cronAction.action(this.cron)
|
|
285
|
-
.subscribe(function () {
|
|
286
|
-
_this.load();
|
|
287
|
-
});
|
|
288
|
-
};
|
|
289
|
-
CronComponent.prototype.selectedIndexChange = function (index) {
|
|
290
|
-
this.tabIndex = index;
|
|
291
|
-
};
|
|
292
|
-
CronComponent.prototype.load = function () {
|
|
293
|
-
var _this = this;
|
|
294
|
-
this._data.loadCron(this._data.cron)
|
|
295
|
-
.subscribe(function (cron) {
|
|
296
|
-
_this.cron = __assign(__assign({}, _this._data.cron), cron);
|
|
297
|
-
if (_this._data.loadCronLogs) {
|
|
298
|
-
_this.config = {
|
|
299
|
-
filters: [
|
|
300
|
-
{
|
|
301
|
-
type: ItemType.Select,
|
|
302
|
-
name: 'state',
|
|
303
|
-
label: 'Status',
|
|
304
|
-
values: __spread([
|
|
305
|
-
{ name: 'All', value: null }
|
|
306
|
-
], CronLogStates),
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
type: ItemType.DateRange,
|
|
310
|
-
name: 'date',
|
|
311
|
-
label: ['From Date', 'To Date'],
|
|
312
|
-
},
|
|
313
|
-
],
|
|
314
|
-
fetch: function (query) {
|
|
315
|
-
query = __assign(__assign({}, query), { cronId: _this.cron.id });
|
|
316
|
-
return _this._data.loadCronLogs(query);
|
|
317
|
-
},
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
_this.cronActions = _this._data.cronActions
|
|
321
|
-
.filter(function (cronLogAction) {
|
|
322
|
-
return cronLogAction.show(_this.cron);
|
|
323
|
-
});
|
|
324
|
-
_this._cdRef.markForCheck();
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
|
-
CronComponent.ctorParameters = function () { return [
|
|
328
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
329
|
-
{ type: MatDialog },
|
|
330
|
-
{ type: ChangeDetectorRef }
|
|
331
|
-
]; };
|
|
332
|
-
CronComponent = __decorate([
|
|
333
|
-
Component({
|
|
334
|
-
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 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",
|
|
335
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
336
|
-
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}"]
|
|
337
|
-
}),
|
|
338
|
-
__param(0, Inject(MAT_DIALOG_DATA)),
|
|
339
|
-
__metadata("design:paramtypes", [Object, MatDialog,
|
|
340
|
-
ChangeDetectorRef])
|
|
341
|
-
], CronComponent);
|
|
342
|
-
return CronComponent;
|
|
343
|
-
}());
|
|
344
|
-
|
|
345
|
-
var CronsComponent = /** @class */ (function () {
|
|
346
|
-
function CronsComponent(_message, _dialog) {
|
|
347
|
-
this._message = _message;
|
|
348
|
-
this._dialog = _dialog;
|
|
349
|
-
this.config = null;
|
|
350
|
-
this.cronStates = indexNameValue(CronStates);
|
|
351
|
-
}
|
|
352
|
-
CronsComponent.prototype.ngOnInit = function () {
|
|
353
|
-
this._configList();
|
|
354
|
-
};
|
|
355
|
-
CronsComponent.prototype._configList = function () {
|
|
356
|
-
var _this = this;
|
|
357
|
-
this.config = {
|
|
358
|
-
paging: false,
|
|
359
|
-
filters: [
|
|
360
|
-
{
|
|
361
|
-
type: ItemType.Keyword,
|
|
362
|
-
name: 'keyword',
|
|
363
|
-
label: 'Search'
|
|
364
|
-
}
|
|
365
|
-
],
|
|
366
|
-
rowActions: this.getCronActions()
|
|
367
|
-
.map(function (rowAction) {
|
|
368
|
-
return __assign(__assign({}, rowAction), { click: function (cron) {
|
|
369
|
-
rowAction.action(cron)
|
|
370
|
-
.subscribe();
|
|
371
|
-
} });
|
|
372
|
-
}),
|
|
373
|
-
fetch: function (query) {
|
|
374
|
-
query.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
375
|
-
return _this.loadCrons(query)
|
|
376
|
-
.pipe(map(function (response) { return ({ data: response }); }));
|
|
377
|
-
},
|
|
378
|
-
};
|
|
379
|
-
if (this.bulk) {
|
|
380
|
-
this.config.selection = {
|
|
381
|
-
selectAll: false,
|
|
382
|
-
actions: [
|
|
383
|
-
{
|
|
384
|
-
type: SelectionActionType.Action,
|
|
385
|
-
name: 'disable',
|
|
386
|
-
label: 'Disable'
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
type: SelectionActionType.Action,
|
|
390
|
-
name: 'enable',
|
|
391
|
-
label: 'Enable'
|
|
392
|
-
},
|
|
393
|
-
],
|
|
394
|
-
actionSelected: function (action) {
|
|
395
|
-
return _this.bulk(action.action.name, action.selected)
|
|
396
|
-
.pipe(tap(function () {
|
|
397
|
-
_this.list.reload();
|
|
398
|
-
_this._message.success('Applied Changes');
|
|
399
|
-
}));
|
|
400
|
-
},
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
CronsComponent.prototype.open = function (cron) {
|
|
405
|
-
this._dialog.open(CronComponent, {
|
|
406
|
-
data: {
|
|
407
|
-
cron: cron,
|
|
408
|
-
loadCronLogs: this.loadCronLogs,
|
|
409
|
-
loadCron: this.loadCron,
|
|
410
|
-
cronActions: this.getCronActions(),
|
|
411
|
-
},
|
|
412
|
-
width: '85%'
|
|
413
|
-
});
|
|
414
|
-
};
|
|
415
|
-
CronsComponent.prototype.getCronActions = function () {
|
|
416
|
-
var _this = this;
|
|
417
|
-
return [
|
|
418
|
-
{
|
|
419
|
-
action: function (data) {
|
|
420
|
-
return _this.queue(data)
|
|
421
|
-
.pipe(tap(function () {
|
|
422
|
-
_this._message.success('Queued cron');
|
|
423
|
-
_this.list.reload();
|
|
424
|
-
}));
|
|
425
|
-
},
|
|
426
|
-
label: 'Queue',
|
|
427
|
-
show: function (cron) {
|
|
428
|
-
return cron.state === CronState.Idle || cron.state === CronState.Failed;
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
action: function (data) {
|
|
433
|
-
return _this.run(data)
|
|
434
|
-
.pipe(tap(function () {
|
|
435
|
-
_this._message.success('Cron ran');
|
|
436
|
-
_this.list.reload();
|
|
437
|
-
}));
|
|
438
|
-
},
|
|
439
|
-
label: 'Run',
|
|
440
|
-
show: function (cron) {
|
|
441
|
-
return cron.state === CronState.Idle || cron.state === CronState.Failed;
|
|
442
|
-
},
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
action: function (data) {
|
|
446
|
-
return _this.enable(data)
|
|
447
|
-
.pipe(tap(function () {
|
|
448
|
-
_this._message.success('Enabled cron');
|
|
449
|
-
_this.list.reload();
|
|
450
|
-
}));
|
|
451
|
-
},
|
|
452
|
-
label: 'Enable',
|
|
453
|
-
show: function (cron) {
|
|
454
|
-
return cron.state === CronState.Disabled;
|
|
455
|
-
},
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
action: function (data) {
|
|
459
|
-
return _this.disable(data)
|
|
460
|
-
.pipe(tap(function () {
|
|
461
|
-
_this._message.success('Disabled cron');
|
|
462
|
-
_this.list.reload();
|
|
463
|
-
}));
|
|
464
|
-
},
|
|
465
|
-
label: 'Disable',
|
|
466
|
-
show: function (cron) {
|
|
467
|
-
return cron.state === CronState.Idle || cron.state === CronState.Failed;
|
|
468
|
-
},
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
action: function (data) {
|
|
472
|
-
return _this.kill(data)
|
|
473
|
-
.pipe(tap(function () {
|
|
474
|
-
_this._message.success('Killed cron');
|
|
475
|
-
_this.list.reload();
|
|
476
|
-
}));
|
|
477
|
-
},
|
|
478
|
-
label: 'Kill',
|
|
479
|
-
show: function (cron) {
|
|
480
|
-
return cron.state === CronState.Running;
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
|
-
];
|
|
484
|
-
};
|
|
485
|
-
CronsComponent.ctorParameters = function () { return [
|
|
486
|
-
{ type: FsMessage },
|
|
487
|
-
{ type: MatDialog }
|
|
488
|
-
]; };
|
|
489
|
-
__decorate([
|
|
490
|
-
ViewChild(FsListComponent, { static: true }),
|
|
491
|
-
__metadata("design:type", FsListComponent)
|
|
492
|
-
], CronsComponent.prototype, "list", void 0);
|
|
493
|
-
__decorate([
|
|
494
|
-
Input(),
|
|
495
|
-
__metadata("design:type", Function)
|
|
496
|
-
], CronsComponent.prototype, "enable", void 0);
|
|
497
|
-
__decorate([
|
|
498
|
-
Input(),
|
|
499
|
-
__metadata("design:type", Function)
|
|
500
|
-
], CronsComponent.prototype, "disable", void 0);
|
|
501
|
-
__decorate([
|
|
502
|
-
Input(),
|
|
503
|
-
__metadata("design:type", Function)
|
|
504
|
-
], CronsComponent.prototype, "kill", void 0);
|
|
505
|
-
__decorate([
|
|
506
|
-
Input(),
|
|
507
|
-
__metadata("design:type", Function)
|
|
508
|
-
], CronsComponent.prototype, "queue", void 0);
|
|
509
|
-
__decorate([
|
|
510
|
-
Input(),
|
|
511
|
-
__metadata("design:type", Function)
|
|
512
|
-
], CronsComponent.prototype, "run", void 0);
|
|
513
|
-
__decorate([
|
|
514
|
-
Input(),
|
|
515
|
-
__metadata("design:type", Function)
|
|
516
|
-
], CronsComponent.prototype, "loadCrons", void 0);
|
|
517
|
-
__decorate([
|
|
518
|
-
Input(),
|
|
519
|
-
__metadata("design:type", Function)
|
|
520
|
-
], CronsComponent.prototype, "loadCron", void 0);
|
|
521
|
-
__decorate([
|
|
522
|
-
Input(),
|
|
523
|
-
__metadata("design:type", Function)
|
|
524
|
-
], CronsComponent.prototype, "loadCronLogs", void 0);
|
|
525
|
-
__decorate([
|
|
526
|
-
Input(),
|
|
527
|
-
__metadata("design:type", Function)
|
|
528
|
-
], CronsComponent.prototype, "bulk", void 0);
|
|
529
|
-
CronsComponent = __decorate([
|
|
530
|
-
Component({
|
|
531
|
-
selector: 'fs-system-crons',
|
|
532
|
-
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>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{cronStates[row.state]}}\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><small *ngIf=\"row.duration\">Duration: {{ row.duration | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
|
|
533
|
-
styles: [""]
|
|
534
|
-
}),
|
|
535
|
-
__metadata("design:paramtypes", [FsMessage,
|
|
536
|
-
MatDialog])
|
|
537
|
-
], CronsComponent);
|
|
538
|
-
return CronsComponent;
|
|
539
|
-
}());
|
|
540
|
-
|
|
541
|
-
var SettingsComponent = /** @class */ (function () {
|
|
542
|
-
function SettingsComponent(_message, _clipboardService, _prompt, _cdRef) {
|
|
543
|
-
this._message = _message;
|
|
544
|
-
this._clipboardService = _clipboardService;
|
|
545
|
-
this._prompt = _prompt;
|
|
546
|
-
this._cdRef = _cdRef;
|
|
547
|
-
this.fileRemove = new EventEmitter();
|
|
548
|
-
this.fileSelect = new EventEmitter();
|
|
549
|
-
this.groupedSettings = [];
|
|
550
|
-
this.groups = [];
|
|
551
|
-
this.SettingInterfaceType = SettingInterfaceType;
|
|
552
|
-
}
|
|
553
|
-
SettingsComponent.prototype.ngOnInit = function () {
|
|
554
|
-
var _this = this;
|
|
555
|
-
this.loadSettings()
|
|
556
|
-
.subscribe(function (settings) {
|
|
557
|
-
settings = settings
|
|
558
|
-
.filter(function (setting) {
|
|
559
|
-
return setting.interfaceType !== SettingInterfaceType.None;
|
|
560
|
-
})
|
|
561
|
-
.map(function (setting) {
|
|
562
|
-
switch (setting.interfaceType) {
|
|
563
|
-
case SettingInterfaceType.Date:
|
|
564
|
-
case SettingInterfaceType.Time:
|
|
565
|
-
setting.value = parse(setting.value);
|
|
566
|
-
case SettingInterfaceType.SelectMultiple:
|
|
567
|
-
setting.value = Array.isArray(setting.value) ? setting.value : [];
|
|
568
|
-
break;
|
|
569
|
-
}
|
|
570
|
-
return setting;
|
|
571
|
-
});
|
|
572
|
-
_this.groupedSettings = groupBy(settings, function (item) {
|
|
573
|
-
return item.group;
|
|
574
|
-
});
|
|
575
|
-
_this.groups = Object.keys(_this.groupedSettings);
|
|
576
|
-
_this._cdRef.markForCheck();
|
|
577
|
-
});
|
|
578
|
-
};
|
|
579
|
-
SettingsComponent.prototype.export = function (event, settings) {
|
|
580
|
-
event.stopPropagation();
|
|
581
|
-
var data = settings.map(function (setting) {
|
|
582
|
-
return {
|
|
583
|
-
name: setting.name,
|
|
584
|
-
value: setting.value,
|
|
585
|
-
group: setting.group,
|
|
586
|
-
};
|
|
587
|
-
});
|
|
588
|
-
this._clipboardService.copy(JSON.stringify(data));
|
|
589
|
-
this._message.success('Copied to clipboard');
|
|
590
|
-
};
|
|
591
|
-
SettingsComponent.prototype.import = function (event, group) {
|
|
592
|
-
var _this = this;
|
|
593
|
-
event.stopPropagation();
|
|
594
|
-
this._prompt.input({
|
|
595
|
-
label: 'JSON Import',
|
|
596
|
-
title: 'Import Settings',
|
|
597
|
-
commitLabel: 'Import',
|
|
598
|
-
required: true,
|
|
599
|
-
}).subscribe(function (value) {
|
|
600
|
-
if (value) {
|
|
601
|
-
try {
|
|
602
|
-
var settings_1 = _this.groupedSettings[group];
|
|
603
|
-
var data = JSON.parse(value);
|
|
604
|
-
data.forEach(function (item) {
|
|
605
|
-
var setting = settings_1.find(function (s) {
|
|
606
|
-
return item.name === s.name;
|
|
607
|
-
});
|
|
608
|
-
if (setting) {
|
|
609
|
-
Object.assign(setting, item);
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
_this._cdRef.markForCheck();
|
|
613
|
-
}
|
|
614
|
-
catch (e) {
|
|
615
|
-
_this._message.error(e);
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
SettingsComponent.prototype.saveGroup = function (group) {
|
|
621
|
-
var _this = this;
|
|
622
|
-
var settings = this.groupedSettings[group];
|
|
623
|
-
var values = reduce(settings, function (result, value, key) {
|
|
624
|
-
return (result[value.name] = value.value, result);
|
|
625
|
-
}, {});
|
|
626
|
-
this.save(group, values)
|
|
627
|
-
.subscribe(function () {
|
|
628
|
-
_this._message.success('Changes Saved');
|
|
629
|
-
});
|
|
630
|
-
};
|
|
631
|
-
SettingsComponent.ctorParameters = function () { return [
|
|
632
|
-
{ type: FsMessage },
|
|
633
|
-
{ type: ClipboardService },
|
|
634
|
-
{ type: FsPrompt },
|
|
635
|
-
{ type: ChangeDetectorRef }
|
|
636
|
-
]; };
|
|
637
|
-
__decorate([
|
|
638
|
-
Input(),
|
|
639
|
-
__metadata("design:type", Function)
|
|
640
|
-
], SettingsComponent.prototype, "loadSettings", void 0);
|
|
641
|
-
__decorate([
|
|
642
|
-
Input(),
|
|
643
|
-
__metadata("design:type", Function)
|
|
644
|
-
], SettingsComponent.prototype, "save", void 0);
|
|
645
|
-
__decorate([
|
|
646
|
-
Output(),
|
|
647
|
-
__metadata("design:type", Object)
|
|
648
|
-
], SettingsComponent.prototype, "fileRemove", void 0);
|
|
649
|
-
__decorate([
|
|
650
|
-
Output(),
|
|
651
|
-
__metadata("design:type", Object)
|
|
652
|
-
], SettingsComponent.prototype, "fileSelect", void 0);
|
|
653
|
-
SettingsComponent = __decorate([
|
|
654
|
-
Component({
|
|
655
|
-
selector: 'fs-system-settings',
|
|
656
|
-
template: "\r\n<mat-accordion>\r\n <mat-expansion-panel hideToggle *ngFor=\"let group of groups\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n <div class=\"title-row\">\r\n <div class=\"title\">{{group || 'General'}}</div>\r\n <div class=\"actions\">\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Export ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"export($event, groupedSettings[group])\">\r\n <mat-icon>cloud_download</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n [matTooltip]=\"'Import ' + (group || 'General') + ' Settings'\"\r\n mat-icon-button\r\n (click)=\"import($event, group)\">\r\n <mat-icon>cloud_upload</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n\r\n <div hideToggle *ngFor=\"let setting of groupedSettings[group]\">\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\"\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.InputBox\">\r\n <input\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Textarea\">\r\n <textarea\r\n matInput\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n </textarea>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Select || setting.interfaceType===SettingInterfaceType.SelectMultiple\">\r\n <mat-select\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [multiple]=\"setting.interfaceType===SettingInterfaceType.SelectMultiple\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-option *ngFor=\"let item of setting.values | keyNameValue\" [value]=\"item.value\">\r\n {{item.name}}\r\n </mat-option>\r\n </mat-select>\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Date\">\r\n <input\r\n matInput\r\n fsDatePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <mat-form-field \r\n class=\"full-width form-field-multiline-subscript\" \r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.Time\">\r\n <input\r\n matInput\r\n fsTimePicker\r\n [placeholder]=\"setting.label\"\r\n [(ngModel)]=\"setting.value\"\r\n [name]=\"'setting' + setting.id\">\r\n <mat-hint>{{setting.instruction}}</mat-hint>\r\n </mat-form-field>\r\n\r\n <fs-file-picker\r\n *ngIf=\"setting.interfaceType===SettingInterfaceType.File\"\r\n [allowRemove]=\"true\"\r\n [allowDownload]=\"true\"\r\n (select)=\"fileSelect.emit({ setting: setting, file: $event.file })\"\r\n (remove)=\"fileRemove.emit(setting)\"\r\n [url]=\"setting.value\">\r\n <div fsFileLabel>{{setting.label}}</div>\r\n </fs-file-picker>\r\n </div>\r\n\r\n <button mat-raised-button color=\"primary\" type=\"button\" (click)=\"saveGroup(group)\">Save</button>\r\n\r\n </mat-expansion-panel>\r\n\r\n</mat-accordion>\r\n",
|
|
657
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
658
|
-
styles: [".mat-expansion-panel-header{font-size:19px}.full-width{width:100%}.title-row{flex-direction:row;box-sizing:border-box;display:flex;place-content:center flex-start;align-items:center;width:100%}.title-row .title{display:flex;flex:1}:host ::ng-deep .mat-expansion-panel-header-title{margin:0}:host ::ng-deep .mat-expansion-panel .actions{display:none}:host ::ng-deep .mat-expansion-panel.mat-expanded .actions{display:block}"]
|
|
659
|
-
}),
|
|
660
|
-
__metadata("design:paramtypes", [FsMessage,
|
|
661
|
-
ClipboardService,
|
|
662
|
-
FsPrompt,
|
|
663
|
-
ChangeDetectorRef])
|
|
664
|
-
], SettingsComponent);
|
|
665
|
-
return SettingsComponent;
|
|
666
|
-
}());
|
|
667
|
-
|
|
668
|
-
var FileManagerComponent = /** @class */ (function () {
|
|
669
|
-
function FileManagerComponent() {
|
|
670
|
-
}
|
|
671
|
-
FileManagerComponent.prototype.ngOnInit = function () {
|
|
672
|
-
this._configFileManager();
|
|
673
|
-
};
|
|
674
|
-
FileManagerComponent.prototype._configFileManager = function () {
|
|
675
|
-
var _this = this;
|
|
676
|
-
this.config = {
|
|
677
|
-
fetch: function (path) {
|
|
678
|
-
return _this.fetch(path);
|
|
679
|
-
},
|
|
680
|
-
deleteFile: function (path) {
|
|
681
|
-
return _this.deleteFile(path);
|
|
682
|
-
},
|
|
683
|
-
deleteDirectory: function (path) {
|
|
684
|
-
return _this.deleteDirectory(path);
|
|
685
|
-
},
|
|
686
|
-
createDirectory: function (path) {
|
|
687
|
-
return _this.createDirectory(path);
|
|
688
|
-
},
|
|
689
|
-
download: function (path) {
|
|
690
|
-
return _this.download(path);
|
|
691
|
-
},
|
|
692
|
-
upload: function (path, file) {
|
|
693
|
-
return _this.upload(path, file);
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
|
-
};
|
|
697
|
-
__decorate([
|
|
698
|
-
Input(),
|
|
699
|
-
__metadata("design:type", Function)
|
|
700
|
-
], FileManagerComponent.prototype, "fetch", void 0);
|
|
701
|
-
__decorate([
|
|
702
|
-
Input(),
|
|
703
|
-
__metadata("design:type", Function)
|
|
704
|
-
], FileManagerComponent.prototype, "deleteFile", void 0);
|
|
705
|
-
__decorate([
|
|
706
|
-
Input(),
|
|
707
|
-
__metadata("design:type", Function)
|
|
708
|
-
], FileManagerComponent.prototype, "deleteDirectory", void 0);
|
|
709
|
-
__decorate([
|
|
710
|
-
Input(),
|
|
711
|
-
__metadata("design:type", Function)
|
|
712
|
-
], FileManagerComponent.prototype, "createDirectory", void 0);
|
|
713
|
-
__decorate([
|
|
714
|
-
Input(),
|
|
715
|
-
__metadata("design:type", Function)
|
|
716
|
-
], FileManagerComponent.prototype, "download", void 0);
|
|
717
|
-
__decorate([
|
|
718
|
-
Input(),
|
|
719
|
-
__metadata("design:type", Function)
|
|
720
|
-
], FileManagerComponent.prototype, "upload", void 0);
|
|
721
|
-
FileManagerComponent = __decorate([
|
|
722
|
-
Component({
|
|
723
|
-
selector: 'fs-system-file-manager',
|
|
724
|
-
template: "<fs-file-manager [config]=\"config\"></fs-file-manager>",
|
|
725
|
-
styles: [""]
|
|
726
|
-
}),
|
|
727
|
-
__metadata("design:paramtypes", [])
|
|
728
|
-
], FileManagerComponent);
|
|
729
|
-
return FileManagerComponent;
|
|
730
|
-
}());
|
|
731
|
-
|
|
732
|
-
var KeyNameValuePipe = /** @class */ (function () {
|
|
733
|
-
function KeyNameValuePipe() {
|
|
734
|
-
}
|
|
735
|
-
KeyNameValuePipe.prototype.transform = function (values) {
|
|
736
|
-
return Object.keys(values).map(function (key) {
|
|
737
|
-
return { value: key, name: values[key] };
|
|
738
|
-
});
|
|
739
|
-
};
|
|
740
|
-
KeyNameValuePipe = __decorate([
|
|
741
|
-
Pipe({
|
|
742
|
-
name: 'keyNameValue'
|
|
743
|
-
}),
|
|
744
|
-
Injectable()
|
|
745
|
-
], KeyNameValuePipe);
|
|
746
|
-
return KeyNameValuePipe;
|
|
747
|
-
}());
|
|
748
|
-
|
|
749
|
-
var ProcessComponent = /** @class */ (function () {
|
|
750
|
-
function ProcessComponent(_dialogRef, data) {
|
|
751
|
-
this._dialogRef = _dialogRef;
|
|
752
|
-
this.data = data;
|
|
753
|
-
this.ProcessState = ProcessState;
|
|
754
|
-
}
|
|
755
|
-
ProcessComponent.prototype.ngOnInit = function () {
|
|
756
|
-
this.ProcessStates = indexNameValue(ProcessStates);
|
|
757
|
-
if (this.data.loadProcess) {
|
|
758
|
-
this.load();
|
|
759
|
-
}
|
|
760
|
-
else {
|
|
761
|
-
this.process = this.data.process;
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
ProcessComponent.prototype.load = function () {
|
|
765
|
-
var _this = this;
|
|
766
|
-
this.data.loadProcess(this.data.process)
|
|
767
|
-
.subscribe(function (process) {
|
|
768
|
-
_this.process = process;
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
ProcessComponent.ctorParameters = function () { return [
|
|
772
|
-
{ type: MatDialogRef },
|
|
773
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
774
|
-
]; };
|
|
775
|
-
ProcessComponent = __decorate([
|
|
776
|
-
Component({
|
|
777
|
-
template: "<fs-dialog *fsSkeleton=\"process\">\r\n <div mat-dialog-title>Process</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"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 fxLayout=\"row\" fxLayoutGap=\"20px\">\r\n\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 fxLayout=\"row\" fxLayoutGap=\"20px\">\r\n <fs-label-field>\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 mat-button [mat-dialog-close]=\"true\" color=\"primary\">Done</button>\r\n <button\r\n *ngIf=\"process.state===ProcessState.Running && data.loadProcess\"\r\n mat-button\r\n (click)=\"load()\">\r\n Reload\r\n </button>\r\n </mat-dialog-actions>\r\n</fs-dialog>\r\n",
|
|
778
|
-
styles: [":host ::ng-deep .log .field-content{white-space:pre-wrap;font-family:monospace;font-size:14px}"]
|
|
779
|
-
}),
|
|
780
|
-
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
781
|
-
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
782
|
-
], ProcessComponent);
|
|
783
|
-
return ProcessComponent;
|
|
784
|
-
}());
|
|
785
|
-
|
|
786
|
-
var ProcessesComponent = /** @class */ (function () {
|
|
787
|
-
function ProcessesComponent(_dialog, _message) {
|
|
788
|
-
this._dialog = _dialog;
|
|
789
|
-
this._message = _message;
|
|
790
|
-
this.actions = [];
|
|
791
|
-
this.config = null;
|
|
792
|
-
this.ProcessStates = indexNameValue(ProcessStates);
|
|
793
|
-
this.ProcessState = ProcessState;
|
|
794
|
-
this._destroy$ = new Subject();
|
|
795
|
-
}
|
|
796
|
-
ProcessesComponent.prototype.ngOnInit = function () {
|
|
797
|
-
this._configList();
|
|
798
|
-
};
|
|
799
|
-
ProcessesComponent.prototype._configList = function () {
|
|
800
|
-
var _this = this;
|
|
801
|
-
this.config = {
|
|
802
|
-
actions: [],
|
|
803
|
-
rowActions: [],
|
|
804
|
-
filters: [
|
|
805
|
-
{
|
|
806
|
-
type: ItemType.Keyword,
|
|
807
|
-
name: 'keyword',
|
|
808
|
-
label: 'Search'
|
|
809
|
-
},
|
|
810
|
-
{
|
|
811
|
-
type: ItemType.Select,
|
|
812
|
-
name: 'state',
|
|
813
|
-
label: 'Status',
|
|
814
|
-
values: ProcessStates
|
|
815
|
-
},
|
|
816
|
-
],
|
|
817
|
-
fetch: function (query) {
|
|
818
|
-
return _this.loadProcesses(query)
|
|
819
|
-
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
820
|
-
}
|
|
821
|
-
};
|
|
822
|
-
if (this.run) {
|
|
823
|
-
this.config.rowActions.push({
|
|
824
|
-
label: 'Run',
|
|
825
|
-
click: function (data) {
|
|
826
|
-
_this._message.info('Running process...');
|
|
827
|
-
_this.run(data)
|
|
828
|
-
.subscribe(function () {
|
|
829
|
-
_this.list.reload();
|
|
830
|
-
_this._message.success('Succesfully ran process');
|
|
831
|
-
});
|
|
832
|
-
setTimeout(function () {
|
|
833
|
-
_this.list.reload();
|
|
834
|
-
}, 500);
|
|
835
|
-
}
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
if (this.kill) {
|
|
839
|
-
this.config.rowActions.push({
|
|
840
|
-
label: 'Kill',
|
|
841
|
-
show: function (data) {
|
|
842
|
-
return !!data.pid;
|
|
843
|
-
},
|
|
844
|
-
click: function (data) {
|
|
845
|
-
_this._message.info('Killing process...');
|
|
846
|
-
_this.kill(data)
|
|
847
|
-
.subscribe(function () {
|
|
848
|
-
_this.list.reload();
|
|
849
|
-
_this._message.success('Succesfully killed process');
|
|
850
|
-
});
|
|
851
|
-
setTimeout(function () {
|
|
852
|
-
_this.list.reload();
|
|
853
|
-
}, 500);
|
|
854
|
-
}
|
|
855
|
-
});
|
|
856
|
-
}
|
|
857
|
-
if (this.delete) {
|
|
858
|
-
this.config.rowActions.push({
|
|
859
|
-
label: 'Delete',
|
|
860
|
-
click: function (data) {
|
|
861
|
-
_this.delete(data)
|
|
862
|
-
.subscribe(function () {
|
|
863
|
-
_this.list.reload();
|
|
864
|
-
_this._message.success('Deleted process');
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
this.actions.forEach(function (action) {
|
|
870
|
-
_this.config.actions.push({
|
|
871
|
-
primary: false,
|
|
872
|
-
label: action.label,
|
|
873
|
-
menu: action.menu,
|
|
874
|
-
click: function () {
|
|
875
|
-
if (action.click) {
|
|
876
|
-
action.click();
|
|
877
|
-
}
|
|
878
|
-
if (action.component) {
|
|
879
|
-
var dialogRef = _this._dialog.open(action.component, {
|
|
880
|
-
width: '800px'
|
|
881
|
-
});
|
|
882
|
-
dialogRef.afterClosed()
|
|
883
|
-
.pipe(takeUntil(_this._destroy$))
|
|
884
|
-
.subscribe(function (result) {
|
|
885
|
-
_this.list.reload();
|
|
886
|
-
});
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
});
|
|
890
|
-
});
|
|
891
|
-
};
|
|
892
|
-
ProcessesComponent.prototype.open = function (process) {
|
|
893
|
-
this._dialog.open(ProcessComponent, {
|
|
894
|
-
data: {
|
|
895
|
-
process: process,
|
|
896
|
-
loadProcess: this.loadProcess,
|
|
897
|
-
},
|
|
898
|
-
width: '85%'
|
|
899
|
-
});
|
|
900
|
-
};
|
|
901
|
-
ProcessesComponent.prototype.ngOnDestroy = function () {
|
|
902
|
-
this._destroy$.next();
|
|
903
|
-
this._destroy$.complete();
|
|
904
|
-
};
|
|
905
|
-
ProcessesComponent.ctorParameters = function () { return [
|
|
906
|
-
{ type: MatDialog },
|
|
907
|
-
{ type: FsMessage }
|
|
908
|
-
]; };
|
|
909
|
-
__decorate([
|
|
910
|
-
ViewChild(FsListComponent),
|
|
911
|
-
__metadata("design:type", FsListComponent)
|
|
912
|
-
], ProcessesComponent.prototype, "list", void 0);
|
|
913
|
-
__decorate([
|
|
914
|
-
Input(),
|
|
915
|
-
__metadata("design:type", Function)
|
|
916
|
-
], ProcessesComponent.prototype, "loadProcesses", void 0);
|
|
917
|
-
__decorate([
|
|
918
|
-
Input(),
|
|
919
|
-
__metadata("design:type", Function)
|
|
920
|
-
], ProcessesComponent.prototype, "loadProcess", void 0);
|
|
921
|
-
__decorate([
|
|
922
|
-
Input(),
|
|
923
|
-
__metadata("design:type", Function)
|
|
924
|
-
], ProcessesComponent.prototype, "run", void 0);
|
|
925
|
-
__decorate([
|
|
926
|
-
Input(),
|
|
927
|
-
__metadata("design:type", Function)
|
|
928
|
-
], ProcessesComponent.prototype, "kill", void 0);
|
|
929
|
-
__decorate([
|
|
930
|
-
Input(),
|
|
931
|
-
__metadata("design:type", Function)
|
|
932
|
-
], ProcessesComponent.prototype, "delete", void 0);
|
|
933
|
-
__decorate([
|
|
934
|
-
Input(),
|
|
935
|
-
__metadata("design:type", Function)
|
|
936
|
-
], ProcessesComponent.prototype, "download", void 0);
|
|
937
|
-
__decorate([
|
|
938
|
-
Input(),
|
|
939
|
-
__metadata("design:type", Array)
|
|
940
|
-
], ProcessesComponent.prototype, "actions", void 0);
|
|
941
|
-
ProcessesComponent = __decorate([
|
|
942
|
-
Component({
|
|
943
|
-
selector: 'fs-system-processes',
|
|
944
|
-
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a (click)=\"open(row)\">{{row.prettyName}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ProcessStates[row.state]}}\r\n <small>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.percent\">Complete: {{ row.percent }}%</div>\r\n <div *ngIf=\"row.state===ProcessState.Completed && row.filename\">Download: <a href=\"javascript:;\" (click)=\"download(row)\">{{ row.filename }}</a></div>\r\n <div *ngIf=\"row.pid\">PID: {{ row.pid }}</div>\r\n <div *ngIf=\"row.state===ProcessState.Running && row.notify\">Notify: {{ row.notify }}</div>\r\n </small>\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Duration</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{ row.duration | fsDateDuration: {hours: true, minutes: true, seconds: true} }}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Completed</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.endDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
|
|
945
|
-
styles: [""]
|
|
946
|
-
}),
|
|
947
|
-
__metadata("design:paramtypes", [MatDialog,
|
|
948
|
-
FsMessage])
|
|
949
|
-
], ProcessesComponent);
|
|
950
|
-
return ProcessesComponent;
|
|
951
|
-
}());
|
|
952
|
-
|
|
953
|
-
var ServerLogComponent = /** @class */ (function () {
|
|
954
|
-
function ServerLogComponent(data) {
|
|
955
|
-
this.data = data;
|
|
956
|
-
}
|
|
957
|
-
ServerLogComponent.prototype.ngOnInit = function () {
|
|
958
|
-
if (this.data.log) {
|
|
959
|
-
this.log = this.data.log;
|
|
960
|
-
try {
|
|
961
|
-
this.log.backtrace = JSON.parse(this.log.backtrace);
|
|
962
|
-
}
|
|
963
|
-
catch (e) { }
|
|
964
|
-
try {
|
|
965
|
-
this.log.server = JSON.parse(this.log.server);
|
|
966
|
-
}
|
|
967
|
-
catch (e) { }
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
ServerLogComponent.ctorParameters = function () { return [
|
|
971
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
972
|
-
]; };
|
|
973
|
-
ServerLogComponent = __decorate([
|
|
974
|
-
Component({
|
|
975
|
-
template: "<fs-dialog *fsSkeleton=\"log\">\r\n <div mat-dialog-title>Log</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"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",
|
|
976
|
-
styles: [""]
|
|
977
|
-
}),
|
|
978
|
-
__param(0, Inject(MAT_DIALOG_DATA)),
|
|
979
|
-
__metadata("design:paramtypes", [Object])
|
|
980
|
-
], ServerLogComponent);
|
|
981
|
-
return ServerLogComponent;
|
|
982
|
-
}());
|
|
983
|
-
|
|
984
|
-
var ServerLogsComponent = /** @class */ (function () {
|
|
985
|
-
function ServerLogsComponent(_dialog) {
|
|
986
|
-
this._dialog = _dialog;
|
|
987
|
-
this.config = null;
|
|
988
|
-
this.logTypes = [];
|
|
989
|
-
}
|
|
990
|
-
ServerLogsComponent.prototype.ngOnInit = function () {
|
|
991
|
-
this._configList();
|
|
992
|
-
};
|
|
993
|
-
ServerLogsComponent.prototype._configList = function () {
|
|
994
|
-
var _this = this;
|
|
995
|
-
this.config = {
|
|
996
|
-
filters: [
|
|
997
|
-
{
|
|
998
|
-
type: ItemType.Keyword,
|
|
999
|
-
name: 'keyword',
|
|
1000
|
-
label: 'Search'
|
|
1001
|
-
}
|
|
1002
|
-
],
|
|
1003
|
-
fetch: function (query) {
|
|
1004
|
-
return _this.loadLogs(query)
|
|
1005
|
-
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1006
|
-
}
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
ServerLogsComponent.prototype.open = function (log) {
|
|
1010
|
-
this._dialog.open(ServerLogComponent, {
|
|
1011
|
-
data: { log: log },
|
|
1012
|
-
width: '85%'
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
1015
|
-
ServerLogsComponent.ctorParameters = function () { return [
|
|
1016
|
-
{ type: MatDialog }
|
|
1017
|
-
]; };
|
|
1018
|
-
__decorate([
|
|
1019
|
-
ViewChild('list', { static: true }),
|
|
1020
|
-
__metadata("design:type", FsListComponent)
|
|
1021
|
-
], ServerLogsComponent.prototype, "list", void 0);
|
|
1022
|
-
__decorate([
|
|
1023
|
-
Input(),
|
|
1024
|
-
__metadata("design:type", Function)
|
|
1025
|
-
], ServerLogsComponent.prototype, "loadLogs", void 0);
|
|
1026
|
-
ServerLogsComponent = __decorate([
|
|
1027
|
-
Component({
|
|
1028
|
-
selector: 'fs-system-server-logs',
|
|
1029
|
-
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.message}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Type</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.type}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
|
|
1030
|
-
styles: [""]
|
|
1031
|
-
}),
|
|
1032
|
-
__metadata("design:paramtypes", [MatDialog])
|
|
1033
|
-
], ServerLogsComponent);
|
|
1034
|
-
return ServerLogsComponent;
|
|
1035
|
-
}());
|
|
1036
|
-
|
|
1037
|
-
var UpgradeLogsComponent = /** @class */ (function () {
|
|
1038
|
-
function UpgradeLogsComponent() {
|
|
1039
|
-
this.config = null;
|
|
1040
|
-
this.logTypes = [];
|
|
1041
|
-
}
|
|
1042
|
-
UpgradeLogsComponent.prototype.ngOnInit = function () {
|
|
1043
|
-
this._configList();
|
|
1044
|
-
};
|
|
1045
|
-
UpgradeLogsComponent.prototype._configList = function () {
|
|
1046
|
-
var _this = this;
|
|
1047
|
-
this.config = {
|
|
1048
|
-
paging: false,
|
|
1049
|
-
filters: [
|
|
1050
|
-
{
|
|
1051
|
-
type: ItemType.Keyword,
|
|
1052
|
-
name: 'keyword',
|
|
1053
|
-
label: 'Search'
|
|
1054
|
-
}
|
|
1055
|
-
],
|
|
1056
|
-
fetch: function (query) {
|
|
1057
|
-
return _this.loadUpgradeLogs(query)
|
|
1058
|
-
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
};
|
|
1062
|
-
__decorate([
|
|
1063
|
-
ViewChild(FsListComponent, { static: true }),
|
|
1064
|
-
__metadata("design:type", FsListComponent)
|
|
1065
|
-
], UpgradeLogsComponent.prototype, "list", void 0);
|
|
1066
|
-
__decorate([
|
|
1067
|
-
Input(),
|
|
1068
|
-
__metadata("design:type", Function)
|
|
1069
|
-
], UpgradeLogsComponent.prototype, "loadUpgradeLogs", void 0);
|
|
1070
|
-
UpgradeLogsComponent = __decorate([
|
|
1071
|
-
Component({
|
|
1072
|
-
selector: 'fs-system-upgrade-logs',
|
|
1073
|
-
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.name}}\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Function</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.function}}()\r\n </ng-template>\r\n </fs-list-column>\r\n\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>\r\n",
|
|
1074
|
-
styles: [""]
|
|
1075
|
-
})
|
|
1076
|
-
], UpgradeLogsComponent);
|
|
1077
|
-
return UpgradeLogsComponent;
|
|
1078
|
-
}());
|
|
1079
|
-
|
|
1080
|
-
var ApiLogComponent = /** @class */ (function () {
|
|
1081
|
-
function ApiLogComponent(_dialogRef, data) {
|
|
1082
|
-
this._dialogRef = _dialogRef;
|
|
1083
|
-
this.data = data;
|
|
1084
|
-
}
|
|
1085
|
-
ApiLogComponent.prototype.ngOnInit = function () {
|
|
1086
|
-
this.apiLogStates = indexNameValue(ApiLogStates);
|
|
1087
|
-
if (this.data.apiLog) {
|
|
1088
|
-
this.apiLog = this.data.apiLog;
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
ApiLogComponent.ctorParameters = function () { return [
|
|
1092
|
-
{ type: MatDialogRef },
|
|
1093
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
1094
|
-
]; };
|
|
1095
|
-
ApiLogComponent = __decorate([
|
|
1096
|
-
Component({
|
|
1097
|
-
template: "<fs-dialog *fsSkeleton=\"apiLog\">\r\n <div mat-dialog-title>API Log</div>\r\n <mat-dialog-content>\r\n <div fxLayout=\"column\">\r\n <fs-label-field>\r\n <fs-label>\r\n Type\r\n </fs-label>\r\n {{apiLog.type}}\r\n </fs-label-field>\r\n\r\n <fs-label-field>\r\n <fs-label>\r\n Status\r\n </fs-label>\r\n {{apiLogStates[apiLog.state]}}\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 {{apiLog.createDate|fsDateFormat: 'full-date-time'}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.length\">\r\n <fs-label>\r\n Duration\r\n </fs-label>\r\n {{ apiLog.length | fsDateDuration }}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.code\">\r\n <fs-label>\r\n Code\r\n </fs-label>\r\n {{apiLog.code}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.message\">\r\n <fs-label>\r\n Message\r\n </fs-label>\r\n {{apiLog.message}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.url\">\r\n <fs-label>\r\n URL\r\n </fs-label>\r\n {{apiLog.url}}\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.request\">\r\n <fs-label>\r\n Request\r\n </fs-label>\r\n <pre>{{apiLog.request|json}}</pre>\r\n </fs-label-field>\r\n\r\n <fs-label-field *ngIf=\"apiLog.response\">\r\n <fs-label>\r\n Response\r\n </fs-label>\r\n <pre>{{apiLog.response|json}}</pre>\r\n </fs-label-field>\r\n\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",
|
|
1098
|
-
styles: [""]
|
|
1099
|
-
}),
|
|
1100
|
-
__param(1, Inject(MAT_DIALOG_DATA)),
|
|
1101
|
-
__metadata("design:paramtypes", [MatDialogRef, Object])
|
|
1102
|
-
], ApiLogComponent);
|
|
1103
|
-
return ApiLogComponent;
|
|
1104
|
-
}());
|
|
1105
|
-
|
|
1106
|
-
var ApiLogsComponent = /** @class */ (function () {
|
|
1107
|
-
function ApiLogsComponent(_dialog) {
|
|
1108
|
-
this._dialog = _dialog;
|
|
1109
|
-
this.config = null;
|
|
1110
|
-
this.apiLogStates = indexNameValue(ApiLogStates);
|
|
1111
|
-
}
|
|
1112
|
-
ApiLogsComponent.prototype.ngOnInit = function () {
|
|
1113
|
-
this._configList();
|
|
1114
|
-
};
|
|
1115
|
-
ApiLogsComponent.prototype._configList = function () {
|
|
1116
|
-
var _this = this;
|
|
1117
|
-
this.config = {
|
|
1118
|
-
filters: [
|
|
1119
|
-
{
|
|
1120
|
-
type: ItemType.Keyword,
|
|
1121
|
-
name: 'keyword',
|
|
1122
|
-
label: 'Search'
|
|
1123
|
-
},
|
|
1124
|
-
{
|
|
1125
|
-
type: ItemType.Select,
|
|
1126
|
-
name: 'state',
|
|
1127
|
-
label: 'Status',
|
|
1128
|
-
values: ApiLogStates
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
name: 'createDate',
|
|
1132
|
-
type: ItemType.DateRange,
|
|
1133
|
-
label: ['From Date', 'To Date'],
|
|
1134
|
-
}
|
|
1135
|
-
],
|
|
1136
|
-
fetch: function (query) {
|
|
1137
|
-
Object.assign(query, {});
|
|
1138
|
-
return _this.loadApiLogs(query)
|
|
1139
|
-
.pipe(map(function (response) { return ({ data: response.data, paging: response.paging }); }));
|
|
1140
|
-
}
|
|
1141
|
-
};
|
|
1142
|
-
};
|
|
1143
|
-
ApiLogsComponent.prototype.open = function (apiLog) {
|
|
1144
|
-
this._dialog.open(ApiLogComponent, {
|
|
1145
|
-
data: { apiLog: apiLog },
|
|
1146
|
-
width: '85%'
|
|
1147
|
-
});
|
|
1148
|
-
};
|
|
1149
|
-
ApiLogsComponent.ctorParameters = function () { return [
|
|
1150
|
-
{ type: MatDialog }
|
|
1151
|
-
]; };
|
|
1152
|
-
__decorate([
|
|
1153
|
-
ViewChild(FsListComponent, { static: true }),
|
|
1154
|
-
__metadata("design:type", FsListComponent)
|
|
1155
|
-
], ApiLogsComponent.prototype, "list", void 0);
|
|
1156
|
-
__decorate([
|
|
1157
|
-
Input(),
|
|
1158
|
-
__metadata("design:type", Function)
|
|
1159
|
-
], ApiLogsComponent.prototype, "loadApiLogs", void 0);
|
|
1160
|
-
ApiLogsComponent = __decorate([
|
|
1161
|
-
Component({
|
|
1162
|
-
selector: 'fs-system-api-logs',
|
|
1163
|
-
template: "<fs-list [config]=\"config\">\r\n <fs-list-column>\r\n <ng-template fs-list-header>Name</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <a href=\"javascript:;\" (click)=\"open(row)\">{{row.type || 'Unknown'}}</a>\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Message</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.message}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Status</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{apiLogStates[row.state]}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column>\r\n <ng-template fs-list-header>Date</ng-template>\r\n <ng-template fs-list-cell let-row=\"row\">\r\n <fs-date-ago [date]=\"row.createDate\"></fs-date-ago>\r\n <div><small *ngIf=\"row.length\">Duration: {{ row.length | fsDateDuration }}</small></div>\r\n </ng-template>\r\n </fs-list-column>\r\n </fs-list>\r\n",
|
|
1164
|
-
styles: [""]
|
|
1165
|
-
}),
|
|
1166
|
-
__metadata("design:paramtypes", [MatDialog])
|
|
1167
|
-
], ApiLogsComponent);
|
|
1168
|
-
return ApiLogsComponent;
|
|
1169
|
-
}());
|
|
1170
|
-
|
|
1171
|
-
var InfoComponent = /** @class */ (function () {
|
|
1172
|
-
function InfoComponent() {
|
|
1173
|
-
}
|
|
1174
|
-
InfoComponent.prototype.ngAfterViewInit = function () {
|
|
1175
|
-
this._load();
|
|
1176
|
-
};
|
|
1177
|
-
InfoComponent.prototype._load = function () {
|
|
1178
|
-
var _this = this;
|
|
1179
|
-
this.load()
|
|
1180
|
-
.subscribe(function (info) {
|
|
1181
|
-
info += '<style>body { background: transparent; }</style>';
|
|
1182
|
-
var doc = _this.iframe.nativeElement.contentDocument || _this.iframe.nativeElement.contentWindow;
|
|
1183
|
-
doc.open();
|
|
1184
|
-
doc.write(info);
|
|
1185
|
-
doc.close();
|
|
1186
|
-
var scrollHeight = (_this.iframe.nativeElement.contentWindow.document.documentElement.scrollHeight + 100);
|
|
1187
|
-
_this.iframe.nativeElement.style.height = scrollHeight + "px";
|
|
1188
|
-
});
|
|
1189
|
-
};
|
|
1190
|
-
__decorate([
|
|
1191
|
-
ViewChild('iframe'),
|
|
1192
|
-
__metadata("design:type", ElementRef)
|
|
1193
|
-
], InfoComponent.prototype, "iframe", void 0);
|
|
1194
|
-
__decorate([
|
|
1195
|
-
Input(),
|
|
1196
|
-
__metadata("design:type", Function)
|
|
1197
|
-
], InfoComponent.prototype, "load", void 0);
|
|
1198
|
-
InfoComponent = __decorate([
|
|
1199
|
-
Component({
|
|
1200
|
-
selector: 'fs-system-info',
|
|
1201
|
-
template: "<iframe #iframe></iframe>\r\n",
|
|
1202
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1203
|
-
styles: ["iframe{width:100%;border:0}"]
|
|
1204
|
-
})
|
|
1205
|
-
], InfoComponent);
|
|
1206
|
-
return InfoComponent;
|
|
1207
|
-
}());
|
|
1208
|
-
|
|
1209
|
-
var FsSystemModule = /** @class */ (function () {
|
|
1210
|
-
function FsSystemModule() {
|
|
1211
|
-
}
|
|
1212
|
-
FsSystemModule_1 = FsSystemModule;
|
|
1213
|
-
FsSystemModule.forRoot = function (config) {
|
|
1214
|
-
return {
|
|
1215
|
-
ngModule: FsSystemModule_1,
|
|
1216
|
-
providers: [
|
|
1217
|
-
{ provide: FS_SYSTEM_CONFIG, useValue: config || {} },
|
|
1218
|
-
]
|
|
1219
|
-
};
|
|
1220
|
-
};
|
|
1221
|
-
var FsSystemModule_1;
|
|
1222
|
-
FsSystemModule = FsSystemModule_1 = __decorate([
|
|
1223
|
-
NgModule({
|
|
1224
|
-
imports: [
|
|
1225
|
-
CommonModule,
|
|
1226
|
-
FlexLayoutModule,
|
|
1227
|
-
FormsModule,
|
|
1228
|
-
MatButtonModule,
|
|
1229
|
-
MatExpansionModule,
|
|
1230
|
-
MatTooltipModule,
|
|
1231
|
-
MatIconModule,
|
|
1232
|
-
MatFormFieldModule,
|
|
1233
|
-
MatInputModule,
|
|
1234
|
-
MatSelectModule,
|
|
1235
|
-
MatDialogModule,
|
|
1236
|
-
MatTabsModule,
|
|
1237
|
-
FsDateModule,
|
|
1238
|
-
FsSkeletonModule,
|
|
1239
|
-
FsListModule,
|
|
1240
|
-
FsFileModule,
|
|
1241
|
-
FsFileManagerModule,
|
|
1242
|
-
FsLabelModule,
|
|
1243
|
-
FsDialogModule,
|
|
1244
|
-
FsDatePickerModule,
|
|
1245
|
-
FsMenuModule,
|
|
1246
|
-
ClipboardModule,
|
|
1247
|
-
],
|
|
1248
|
-
exports: [
|
|
1249
|
-
DashboardComponent,
|
|
1250
|
-
CronsComponent,
|
|
1251
|
-
SettingsComponent,
|
|
1252
|
-
FileManagerComponent,
|
|
1253
|
-
ProcessesComponent,
|
|
1254
|
-
ServerLogsComponent,
|
|
1255
|
-
UpgradeLogsComponent,
|
|
1256
|
-
ApiLogsComponent,
|
|
1257
|
-
InfoComponent,
|
|
1258
|
-
],
|
|
1259
|
-
declarations: [
|
|
1260
|
-
DashboardComponent,
|
|
1261
|
-
CronsComponent,
|
|
1262
|
-
SettingsComponent,
|
|
1263
|
-
KeyNameValuePipe,
|
|
1264
|
-
FileManagerComponent,
|
|
1265
|
-
ProcessesComponent,
|
|
1266
|
-
ServerLogComponent,
|
|
1267
|
-
ServerLogsComponent,
|
|
1268
|
-
UpgradeLogsComponent,
|
|
1269
|
-
ApiLogsComponent,
|
|
1270
|
-
ApiLogComponent,
|
|
1271
|
-
InfoComponent,
|
|
1272
|
-
ProcessComponent,
|
|
1273
|
-
CronComponent,
|
|
1274
|
-
CronLogComponent,
|
|
1275
|
-
],
|
|
1276
|
-
})
|
|
1277
|
-
], FsSystemModule);
|
|
1278
|
-
return FsSystemModule;
|
|
1279
|
-
}());
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* Generated bundle index. Do not edit.
|
|
1283
|
-
*/
|
|
1284
|
-
|
|
1285
|
-
export { ApiLogState, ApiLogStates, CronState, CronStates, FS_SYSTEM_CONFIG, FsSystemModule, ProcessState, ProcessStates, DashboardComponent as ɵa, CronsComponent as ɵb, SettingsComponent as ɵc, FileManagerComponent as ɵd, ProcessesComponent as ɵe, ServerLogsComponent as ɵf, UpgradeLogsComponent as ɵg, ApiLogsComponent as ɵh, InfoComponent as ɵi, KeyNameValuePipe as ɵj, ServerLogComponent as ɵk, ApiLogComponent as ɵl, ProcessComponent as ɵm, CronComponent as ɵn, CronLogComponent as ɵo };
|
|
1286
|
-
//# sourceMappingURL=firestitch-system.js.map
|