@hostlink/nuxt-light 1.27.8 → 1.28.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/module.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +40 -42
- package/dist/runtime/components/L/CustomField/Add.vue +41 -52
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +2 -0
- package/dist/runtime/components/L/CustomField/List.vue +26 -30
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -0
- package/dist/runtime/components/L/Database/create-table-dialog.vue +22 -38
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Fieldset.vue +19 -23
- package/dist/runtime/components/L/Fieldset.vue.d.ts +2 -0
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +39 -41
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Revision.vue +101 -137
- package/dist/runtime/components/L/Revision.vue.d.ts +2 -0
- package/dist/runtime/components/L/Storage.vue +26 -30
- package/dist/runtime/components/L/Storage.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/authentication.vue +22 -44
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/developer.vue +43 -59
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/forget-password.vue +42 -58
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/general.vue +29 -41
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/mail.vue +39 -42
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/modules.vue +9 -9
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/security.vue +20 -39
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/eventlog.vue +26 -26
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/overview.vue +25 -27
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/userlog.vue +22 -28
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/ValidationInput.vue +68 -91
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +2 -0
- package/dist/runtime/components/MyTest.vue +8 -7
- package/dist/runtime/components/MyTest.vue.d.ts +2 -0
- package/dist/runtime/components/l-add-btn.vue +13 -12
- package/dist/runtime/components/l-add-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-alert.vue +25 -29
- package/dist/runtime/components/l-alert.vue.d.ts +2 -0
- package/dist/runtime/components/l-app-main.vue +226 -294
- package/dist/runtime/components/l-app-main.vue.d.ts +2 -0
- package/dist/runtime/components/l-app.vue +76 -89
- package/dist/runtime/components/l-app.vue.d.ts +2 -0
- package/dist/runtime/components/l-audit-card.vue +8 -14
- package/dist/runtime/components/l-audit-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-banner.vue +28 -34
- package/dist/runtime/components/l-banner.vue.d.ts +2 -0
- package/dist/runtime/components/l-bar.vue +21 -25
- package/dist/runtime/components/l-bar.vue.d.ts +2 -0
- package/dist/runtime/components/l-btn.vue +62 -37
- package/dist/runtime/components/l-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-card.vue +90 -141
- package/dist/runtime/components/l-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-checkbox.vue +30 -7
- package/dist/runtime/components/l-checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/l-col.vue +21 -29
- package/dist/runtime/components/l-col.vue.d.ts +2 -0
- package/dist/runtime/components/l-customizer.vue +84 -100
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -0
- package/dist/runtime/components/l-date-picker.vue +101 -147
- package/dist/runtime/components/l-date-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-delete-btn.vue +22 -27
- package/dist/runtime/components/l-delete-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-dialog-database-field-add.vue +19 -36
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-container.vue +44 -62
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-group.vue +49 -70
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop.vue +33 -44
- package/dist/runtime/components/l-drag-drop.vue.d.ts +2 -0
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-editor.vue +185 -172
- package/dist/runtime/components/l-editor.vue.d.ts +2 -0
- package/dist/runtime/components/l-facebook-button.vue +18 -26
- package/dist/runtime/components/l-facebook-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-fav-menu.vue +19 -24
- package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-field.vue +49 -18
- package/dist/runtime/components/l-field.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-labels.vue +46 -48
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-move.vue +53 -68
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-preview.vue +46 -81
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager.vue +498 -640
- package/dist/runtime/components/l-file-manager.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-upload.vue +80 -109
- package/dist/runtime/components/l-file-upload.vue.d.ts +2 -0
- package/dist/runtime/components/l-file.vue +37 -61
- package/dist/runtime/components/l-file.vue.d.ts +2 -0
- package/dist/runtime/components/l-form-dialog.vue +71 -83
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/l-form.vue +82 -96
- package/dist/runtime/components/l-form.vue.d.ts +2 -0
- package/dist/runtime/components/l-group-select.vue +59 -94
- package/dist/runtime/components/l-group-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-icon-picker.vue +3265 -3274
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-input-xlsx.vue +30 -38
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +2 -0
- package/dist/runtime/components/l-input.vue +142 -126
- package/dist/runtime/components/l-input.vue.d.ts +2 -0
- package/dist/runtime/components/l-item.vue +30 -21
- package/dist/runtime/components/l-item.vue.d.ts +2 -0
- package/dist/runtime/components/l-link.vue +16 -15
- package/dist/runtime/components/l-link.vue.d.ts +2 -0
- package/dist/runtime/components/l-list.vue +27 -35
- package/dist/runtime/components/l-list.vue.d.ts +2 -0
- package/dist/runtime/components/l-login.vue +246 -287
- package/dist/runtime/components/l-login.vue.d.ts +2 -0
- package/dist/runtime/components/l-menu.vue +45 -54
- package/dist/runtime/components/l-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-microsoft-button.vue +42 -52
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-page.vue +48 -67
- package/dist/runtime/components/l-page.vue.d.ts +2 -0
- package/dist/runtime/components/l-row.vue +8 -13
- package/dist/runtime/components/l-row.vue.d.ts +2 -0
- package/dist/runtime/components/l-save-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-select.vue +150 -76
- package/dist/runtime/components/l-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-small-box.vue +18 -31
- package/dist/runtime/components/l-small-box.vue.d.ts +2 -0
- package/dist/runtime/components/l-statistic.vue +17 -23
- package/dist/runtime/components/l-statistic.vue.d.ts +2 -0
- package/dist/runtime/components/l-tab.vue +20 -15
- package/dist/runtime/components/l-tab.vue.d.ts +2 -0
- package/dist/runtime/components/l-table.vue +444 -560
- package/dist/runtime/components/l-table.vue.d.ts +2 -0
- package/dist/runtime/components/l-tabs.vue +34 -16
- package/dist/runtime/components/l-tabs.vue.d.ts +2 -0
- package/dist/runtime/components/l-test2.vue +10 -9
- package/dist/runtime/components/l-test2.vue.d.ts +2 -0
- package/dist/runtime/components/l-time-picker.vue +53 -68
- package/dist/runtime/components/l-time-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-view-btn.vue.d.ts +2 -0
- package/dist/runtime/composables/mytest.d.ts +2 -0
- package/dist/runtime/composables/mytest.js +3 -0
- package/dist/runtime/formkit/Checkbox.vue +15 -18
- package/dist/runtime/formkit/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/formkit/DatePicker.vue +15 -18
- package/dist/runtime/formkit/DatePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Editor.vue +15 -18
- package/dist/runtime/formkit/Editor.vue.d.ts +2 -0
- package/dist/runtime/formkit/File.vue +30 -37
- package/dist/runtime/formkit/File.vue.d.ts +2 -0
- package/dist/runtime/formkit/FilePicker.vue +22 -25
- package/dist/runtime/formkit/FilePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/FileUpload.vue +22 -25
- package/dist/runtime/formkit/FileUpload.vue.d.ts +2 -0
- package/dist/runtime/formkit/Form.vue +79 -100
- package/dist/runtime/formkit/Form.vue.d.ts +2 -0
- package/dist/runtime/formkit/GroupSelect.vue +21 -27
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +2 -0
- package/dist/runtime/formkit/Input.vue +53 -61
- package/dist/runtime/formkit/Input.vue.d.ts +2 -0
- package/dist/runtime/formkit/InputXlsx.vue +15 -18
- package/dist/runtime/formkit/InputXlsx.vue.d.ts +2 -0
- package/dist/runtime/formkit/OptionGroup.vue +20 -26
- package/dist/runtime/formkit/OptionGroup.vue.d.ts +2 -0
- package/dist/runtime/formkit/Radio.vue +15 -18
- package/dist/runtime/formkit/Radio.vue.d.ts +2 -0
- package/dist/runtime/formkit/Repeater.vue +62 -76
- package/dist/runtime/formkit/Repeater.vue.d.ts +2 -0
- package/dist/runtime/formkit/Select.vue +21 -29
- package/dist/runtime/formkit/Select.vue.d.ts +2 -0
- package/dist/runtime/formkit/TimePicker.vue +15 -19
- package/dist/runtime/formkit/TimePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Toggle.vue +13 -16
- package/dist/runtime/formkit/Toggle.vue.d.ts +2 -0
- package/dist/runtime/light.d.ts +1129 -6
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +24 -26
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/CustomField/index.vue +22 -29
- package/dist/runtime/pages/CustomField/index.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +8 -8
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/index.vue +7 -6
- package/dist/runtime/pages/EventLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/FileManager/index.vue.d.ts +2 -0
- package/dist/runtime/pages/MailLog/index.vue +7 -6
- package/dist/runtime/pages/MailLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/add.vue +26 -29
- package/dist/runtime/pages/Permission/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/all.vue +57 -73
- package/dist/runtime/pages/Permission/all.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/export.vue +49 -62
- package/dist/runtime/pages/Permission/export.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/index.vue +19 -20
- package/dist/runtime/pages/Permission/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/_name/update-child.vue +12 -14
- package/dist/runtime/pages/Role/_name/update-child.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add.vue +13 -15
- package/dist/runtime/pages/Role/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add2.vue +27 -38
- package/dist/runtime/pages/Role/add2.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/index.vue +100 -127
- package/dist/runtime/pages/Role/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/backup.vue +28 -36
- package/dist/runtime/pages/System/database/backup.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/process.vue +33 -43
- package/dist/runtime/pages/System/database/process.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/table.vue +168 -205
- package/dist/runtime/pages/System/database/table.vue.d.ts +2 -0
- package/dist/runtime/pages/System/fs.vue +95 -107
- package/dist/runtime/pages/System/fs.vue.d.ts +2 -0
- package/dist/runtime/pages/System/index.vue +30 -31
- package/dist/runtime/pages/System/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/mailtest.vue +29 -35
- package/dist/runtime/pages/System/mailtest.vue.d.ts +2 -0
- package/dist/runtime/pages/System/menu/index.vue +175 -223
- package/dist/runtime/pages/System/menu/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/package.vue +21 -21
- package/dist/runtime/pages/System/package.vue.d.ts +2 -0
- package/dist/runtime/pages/System/phpinfo.vue +11 -10
- package/dist/runtime/pages/System/phpinfo.vue.d.ts +2 -0
- package/dist/runtime/pages/System/setting.vue +42 -59
- package/dist/runtime/pages/System/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/System/test.vue.d.ts +2 -0
- package/dist/runtime/pages/System/view_as.vue +65 -68
- package/dist/runtime/pages/System/view_as.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +7 -7
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/add.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/index.vue +7 -6
- package/dist/runtime/pages/SystemValue/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Translate/index.vue +81 -100
- package/dist/runtime/pages/Translate/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/change-password.vue +38 -45
- package/dist/runtime/pages/User/_user_id/change-password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/edit.vue +35 -26
- package/dist/runtime/pages/User/_user_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/update-role.vue +33 -43
- package/dist/runtime/pages/User/_user_id/update-role.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/view.vue +35 -37
- package/dist/runtime/pages/User/_user_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/User/add.vue +52 -60
- package/dist/runtime/pages/User/add.vue.d.ts +2 -0
- package/dist/runtime/pages/User/index.vue +23 -32
- package/dist/runtime/pages/User/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/profile.vue +52 -58
- package/dist/runtime/pages/User/profile.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/bio-auth.vue +85 -95
- package/dist/runtime/pages/User/setting/bio-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/index.vue +27 -28
- package/dist/runtime/pages/User/setting/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/information.vue +28 -27
- package/dist/runtime/pages/User/setting/information.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/my_favorite.vue +29 -35
- package/dist/runtime/pages/User/setting/my_favorite.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/open_id.vue +140 -165
- package/dist/runtime/pages/User/setting/open_id.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/password.vue +37 -44
- package/dist/runtime/pages/User/setting/password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/style.vue +84 -102
- package/dist/runtime/pages/User/setting/style.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +51 -61
- package/dist/runtime/pages/User/setting/two-factor-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting.vue +9 -9
- package/dist/runtime/pages/User/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/UserLog/index.vue +7 -6
- package/dist/runtime/pages/UserLog/index.vue.d.ts +2 -0
- package/dist/types.d.mts +3 -1
- package/package.json +9 -11
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -7
- package/dist/types.d.ts +0 -1
|
@@ -1,139 +1,103 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useQuasar } from "quasar"
|
|
3
|
-
import { computed, ref, reactive } from "vue";
|
|
4
|
-
import { q, m } from "#imports";
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
const isAllowRestore = computed(() => {
|
|
102
|
-
return restore_fields.value.length > 0;
|
|
103
|
-
})
|
|
104
|
-
const showOnlyDelta = ref(false);
|
|
105
|
-
|
|
106
|
-
const getFilteredContent = computed(() => {
|
|
107
|
-
if (showOnlyDelta.value) {
|
|
108
|
-
const contents = {};
|
|
109
|
-
|
|
110
|
-
for (const key in selectedRevision.value.delta) {
|
|
111
|
-
contents[key] = selectedRevision.value.content[key];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return contents;
|
|
115
|
-
} else {
|
|
116
|
-
return selectedRevision.value.content;
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
const outputFormat = ref('side-by-side');
|
|
121
|
-
const getDiffHtml = (diffs) => {
|
|
122
|
-
if (!diffs) {
|
|
123
|
-
return '';
|
|
124
|
-
}
|
|
125
|
-
return Diff2Html.html(diffs, {
|
|
126
|
-
drawFileList: false,
|
|
127
|
-
matching: 'lines',
|
|
128
|
-
outputFormat: outputFormat.value,
|
|
129
|
-
highlight: true
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
</script>
|
|
135
|
-
|
|
136
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useQuasar } from "quasar";
|
|
3
|
+
import { computed, ref, reactive } from "vue";
|
|
4
|
+
import { q, m } from "#imports";
|
|
5
|
+
import * as Diff2Html from "diff2html";
|
|
6
|
+
import "diff2html/bundles/css/diff2html.min.css";
|
|
7
|
+
const quasar = useQuasar();
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
modelId: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
modelClass: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: true
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const { revisionsByModel } = await q({
|
|
19
|
+
"revisionsByModel": {
|
|
20
|
+
__args: {
|
|
21
|
+
model_id: parseInt(props.modelId),
|
|
22
|
+
model_class: props.modelClass
|
|
23
|
+
},
|
|
24
|
+
revision_id: true,
|
|
25
|
+
revisionBy: true,
|
|
26
|
+
createdTime: true,
|
|
27
|
+
content: true,
|
|
28
|
+
delta: true,
|
|
29
|
+
diff: true
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const num_of_revisions = computed(() => {
|
|
33
|
+
return revisionsByModel.length;
|
|
34
|
+
});
|
|
35
|
+
const showDialog = ref(false);
|
|
36
|
+
const selectedRevision = ref(null);
|
|
37
|
+
const onClick = (revision) => {
|
|
38
|
+
selectedRevision.value = revision;
|
|
39
|
+
showDialog.value = true;
|
|
40
|
+
};
|
|
41
|
+
const onRestore = () => {
|
|
42
|
+
quasar.dialog({
|
|
43
|
+
title: "Restore",
|
|
44
|
+
message: "Are you sure you want to restore selected fields?",
|
|
45
|
+
ok: "Yes",
|
|
46
|
+
cancel: "No"
|
|
47
|
+
}).onOk(async () => {
|
|
48
|
+
if (await m("restoreRevision", {
|
|
49
|
+
revision_id: selectedRevision.value.revision_id,
|
|
50
|
+
fields: restore_fields.value
|
|
51
|
+
})) {
|
|
52
|
+
quasar.notify({
|
|
53
|
+
message: "Restored successfully",
|
|
54
|
+
color: "positive"
|
|
55
|
+
});
|
|
56
|
+
window.location.reload();
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
const restore_fields = ref([]);
|
|
61
|
+
const onToggleAll = () => {
|
|
62
|
+
if (restore_fields.value.length === 0) {
|
|
63
|
+
restore_fields.value = Object.keys(getFilteredContent.value);
|
|
64
|
+
} else {
|
|
65
|
+
restore_fields.value = [];
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const isCheckedAll = computed(() => {
|
|
69
|
+
return restore_fields.value.length === Object.keys(getFilteredContent.value).length;
|
|
70
|
+
});
|
|
71
|
+
const isAllowRestore = computed(() => {
|
|
72
|
+
return restore_fields.value.length > 0;
|
|
73
|
+
});
|
|
74
|
+
const showOnlyDelta = ref(false);
|
|
75
|
+
const getFilteredContent = computed(() => {
|
|
76
|
+
if (showOnlyDelta.value) {
|
|
77
|
+
const contents = {};
|
|
78
|
+
for (const key in selectedRevision.value.delta) {
|
|
79
|
+
contents[key] = selectedRevision.value.content[key];
|
|
80
|
+
}
|
|
81
|
+
return contents;
|
|
82
|
+
} else {
|
|
83
|
+
return selectedRevision.value.content;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const outputFormat = ref("side-by-side");
|
|
87
|
+
const getDiffHtml = (diffs) => {
|
|
88
|
+
if (!diffs) {
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
91
|
+
return Diff2Html.html(diffs, {
|
|
92
|
+
drawFileList: false,
|
|
93
|
+
matching: "lines",
|
|
94
|
+
outputFormat: outputFormat.value,
|
|
95
|
+
highlight: true
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
</script>
|
|
99
|
+
|
|
100
|
+
<template>
|
|
137
101
|
<div>
|
|
138
102
|
|
|
139
103
|
<q-dialog v-model="showDialog" full-height full-width>
|
|
@@ -229,4 +193,4 @@ const getDiffHtml = (diffs) => {
|
|
|
229
193
|
</q-list>
|
|
230
194
|
</l-card>
|
|
231
195
|
</div>
|
|
232
|
-
</template>
|
|
196
|
+
</template>
|
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { computed } from
|
|
3
|
-
import { format } from "quasar"
|
|
4
|
-
const { humanStorageSize } = format
|
|
5
|
-
const props = defineProps({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
</script>
|
|
29
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { format } from "quasar";
|
|
4
|
+
const { humanStorageSize } = format;
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
storage: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const usagePercent = computed(() => {
|
|
12
|
+
return (props.storage.totalSpace - props.storage.freeSpace) / props.storage.totalSpace;
|
|
13
|
+
});
|
|
14
|
+
const progressColor = computed(() => {
|
|
15
|
+
if (usagePercent.value > 0.95) {
|
|
16
|
+
return "negative";
|
|
17
|
+
}
|
|
18
|
+
if (usagePercent.value > 0.9) {
|
|
19
|
+
return "warning";
|
|
20
|
+
}
|
|
21
|
+
return "primary";
|
|
22
|
+
});
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
30
26
|
<q-card>
|
|
31
27
|
<q-card-section>
|
|
32
28
|
{{ $t("Storage") }}
|
|
@@ -34,4 +30,4 @@ const progressColor = computed(() => {
|
|
|
34
30
|
{{ $t('storage_usage', [humanStorageSize(storage.freeSpace), humanStorageSize(storage.totalSpace)]) }}
|
|
35
31
|
</q-card-section>
|
|
36
32
|
</q-card>
|
|
37
|
-
</template>
|
|
33
|
+
</template>
|
|
@@ -1,46 +1,24 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { useLight, m } from "#imports"
|
|
3
|
-
const light = useLight()
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const emits = defineEmits(["submit"])
|
|
24
|
-
|
|
25
|
-
const onSubmit = async (d: LSystemSettingAuthenticationProps) => {
|
|
26
|
-
|
|
27
|
-
//at least one authentication method should be enabled
|
|
28
|
-
if (d.authentication_password_based === "0" && !d.authentication_google_client_id && !d.authentication_facebook_app_id && !d.authentication_microsoft_client_id) {
|
|
29
|
-
|
|
30
|
-
light.notify({ message: "At least one authentication method should be enabled", color: "negative" })
|
|
31
|
-
return
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
emits("submit", d)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
</script>
|
|
41
|
-
<template>
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useLight, m } from "#imports";
|
|
3
|
+
const light = useLight();
|
|
4
|
+
defineProps({
|
|
5
|
+
authentication_password_based: { type: String, required: true, default: "1" },
|
|
6
|
+
authentication_google_client_id: { type: String, required: true, default: "" },
|
|
7
|
+
authentication_facebook_app_id: { type: String, required: true, default: "" },
|
|
8
|
+
authentication_microsoft_client_id: { type: String, required: true, default: "" },
|
|
9
|
+
authentication_microsoft_tenant_id: { type: String, required: true, default: "" }
|
|
10
|
+
});
|
|
11
|
+
const emits = defineEmits(["submit"]);
|
|
12
|
+
const onSubmit = async (d) => {
|
|
13
|
+
if (d.authentication_password_based === "0" && !d.authentication_google_client_id && !d.authentication_facebook_app_id && !d.authentication_microsoft_client_id) {
|
|
14
|
+
light.notify({ message: "At least one authentication method should be enabled", color: "negative" });
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
emits("submit", d);
|
|
18
|
+
};
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
44
22
|
<form-kit type="l-form" :bordered="false" @submit="onSubmit" :value="$props">
|
|
45
23
|
|
|
46
24
|
<form-kit label="Password based" type="l-checkbox" name="authentication_password_based" true-value="1"
|
|
@@ -54,4 +32,4 @@ const onSubmit = async (d: LSystemSettingAuthenticationProps) => {
|
|
|
54
32
|
<form-kit label="Microsoft Client ID" type="l-input" name="authentication_microsoft_client_id" />
|
|
55
33
|
<form-kit label="Microsoft Tenant ID" type="l-input" name="authentication_microsoft_tenant_id" />
|
|
56
34
|
</form-kit>
|
|
57
|
-
</template>
|
|
35
|
+
</template>
|
|
@@ -1,68 +1,52 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { q, m } from
|
|
3
|
-
import { useQuasar } from
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
await m("updateAppConfigs", { data })
|
|
40
|
-
//update the modelValue
|
|
41
|
-
Object.keys(d).forEach((key) => {
|
|
42
|
-
modelValue.value[key as keyof LSystemSettingDeveloperProps] = d[key as keyof LSystemSettingDeveloperProps]
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
$q.notify({ message: "Settings saved", color: "positive" })
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
</script>
|
|
49
|
-
<template>
|
|
50
|
-
<FormKit type="l-form" :bordered="false" :value="{
|
|
51
|
-
mode: modelValue.mode,
|
|
52
|
-
custom_field_models: modelValue.custom_field_models
|
|
53
|
-
}" @submit="onSubmit" #default="{ value }">
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q, m } from "#imports";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
const $q = useQuasar();
|
|
5
|
+
const modelValue = defineModel({ type: Object, ...{
|
|
6
|
+
required: true
|
|
7
|
+
} });
|
|
8
|
+
if (modelValue.value.mode != "prod") {
|
|
9
|
+
modelValue.value.mode = "dev";
|
|
10
|
+
} else {
|
|
11
|
+
modelValue.value.mode = "prod";
|
|
12
|
+
}
|
|
13
|
+
if (modelValue.value.custom_field_models) {
|
|
14
|
+
modelValue.value.custom_field_models = modelValue.value.custom_field_models.split(",");
|
|
15
|
+
} else {
|
|
16
|
+
modelValue.value.custom_field_models = [];
|
|
17
|
+
}
|
|
18
|
+
const onSubmit = async (d) => {
|
|
19
|
+
let data = [];
|
|
20
|
+
Object.keys(d).forEach((key) => {
|
|
21
|
+
data.push({
|
|
22
|
+
name: key,
|
|
23
|
+
value: d[key]
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
await m("updateAppConfigs", { data });
|
|
27
|
+
Object.keys(d).forEach((key) => {
|
|
28
|
+
modelValue.value[key] = d[key];
|
|
29
|
+
});
|
|
30
|
+
$q.notify({ message: "Settings saved", color: "positive" });
|
|
31
|
+
};
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<FormKit type="l-form" :bordered="false" :value="{
|
|
36
|
+
mode: modelValue.mode,
|
|
37
|
+
custom_field_models: modelValue.custom_field_models
|
|
38
|
+
}" @submit="onSubmit" #default="{ value }">
|
|
54
39
|
|
|
55
40
|
<form-kit type="l-select" name="custom_field_models" label="Custom Field Model" use-input use-chips multiple
|
|
56
41
|
hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" />
|
|
57
42
|
|
|
58
|
-
<FormKit label="Mode" type="l-select" :options="[
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
]" name="mode" validation="required">
|
|
43
|
+
<FormKit label="Mode" type="l-select" :options="[
|
|
44
|
+
{ label: 'Production', value: 'prod' },
|
|
45
|
+
{ label: 'Development', value: 'dev' }
|
|
46
|
+
]" name="mode" validation="required">
|
|
63
47
|
|
|
64
48
|
</FormKit>
|
|
65
49
|
|
|
66
50
|
|
|
67
51
|
</FormKit>
|
|
68
|
-
</template>
|
|
52
|
+
</template>
|
|
@@ -1,60 +1,44 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
await m("updateAppConfigs", { data })
|
|
43
|
-
|
|
44
|
-
modelValue.value.forget_password_enabled = d.forget_password_enabled
|
|
45
|
-
modelValue.value.forget_password_subject = d.forget_password_subject
|
|
46
|
-
modelValue.value.forget_password_template = d.forget_password_template
|
|
47
|
-
|
|
48
|
-
$q.notify({ message: "Settings saved", color: "positive" })
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
</script>
|
|
52
|
-
<template>
|
|
53
|
-
<form-kit type="l-form" :value="{
|
|
54
|
-
forget_password_enabled: modelValue.forget_password_enabled,
|
|
55
|
-
forget_password_subject: modelValue.forget_password_subject,
|
|
56
|
-
forget_password_template: modelValue.forget_password_template,
|
|
57
|
-
}" @submit="onSubmit">
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q, m } from "#imports";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
const $q = useQuasar();
|
|
5
|
+
const modelValue = defineModel({ type: Object, ...{
|
|
6
|
+
required: true
|
|
7
|
+
} });
|
|
8
|
+
if (modelValue.value.forget_password_enabled != "0") {
|
|
9
|
+
modelValue.value.forget_password_enabled = "1";
|
|
10
|
+
}
|
|
11
|
+
if (!modelValue.value.forget_password_subject) {
|
|
12
|
+
modelValue.value.forget_password_subject = "Password Reset Code";
|
|
13
|
+
}
|
|
14
|
+
if (!modelValue.value.forget_password_template) {
|
|
15
|
+
modelValue.value.forget_password_template = "Your password reset code is: {code}";
|
|
16
|
+
}
|
|
17
|
+
const onSubmit = async (d) => {
|
|
18
|
+
let data = [];
|
|
19
|
+
Object.keys(d).forEach((key) => {
|
|
20
|
+
if (d[key] === void 0) {
|
|
21
|
+
d[key] = "";
|
|
22
|
+
}
|
|
23
|
+
data.push({
|
|
24
|
+
name: key,
|
|
25
|
+
value: d[key]
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
await m("updateAppConfigs", { data });
|
|
29
|
+
modelValue.value.forget_password_enabled = d.forget_password_enabled;
|
|
30
|
+
modelValue.value.forget_password_subject = d.forget_password_subject;
|
|
31
|
+
modelValue.value.forget_password_template = d.forget_password_template;
|
|
32
|
+
$q.notify({ message: "Settings saved", color: "positive" });
|
|
33
|
+
};
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<form-kit type="l-form" :value="{
|
|
38
|
+
forget_password_enabled: modelValue.forget_password_enabled,
|
|
39
|
+
forget_password_subject: modelValue.forget_password_subject,
|
|
40
|
+
forget_password_template: modelValue.forget_password_template
|
|
41
|
+
}" @submit="onSubmit">
|
|
58
42
|
<form-kit type="l-checkbox" label="Forget Password Enabled" name="forget_password_enabled" true-value="1"
|
|
59
43
|
false-value="0" />
|
|
60
44
|
|
|
@@ -63,4 +47,4 @@ const onSubmit = async (d: any) => {
|
|
|
63
47
|
input-type="textarea" />
|
|
64
48
|
|
|
65
49
|
</form-kit>
|
|
66
|
-
</template>
|
|
50
|
+
</template>
|