@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,50 +1,39 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { animations } from "@formkit/drag-and-drop";
|
|
3
|
-
import { useSlots, watch } from
|
|
4
|
-
import { useDragAndDrop } from
|
|
5
|
-
const slots = useSlots();
|
|
6
|
-
|
|
7
|
-
const
|
|
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
|
-
return item.props.name ?? Symbol();
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
</script>
|
|
39
|
-
<template>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { animations } from "@formkit/drag-and-drop";
|
|
3
|
+
import { useSlots, watch } from "vue";
|
|
4
|
+
import { useDragAndDrop } from "@formkit/drag-and-drop/vue";
|
|
5
|
+
const slots = useSlots();
|
|
6
|
+
const model = defineModel();
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
group: { type: [String, Symbol], required: false },
|
|
9
|
+
dragHandle: { type: String, required: false }
|
|
10
|
+
});
|
|
11
|
+
const [parent, items] = useDragAndDrop(slots.default(), {
|
|
12
|
+
plugins: [animations()],
|
|
13
|
+
group: props.group,
|
|
14
|
+
dragHandle: props.dragHandle
|
|
15
|
+
});
|
|
16
|
+
if (model.value === null) {
|
|
17
|
+
model.value = items.value.map((item) => {
|
|
18
|
+
return item.props.name;
|
|
19
|
+
});
|
|
20
|
+
} else {
|
|
21
|
+
items.value = model.value.map((name) => {
|
|
22
|
+
return items.value.find((item) => item.props.name === name);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
watch(items, () => {
|
|
26
|
+
model.value = items.value.map((item) => {
|
|
27
|
+
return item.props.name ?? Symbol();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
43
33
|
<div ref="parent">
|
|
44
34
|
<template v-for="item in items" :key="item">
|
|
45
35
|
<component :is="item" />
|
|
46
36
|
</template>
|
|
47
37
|
|
|
48
38
|
</div>
|
|
49
|
-
|
|
50
|
-
</template>
|
|
39
|
+
</template>
|
|
@@ -1,152 +1,165 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { computed, ref, useAttrs } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
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
|
-
|
|
124
|
-
|
|
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
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, ref, useAttrs } from "vue";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
const $q = useQuasar();
|
|
5
|
+
const editorRef = ref(null);
|
|
6
|
+
const textColorRef = ref(null);
|
|
7
|
+
const textHightlightRef = ref(null);
|
|
8
|
+
const highlight = ref("#ffff00aa");
|
|
9
|
+
const foreColor = ref("#000000");
|
|
10
|
+
const TextColorCMD = (cmd, name) => {
|
|
11
|
+
const edit = editorRef.value;
|
|
12
|
+
textColorRef.value.hide();
|
|
13
|
+
edit.caret.restore();
|
|
14
|
+
edit.runCmd(cmd, name);
|
|
15
|
+
edit.focus();
|
|
16
|
+
};
|
|
17
|
+
const TextHightlightCMD = (cmd, name) => {
|
|
18
|
+
const edit = editorRef.value;
|
|
19
|
+
textHightlightRef.value.hide();
|
|
20
|
+
edit.caret.restore();
|
|
21
|
+
edit.runCmd(cmd, name);
|
|
22
|
+
edit.focus();
|
|
23
|
+
};
|
|
24
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
25
|
+
const props = defineProps({
|
|
26
|
+
fullscreen: { type: Boolean, required: false, skipCheck: true },
|
|
27
|
+
noRouteFullscreenExit: { type: Boolean, required: false, skipCheck: true },
|
|
28
|
+
modelValue: { type: String, required: true, default: "" },
|
|
29
|
+
readonly: { type: Boolean, required: false, skipCheck: true },
|
|
30
|
+
square: { type: Boolean, required: false, skipCheck: true },
|
|
31
|
+
flat: { type: Boolean, required: false, skipCheck: true },
|
|
32
|
+
dense: { type: Boolean, required: false, skipCheck: true, default: false },
|
|
33
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true },
|
|
34
|
+
disable: { type: Boolean, required: false, skipCheck: true },
|
|
35
|
+
minHeight: { type: null, required: false },
|
|
36
|
+
maxHeight: { type: null, required: false },
|
|
37
|
+
height: { type: null, required: false },
|
|
38
|
+
definitions: { type: Object, required: false },
|
|
39
|
+
fonts: { type: null, required: false, default: void 0 },
|
|
40
|
+
toolbar: { type: null, required: false, default: void 0 },
|
|
41
|
+
toolbarColor: { type: null, required: false },
|
|
42
|
+
toolbarTextColor: { type: null, required: false },
|
|
43
|
+
toolbarToggleColor: { type: null, required: false },
|
|
44
|
+
toolbarBg: { type: null, required: false },
|
|
45
|
+
toolbarOutline: { type: Boolean, required: false, skipCheck: true },
|
|
46
|
+
toolbarPush: { type: Boolean, required: false, skipCheck: true },
|
|
47
|
+
toolbarRounded: { type: Boolean, required: false, skipCheck: true },
|
|
48
|
+
paragraphTag: { type: null, required: false },
|
|
49
|
+
contentStyle: { type: null, required: false },
|
|
50
|
+
contentClass: { type: null, required: false },
|
|
51
|
+
placeholder: { type: null, required: false, default: "type something" },
|
|
52
|
+
onFullscreen: { type: Function, required: false },
|
|
53
|
+
"onUpdate:fullscreen": { type: Function, required: false },
|
|
54
|
+
"onUpdate:modelValue": { type: Function, required: false },
|
|
55
|
+
onDropdownShow: { type: Function, required: false },
|
|
56
|
+
onDropdownBeforeShow: { type: Function, required: false },
|
|
57
|
+
onDropdownHide: { type: Function, required: false },
|
|
58
|
+
onDropdownBeforeHide: { type: Function, required: false },
|
|
59
|
+
onLinkShow: { type: Function, required: false },
|
|
60
|
+
onLinkHide: { type: Function, required: false }
|
|
61
|
+
});
|
|
62
|
+
const localValue = computed({
|
|
63
|
+
get: () => props.modelValue,
|
|
64
|
+
set: (value) => emit("update:modelValue", value)
|
|
65
|
+
});
|
|
66
|
+
const attrs = computed(() => {
|
|
67
|
+
const a = { ...props };
|
|
68
|
+
if (props.toolbar === void 0) a.toolbar = newToolBar;
|
|
69
|
+
if (props.fonts === void 0) a.fonts = newFonts;
|
|
70
|
+
return a;
|
|
71
|
+
});
|
|
72
|
+
const newToolBar = [
|
|
73
|
+
[
|
|
74
|
+
{
|
|
75
|
+
label: $q.lang.editor.align,
|
|
76
|
+
icon: $q.iconSet.editor.align,
|
|
77
|
+
fixedLabel: true,
|
|
78
|
+
list: "only-icons",
|
|
79
|
+
options: ["left", "center", "right", "justify"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: $q.lang.editor.align,
|
|
83
|
+
icon: $q.iconSet.editor.align,
|
|
84
|
+
fixedLabel: true,
|
|
85
|
+
options: ["left", "center", "right", "justify"]
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
["bold", "italic", "strike", "underline", "subscript", "superscript"],
|
|
89
|
+
["token", "hr", "link"],
|
|
90
|
+
//['print'],
|
|
91
|
+
["fullscreen"],
|
|
92
|
+
[
|
|
93
|
+
{
|
|
94
|
+
label: $q.lang.editor.formatting,
|
|
95
|
+
icon: $q.iconSet.editor.formatting,
|
|
96
|
+
list: "no-icons",
|
|
97
|
+
options: [
|
|
98
|
+
"p",
|
|
99
|
+
"h1",
|
|
100
|
+
"h2",
|
|
101
|
+
"h3",
|
|
102
|
+
"h4",
|
|
103
|
+
"h5",
|
|
104
|
+
"h6",
|
|
105
|
+
"code"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
label: $q.lang.editor.fontSize,
|
|
110
|
+
icon: $q.iconSet.editor.fontSize,
|
|
111
|
+
fixedLabel: true,
|
|
112
|
+
fixedIcon: true,
|
|
113
|
+
list: "no-icons",
|
|
114
|
+
options: [
|
|
115
|
+
"size-1",
|
|
116
|
+
"size-2",
|
|
117
|
+
"size-3",
|
|
118
|
+
"size-4",
|
|
119
|
+
"size-5",
|
|
120
|
+
"size-6",
|
|
121
|
+
"size-7"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
label: $q.lang.editor.defaultFont,
|
|
126
|
+
icon: $q.iconSet.editor.font,
|
|
127
|
+
fixedIcon: true,
|
|
128
|
+
list: "no-icons",
|
|
129
|
+
options: [
|
|
130
|
+
"default_font",
|
|
131
|
+
"arial",
|
|
132
|
+
"arial_black",
|
|
133
|
+
"comic_sans",
|
|
134
|
+
"courier_new",
|
|
135
|
+
"impact",
|
|
136
|
+
"lucida_grande",
|
|
137
|
+
"times_new_roman",
|
|
138
|
+
"verdana"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"textColor",
|
|
142
|
+
"textHightlight",
|
|
143
|
+
"custom_btn",
|
|
144
|
+
"removeFormat"
|
|
145
|
+
],
|
|
146
|
+
["quote", "unordered", "ordered", "outdent", "indent"],
|
|
147
|
+
["undo", "redo"],
|
|
148
|
+
["viewsource"]
|
|
149
|
+
];
|
|
150
|
+
const newFonts = {
|
|
151
|
+
arial: "Arial",
|
|
152
|
+
arial_black: "Arial Black",
|
|
153
|
+
comic_sans: "Comic Sans MS",
|
|
154
|
+
courier_new: "Courier New",
|
|
155
|
+
impact: "Impact",
|
|
156
|
+
lucida_grande: "Lucida Grande",
|
|
157
|
+
times_new_roman: "Times New Roman",
|
|
158
|
+
verdana: "Verdana"
|
|
159
|
+
};
|
|
160
|
+
</script>
|
|
161
|
+
|
|
162
|
+
<template>
|
|
150
163
|
<q-editor v-model="localValue" ref="editorRef" v-bind="attrs">
|
|
151
164
|
<template v-slot:textColor>
|
|
152
165
|
<q-btn-dropdown dense no-caps ref="textColorRef" no-wrap unelevated color="white" text-color="default"
|
|
@@ -182,31 +195,31 @@ const newFonts = {
|
|
|
182
195
|
<q-icon name="sym_o_format_ink_highlighter" />
|
|
183
196
|
</q-item-section>
|
|
184
197
|
<q-item-section>
|
|
185
|
-
<q-color v-model="highlight" no-header no-footer default-view="palette" :palette="[
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
<q-color v-model="highlight" no-header no-footer default-view="palette" :palette="[
|
|
199
|
+
'#ffccccaa',
|
|
200
|
+
'#ffe6ccaa',
|
|
201
|
+
'#ffffccaa',
|
|
202
|
+
'#ccffccaa',
|
|
203
|
+
'#ccffe6aa',
|
|
204
|
+
'#ccffffaa',
|
|
205
|
+
'#cce6ffaa',
|
|
206
|
+
'#ccccffaa',
|
|
207
|
+
'#e6ccffaa',
|
|
208
|
+
'#ffccffaa',
|
|
209
|
+
'#ff0000aa',
|
|
210
|
+
'#ff8000aa',
|
|
211
|
+
'#ffff00aa',
|
|
212
|
+
'#00ff00aa',
|
|
213
|
+
'#00ff80aa',
|
|
214
|
+
'#00ffffaa',
|
|
215
|
+
'#0080ffaa',
|
|
216
|
+
'#0000ffaa',
|
|
217
|
+
'#8000ffaa',
|
|
218
|
+
'#ff00ffaa'
|
|
219
|
+
]" style="max-width: 250px;" />
|
|
207
220
|
</q-item-section>
|
|
208
221
|
</q-item>
|
|
209
222
|
</q-btn-dropdown>
|
|
210
223
|
</template>
|
|
211
224
|
</q-editor>
|
|
212
|
-
</template>
|
|
225
|
+
</template>
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
window.FB.getAccessToken(accessToken => {
|
|
20
|
-
emits('login', accessToken)
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
</script>
|
|
25
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, onMounted } from "vue";
|
|
3
|
+
const button = ref(null);
|
|
4
|
+
const emits = defineEmits(["login"]);
|
|
5
|
+
onMounted(() => {
|
|
6
|
+
if (window.FB) {
|
|
7
|
+
window.FB.XFBML.parse();
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
window.onFacebookLogin = () => {
|
|
11
|
+
window.FB.getAccessToken((accessToken) => {
|
|
12
|
+
emits("login", accessToken);
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
26
18
|
<div class="fb-login-button" data-size="large" data-button-type="" data-layout="" data-auto-logout-link="false"
|
|
27
19
|
data-use-continue-as="false" ref="button" data-onlogin="onFacebookLogin()"></div>
|
|
28
|
-
</template>
|
|
20
|
+
</template>
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { computed } from
|
|
3
|
-
import { useLight } from
|
|
4
|
-
const light = useLight()
|
|
5
|
-
const props = defineProps(["value", "dense"])
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return c;
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</script>
|
|
21
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useLight } from "#imports";
|
|
4
|
+
const light = useLight();
|
|
5
|
+
const props = defineProps(["value", "dense"]);
|
|
6
|
+
const color1 = computed(() => {
|
|
7
|
+
return light.getColorValue();
|
|
8
|
+
});
|
|
9
|
+
const color2 = computed(() => {
|
|
10
|
+
let c = light.getColorValue();
|
|
11
|
+
c = c + "b3";
|
|
12
|
+
return c;
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
22
16
|
<style scoped>
|
|
23
17
|
.menu-list .q-item{border-radius:12px 12px 12px 12px}.menu-list .q-router-link--exact-active{background:linear-gradient(118deg,v-bind(color1),v-bind(color2));color:#fff}
|
|
24
|
-
</style>
|
|
25
|
-
|
|
18
|
+
</style>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
26
21
|
<q-expansion-item :label="$t('My favorite')" :dense="dense" icon="sym_o_favorite">
|
|
27
22
|
<q-list class="q-pl-md menu-list">
|
|
28
23
|
<q-item v-ripple :to="item.path" v-for="item in value">
|
|
@@ -36,4 +31,4 @@ const color2 = computed(() => {
|
|
|
36
31
|
</q-item>
|
|
37
32
|
</q-list>
|
|
38
33
|
</q-expansion-item>
|
|
39
|
-
</template>
|
|
34
|
+
</template>
|
|
@@ -1,21 +1,52 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
modelValue: { type: null, required: false },
|
|
4
|
+
error: { type: [Boolean, null], required: false, skipCheck: true },
|
|
5
|
+
errorMessage: { type: null, required: false },
|
|
6
|
+
noErrorIcon: { type: Boolean, required: false, skipCheck: true },
|
|
7
|
+
rules: { type: null, required: false },
|
|
8
|
+
reactiveRules: { type: Boolean, required: false, skipCheck: true },
|
|
9
|
+
lazyRules: { type: [Boolean, String], required: false, skipCheck: true },
|
|
10
|
+
label: { type: null, required: false },
|
|
11
|
+
stackLabel: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
12
|
+
hint: { type: null, required: false },
|
|
13
|
+
hideHint: { type: Boolean, required: false, skipCheck: true },
|
|
14
|
+
prefix: { type: null, required: false },
|
|
15
|
+
suffix: { type: null, required: false },
|
|
16
|
+
labelColor: { type: null, required: false },
|
|
17
|
+
color: { type: null, required: false },
|
|
18
|
+
bgColor: { type: null, required: false },
|
|
19
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true, default: void 0 },
|
|
20
|
+
loading: { type: Boolean, required: false, skipCheck: true },
|
|
21
|
+
clearable: { type: Boolean, required: false, skipCheck: true },
|
|
22
|
+
clearIcon: { type: null, required: false },
|
|
23
|
+
filled: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
24
|
+
outlined: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
25
|
+
borderless: { type: Boolean, required: false, skipCheck: true },
|
|
26
|
+
standout: { type: [Boolean, String], required: false, skipCheck: true, default: void 0 },
|
|
27
|
+
labelSlot: { type: Boolean, required: false, skipCheck: true },
|
|
28
|
+
bottomSlots: { type: Boolean, required: false, skipCheck: true },
|
|
29
|
+
hideBottomSpace: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
30
|
+
counter: { type: Boolean, required: false, skipCheck: true },
|
|
31
|
+
rounded: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
32
|
+
square: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
33
|
+
dense: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
34
|
+
itemAligned: { type: Boolean, required: false, skipCheck: true },
|
|
35
|
+
disable: { type: Boolean, required: false, skipCheck: true },
|
|
36
|
+
readonly: { type: Boolean, required: false, skipCheck: true },
|
|
37
|
+
autofocus: { type: Boolean, required: false, skipCheck: true },
|
|
38
|
+
for: { type: null, required: false },
|
|
39
|
+
maxlength: { type: null, required: false },
|
|
40
|
+
tag: { type: null, required: false },
|
|
41
|
+
"onUpdate:modelValue": { type: Function, required: false },
|
|
42
|
+
onFocus: { type: Function, required: false },
|
|
43
|
+
onBlur: { type: Function, required: false },
|
|
44
|
+
onClear: { type: Function, required: false }
|
|
45
|
+
});
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<template>
|
|
18
49
|
<q-field v-bind="$light.getInputProps($props)">
|
|
19
50
|
<slot></slot>
|
|
20
51
|
</q-field>
|
|
21
|
-
</template>
|
|
52
|
+
</template>
|