@social-mail/social-mail-hosted-web 1.2.14 → 1.2.15
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 +52 -12
- 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/admin/pages/dns/edit/DnsZoneEditorPage.js +52 -12
- package/dist/admin/pages/dns/edit/DnsZoneEditorPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/admin/pages/dns/edit/DnsZoneEditorPage.tsx +41 -15
|
@@ -18455,31 +18455,32 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
18455
18455
|
}, XNode.create("button", {
|
|
18456
18456
|
"data-click-event": "delete-items",
|
|
18457
18457
|
text: "Delete"
|
|
18458
|
+
}), XNode.create("button", {
|
|
18459
|
+
"data-click-event": "add-hosting",
|
|
18460
|
+
text: "Add Hosting"
|
|
18461
|
+
}), XNode.create("button", {
|
|
18462
|
+
"data-click-event": "remove-hosting",
|
|
18463
|
+
text: "Remove Hosting"
|
|
18458
18464
|
})),
|
|
18459
18465
|
itemRenderer: item => XNode.create("div", null, XNode.create(SelectorCheckBox, null), XNode.create("label", {
|
|
18460
|
-
text: item.fqdn
|
|
18466
|
+
text: item.fqdn,
|
|
18467
|
+
title: item.fqdn
|
|
18461
18468
|
}), XNode.create("label", {
|
|
18462
18469
|
text: item.type
|
|
18463
18470
|
}), XNode.create("label", {
|
|
18464
18471
|
text: item.ttl
|
|
18465
18472
|
}), XNode.create("label", {
|
|
18466
18473
|
text: item.value
|
|
18474
|
+
}), item.hosted ? XNode.create("label", {
|
|
18475
|
+
text: "Hosted"
|
|
18476
|
+
}) : XNode.create("label", {
|
|
18477
|
+
text: " "
|
|
18467
18478
|
}), XNode.create("br", null), XNode.create("button", {
|
|
18468
18479
|
"data-click-event": "edit-item",
|
|
18469
18480
|
"data-layout": "icon-button"
|
|
18470
18481
|
}, XNode.create("i", {
|
|
18471
18482
|
class: "fas fa-edit"
|
|
18472
|
-
}), "Edit")
|
|
18473
|
-
"data-click-event": "enable-item",
|
|
18474
|
-
"data-layout": "icon-button"
|
|
18475
|
-
}, XNode.create("i", {
|
|
18476
|
-
class: "fas fa-check"
|
|
18477
|
-
}), "Enable") : XNode.create("button", {
|
|
18478
|
-
"data-click-event": "disable-item",
|
|
18479
|
-
"data-layout": "icon-button"
|
|
18480
|
-
}, XNode.create("i", {
|
|
18481
|
-
class: "fas fa-times"
|
|
18482
|
-
}), "Disable"))
|
|
18483
|
+
}), "Edit"))
|
|
18483
18484
|
}));
|
|
18484
18485
|
});
|
|
18485
18486
|
}
|
|
@@ -18532,6 +18533,37 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
18532
18533
|
this.model.records.add(record);
|
|
18533
18534
|
});
|
|
18534
18535
|
}
|
|
18536
|
+
removeHosting() {
|
|
18537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18538
|
+
for (const iterator of this.selectedRecords) {
|
|
18539
|
+
iterator.hosted = false;
|
|
18540
|
+
}
|
|
18541
|
+
yield this.dnsZoneService.saveRecord(...this.selectedRecords);
|
|
18542
|
+
});
|
|
18543
|
+
}
|
|
18544
|
+
addHosting() {
|
|
18545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18546
|
+
let isWildcard = null;
|
|
18547
|
+
for (const iterator of this.selectedRecords) {
|
|
18548
|
+
iterator.hosted = true;
|
|
18549
|
+
if (iterator.name === "*" && (iterator.type === "A" || iterator.type === "CNAME")) {
|
|
18550
|
+
isWildcard = iterator;
|
|
18551
|
+
}
|
|
18552
|
+
}
|
|
18553
|
+
let records = [...this.selectedRecords];
|
|
18554
|
+
if (isWildcard) {
|
|
18555
|
+
for (const iterator of this.model.records) {
|
|
18556
|
+
if ((iterator.name === "@" || iterator.name === "") && iterator.type === "A") {
|
|
18557
|
+
continue;
|
|
18558
|
+
}
|
|
18559
|
+
iterator.hosted = false;
|
|
18560
|
+
}
|
|
18561
|
+
isWildcard.hosted = true;
|
|
18562
|
+
records = this.model.records;
|
|
18563
|
+
}
|
|
18564
|
+
yield this.dnsZoneService.saveRecord(...records);
|
|
18565
|
+
});
|
|
18566
|
+
}
|
|
18535
18567
|
});
|
|
18536
18568
|
__decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneEditorPage.prototype, "dnsZoneService", void 0);
|
|
18537
18569
|
__decorate([Action({
|
|
@@ -18552,6 +18584,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
18552
18584
|
__decorate([Action({
|
|
18553
18585
|
onEvent: "add-new-record"
|
|
18554
18586
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneEditorPage.prototype, "addNewRecord", null);
|
|
18587
|
+
__decorate([Action({
|
|
18588
|
+
onEvent: "remove-hosting",
|
|
18589
|
+
confirm: "Are you sure you want to remove hosting for this zone?"
|
|
18590
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneEditorPage.prototype, "removeHosting", null);
|
|
18591
|
+
__decorate([Action({
|
|
18592
|
+
onEvent: "add-hosting",
|
|
18593
|
+
confirm: "Are you sure you want to add hosting for this zone?"
|
|
18594
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneEditorPage.prototype, "addHosting", null);
|
|
18555
18595
|
}
|
|
18556
18596
|
};
|
|
18557
18597
|
});
|