@hostlink/nuxt-light 1.27.8 → 1.28.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.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 +141 -127
- 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,17 +1,15 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { q } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
let roles = await q("listRole", ["name"]);
|
|
4
|
+
roles = roles.map((role) => {
|
|
5
|
+
return {
|
|
6
|
+
label: role.name,
|
|
7
|
+
value: role.name
|
|
8
|
+
};
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
15
13
|
<l-page>
|
|
16
14
|
<FormKit type="l-form" :value="{ childs: ['Users'] }" >
|
|
17
15
|
<FormKit type="l-input" name="name" label="Name" validation="required" />
|
|
@@ -19,4 +17,4 @@ roles = roles.map((role) => {
|
|
|
19
17
|
</FormKit>
|
|
20
18
|
|
|
21
19
|
</l-page>
|
|
22
|
-
</template>
|
|
20
|
+
</template>
|
|
@@ -1,40 +1,29 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { m, api } from
|
|
3
|
-
import { collect } from
|
|
4
|
-
const { app } = await api.query({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
}).all()
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const onSubmit = () => {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
</script>
|
|
37
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { m, api } from "#imports";
|
|
3
|
+
import { collect } from "collect.js";
|
|
4
|
+
const { app } = await api.query({
|
|
5
|
+
app: {
|
|
6
|
+
permissions: true
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
app.permissions = app.permissions.filter((permission) => permission != "*");
|
|
10
|
+
const g = collect(app.permissions).groupBy((permission) => permission.split(".")[0]).all();
|
|
11
|
+
const x = Object.keys(g).map((module) => {
|
|
12
|
+
return {
|
|
13
|
+
module,
|
|
14
|
+
permissions: collect(g[module]).map((permission) => {
|
|
15
|
+
return {
|
|
16
|
+
label: permission,
|
|
17
|
+
value: permission
|
|
18
|
+
};
|
|
19
|
+
}).all()
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
const onSubmit = () => {
|
|
23
|
+
};
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
38
27
|
<l-page>
|
|
39
28
|
|
|
40
29
|
<form-kit type="l-form" @submit="onSubmit" :value="{
|
|
@@ -65,4 +54,4 @@ const onSubmit = () => {
|
|
|
65
54
|
</form-kit>
|
|
66
55
|
|
|
67
56
|
</l-page>
|
|
68
|
-
</template>
|
|
57
|
+
</template>
|
|
@@ -1,129 +1,102 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useQuasar } from
|
|
3
|
-
import { q, m, notify, useAsyncData } from
|
|
4
|
-
import { useI18n } from
|
|
5
|
-
const { t } = useI18n();
|
|
6
|
-
const qua = useQuasar();
|
|
7
|
-
const { data, refresh } = await useAsyncData(
|
|
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
|
-
|
|
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
|
-
const onAddUser = async (value, user) => {
|
|
102
|
-
await m("addUserRole", {
|
|
103
|
-
role: value,
|
|
104
|
-
user_id: user.value.user_id
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
//notify
|
|
109
|
-
notify("User added to role")
|
|
110
|
-
|
|
111
|
-
refresh();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const onRemoveUser = async (value, user) => {
|
|
115
|
-
await m("removeUserRole", {
|
|
116
|
-
role: value,
|
|
117
|
-
user_id: user.value.user_id
|
|
118
|
-
|
|
119
|
-
});
|
|
120
|
-
//notify
|
|
121
|
-
notify("User removed from role")
|
|
122
|
-
refresh();
|
|
123
|
-
}
|
|
124
|
-
</script>
|
|
125
|
-
|
|
126
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useQuasar } from "quasar";
|
|
3
|
+
import { q, m, notify, useAsyncData } from "#imports";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
const { t } = useI18n();
|
|
6
|
+
const qua = useQuasar();
|
|
7
|
+
const { data, refresh } = await useAsyncData("role", async () => {
|
|
8
|
+
const data2 = await q({
|
|
9
|
+
app: {
|
|
10
|
+
roles: {
|
|
11
|
+
name: true,
|
|
12
|
+
canDelete: true,
|
|
13
|
+
canUpdate: true,
|
|
14
|
+
children: true,
|
|
15
|
+
user: {
|
|
16
|
+
name: true,
|
|
17
|
+
user_id: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
listUser: {
|
|
21
|
+
data: {
|
|
22
|
+
user_id: true,
|
|
23
|
+
name: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return data2.app;
|
|
29
|
+
});
|
|
30
|
+
let role_options = data.value.roles.map((r) => ({ label: r.name, value: r.name }));
|
|
31
|
+
let users = data.value.listUser.data;
|
|
32
|
+
const onDelete = async (role) => {
|
|
33
|
+
qua.dialog({
|
|
34
|
+
title: "Delete",
|
|
35
|
+
message: "Are you sure you want to delete this role and related role relations?",
|
|
36
|
+
cancel: true,
|
|
37
|
+
persistent: true
|
|
38
|
+
}).onOk(async () => {
|
|
39
|
+
await m("deleteRole", { name: role });
|
|
40
|
+
refresh();
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const columns = [
|
|
44
|
+
{
|
|
45
|
+
name: "_can_delete"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "name",
|
|
49
|
+
field: "name",
|
|
50
|
+
label: t("Name"),
|
|
51
|
+
align: "left",
|
|
52
|
+
sortable: true
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "children",
|
|
56
|
+
label: "Children",
|
|
57
|
+
align: "left"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "User",
|
|
61
|
+
align: "left",
|
|
62
|
+
name: "user"
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
const onRemoveChild = async (value, child) => {
|
|
66
|
+
await m("removeRoleChild", {
|
|
67
|
+
name: value,
|
|
68
|
+
child: child.value
|
|
69
|
+
});
|
|
70
|
+
notify("Role removed from role");
|
|
71
|
+
refresh();
|
|
72
|
+
};
|
|
73
|
+
const onAddChild = async (value, child) => {
|
|
74
|
+
await m("addRoleChild", {
|
|
75
|
+
name: value,
|
|
76
|
+
child: child.value.value
|
|
77
|
+
});
|
|
78
|
+
notify("Role added to role");
|
|
79
|
+
refresh();
|
|
80
|
+
};
|
|
81
|
+
const onAddUser = async (value, user) => {
|
|
82
|
+
await m("addUserRole", {
|
|
83
|
+
role: value,
|
|
84
|
+
user_id: user.value.user_id
|
|
85
|
+
});
|
|
86
|
+
notify("User added to role");
|
|
87
|
+
refresh();
|
|
88
|
+
};
|
|
89
|
+
const onRemoveUser = async (value, user) => {
|
|
90
|
+
await m("removeUserRole", {
|
|
91
|
+
role: value,
|
|
92
|
+
user_id: user.value.user_id
|
|
93
|
+
});
|
|
94
|
+
notify("User removed from role");
|
|
95
|
+
refresh();
|
|
96
|
+
};
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<template>
|
|
127
100
|
<l-page>
|
|
128
101
|
<q-table :rows="data.roles" flat bordered :columns="columns" :rows-per-page-options="[0]" dense>
|
|
129
102
|
<template #body-cell-_can_delete="props">
|
|
@@ -152,4 +125,4 @@ const onRemoveUser = async (value, user) => {
|
|
|
152
125
|
</template>
|
|
153
126
|
</q-table>
|
|
154
127
|
</l-page>
|
|
155
|
-
</template>
|
|
128
|
+
</template>
|
|
@@ -1,39 +1,31 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { q } from "#imports"
|
|
3
|
-
import { Loading } from "quasar";
|
|
4
|
-
const onClickDownload = async () => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const a = document.createElement("a");
|
|
29
|
-
a.download = file.name;
|
|
30
|
-
a.href = URL.createObjectURL(file);
|
|
31
|
-
a.click();
|
|
32
|
-
URL.revokeObjectURL(a.href);
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
import { Loading } from "quasar";
|
|
4
|
+
const onClickDownload = async () => {
|
|
5
|
+
Loading.show({
|
|
6
|
+
message: "Exporting database..."
|
|
7
|
+
});
|
|
8
|
+
const data = await q({
|
|
9
|
+
system: {
|
|
10
|
+
database: {
|
|
11
|
+
export: true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
Loading.hide();
|
|
16
|
+
const file = new File([data.system.database.export], "backup.sql", {
|
|
17
|
+
type: "text/plain;charset=utf-8"
|
|
18
|
+
});
|
|
19
|
+
const a = document.createElement("a");
|
|
20
|
+
a.download = file.name;
|
|
21
|
+
a.href = URL.createObjectURL(file);
|
|
22
|
+
a.click();
|
|
23
|
+
URL.revokeObjectURL(a.href);
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
36
28
|
<l-page title="Database backup">
|
|
37
29
|
<l-btn label="Download" icon="sym_o_download" @click="onClickDownload"></l-btn>
|
|
38
30
|
</l-page>
|
|
39
|
-
</template>
|
|
31
|
+
</template>
|
|
@@ -1,45 +1,35 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { q, useAsyncData } from "#imports"
|
|
3
|
-
import { ref, watch, onUnmounted } from "vue"
|
|
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
|
-
onUnmounted(() => {
|
|
36
|
-
if (interval)
|
|
37
|
-
clearInterval(interval)
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</script>
|
|
42
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q, useAsyncData } from "#imports";
|
|
3
|
+
import { ref, watch, onUnmounted } from "vue";
|
|
4
|
+
const loading = ref(false);
|
|
5
|
+
const { data, refresh } = await useAsyncData(async () => {
|
|
6
|
+
loading.value = true;
|
|
7
|
+
const { system } = await q({
|
|
8
|
+
system: {
|
|
9
|
+
database: {
|
|
10
|
+
processList: true
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
loading.value = false;
|
|
15
|
+
return system;
|
|
16
|
+
});
|
|
17
|
+
const autoRefresh = ref(0);
|
|
18
|
+
let interval = null;
|
|
19
|
+
watch(autoRefresh, (value) => {
|
|
20
|
+
if (interval)
|
|
21
|
+
clearInterval(interval);
|
|
22
|
+
if (value) {
|
|
23
|
+
interval = setInterval(refresh, value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
onUnmounted(() => {
|
|
27
|
+
if (interval)
|
|
28
|
+
clearInterval(interval);
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
43
33
|
<l-page title="System Database Process">
|
|
44
34
|
<q-table :rows="data.database.processList" hide-bottom v-bind="$light.styles.table" :loading="loading">
|
|
45
35
|
<template #top-left>
|
|
@@ -65,4 +55,4 @@ onUnmounted(() => {
|
|
|
65
55
|
</q-table>
|
|
66
56
|
|
|
67
57
|
</l-page>
|
|
68
|
-
</template>
|
|
58
|
+
</template>
|