@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,28 +1,26 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { getObject, q } from "#imports"
|
|
3
|
-
import { ref } from "vue"
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</script>
|
|
25
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { getObject, q } from "#imports";
|
|
3
|
+
import { ref } from "vue";
|
|
4
|
+
const obj = await getObject(["name", "model", "validation", "type", "label", "options", "default_value", "placeholder", "order", "help"]);
|
|
5
|
+
const types = [
|
|
6
|
+
{ label: "Text", value: "text" },
|
|
7
|
+
{ label: "Textarea", value: "textarea" },
|
|
8
|
+
{ label: "Select", value: "select" },
|
|
9
|
+
{ label: "Date", value: "date" },
|
|
10
|
+
{ label: "Time", value: "time" }
|
|
11
|
+
];
|
|
12
|
+
const { app } = await q({
|
|
13
|
+
app: {
|
|
14
|
+
customFieldModels: true
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const up = (v2) => {
|
|
18
|
+
console.log(v2);
|
|
19
|
+
};
|
|
20
|
+
const v = ref("required");
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
26
24
|
<l-page>
|
|
27
25
|
|
|
28
26
|
<form-kit type="l-form" :value="obj" #default="{ value, node }">
|
|
@@ -61,4 +59,4 @@ const v = ref("required")
|
|
|
61
59
|
|
|
62
60
|
</form-kit>
|
|
63
61
|
</l-page>
|
|
64
|
-
</template>
|
|
62
|
+
</template>
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { model, q } from
|
|
3
|
-
import { resolveComponent } from
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
const addComponent = await resolveComponent('l-custom-field-add')
|
|
25
|
-
|
|
26
|
-
</script>
|
|
27
|
-
<template>
|
|
28
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { model, q } from "#imports";
|
|
3
|
+
import { resolveComponent } from "vue";
|
|
4
|
+
const onRequest = async (request) => {
|
|
5
|
+
request.loadObjects("CustomField");
|
|
6
|
+
};
|
|
7
|
+
const { app } = await q({
|
|
8
|
+
app: {
|
|
9
|
+
customFieldModels: true
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const columns = model("CustomField").columns({
|
|
13
|
+
name: true,
|
|
14
|
+
model: true,
|
|
15
|
+
type: true,
|
|
16
|
+
validation: true
|
|
17
|
+
});
|
|
18
|
+
const addComponent = await resolveComponent("l-custom-field-add");
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
29
22
|
<l-page>
|
|
30
23
|
<p>
|
|
31
24
|
Customize your Models with your own fields. Make sure to use the below added fields on the address formats
|
|
@@ -40,4 +33,4 @@ const addComponent = await resolveComponent('l-custom-field-add')
|
|
|
40
33
|
|
|
41
34
|
|
|
42
35
|
</l-page>
|
|
43
|
-
</template>
|
|
36
|
+
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { getObject } from "#imports"
|
|
3
|
-
const obj = await getObject(["eventlog_id", "class", "id", "action", "created_time", "username", "source", "target", "different"]);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { getObject } from "#imports";
|
|
3
|
+
const obj = await getObject(["eventlog_id", "class", "id", "action", "created_time", "username", "source", "target", "different"]);
|
|
4
|
+
const splitterModel = 50;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
8
|
<l-page>
|
|
9
9
|
<l-card>
|
|
10
10
|
<l-list>
|
|
@@ -41,4 +41,4 @@ const splitterModel = 50;
|
|
|
41
41
|
</l-card>
|
|
42
42
|
|
|
43
43
|
</l-page>
|
|
44
|
-
</template>
|
|
44
|
+
</template>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { model } from "#imports"
|
|
3
|
-
const columns = model(
|
|
4
|
-
</script>
|
|
5
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { model } from "#imports";
|
|
3
|
+
const columns = model("EventLog").columns(["eventlog_id", "class", "id", "action", "created_time", "username"]);
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
6
7
|
<l-page>
|
|
7
8
|
|
|
8
9
|
<l-table @request-data="$event.loadObjects('EventLog')" :columns="columns"
|
|
@@ -10,4 +11,4 @@ const columns = model('EventLog').columns(['eventlog_id', 'class', 'id', 'action
|
|
|
10
11
|
|
|
11
12
|
</l-table>
|
|
12
13
|
</l-page>
|
|
13
|
-
</template>
|
|
14
|
+
</template>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { model } from "#imports"
|
|
3
|
-
const columns = model("MailLog").columns(["maillog_id", "from", "to", "subject", "created_time"])
|
|
4
|
-
</script>
|
|
5
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { model } from "#imports";
|
|
3
|
+
const columns = model("MailLog").columns(["maillog_id", "from", "to", "subject", "created_time"]);
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<template>
|
|
6
7
|
<l-page>
|
|
7
8
|
<l-table row-key="maillog_id" @request-data="$event.loadObjects('MailLog', {}, ['body'])" :columns="columns"
|
|
8
9
|
sort-by="maillog_id:desc">
|
|
@@ -13,4 +14,4 @@ const columns = model("MailLog").columns(["maillog_id", "from", "to", "subject",
|
|
|
13
14
|
|
|
14
15
|
</l-table>
|
|
15
16
|
</l-page>
|
|
16
|
-
</template>
|
|
17
|
+
</template>
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { reactive } from
|
|
3
|
-
import { q, m } from
|
|
4
|
-
import { useRouter } from "vue-router"
|
|
5
|
-
const obj = reactive({
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
let roles = await q("listRole", ["name"]);
|
|
9
|
-
roles = roles.map((role) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</script>
|
|
28
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactive } from "vue";
|
|
3
|
+
import { q, m } from "../../";
|
|
4
|
+
import { useRouter } from "vue-router";
|
|
5
|
+
const obj = reactive({
|
|
6
|
+
roles: []
|
|
7
|
+
});
|
|
8
|
+
let roles = await q("listRole", ["name"]);
|
|
9
|
+
roles = roles.map((role) => {
|
|
10
|
+
return {
|
|
11
|
+
label: role.name,
|
|
12
|
+
value: role.name
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
const router = useRouter();
|
|
16
|
+
const onSave = async () => {
|
|
17
|
+
await m("addPermissionRoles", {
|
|
18
|
+
value: obj.value,
|
|
19
|
+
roles: obj.roles
|
|
20
|
+
});
|
|
21
|
+
router.push(`/Permission`);
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
29
26
|
<l-page>
|
|
30
27
|
<l-form @save="onSave">
|
|
31
28
|
|
|
@@ -39,4 +36,4 @@ const onSave = async () => {
|
|
|
39
36
|
</l-form>
|
|
40
37
|
|
|
41
38
|
</l-page>
|
|
42
|
-
</template>
|
|
39
|
+
</template>
|
|
@@ -1,75 +1,59 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { reactive } from
|
|
3
|
-
import { m, api } from
|
|
4
|
-
import { useI18n } from
|
|
5
|
-
const { t } = useI18n();
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} else {
|
|
58
|
-
m("removePermission", { value: permission, role })
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//update rows
|
|
62
|
-
rows.forEach(row => {
|
|
63
|
-
if (row.permission == permission) {
|
|
64
|
-
row[role] = value;
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactive } from "vue";
|
|
3
|
+
import { m, api } from "#imports";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
const { t } = useI18n();
|
|
6
|
+
const { app } = await api.query({
|
|
7
|
+
app: {
|
|
8
|
+
permissions: true,
|
|
9
|
+
roles: {
|
|
10
|
+
name: true,
|
|
11
|
+
permissions: true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const roles = app.roles;
|
|
16
|
+
const columns = [{
|
|
17
|
+
label: t("Permission"),
|
|
18
|
+
field: "permission",
|
|
19
|
+
align: "left"
|
|
20
|
+
}];
|
|
21
|
+
roles.forEach((role) => {
|
|
22
|
+
columns.push({
|
|
23
|
+
label: role.name,
|
|
24
|
+
field: role.name,
|
|
25
|
+
align: "left"
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
const rows = reactive([]);
|
|
29
|
+
app.permissions.forEach((permission) => {
|
|
30
|
+
let row = {
|
|
31
|
+
permission
|
|
32
|
+
};
|
|
33
|
+
roles.forEach((role) => {
|
|
34
|
+
if (role.permissions.indexOf(permission) != -1) {
|
|
35
|
+
row[role.name] = true;
|
|
36
|
+
} else {
|
|
37
|
+
row[role.name] = false;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
rows.push(row);
|
|
41
|
+
});
|
|
42
|
+
const onUpdate = (value, role, permission) => {
|
|
43
|
+
if (value) {
|
|
44
|
+
m("addPermission", { value: permission, role });
|
|
45
|
+
} else {
|
|
46
|
+
m("removePermission", { value: permission, role });
|
|
47
|
+
}
|
|
48
|
+
rows.forEach((row) => {
|
|
49
|
+
if (row.permission == permission) {
|
|
50
|
+
row[role] = value;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<template>
|
|
73
57
|
<l-page>
|
|
74
58
|
<q-table :columns="columns" flat bordered :rows="rows" :pagination="{ rowsPerPage: 0 }" dense>
|
|
75
59
|
<template #body="props">
|
|
@@ -86,4 +70,4 @@ const onUpdate = (value, role, permission) => {
|
|
|
86
70
|
</template>
|
|
87
71
|
</q-table>
|
|
88
72
|
</l-page>
|
|
89
|
-
</template>
|
|
73
|
+
</template>
|
|
@@ -1,64 +1,51 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { reactive } from
|
|
3
|
-
import { utils, writeFileXLSX } from
|
|
4
|
-
import { api } from
|
|
5
|
-
const obj = reactive({
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
data.push(row);
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const ws = utils.json_to_sheet(data)
|
|
55
|
-
const wb = utils.book_new()
|
|
56
|
-
utils.book_append_sheet(wb, ws, "Roles")
|
|
57
|
-
writeFileXLSX(wb, "permission.xlsx")
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
</script>
|
|
61
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactive } from "vue";
|
|
3
|
+
import { utils, writeFileXLSX } from "xlsx";
|
|
4
|
+
import { api } from "#imports";
|
|
5
|
+
const obj = reactive({
|
|
6
|
+
roles: []
|
|
7
|
+
});
|
|
8
|
+
const { app } = await api.query({
|
|
9
|
+
app: {
|
|
10
|
+
permissions: true,
|
|
11
|
+
roles: {
|
|
12
|
+
name: true,
|
|
13
|
+
permissions: true
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
let roles = app.roles.map((role) => {
|
|
18
|
+
return {
|
|
19
|
+
label: role.name,
|
|
20
|
+
value: role.name
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
const submit = () => {
|
|
24
|
+
let e = app.roles.filter((role) => {
|
|
25
|
+
return obj.roles.indexOf(role.name) != -1;
|
|
26
|
+
});
|
|
27
|
+
let data = [];
|
|
28
|
+
app.permissions.forEach((permission) => {
|
|
29
|
+
let row = {
|
|
30
|
+
permission
|
|
31
|
+
};
|
|
32
|
+
e.forEach((role) => {
|
|
33
|
+
if (role.permissions.indexOf(permission) != -1) {
|
|
34
|
+
row[role.name] = "Yes";
|
|
35
|
+
} else {
|
|
36
|
+
row[role.name] = "";
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
data.push(row);
|
|
40
|
+
});
|
|
41
|
+
const ws = utils.json_to_sheet(data);
|
|
42
|
+
const wb = utils.book_new();
|
|
43
|
+
utils.book_append_sheet(wb, ws, "Roles");
|
|
44
|
+
writeFileXLSX(wb, "permission.xlsx");
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<template>
|
|
62
49
|
<l-page>
|
|
63
50
|
<l-form submit-label="Export" submit-icon="sym_o_download" @submit="submit">
|
|
64
51
|
<l-field label="Roles" stack-label>
|
|
@@ -69,4 +56,4 @@ const submit = () => {
|
|
|
69
56
|
|
|
70
57
|
|
|
71
58
|
</l-page>
|
|
72
|
-
</template>
|
|
59
|
+
</template>
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
const columns = [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
const columns = [
|
|
3
|
+
{
|
|
4
|
+
label: "Role",
|
|
5
|
+
name: "role",
|
|
6
|
+
sortable: true,
|
|
7
|
+
searchable: true
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
label: "Permission",
|
|
11
|
+
name: "value",
|
|
12
|
+
sortable: true,
|
|
13
|
+
searchable: true
|
|
14
|
+
}
|
|
15
|
+
];
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
20
19
|
<l-page>
|
|
21
20
|
<l-table row-key="permission_id" @request-data="$event.loadObjects('Permission')" :columns="columns"
|
|
22
21
|
:actions="['delete']"></l-table>
|
|
23
22
|
</l-page>
|
|
24
|
-
</template>
|
|
23
|
+
</template>
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useRoute } from
|
|
3
|
-
import { q } from
|
|
4
|
-
const route = useRoute();
|
|
5
|
-
const name = route.params.name;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</script>
|
|
13
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { q } from "../../../";
|
|
4
|
+
const route = useRoute();
|
|
5
|
+
const name = route.params.name;
|
|
6
|
+
const role = await q("getRole", {
|
|
7
|
+
name
|
|
8
|
+
}, ["childs"]);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
14
12
|
<l-page>
|
|
15
13
|
{{ name }}
|
|
16
14
|
{{ role }}
|
|
17
15
|
</l-page>
|
|
18
|
-
</template>
|
|
16
|
+
</template>
|