@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,91 +1,78 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref } from
|
|
3
|
-
import { reloadNuxtApp, useLight, watch } from "#imports";
|
|
4
|
-
import { useQuasar } from
|
|
5
|
-
import { q } from
|
|
6
|
-
import { useRoute } from "vue-router";
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
light.setCurrentRoute(
|
|
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
|
-
FB.init({
|
|
77
|
-
appId: app.value.facebookAppId,
|
|
78
|
-
xfbml: true,
|
|
79
|
-
version: 'v21.0'
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</script>
|
|
88
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { reloadNuxtApp, useLight, watch } from "#imports";
|
|
4
|
+
import { useQuasar } from "quasar";
|
|
5
|
+
import { q } from "#imports";
|
|
6
|
+
import { useRoute } from "vue-router";
|
|
7
|
+
const route = useRoute();
|
|
8
|
+
const light = useLight();
|
|
9
|
+
const quasar = useQuasar();
|
|
10
|
+
light.setCurrentRoute(route);
|
|
11
|
+
watch(route, (to, from) => {
|
|
12
|
+
light.setCurrentRoute(to);
|
|
13
|
+
});
|
|
14
|
+
const app = ref(null);
|
|
15
|
+
try {
|
|
16
|
+
app.value = (await q({
|
|
17
|
+
app: {
|
|
18
|
+
version: true,
|
|
19
|
+
company: true,
|
|
20
|
+
companyLogo: true,
|
|
21
|
+
logged: true,
|
|
22
|
+
twoFactorAuthentication: true,
|
|
23
|
+
forgetPasswordEnabled: true,
|
|
24
|
+
googleClientId: true,
|
|
25
|
+
microsoftClientId: true,
|
|
26
|
+
microsoftTenantId: true,
|
|
27
|
+
passwordBasedEnabled: true,
|
|
28
|
+
facebookAppId: true
|
|
29
|
+
}
|
|
30
|
+
})).app;
|
|
31
|
+
light.company = app.value.company;
|
|
32
|
+
light.companyLogo = app.value.companyLogo;
|
|
33
|
+
} catch (e) {
|
|
34
|
+
quasar.dialog({
|
|
35
|
+
title: "Error",
|
|
36
|
+
message: e.message,
|
|
37
|
+
ok: "Reload"
|
|
38
|
+
}).onOk(() => {
|
|
39
|
+
window.location.reload();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const compatible_version = "1.16.0";
|
|
43
|
+
if (app.value.version != "dev") {
|
|
44
|
+
if (app.value.version <= compatible_version) {
|
|
45
|
+
quasar.dialog({
|
|
46
|
+
title: "Error",
|
|
47
|
+
message: `This app is not compatible with this version of the server. Please update the light api to version ${compatible_version} or higher.`,
|
|
48
|
+
ok: "Reload"
|
|
49
|
+
}).onOk(() => {
|
|
50
|
+
window.location.reload();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (app.value.facebookAppId) {
|
|
55
|
+
(function(d, s, id) {
|
|
56
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
|
57
|
+
if (d.getElementById(id)) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
js = d.createElement(s);
|
|
61
|
+
js.id = id;
|
|
62
|
+
js.src = "https://connect.facebook.net/en_US/sdk.js";
|
|
63
|
+
fjs.parentNode.insertBefore(js, fjs);
|
|
64
|
+
})(document, "script", "facebook-jssdk");
|
|
65
|
+
window.fbAsyncInit = function() {
|
|
66
|
+
FB.init({
|
|
67
|
+
appId: app.value.facebookAppId,
|
|
68
|
+
xfbml: true,
|
|
69
|
+
version: "v21.0"
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<template>
|
|
89
76
|
<q-layout v-if="!app.logged">
|
|
90
77
|
<q-page-container class="bg-grey-2" style="color:#1f1f1f">
|
|
91
78
|
<q-page padding>
|
|
@@ -101,4 +88,4 @@ if (app.value.facebookAppId) {
|
|
|
101
88
|
</template>
|
|
102
89
|
|
|
103
90
|
</l-app-main>
|
|
104
|
-
</template>
|
|
91
|
+
</template>
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}>({
|
|
9
|
-
required: true
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
</script>
|
|
13
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
const modelValue = defineModel({ type: Object, ...{
|
|
3
|
+
required: true
|
|
4
|
+
} });
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
14
8
|
<l-card title="Audit info">
|
|
15
9
|
<l-list>
|
|
16
10
|
<l-item label="Created time" v-if="modelValue.createdTime">{{ modelValue.createdTime }}</l-item>
|
|
@@ -19,4 +13,4 @@ const modelValue = defineModel<{
|
|
|
19
13
|
<l-item label="Updated by" v-if="modelValue.updatedBy">{{ modelValue.updatedBy }}</l-item>
|
|
20
14
|
</l-list>
|
|
21
15
|
</l-card>
|
|
22
|
-
</template>
|
|
16
|
+
</template>
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
30
|
-
const slots = computed(() => useSlots());
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useSlots } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
inlineActions: { type: Boolean, required: false, skipCheck: true },
|
|
5
|
+
dense: { type: Boolean, required: false, skipCheck: true },
|
|
6
|
+
rounded: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
7
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true },
|
|
8
|
+
icon: { type: String, required: false },
|
|
9
|
+
type: { type: String, required: false, default: "primary" }
|
|
10
|
+
});
|
|
11
|
+
const classes = computed(() => {
|
|
12
|
+
return [
|
|
13
|
+
`bg-${props.type}`,
|
|
14
|
+
"text-white"
|
|
15
|
+
];
|
|
16
|
+
});
|
|
17
|
+
const localIcon = computed(() => {
|
|
18
|
+
if (props.icon) return props.icon;
|
|
19
|
+
if (props.type === "info") return "sym_o_info";
|
|
20
|
+
if (props.type === "warning") return "sym_o_warning";
|
|
21
|
+
if (props.type === "positive") return "sym_o_check_circle_outline";
|
|
22
|
+
if (props.type === "negative") return "sym_o_error";
|
|
23
|
+
});
|
|
24
|
+
const slots = computed(() => useSlots());
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
34
28
|
<q-banner v-bind="$props" :class="classes">
|
|
35
29
|
|
|
36
30
|
<template v-slot:avatar v-if="localIcon">
|
|
@@ -41,4 +35,4 @@ const slots = computed(() => useSlots());
|
|
|
41
35
|
<slot :name="name" v-bind="props ?? {}"></slot>
|
|
42
36
|
</template>
|
|
43
37
|
</q-banner>
|
|
44
|
-
</template>
|
|
38
|
+
</template>
|
|
@@ -1,28 +1,24 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { useLight } from
|
|
3
|
-
import { QBar } from
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return c;
|
|
22
|
-
});
|
|
23
|
-
</script>
|
|
24
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useLight } from "#imports";
|
|
3
|
+
import { QBar } from "quasar";
|
|
4
|
+
import { computed } from "vue";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
color: { type: String, required: false, default: void 0 },
|
|
7
|
+
textColor: { type: String, required: false, default: "white" },
|
|
8
|
+
dense: { type: Boolean, required: false, skipCheck: true },
|
|
9
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true }
|
|
10
|
+
});
|
|
11
|
+
const light = useLight();
|
|
12
|
+
const barClass = computed(() => {
|
|
13
|
+
const c = [`text-${props.textColor}`];
|
|
14
|
+
const color = props.color || light.color;
|
|
15
|
+
c.push(`bg-${color}`);
|
|
16
|
+
return c;
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
25
21
|
<q-bar :class="barClass">
|
|
26
22
|
<slot></slot>
|
|
27
23
|
</q-bar>
|
|
28
|
-
</template>
|
|
24
|
+
</template>
|
|
@@ -1,41 +1,66 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import { useQuasar, QBtn } from "quasar";
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useQuasar, QBtn } from "quasar";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
permission: { type: String, required: false, default: "" },
|
|
5
|
+
confirmMessage: { type: String, required: false, default: "" },
|
|
6
|
+
confirmTitle: { type: String, required: false, default: "Confirm" },
|
|
7
|
+
size: { type: null, required: false },
|
|
8
|
+
type: { type: null, required: false },
|
|
9
|
+
to: { type: null, required: false },
|
|
10
|
+
replace: { type: Boolean, required: false, skipCheck: true },
|
|
11
|
+
href: { type: null, required: false },
|
|
12
|
+
target: { type: null, required: false },
|
|
13
|
+
label: { type: null, required: false },
|
|
14
|
+
icon: { type: null, required: false },
|
|
15
|
+
iconRight: { type: null, required: false },
|
|
16
|
+
outline: { type: Boolean, required: false, skipCheck: true },
|
|
17
|
+
flat: { type: Boolean, required: false, skipCheck: true },
|
|
18
|
+
unelevated: { type: Boolean, required: false, skipCheck: true },
|
|
19
|
+
rounded: { type: Boolean, required: false, skipCheck: true },
|
|
20
|
+
push: { type: Boolean, required: false, skipCheck: true },
|
|
21
|
+
square: { type: Boolean, required: false, skipCheck: true },
|
|
22
|
+
glossy: { type: Boolean, required: false, skipCheck: true },
|
|
23
|
+
fab: { type: Boolean, required: false, skipCheck: true },
|
|
24
|
+
fabMini: { type: Boolean, required: false, skipCheck: true },
|
|
25
|
+
padding: { type: null, required: false },
|
|
26
|
+
color: { type: null, required: false },
|
|
27
|
+
textColor: { type: null, required: false },
|
|
28
|
+
noCaps: { type: Boolean, required: false, skipCheck: true },
|
|
29
|
+
noWrap: { type: Boolean, required: false, skipCheck: true },
|
|
30
|
+
dense: { type: Boolean, required: false, skipCheck: true },
|
|
31
|
+
ripple: { type: Boolean, required: false, skipCheck: true },
|
|
32
|
+
tabindex: { type: null, required: false },
|
|
33
|
+
align: { type: null, required: false },
|
|
34
|
+
stack: { type: Boolean, required: false, skipCheck: true },
|
|
35
|
+
stretch: { type: Boolean, required: false, skipCheck: true },
|
|
36
|
+
loading: { type: [Boolean, null], required: false, skipCheck: true },
|
|
37
|
+
disable: { type: Boolean, required: false, skipCheck: true },
|
|
38
|
+
round: { type: Boolean, required: false, skipCheck: true },
|
|
39
|
+
percentage: { type: null, required: false },
|
|
40
|
+
darkPercentage: { type: Boolean, required: false, skipCheck: true },
|
|
41
|
+
onClick: { type: Function, required: false }
|
|
42
|
+
});
|
|
43
|
+
const $q = useQuasar();
|
|
44
|
+
const { onClick, ...filteredProps } = props;
|
|
45
|
+
const handleClick = function() {
|
|
46
|
+
if (props.confirmMessage) {
|
|
47
|
+
$q.dialog({
|
|
48
|
+
title: props.confirmTitle,
|
|
49
|
+
message: props.confirmMessage,
|
|
50
|
+
ok: "Yes",
|
|
51
|
+
cancel: "No"
|
|
52
|
+
}).onOk(() => {
|
|
53
|
+
onClick?.();
|
|
54
|
+
});
|
|
55
|
+
} else {
|
|
56
|
+
onClick?.();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
37
62
|
<q-btn v-if="$light.isGranted($props.permission)" @click="handleClick"
|
|
38
63
|
v-bind="$light.getButtonProps(filteredProps)">
|
|
39
64
|
<slot></slot>
|
|
40
65
|
</q-btn>
|
|
41
|
-
</template>
|
|
66
|
+
</template>
|