@social-mail/social-mail-client 1.9.36 → 1.9.37
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/dist/admin/AdminAppIndex.pack.js +152 -142
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/dns/DnsZoneListPage.d.ts +3 -2
- package/dist/common/pages/dns/DnsZoneListPage.d.ts.map +1 -1
- package/dist/common/pages/dns/DnsZoneListPage.js +22 -12
- package/dist/common/pages/dns/DnsZoneListPage.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +152 -142
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +152 -142
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/dns/DnsZoneListPage.tsx +14 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentPage } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
|
|
2
1
|
import { IHostedZone } from "../../../model/model";
|
|
3
|
-
|
|
2
|
+
import MasterDetailPage from "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage";
|
|
3
|
+
export default class DnsZoneListPage extends MasterDetailPage {
|
|
4
4
|
start: number;
|
|
5
5
|
size: number;
|
|
6
6
|
version: number;
|
|
@@ -9,6 +9,7 @@ export default class DnsZoneListPage extends ContentPage {
|
|
|
9
9
|
private zones;
|
|
10
10
|
init(): Promise<void>;
|
|
11
11
|
deleteZone(zone: IHostedZone): Promise<void>;
|
|
12
|
+
itemSelected([domain]: [any]): Promise<void>;
|
|
12
13
|
viewZone(zone: IHostedZone): Promise<void>;
|
|
13
14
|
viewDS(zone: IHostedZone): Promise<void>;
|
|
14
15
|
addNew(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DnsZoneListPage.d.ts","sourceRoot":"","sources":["../../../../src/common/pages/dns/DnsZoneListPage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DnsZoneListPage.d.ts","sourceRoot":"","sources":["../../../../src/common/pages/dns/DnsZoneListPage.tsx"],"names":[],"mappings":"AASA,OAAO,EAAc,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,gBAAgB,MAAM,0DAA0D,CAAC;AAGxF,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,gBAAgB;IAEzD,KAAK,SAAK;IACV,IAAI,SAAO;IACX,OAAO,SAAK;IAEZ,MAAM,SAAM;IAGZ,OAAO,CAAC,cAAc,CAAiB;IAEvC,OAAO,CAAC,KAAK,CAAqB;IAE5B,IAAI;IA6CJ,UAAU,CAAE,IAAI,EAAE,WAAW;IAQ7B,YAAY,CAAC,CAAC,MAAM,CAAC,OAAA;IAQrB,QAAQ,CAAC,IAAI,EAAE,WAAW;IAU1B,MAAM,CAAC,IAAI,EAAE,WAAW;IAUxB,MAAM;CAUf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/
|
|
1
|
+
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/services/PopupService", "../../controls/repeater/InfiniteRepeater", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage", "./edit/DnsZoneEditorPage"], function (_export, _context) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater,
|
|
4
|
+
var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, Action, PopupService, InfiniteRepeater, DnsZoneService, HostedZone, Bind, MasterDetailPage, DnsZoneEditorPage, DnsZoneListPage;
|
|
5
5
|
_export("default", void 0);
|
|
6
6
|
return {
|
|
7
7
|
setters: [function (_tslib) {
|
|
@@ -14,25 +14,25 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
14
14
|
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
15
15
|
}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
16
16
|
AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
|
|
17
|
-
}, function (_webAtomsWebControlsDistMobileAppMobileApp) {
|
|
18
|
-
ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
|
|
19
17
|
}, function (_webAtomsCoreDistViewModelAction) {
|
|
20
18
|
Action = _webAtomsCoreDistViewModelAction.default;
|
|
21
19
|
}, function (_webAtomsCoreDistWebServicesPopupService) {
|
|
22
20
|
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
23
21
|
}, function (_controlsRepeaterInfiniteRepeater) {
|
|
24
22
|
InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
|
|
25
|
-
}, function (_commandsCommonCommands) {
|
|
26
|
-
CommonCommands = _commandsCommonCommands.default;
|
|
27
23
|
}, function (_DnsZoneService) {
|
|
28
24
|
DnsZoneService = _DnsZoneService.default;
|
|
29
25
|
}, function (_modelModel) {
|
|
30
26
|
HostedZone = _modelModel.HostedZone;
|
|
31
27
|
}, function (_webAtomsCoreDistCoreBind) {
|
|
32
28
|
Bind = _webAtomsCoreDistCoreBind.default;
|
|
29
|
+
}, function (_webAtomsWebControlsDistMobileAppMasterDetailPage) {
|
|
30
|
+
MasterDetailPage = _webAtomsWebControlsDistMobileAppMasterDetailPage.default;
|
|
31
|
+
}, function (_editDnsZoneEditorPage) {
|
|
32
|
+
DnsZoneEditorPage = _editDnsZoneEditorPage.default;
|
|
33
33
|
}],
|
|
34
34
|
execute: function () {
|
|
35
|
-
_export("default", DnsZoneListPage = class DnsZoneListPage extends
|
|
35
|
+
_export("default", DnsZoneListPage = class DnsZoneListPage extends MasterDetailPage {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
38
|
this.start = 0;
|
|
@@ -51,6 +51,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
51
51
|
}));
|
|
52
52
|
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
53
53
|
"data-layout": "data-grid",
|
|
54
|
+
"data-selection-updated-event": "item-selected",
|
|
55
|
+
selectOnClick: true,
|
|
54
56
|
items: this.zones
|
|
55
57
|
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
|
|
56
58
|
search: this.search,
|
|
@@ -58,11 +60,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
58
60
|
cancelToken,
|
|
59
61
|
version: this.version
|
|
60
62
|
})), {
|
|
61
|
-
itemRenderer: item => XNode.create("div", null, XNode.create("
|
|
62
|
-
"data-click-event": "route",
|
|
63
|
-
href: CommonCommands.editDnsZone.displayRoute({
|
|
64
|
-
zoneID: item.zoneID
|
|
65
|
-
}),
|
|
63
|
+
itemRenderer: item => XNode.create("div", null, XNode.create("label", {
|
|
66
64
|
text: item.domain.name
|
|
67
65
|
}), XNode.create("i", {
|
|
68
66
|
title: "View Zone File",
|
|
@@ -90,6 +88,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
90
88
|
this.version++;
|
|
91
89
|
});
|
|
92
90
|
}
|
|
91
|
+
itemSelected(_a) {
|
|
92
|
+
return __awaiter(this, arguments, void 0, function* ([domain]) {
|
|
93
|
+
if (!domain) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
this.openDetail(DnsZoneEditorPage, domain);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
93
99
|
viewZone(zone) {
|
|
94
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
101
|
yield PopupService.alert({
|
|
@@ -124,6 +130,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
124
130
|
onEvent: "delete-zone",
|
|
125
131
|
confirm: "Are you sure you want to delete this zone?"
|
|
126
132
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
|
|
133
|
+
__decorate([Action({
|
|
134
|
+
onEvent: "item-selected",
|
|
135
|
+
defer: 10
|
|
136
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "itemSelected", null);
|
|
127
137
|
__decorate([Action({
|
|
128
138
|
onEvent: "view-zone"
|
|
129
139
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DnsZoneListPage","_export","setters","_tslib","InjectProperty","_webAtomsCoreDistCoreInjectProperty","default","_webAtomsCoreDistCoreXNode","XNode","_webAtomsWebControlsDistBasicAtomRepeater","AtomRepeater","
|
|
1
|
+
{"version":3,"names":["DnsZoneListPage","_export","setters","_tslib","InjectProperty","_webAtomsCoreDistCoreInjectProperty","default","_webAtomsCoreDistCoreXNode","XNode","_webAtomsWebControlsDistBasicAtomRepeater","AtomRepeater","_webAtomsCoreDistViewModelAction","Action","_webAtomsCoreDistWebServicesPopupService","PopupService","_controlsRepeaterInfiniteRepeater","InfiniteRepeater","_DnsZoneService","DnsZoneService","_modelModel","HostedZone","_webAtomsCoreDistCoreBind","Bind","_webAtomsWebControlsDistMobileAppMasterDetailPage","MasterDetailPage","_editDnsZoneEditorPage","DnsZoneEditorPage","execute","constructor","start","size","version","search","zones","init","headerRenderer","create","type","value","twoWaysImmediate","renderer","Object","assign","selectOnClick","items","pagedItems","c","e","cancelToken","dnsZoneService","list","itemRenderer","item","text","domain","name","title","class","footerRenderer","deleteZone","zone","$deleted","save","remove","itemSelected","_a","openDetail","viewZone","alert","message","unsigned","viewDS","digest","addNew","prompt","__decorate","onEvent","confirm","defer"],"sources":["../../../../src/common/pages/dns/DnsZoneListPage.tsx"],"sourcesContent":[null],"mappings":";;;6LAcqBA,eAAgB;EAAAC,OAAA;EAAA;IAAAC,OAAA,aAAAC,MAAA;;;;;MAd9BC,cAAc,GAAAC,mCAAA,CAAAC,OAAA;IAAA,aAAAC,0BAAA;MACdC,KAAK,GAAAD,0BAAA,CAAAD,OAAA;IAAA,aAAAG,yCAAA;MACLC,YAAY,GAAAD,yCAAA,CAAAH,OAAA;IAAA,aAAAK,gCAAA;MAEZC,MAAM,GAAAD,gCAAA,CAAAL,OAAA;IAAA,aAAAO,wCAAA;MACNC,YAAY,GAAAD,wCAAA,CAAAP,OAAA;IAAA,aAAAS,iCAAA;MACZC,gBAAgB,GAAAD,iCAAA,CAAAT,OAAA;IAAA,aAAAW,eAAA;MAEhBC,cAAc,GAAAD,eAAA,CAAAX,OAAA;IAAA,aAAAa,WAAA;MACZC,UAAU,GAAAD,WAAA,CAAVC,UAAU;IAAA,aAAAC,yBAAA;MACZC,IAAI,GAAAD,yBAAA,CAAAf,OAAA;IAAA,aAAAiB,iDAAA;MACJC,gBAAgB,GAAAD,iDAAA,CAAAjB,OAAA;IAAA,aAAAmB,sBAAA;MAChBC,iBAAiB,GAAAD,sBAAA,CAAAnB,OAAA;IAAA;IAAAqB,OAAA,WAAAA,CAAA;MAAA1B,OAAA,YAEHD,eAAgB,GAAvB,MA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;YAC/B,IAAI,CAACd,IAAI,EAAE;cACP;YACJ;YACA,MAAM,IAAI,CAACX,cAAc,CAACa,IAAI,CAAC1C,UAAU,CAACgB,MAAM,CAAC;cAC7CwB;aACH,CAAC,CAAC;YACH,IAAI,CAAC7B,OAAO,EAAE;UAClB,CAAC;;OACJ;MA/FW4C,UAAA,EADPvE,cAAc,E,0BACSc,cAAc,E,sDAAC;MAiDjCyD,UAAA,EADL/D,MAAM,CAAC;QAAEgE,OAAO,EAAE,aAAa;QAAEC,OAAO,EAAE;MAA4C,CAAC,CAAC,E,yKAMxF;MAGKF,UAAA,EADL/D,MAAM,CAAC;QAAEgE,OAAO,EAAE,eAAe;QAAEE,KAAK,EAAE;MAAE,CAAC,CAAC,E,2KAM9C;MAGKH,UAAA,EADL/D,MAAM,CAAC;QAAEgE,OAAO,EAAE;MAAW,CAAC,CAAC,E,uKAQ/B;MAGKD,UAAA,EADL/D,MAAM,CAAC;QAAEgE,OAAO,EAAE;MAAS,CAAC,CAAC,E,qKAQ7B;MAGKD,UAAA,EADL/D,MAAM,CAAC;QAAEgE,OAAO,EAAE;MAAS,CAAC,CAAC,E,+JAU7B;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -46679,148 +46679,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../services/E
|
|
|
46679
46679
|
});
|
|
46680
46680
|
//# sourceMappingURL=DnsZoneService.js.map
|
|
46681
46681
|
|
|
46682
|
-
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
|
|
46683
|
-
|
|
46684
|
-
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/services/PopupService", "../../controls/repeater/InfiniteRepeater", "../../commands/CommonCommands", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/core/Bind"], function (_export, _context) {
|
|
46685
|
-
"use strict";
|
|
46686
|
-
|
|
46687
|
-
var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, ContentPage, Action, PopupService, InfiniteRepeater, CommonCommands, DnsZoneService, HostedZone, Bind, DnsZoneListPage;
|
|
46688
|
-
_export("default", void 0);
|
|
46689
|
-
return {
|
|
46690
|
-
setters: [function (_tslib) {
|
|
46691
|
-
__awaiter = _tslib.__awaiter;
|
|
46692
|
-
__decorate = _tslib.__decorate;
|
|
46693
|
-
__metadata = _tslib.__metadata;
|
|
46694
|
-
}, function (_webAtomsCoreDistCoreInjectProperty) {
|
|
46695
|
-
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
46696
|
-
}, function (_webAtomsCoreDistCoreXNode) {
|
|
46697
|
-
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
46698
|
-
}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
46699
|
-
AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
|
|
46700
|
-
}, function (_webAtomsWebControlsDistMobileAppMobileApp) {
|
|
46701
|
-
ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
|
|
46702
|
-
}, function (_webAtomsCoreDistViewModelAction) {
|
|
46703
|
-
Action = _webAtomsCoreDistViewModelAction.default;
|
|
46704
|
-
}, function (_webAtomsCoreDistWebServicesPopupService) {
|
|
46705
|
-
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
46706
|
-
}, function (_controlsRepeaterInfiniteRepeater) {
|
|
46707
|
-
InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
|
|
46708
|
-
}, function (_commandsCommonCommands) {
|
|
46709
|
-
CommonCommands = _commandsCommonCommands.default;
|
|
46710
|
-
}, function (_DnsZoneService) {
|
|
46711
|
-
DnsZoneService = _DnsZoneService.default;
|
|
46712
|
-
}, function (_modelModel) {
|
|
46713
|
-
HostedZone = _modelModel.HostedZone;
|
|
46714
|
-
}, function (_webAtomsCoreDistCoreBind) {
|
|
46715
|
-
Bind = _webAtomsCoreDistCoreBind.default;
|
|
46716
|
-
}],
|
|
46717
|
-
execute: function () {
|
|
46718
|
-
_export("default", DnsZoneListPage = class DnsZoneListPage extends ContentPage {
|
|
46719
|
-
constructor() {
|
|
46720
|
-
super(...arguments);
|
|
46721
|
-
this.start = 0;
|
|
46722
|
-
this.size = 100;
|
|
46723
|
-
this.version = 1;
|
|
46724
|
-
this.search = "";
|
|
46725
|
-
this.zones = [];
|
|
46726
|
-
}
|
|
46727
|
-
init() {
|
|
46728
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46729
|
-
this.headerRenderer = () => XNode.create("div", {
|
|
46730
|
-
"data-layout": "header-row"
|
|
46731
|
-
}, XNode.create("input", {
|
|
46732
|
-
type: "search",
|
|
46733
|
-
value: Bind.twoWaysImmediate(() => this.search)
|
|
46734
|
-
}));
|
|
46735
|
-
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
46736
|
-
"data-layout": "data-grid",
|
|
46737
|
-
items: this.zones
|
|
46738
|
-
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
|
|
46739
|
-
search: this.search,
|
|
46740
|
-
start,
|
|
46741
|
-
cancelToken,
|
|
46742
|
-
version: this.version
|
|
46743
|
-
})), {
|
|
46744
|
-
itemRenderer: item => XNode.create("div", null, XNode.create("a", {
|
|
46745
|
-
"data-click-event": "route",
|
|
46746
|
-
href: CommonCommands.editDnsZone.displayRoute({
|
|
46747
|
-
zoneID: item.zoneID
|
|
46748
|
-
}),
|
|
46749
|
-
text: item.domain.name
|
|
46750
|
-
}), XNode.create("i", {
|
|
46751
|
-
title: "View Zone File",
|
|
46752
|
-
class: "fa-regular fa-file-lines",
|
|
46753
|
-
"data-click-event": "view-zone"
|
|
46754
|
-
}), XNode.create("i", {
|
|
46755
|
-
title: "Delete Zone",
|
|
46756
|
-
class: "fas fa-trash-can",
|
|
46757
|
-
"data-click-event": "delete-zone"
|
|
46758
|
-
}))
|
|
46759
|
-
})));
|
|
46760
|
-
this.footerRenderer = () => XNode.create("div", {
|
|
46761
|
-
"data-layout": "command-row"
|
|
46762
|
-
}, XNode.create("button", {
|
|
46763
|
-
"data-click-event": "add-new",
|
|
46764
|
-
text: "Add"
|
|
46765
|
-
}));
|
|
46766
|
-
});
|
|
46767
|
-
}
|
|
46768
|
-
deleteZone(zone) {
|
|
46769
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46770
|
-
zone.$deleted = true;
|
|
46771
|
-
yield this.dnsZoneService.save(zone);
|
|
46772
|
-
this.zones.remove(zone);
|
|
46773
|
-
this.version++;
|
|
46774
|
-
});
|
|
46775
|
-
}
|
|
46776
|
-
viewZone(zone) {
|
|
46777
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46778
|
-
yield PopupService.alert({
|
|
46779
|
-
title: zone.domain.name,
|
|
46780
|
-
message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
|
|
46781
|
-
});
|
|
46782
|
-
});
|
|
46783
|
-
}
|
|
46784
|
-
viewDS(zone) {
|
|
46785
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46786
|
-
yield PopupService.alert({
|
|
46787
|
-
title: zone.domain.name,
|
|
46788
|
-
message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
|
|
46789
|
-
});
|
|
46790
|
-
});
|
|
46791
|
-
}
|
|
46792
|
-
addNew() {
|
|
46793
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46794
|
-
const zone = prompt("Add host");
|
|
46795
|
-
if (!zone) {
|
|
46796
|
-
return;
|
|
46797
|
-
}
|
|
46798
|
-
yield this.dnsZoneService.save(HostedZone.create({
|
|
46799
|
-
zone
|
|
46800
|
-
}));
|
|
46801
|
-
this.version++;
|
|
46802
|
-
});
|
|
46803
|
-
}
|
|
46804
|
-
});
|
|
46805
|
-
__decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
|
|
46806
|
-
__decorate([Action({
|
|
46807
|
-
onEvent: "delete-zone",
|
|
46808
|
-
confirm: "Are you sure you want to delete this zone?"
|
|
46809
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
|
|
46810
|
-
__decorate([Action({
|
|
46811
|
-
onEvent: "view-zone"
|
|
46812
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
|
|
46813
|
-
__decorate([Action({
|
|
46814
|
-
onEvent: "view-ds"
|
|
46815
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
|
|
46816
|
-
__decorate([Action({
|
|
46817
|
-
onEvent: "add-new"
|
|
46818
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
|
|
46819
|
-
}
|
|
46820
|
-
};
|
|
46821
|
-
});
|
|
46822
|
-
//# sourceMappingURL=DnsZoneListPage.js.map
|
|
46823
|
-
|
|
46824
46682
|
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/ComboBox");
|
|
46825
46683
|
|
|
46826
46684
|
System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "./AtomRepeater"], function (_export, _context) {
|
|
@@ -47225,6 +47083,158 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
47225
47083
|
});
|
|
47226
47084
|
//# sourceMappingURL=DnsZoneEditorPage.js.map
|
|
47227
47085
|
|
|
47086
|
+
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
|
|
47087
|
+
|
|
47088
|
+
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/services/PopupService", "../../controls/repeater/InfiniteRepeater", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage", "./edit/DnsZoneEditorPage"], function (_export, _context) {
|
|
47089
|
+
"use strict";
|
|
47090
|
+
|
|
47091
|
+
var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, Action, PopupService, InfiniteRepeater, DnsZoneService, HostedZone, Bind, MasterDetailPage, DnsZoneEditorPage, DnsZoneListPage;
|
|
47092
|
+
_export("default", void 0);
|
|
47093
|
+
return {
|
|
47094
|
+
setters: [function (_tslib) {
|
|
47095
|
+
__awaiter = _tslib.__awaiter;
|
|
47096
|
+
__decorate = _tslib.__decorate;
|
|
47097
|
+
__metadata = _tslib.__metadata;
|
|
47098
|
+
}, function (_webAtomsCoreDistCoreInjectProperty) {
|
|
47099
|
+
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
47100
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
47101
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
47102
|
+
}, function (_webAtomsWebControlsDistBasicAtomRepeater) {
|
|
47103
|
+
AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
|
|
47104
|
+
}, function (_webAtomsCoreDistViewModelAction) {
|
|
47105
|
+
Action = _webAtomsCoreDistViewModelAction.default;
|
|
47106
|
+
}, function (_webAtomsCoreDistWebServicesPopupService) {
|
|
47107
|
+
PopupService = _webAtomsCoreDistWebServicesPopupService.default;
|
|
47108
|
+
}, function (_controlsRepeaterInfiniteRepeater) {
|
|
47109
|
+
InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
|
|
47110
|
+
}, function (_DnsZoneService) {
|
|
47111
|
+
DnsZoneService = _DnsZoneService.default;
|
|
47112
|
+
}, function (_modelModel) {
|
|
47113
|
+
HostedZone = _modelModel.HostedZone;
|
|
47114
|
+
}, function (_webAtomsCoreDistCoreBind) {
|
|
47115
|
+
Bind = _webAtomsCoreDistCoreBind.default;
|
|
47116
|
+
}, function (_webAtomsWebControlsDistMobileAppMasterDetailPage) {
|
|
47117
|
+
MasterDetailPage = _webAtomsWebControlsDistMobileAppMasterDetailPage.default;
|
|
47118
|
+
}, function (_editDnsZoneEditorPage) {
|
|
47119
|
+
DnsZoneEditorPage = _editDnsZoneEditorPage.default;
|
|
47120
|
+
}],
|
|
47121
|
+
execute: function () {
|
|
47122
|
+
_export("default", DnsZoneListPage = class DnsZoneListPage extends MasterDetailPage {
|
|
47123
|
+
constructor() {
|
|
47124
|
+
super(...arguments);
|
|
47125
|
+
this.start = 0;
|
|
47126
|
+
this.size = 100;
|
|
47127
|
+
this.version = 1;
|
|
47128
|
+
this.search = "";
|
|
47129
|
+
this.zones = [];
|
|
47130
|
+
}
|
|
47131
|
+
init() {
|
|
47132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47133
|
+
this.headerRenderer = () => XNode.create("div", {
|
|
47134
|
+
"data-layout": "header-row"
|
|
47135
|
+
}, XNode.create("input", {
|
|
47136
|
+
type: "search",
|
|
47137
|
+
value: Bind.twoWaysImmediate(() => this.search)
|
|
47138
|
+
}));
|
|
47139
|
+
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
47140
|
+
"data-layout": "data-grid",
|
|
47141
|
+
"data-selection-updated-event": "item-selected",
|
|
47142
|
+
selectOnClick: true,
|
|
47143
|
+
items: this.zones
|
|
47144
|
+
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
|
|
47145
|
+
search: this.search,
|
|
47146
|
+
start,
|
|
47147
|
+
cancelToken,
|
|
47148
|
+
version: this.version
|
|
47149
|
+
})), {
|
|
47150
|
+
itemRenderer: item => XNode.create("div", null, XNode.create("label", {
|
|
47151
|
+
text: item.domain.name
|
|
47152
|
+
}), XNode.create("i", {
|
|
47153
|
+
title: "View Zone File",
|
|
47154
|
+
class: "fa-regular fa-file-lines",
|
|
47155
|
+
"data-click-event": "view-zone"
|
|
47156
|
+
}), XNode.create("i", {
|
|
47157
|
+
title: "Delete Zone",
|
|
47158
|
+
class: "fas fa-trash-can",
|
|
47159
|
+
"data-click-event": "delete-zone"
|
|
47160
|
+
}))
|
|
47161
|
+
})));
|
|
47162
|
+
this.footerRenderer = () => XNode.create("div", {
|
|
47163
|
+
"data-layout": "command-row"
|
|
47164
|
+
}, XNode.create("button", {
|
|
47165
|
+
"data-click-event": "add-new",
|
|
47166
|
+
text: "Add"
|
|
47167
|
+
}));
|
|
47168
|
+
});
|
|
47169
|
+
}
|
|
47170
|
+
deleteZone(zone) {
|
|
47171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47172
|
+
zone.$deleted = true;
|
|
47173
|
+
yield this.dnsZoneService.save(zone);
|
|
47174
|
+
this.zones.remove(zone);
|
|
47175
|
+
this.version++;
|
|
47176
|
+
});
|
|
47177
|
+
}
|
|
47178
|
+
itemSelected(_a) {
|
|
47179
|
+
return __awaiter(this, arguments, void 0, function* ([domain]) {
|
|
47180
|
+
if (!domain) {
|
|
47181
|
+
return;
|
|
47182
|
+
}
|
|
47183
|
+
this.openDetail(DnsZoneEditorPage, domain);
|
|
47184
|
+
});
|
|
47185
|
+
}
|
|
47186
|
+
viewZone(zone) {
|
|
47187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47188
|
+
yield PopupService.alert({
|
|
47189
|
+
title: zone.domain.name,
|
|
47190
|
+
message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
|
|
47191
|
+
});
|
|
47192
|
+
});
|
|
47193
|
+
}
|
|
47194
|
+
viewDS(zone) {
|
|
47195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47196
|
+
yield PopupService.alert({
|
|
47197
|
+
title: zone.domain.name,
|
|
47198
|
+
message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
|
|
47199
|
+
});
|
|
47200
|
+
});
|
|
47201
|
+
}
|
|
47202
|
+
addNew() {
|
|
47203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47204
|
+
const zone = prompt("Add host");
|
|
47205
|
+
if (!zone) {
|
|
47206
|
+
return;
|
|
47207
|
+
}
|
|
47208
|
+
yield this.dnsZoneService.save(HostedZone.create({
|
|
47209
|
+
zone
|
|
47210
|
+
}));
|
|
47211
|
+
this.version++;
|
|
47212
|
+
});
|
|
47213
|
+
}
|
|
47214
|
+
});
|
|
47215
|
+
__decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
|
|
47216
|
+
__decorate([Action({
|
|
47217
|
+
onEvent: "delete-zone",
|
|
47218
|
+
confirm: "Are you sure you want to delete this zone?"
|
|
47219
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
|
|
47220
|
+
__decorate([Action({
|
|
47221
|
+
onEvent: "item-selected",
|
|
47222
|
+
defer: 10
|
|
47223
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "itemSelected", null);
|
|
47224
|
+
__decorate([Action({
|
|
47225
|
+
onEvent: "view-zone"
|
|
47226
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
|
|
47227
|
+
__decorate([Action({
|
|
47228
|
+
onEvent: "view-ds"
|
|
47229
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
|
|
47230
|
+
__decorate([Action({
|
|
47231
|
+
onEvent: "add-new"
|
|
47232
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
|
|
47233
|
+
}
|
|
47234
|
+
};
|
|
47235
|
+
});
|
|
47236
|
+
//# sourceMappingURL=DnsZoneListPage.js.map
|
|
47237
|
+
|
|
47228
47238
|
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/PinchZoomView");
|
|
47229
47239
|
|
|
47230
47240
|
System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "./styles/pinch-zoom-view.global.css"], function (_export, _context) {
|