@hostlink/nuxt-light 1.63.1 → 1.64.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/dist/module.json +1 -1
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +2 -1
- package/dist/runtime/components/L/System/Setting/security.vue +1 -1
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +2 -1
- package/dist/runtime/components/l-editor.vue +58 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -12,7 +12,7 @@ export type LSystemSettingSecurityProps = {
|
|
|
12
12
|
password_expiration: string;
|
|
13
13
|
password_expiration_duration: string;
|
|
14
14
|
concurrent_login_disabled: string;
|
|
15
|
-
|
|
15
|
+
webauthn_enabled?: string;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_export: import("vue").DefineComponent<LSystemSettingSecurityProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
submit: (...args: any[]) => void;
|
|
@@ -32,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<LSystemSettingSecurity
|
|
|
32
32
|
password_expiration: string;
|
|
33
33
|
password_expiration_duration: string;
|
|
34
34
|
concurrent_login_disabled: string;
|
|
35
|
+
webauthn_enabled: string;
|
|
35
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
37
|
declare const _default: typeof __VLS_export;
|
|
37
38
|
export default _default;
|
|
@@ -14,7 +14,7 @@ defineProps({
|
|
|
14
14
|
password_expiration: { type: String, required: true, default: "0" },
|
|
15
15
|
password_expiration_duration: { type: String, required: true, default: "90" },
|
|
16
16
|
concurrent_login_disabled: { type: String, required: true, default: "0" },
|
|
17
|
-
|
|
17
|
+
webauthn_enabled: { type: String, required: false, default: "1" }
|
|
18
18
|
});
|
|
19
19
|
</script>
|
|
20
20
|
|
|
@@ -12,7 +12,7 @@ export type LSystemSettingSecurityProps = {
|
|
|
12
12
|
password_expiration: string;
|
|
13
13
|
password_expiration_duration: string;
|
|
14
14
|
concurrent_login_disabled: string;
|
|
15
|
-
|
|
15
|
+
webauthn_enabled?: string;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_export: import("vue").DefineComponent<LSystemSettingSecurityProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
submit: (...args: any[]) => void;
|
|
@@ -32,6 +32,7 @@ declare const __VLS_export: import("vue").DefineComponent<LSystemSettingSecurity
|
|
|
32
32
|
password_expiration: string;
|
|
33
33
|
password_expiration_duration: string;
|
|
34
34
|
concurrent_login_disabled: string;
|
|
35
|
+
webauthn_enabled: string;
|
|
35
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
37
|
declare const _default: typeof __VLS_export;
|
|
37
38
|
export default _default;
|
|
@@ -5,8 +5,11 @@ const $q = useQuasar();
|
|
|
5
5
|
const editorRef = ref(null);
|
|
6
6
|
const textColorRef = ref(null);
|
|
7
7
|
const textHightlightRef = ref(null);
|
|
8
|
+
const insertTableRef = ref(null);
|
|
8
9
|
const highlight = ref("#ffff00aa");
|
|
9
10
|
const foreColor = ref("#000000");
|
|
11
|
+
const tableRows = ref(3);
|
|
12
|
+
const tableCols = ref(3);
|
|
10
13
|
const TextColorCMD = ((cmd, name) => {
|
|
11
14
|
const edit = editorRef.value;
|
|
12
15
|
textColorRef.value.hide();
|
|
@@ -21,6 +24,24 @@ const TextHightlightCMD = ((cmd, name) => {
|
|
|
21
24
|
edit.runCmd(cmd, name);
|
|
22
25
|
edit.focus();
|
|
23
26
|
});
|
|
27
|
+
const insertTableCMD = () => {
|
|
28
|
+
const edit = editorRef.value;
|
|
29
|
+
insertTableRef.value.hide();
|
|
30
|
+
edit.caret.restore();
|
|
31
|
+
let tableHTML = '<table border="1" style="border-collapse: collapse; width: 100%;">\n';
|
|
32
|
+
for (let i = 0; i < tableRows.value; i++) {
|
|
33
|
+
tableHTML += " <tr>\n";
|
|
34
|
+
for (let j = 0; j < tableCols.value; j++) {
|
|
35
|
+
const tag = i === 0 ? "th" : "td";
|
|
36
|
+
tableHTML += ` <${tag} style="padding: 8px; border: 1px solid #ddd;">${tag === "th" ? `Header ${j + 1}` : ""}</${tag}>
|
|
37
|
+
`;
|
|
38
|
+
}
|
|
39
|
+
tableHTML += " </tr>\n";
|
|
40
|
+
}
|
|
41
|
+
tableHTML += "</table>";
|
|
42
|
+
edit.runCmd("insertHTML", tableHTML);
|
|
43
|
+
edit.focus();
|
|
44
|
+
};
|
|
24
45
|
const emit = defineEmits(["update:modelValue"]);
|
|
25
46
|
const props = defineProps({
|
|
26
47
|
fullscreen: { type: Boolean, required: false, skipCheck: true },
|
|
@@ -140,6 +161,7 @@ const newToolBar = [
|
|
|
140
161
|
},
|
|
141
162
|
"textColor",
|
|
142
163
|
"textHightlight",
|
|
164
|
+
"insertTable",
|
|
143
165
|
"custom_btn",
|
|
144
166
|
"removeFormat"
|
|
145
167
|
],
|
|
@@ -221,5 +243,41 @@ const newFonts = {
|
|
|
221
243
|
</q-item>
|
|
222
244
|
</q-btn-dropdown>
|
|
223
245
|
</template>
|
|
246
|
+
<template v-slot:insertTable>
|
|
247
|
+
<q-btn-dropdown dense no-caps ref="insertTableRef" no-wrap unelevated color="white" text-color="default"
|
|
248
|
+
label="Insert Table" icon="sym_o_table_chart" size="sm">
|
|
249
|
+
<q-card style="min-width: 250px;">
|
|
250
|
+
<q-card-section>
|
|
251
|
+
<div class="text-subtitle2">Create HTML Table</div>
|
|
252
|
+
</q-card-section>
|
|
253
|
+
<q-card-section>
|
|
254
|
+
<div class="q-gutter-md">
|
|
255
|
+
<q-input
|
|
256
|
+
v-model.number="tableRows"
|
|
257
|
+
type="number"
|
|
258
|
+
label="Rows"
|
|
259
|
+
min="1"
|
|
260
|
+
max="20"
|
|
261
|
+
dense
|
|
262
|
+
outlined
|
|
263
|
+
/>
|
|
264
|
+
<q-input
|
|
265
|
+
v-model.number="tableCols"
|
|
266
|
+
type="number"
|
|
267
|
+
label="Columns"
|
|
268
|
+
min="1"
|
|
269
|
+
max="10"
|
|
270
|
+
dense
|
|
271
|
+
outlined
|
|
272
|
+
/>
|
|
273
|
+
</div>
|
|
274
|
+
</q-card-section>
|
|
275
|
+
<q-card-actions align="right">
|
|
276
|
+
<q-btn flat label="Cancel" color="grey" v-close-popup />
|
|
277
|
+
<q-btn flat label="Insert" color="primary" @click="insertTableCMD" />
|
|
278
|
+
</q-card-actions>
|
|
279
|
+
</q-card>
|
|
280
|
+
</q-btn-dropdown>
|
|
281
|
+
</template>
|
|
224
282
|
</q-editor>
|
|
225
283
|
</template>
|