@serve.zone/dcrouter 13.9.2 → 13.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_serve/bundle.js +1259 -1235
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts_web/00_commitinfo_data.js +2 -2
- package/dist_ts_web/elements/domains/ops-view-certificates.js +17 -96
- package/dist_ts_web/elements/email/ops-view-email-security.d.ts +1 -1
- package/dist_ts_web/elements/email/ops-view-email-security.js +39 -58
- package/package.json +2 -2
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/domains/ops-view-certificates.ts +16 -95
- package/ts_web/elements/email/ops-view-email-security.ts +38 -57
|
@@ -37,25 +37,10 @@ export class OpsViewEmailSecurity extends DeesElement {
|
|
|
37
37
|
cssManager.defaultStyles,
|
|
38
38
|
viewHostCss,
|
|
39
39
|
css`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
color: ${cssManager.bdTheme('#333', '#ccc')};
|
|
45
|
-
}
|
|
46
|
-
dees-statsgrid {
|
|
47
|
-
margin-bottom: 32px;
|
|
48
|
-
}
|
|
49
|
-
.securityCard {
|
|
50
|
-
background: ${cssManager.bdTheme('#fff', '#222')};
|
|
51
|
-
border: 1px solid ${cssManager.bdTheme('#e9ecef', '#333')};
|
|
52
|
-
border-radius: 8px;
|
|
53
|
-
padding: 24px;
|
|
54
|
-
position: relative;
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
}
|
|
57
|
-
.actionButton {
|
|
58
|
-
margin-top: 16px;
|
|
40
|
+
.securityContainer {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 24px;
|
|
59
44
|
}
|
|
60
45
|
`,
|
|
61
46
|
];
|
|
@@ -113,48 +98,44 @@ export class OpsViewEmailSecurity extends DeesElement {
|
|
|
113
98
|
return html`
|
|
114
99
|
<dees-heading level="3">Email Security</dees-heading>
|
|
115
100
|
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
101
|
+
<div class="securityContainer">
|
|
102
|
+
<dees-statsgrid
|
|
103
|
+
.tiles=${tiles}
|
|
104
|
+
.minTileWidth=${200}
|
|
105
|
+
></dees-statsgrid>
|
|
120
106
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
.label=${'Enable DKIM validation'}
|
|
132
|
-
.value=${true}
|
|
133
|
-
></dees-input-checkbox>
|
|
134
|
-
<dees-input-checkbox
|
|
135
|
-
.key=${'enableDMARC'}
|
|
136
|
-
.label=${'Enable DMARC policy enforcement'}
|
|
137
|
-
.value=${true}
|
|
138
|
-
></dees-input-checkbox>
|
|
139
|
-
<dees-input-checkbox
|
|
140
|
-
.key=${'enableSpamFilter'}
|
|
141
|
-
.label=${'Enable spam filtering'}
|
|
142
|
-
.value=${true}
|
|
143
|
-
></dees-input-checkbox>
|
|
144
|
-
</dees-form>
|
|
145
|
-
<dees-button
|
|
146
|
-
class="actionButton"
|
|
147
|
-
type="highlighted"
|
|
148
|
-
@click=${() => this.saveEmailSecuritySettings()}
|
|
149
|
-
>
|
|
150
|
-
Save Settings
|
|
151
|
-
</dees-button>
|
|
107
|
+
<dees-settings
|
|
108
|
+
.heading=${'Security Configuration'}
|
|
109
|
+
.settingsFields=${[
|
|
110
|
+
{ key: 'spf', label: 'SPF checking', value: 'enabled' },
|
|
111
|
+
{ key: 'dkim', label: 'DKIM validation', value: 'enabled' },
|
|
112
|
+
{ key: 'dmarc', label: 'DMARC policy', value: 'enabled' },
|
|
113
|
+
{ key: 'spam', label: 'Spam filtering', value: 'enabled' },
|
|
114
|
+
]}
|
|
115
|
+
.actions=${[{ name: 'Edit', action: () => this.showEditSecurityDialog() }]}
|
|
116
|
+
></dees-settings>
|
|
152
117
|
</div>
|
|
153
118
|
`;
|
|
154
119
|
}
|
|
155
120
|
|
|
156
|
-
private async
|
|
157
|
-
|
|
158
|
-
|
|
121
|
+
private async showEditSecurityDialog() {
|
|
122
|
+
const { DeesModal } = await import('@design.estate/dees-catalog');
|
|
123
|
+
DeesModal.createAndShow({
|
|
124
|
+
heading: 'Edit Security Configuration',
|
|
125
|
+
content: html`
|
|
126
|
+
<dees-form>
|
|
127
|
+
<dees-input-checkbox .key=${'enableSPF'} .label=${'SPF checking'} .value=${true}></dees-input-checkbox>
|
|
128
|
+
<dees-input-checkbox .key=${'enableDKIM'} .label=${'DKIM validation'} .value=${true}></dees-input-checkbox>
|
|
129
|
+
<dees-input-checkbox .key=${'enableDMARC'} .label=${'DMARC policy enforcement'} .value=${true}></dees-input-checkbox>
|
|
130
|
+
<dees-input-checkbox .key=${'enableSpamFilter'} .label=${'Spam filtering'} .value=${true}></dees-input-checkbox>
|
|
131
|
+
</dees-form>
|
|
132
|
+
<p style="margin-top: 12px; font-size: 12px; opacity: 0.7;">
|
|
133
|
+
These settings are read-only for now. Update the dcrouter configuration to change them.
|
|
134
|
+
</p>
|
|
135
|
+
`,
|
|
136
|
+
menuOptions: [
|
|
137
|
+
{ name: 'Close', action: async (modalArg: any) => modalArg.destroy() },
|
|
138
|
+
],
|
|
139
|
+
});
|
|
159
140
|
}
|
|
160
141
|
}
|