@hostlink/nuxt-light 1.27.7 → 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 -39
- 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,37 +1,31 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { m, q } from
|
|
3
|
-
import { useQuasar } from "quasar"
|
|
4
|
-
const quasar = useQuasar();
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
icon: "warning"
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { m, q } from "#imports";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
const quasar = useQuasar();
|
|
5
|
+
const { my } = await q({
|
|
6
|
+
my: {
|
|
7
|
+
email: true
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const onSubmit = async (data) => {
|
|
11
|
+
try {
|
|
12
|
+
await m("mailTest", data);
|
|
13
|
+
quasar.notify({
|
|
14
|
+
message: "Email sent",
|
|
15
|
+
color: "positive",
|
|
16
|
+
icon: "check"
|
|
17
|
+
});
|
|
18
|
+
} catch (e) {
|
|
19
|
+
quasar.notify({
|
|
20
|
+
message: e.message,
|
|
21
|
+
color: "negative",
|
|
22
|
+
icon: "warning"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
35
29
|
<l-page title="Mail test">
|
|
36
30
|
<form-kit type="l-form" @submit="onSubmit" :value="{
|
|
37
31
|
email: my.email,
|
|
@@ -44,4 +38,4 @@ const onSubmit = async (data) => {
|
|
|
44
38
|
</form-kit>
|
|
45
39
|
</form-kit>
|
|
46
40
|
</l-page>
|
|
47
|
-
</template>
|
|
41
|
+
</template>
|
|
@@ -1,225 +1,177 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed, inject } from
|
|
3
|
-
import { m, q } from
|
|
4
|
-
import { useQuasar, Dialog } from
|
|
5
|
-
import { useI18n } from
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
parent.children[index] = temp;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
const onAddChildMenu = (node, type) => {
|
|
180
|
-
|
|
181
|
-
//first char to upper case
|
|
182
|
-
type = type.charAt(0).toUpperCase() + type.slice(1);
|
|
183
|
-
|
|
184
|
-
node.children.push({
|
|
185
|
-
label: type,
|
|
186
|
-
uuid: getUUID(),
|
|
187
|
-
parent: node.uuid,
|
|
188
|
-
icon: 'sym_o_' + type.toLowerCase(),
|
|
189
|
-
children: [],
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
const onAddSeparator = (node) => {
|
|
194
|
-
node.children.push({
|
|
195
|
-
label: '[Separator]',
|
|
196
|
-
uuid: getUUID(),
|
|
197
|
-
parent: node.uuid,
|
|
198
|
-
children: [],
|
|
199
|
-
type: 'separator',
|
|
200
|
-
spaced: true,
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
const onAddHeader = (node) => {
|
|
207
|
-
node.children.push({
|
|
208
|
-
label: '[Header]',
|
|
209
|
-
uuid: getUUID(),
|
|
210
|
-
parent: node.uuid,
|
|
211
|
-
children: [],
|
|
212
|
-
type: 'header',
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
const menusOnly = computed(() => {
|
|
218
|
-
return menus.value.filter((item) => !item.type);
|
|
219
|
-
});
|
|
220
|
-
</script>
|
|
221
|
-
|
|
222
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, inject } from "vue";
|
|
3
|
+
import { m, q } from "#imports";
|
|
4
|
+
import { useQuasar, Dialog } from "quasar";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
const { t } = useI18n();
|
|
7
|
+
const quasar = useQuasar();
|
|
8
|
+
const $q = quasar;
|
|
9
|
+
const { app: { customMenus } } = await q({
|
|
10
|
+
app: {
|
|
11
|
+
customMenus: true
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const menus = ref([
|
|
15
|
+
{
|
|
16
|
+
label: "[Root]",
|
|
17
|
+
uuid: "ROOT",
|
|
18
|
+
children: customMenus.map((m2) => {
|
|
19
|
+
m2.parent = "ROOT";
|
|
20
|
+
return m2;
|
|
21
|
+
}),
|
|
22
|
+
type: "root"
|
|
23
|
+
}
|
|
24
|
+
]);
|
|
25
|
+
const selected = ref("ROOT");
|
|
26
|
+
const tree1 = ref(null);
|
|
27
|
+
const getUUID = () => {
|
|
28
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(c) {
|
|
29
|
+
let r = Math.random() * 16 | 0, v = c == "x" ? r : r & 3 | 8;
|
|
30
|
+
return v.toString(16);
|
|
31
|
+
}).toUpperCase();
|
|
32
|
+
};
|
|
33
|
+
const onReload = async () => {
|
|
34
|
+
const data = await q({
|
|
35
|
+
app: {
|
|
36
|
+
customMenus: true
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
menus.value[0].children = data.app.customMenus;
|
|
40
|
+
};
|
|
41
|
+
const onAddChild = (node) => {
|
|
42
|
+
$q.dialog({
|
|
43
|
+
title: t("Add child menu"),
|
|
44
|
+
message: t("Enter menu label"),
|
|
45
|
+
prompt: {
|
|
46
|
+
model: ""
|
|
47
|
+
},
|
|
48
|
+
cancel: true,
|
|
49
|
+
persistent: true
|
|
50
|
+
}).onOk((data) => {
|
|
51
|
+
if (data === "") return;
|
|
52
|
+
node.children.push({
|
|
53
|
+
label: data,
|
|
54
|
+
uuid: getUUID(),
|
|
55
|
+
parent: node.uuid,
|
|
56
|
+
children: [],
|
|
57
|
+
icon: "sym_o_link"
|
|
58
|
+
});
|
|
59
|
+
tree1.value.setExpanded(selected.value, true);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
const onRemove = (node) => {
|
|
63
|
+
const parent = node.parent;
|
|
64
|
+
if (parent) {
|
|
65
|
+
const parentNode = tree1.value.getNodeByKey(parent);
|
|
66
|
+
parentNode.children = parentNode.children.filter((item) => item.uuid !== node.uuid);
|
|
67
|
+
selected.value = parent;
|
|
68
|
+
} else {
|
|
69
|
+
menus.value = menus.value.filter((item) => item.uuid !== node.uuid);
|
|
70
|
+
selected.value = null;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const splitterModel = ref(20);
|
|
74
|
+
const selectedNode = computed(() => {
|
|
75
|
+
if (selected.value == "ROOT") return menus.value[0];
|
|
76
|
+
return tree1.value.getNodeByKey(selected.value);
|
|
77
|
+
});
|
|
78
|
+
const reloadMenu = inject("reloadMenu");
|
|
79
|
+
const onSave = () => {
|
|
80
|
+
quasar.dialog({
|
|
81
|
+
title: "Save Menu",
|
|
82
|
+
message: "Are you sure to save menu?",
|
|
83
|
+
cancel: true,
|
|
84
|
+
persistent: true
|
|
85
|
+
}).onOk(async () => {
|
|
86
|
+
if (await m("updateAppMenus", {
|
|
87
|
+
data: menus.value[0].children
|
|
88
|
+
})) {
|
|
89
|
+
quasar.notify({
|
|
90
|
+
message: "Menu saved",
|
|
91
|
+
color: "positive",
|
|
92
|
+
icon: "check",
|
|
93
|
+
position: "top",
|
|
94
|
+
timeout: 1e3
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
reloadMenu();
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
const showMove = ref(false);
|
|
101
|
+
const onMove = () => {
|
|
102
|
+
showMove.value = true;
|
|
103
|
+
};
|
|
104
|
+
const moveTarget = ref(null);
|
|
105
|
+
const onMoveConfirm = () => {
|
|
106
|
+
const selectedNode2 = tree1.value.getNodeByKey(selected.value);
|
|
107
|
+
const newNode = JSON.parse(JSON.stringify(selectedNode2));
|
|
108
|
+
onRemove(selectedNode2);
|
|
109
|
+
newNode.parent = moveTarget.value;
|
|
110
|
+
let targetNode = tree1.value.getNodeByKey(moveTarget.value);
|
|
111
|
+
targetNode.children = targetNode.children || [];
|
|
112
|
+
targetNode.children.push(newNode);
|
|
113
|
+
tree1.value.setExpanded(moveTarget.value, true);
|
|
114
|
+
showMove.value = false;
|
|
115
|
+
};
|
|
116
|
+
const getParentNode = (node) => {
|
|
117
|
+
if (!node.parent) return {
|
|
118
|
+
children: menus.value
|
|
119
|
+
};
|
|
120
|
+
return tree1.value.getNodeByKey(node.parent);
|
|
121
|
+
};
|
|
122
|
+
const onMoveUp = (node) => {
|
|
123
|
+
const parent = getParentNode(node);
|
|
124
|
+
const index = parent.children.findIndex((item) => item.uuid === node.uuid);
|
|
125
|
+
if (index > 0) {
|
|
126
|
+
const temp = parent.children[index - 1];
|
|
127
|
+
parent.children[index - 1] = node;
|
|
128
|
+
parent.children[index] = temp;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const onMoveDown = (node) => {
|
|
132
|
+
const parent = getParentNode(node);
|
|
133
|
+
const index = parent.children.findIndex((item) => item.uuid === node.uuid);
|
|
134
|
+
if (index < parent.children.length - 1) {
|
|
135
|
+
const temp = parent.children[index + 1];
|
|
136
|
+
parent.children[index + 1] = node;
|
|
137
|
+
parent.children[index] = temp;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
const onAddChildMenu = (node, type) => {
|
|
141
|
+
type = type.charAt(0).toUpperCase() + type.slice(1);
|
|
142
|
+
node.children.push({
|
|
143
|
+
label: type,
|
|
144
|
+
uuid: getUUID(),
|
|
145
|
+
parent: node.uuid,
|
|
146
|
+
icon: "sym_o_" + type.toLowerCase(),
|
|
147
|
+
children: []
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const onAddSeparator = (node) => {
|
|
151
|
+
node.children.push({
|
|
152
|
+
label: "[Separator]",
|
|
153
|
+
uuid: getUUID(),
|
|
154
|
+
parent: node.uuid,
|
|
155
|
+
children: [],
|
|
156
|
+
type: "separator",
|
|
157
|
+
spaced: true
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
const onAddHeader = (node) => {
|
|
161
|
+
node.children.push({
|
|
162
|
+
label: "[Header]",
|
|
163
|
+
uuid: getUUID(),
|
|
164
|
+
parent: node.uuid,
|
|
165
|
+
children: [],
|
|
166
|
+
type: "header"
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
const menusOnly = computed(() => {
|
|
170
|
+
return menus.value.filter((item) => !item.type);
|
|
171
|
+
});
|
|
172
|
+
</script>
|
|
173
|
+
|
|
174
|
+
<template>
|
|
223
175
|
<l-page>
|
|
224
176
|
<q-dialog v-model="showMove">
|
|
225
177
|
<l-card>
|
|
@@ -363,4 +315,4 @@ const menusOnly = computed(() => {
|
|
|
363
315
|
</l-card>
|
|
364
316
|
|
|
365
317
|
</l-page>
|
|
366
|
-
</template>
|
|
318
|
+
</template>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed } from
|
|
3
|
-
import { q } from
|
|
4
|
-
const { system } = await q({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})
|
|
9
|
-
const filter = ref("")
|
|
10
|
-
const filtered = computed(() => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
import { q } from "#imports";
|
|
4
|
+
const { system } = await q({
|
|
5
|
+
system: {
|
|
6
|
+
package: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
const filter = ref("");
|
|
10
|
+
const filtered = computed(() => {
|
|
11
|
+
if (!filter.value) return system.package;
|
|
12
|
+
return system.package.filter((row) => {
|
|
13
|
+
return Object.values(row).some((val) => {
|
|
14
|
+
return String(val).toLowerCase().includes(filter.value.toLowerCase());
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
21
|
<l-page title="System package">
|
|
22
22
|
<q-table dense :rows="filtered" :rows-per-page-options="[0]" hide-pagination flat bordered separator="cell">
|
|
23
23
|
<template v-slot:top-right>
|
|
@@ -29,4 +29,4 @@ const filtered = computed(() => {
|
|
|
29
29
|
</template>
|
|
30
30
|
</q-table>
|
|
31
31
|
</l-page>
|
|
32
|
-
</template>
|
|
32
|
+
</template>
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { q } from
|
|
3
|
-
const { system } = await q({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})
|
|
8
|
-
</script>
|
|
9
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
const { system } = await q({
|
|
4
|
+
system: {
|
|
5
|
+
phpInfo: true
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
10
11
|
<l-page title="PHP info">
|
|
11
12
|
<iframe :srcdoc="system.phpInfo" style="height: 700px;" class="full-width no-border"></iframe>
|
|
12
13
|
</l-page>
|
|
13
|
-
</template>
|
|
14
|
+
</template>
|