@hostlink/nuxt-light 1.53.1 → 1.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -3
- package/dist/runtime/components/L/CustomField/Add.d.vue.ts +9 -6
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +9 -6
- package/dist/runtime/components/L/CustomField/List.d.vue.ts +2 -5
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -5
- package/dist/runtime/components/L/Database/create-table-dialog.d.vue.ts +7 -4
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +7 -4
- package/dist/runtime/components/L/Fieldset.d.vue.ts +8 -6
- package/dist/runtime/components/L/Fieldset.vue.d.ts +8 -6
- package/dist/runtime/components/L/ForgetPasswordDialog.d.vue.ts +2 -1
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +2 -1
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -1
- package/dist/runtime/components/L/Revision.d.vue.ts +8 -6
- package/dist/runtime/components/L/Revision.vue.d.ts +8 -6
- package/dist/runtime/components/L/Storage.d.vue.ts +7 -5
- package/dist/runtime/components/L/Storage.vue.d.ts +7 -5
- package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +3 -8
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +3 -8
- package/dist/runtime/components/L/System/Setting/developer.d.vue.ts +3 -5
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +3 -5
- package/dist/runtime/components/L/System/Setting/forget-password.d.vue.ts +3 -6
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +3 -6
- package/dist/runtime/components/L/System/Setting/general.d.vue.ts +3 -7
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +3 -7
- package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +3 -4
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +3 -4
- package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +2 -1
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -1
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +3 -15
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +3 -15
- package/dist/runtime/components/L/User/eventlog.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -1
- package/dist/runtime/components/L/User/overview.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -1
- package/dist/runtime/components/L/User/userlog.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -1
- package/dist/runtime/components/L/ValidationInput.d.vue.ts +7 -5
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +7 -5
- package/dist/runtime/components/MyTest.d.vue.ts +7 -5
- package/dist/runtime/components/MyTest.vue.d.ts +7 -5
- package/dist/runtime/components/l-action-btn.d.vue.ts +5 -4
- package/dist/runtime/components/l-action-btn.vue.d.ts +5 -4
- package/dist/runtime/components/l-add-btn.d.vue.ts +9 -7
- package/dist/runtime/components/l-add-btn.vue.d.ts +9 -7
- package/dist/runtime/components/l-alert.d.vue.ts +7 -5
- package/dist/runtime/components/l-alert.vue.d.ts +7 -5
- package/dist/runtime/components/l-app-main.d.vue.ts +8 -7
- package/dist/runtime/components/l-app-main.vue +2 -2
- package/dist/runtime/components/l-app-main.vue.d.ts +8 -7
- package/dist/runtime/components/l-app.d.vue.ts +3 -2
- package/dist/runtime/components/l-app.vue.d.ts +3 -2
- package/dist/runtime/components/l-audit-card.d.vue.ts +4 -3
- package/dist/runtime/components/l-audit-card.vue.d.ts +4 -3
- package/dist/runtime/components/l-back-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-banner.d.vue.ts +5 -7
- package/dist/runtime/components/l-banner.vue.d.ts +5 -7
- package/dist/runtime/components/l-bar.d.vue.ts +5 -7
- package/dist/runtime/components/l-bar.vue.d.ts +5 -7
- package/dist/runtime/components/l-btn.d.vue.ts +3 -7
- package/dist/runtime/components/l-btn.vue.d.ts +3 -7
- package/dist/runtime/components/l-card.d.vue.ts +9 -11
- package/dist/runtime/components/l-card.vue.d.ts +9 -11
- package/dist/runtime/components/l-checkbox.d.vue.ts +5 -6
- package/dist/runtime/components/l-checkbox.vue.d.ts +5 -6
- package/dist/runtime/components/l-col.d.vue.ts +3 -7
- package/dist/runtime/components/l-col.vue.d.ts +3 -7
- package/dist/runtime/components/l-customizer.d.vue.ts +17 -14
- package/dist/runtime/components/l-customizer.vue.d.ts +17 -14
- package/dist/runtime/components/l-date-picker.d.vue.ts +8 -19
- package/dist/runtime/components/l-date-picker.vue.d.ts +8 -19
- package/dist/runtime/components/l-delete-btn.d.vue.ts +9 -6
- package/dist/runtime/components/l-delete-btn.vue.d.ts +9 -6
- package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +7 -4
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +7 -4
- package/dist/runtime/components/l-drag-drop-container.d.vue.ts +7 -5
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +7 -5
- package/dist/runtime/components/l-drag-drop-group.d.vue.ts +3 -2
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +3 -2
- package/dist/runtime/components/l-drag-drop.d.vue.ts +4 -2
- package/dist/runtime/components/l-drag-drop.vue.d.ts +4 -2
- package/dist/runtime/components/l-edit-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-editor.d.vue.ts +3 -8
- package/dist/runtime/components/l-editor.vue.d.ts +3 -8
- package/dist/runtime/components/l-facebook-button.d.vue.ts +5 -3
- package/dist/runtime/components/l-facebook-button.vue.d.ts +5 -3
- package/dist/runtime/components/l-fav-menu.d.vue.ts +9 -7
- package/dist/runtime/components/l-fav-menu.vue.d.ts +9 -7
- package/dist/runtime/components/l-field.d.vue.ts +5 -14
- package/dist/runtime/components/l-field.vue.d.ts +5 -14
- package/dist/runtime/components/l-file-manager-labels.d.vue.ts +5 -3
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +5 -3
- package/dist/runtime/components/l-file-manager-move.d.vue.ts +9 -6
- package/dist/runtime/components/l-file-manager-move.vue +2 -1
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +9 -6
- package/dist/runtime/components/l-file-manager-preview.d.vue.ts +8 -6
- package/dist/runtime/components/l-file-manager-preview.vue +2 -1
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +8 -6
- package/dist/runtime/components/l-file-manager.d.vue.ts +14 -11
- package/dist/runtime/components/l-file-manager.vue +8 -12
- package/dist/runtime/components/l-file-manager.vue.d.ts +14 -11
- package/dist/runtime/components/l-file-upload.d.vue.ts +8 -17
- package/dist/runtime/components/l-file-upload.vue.d.ts +8 -17
- package/dist/runtime/components/l-file.d.vue.ts +3 -10
- package/dist/runtime/components/l-file.vue.d.ts +3 -10
- package/dist/runtime/components/l-form-dialog.d.vue.ts +14 -11
- package/dist/runtime/components/l-form-dialog.vue.d.ts +14 -11
- package/dist/runtime/components/l-form.d.vue.ts +5 -4
- package/dist/runtime/components/l-form.vue.d.ts +5 -4
- package/dist/runtime/components/l-group-select.d.vue.ts +9 -7
- package/dist/runtime/components/l-group-select.vue.d.ts +9 -7
- package/dist/runtime/components/l-icon-picker.d.vue.ts +2 -7
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -7
- package/dist/runtime/components/l-input-select.d.vue.ts +6 -16
- package/dist/runtime/components/l-input-select.vue.d.ts +6 -16
- package/dist/runtime/components/l-input-xlsx.d.vue.ts +4 -3
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +4 -3
- package/dist/runtime/components/l-input.d.vue.ts +8 -16
- package/dist/runtime/components/l-input.vue.d.ts +8 -16
- package/dist/runtime/components/l-item.d.vue.ts +7 -10
- package/dist/runtime/components/l-item.vue.d.ts +7 -10
- package/dist/runtime/components/l-link.d.vue.ts +8 -6
- package/dist/runtime/components/l-link.vue.d.ts +8 -6
- package/dist/runtime/components/l-list.d.vue.ts +5 -8
- package/dist/runtime/components/l-list.vue.d.ts +5 -8
- package/dist/runtime/components/l-login.d.vue.ts +2 -1
- package/dist/runtime/components/l-login.vue +5 -3
- package/dist/runtime/components/l-login.vue.d.ts +2 -1
- package/dist/runtime/components/l-menu.d.vue.ts +9 -7
- package/dist/runtime/components/l-menu.vue.d.ts +9 -7
- package/dist/runtime/components/l-microsoft-button.d.vue.ts +2 -1
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +2 -1
- package/dist/runtime/components/l-page.d.vue.ts +6 -10
- package/dist/runtime/components/l-page.vue.d.ts +6 -10
- package/dist/runtime/components/l-row.d.vue.ts +3 -4
- package/dist/runtime/components/l-row.vue.d.ts +3 -4
- package/dist/runtime/components/l-save-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-save-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-select.d.vue.ts +2 -17
- package/dist/runtime/components/l-select.vue.d.ts +2 -17
- package/dist/runtime/components/l-small-box.d.vue.ts +2 -6
- package/dist/runtime/components/l-small-box.vue.d.ts +2 -6
- package/dist/runtime/components/l-statistic.d.vue.ts +8 -6
- package/dist/runtime/components/l-statistic.vue.d.ts +8 -6
- package/dist/runtime/components/l-tab.d.vue.ts +5 -4
- package/dist/runtime/components/l-tab.vue.d.ts +5 -4
- package/dist/runtime/components/l-table.d.vue.ts +10 -30
- package/dist/runtime/components/l-table.vue.d.ts +10 -30
- package/dist/runtime/components/l-tabs.d.vue.ts +9 -10
- package/dist/runtime/components/l-tabs.vue.d.ts +9 -10
- package/dist/runtime/components/l-test2.d.vue.ts +2 -1
- package/dist/runtime/components/l-test2.vue.d.ts +2 -1
- package/dist/runtime/components/l-time-picker.d.vue.ts +8 -11
- package/dist/runtime/components/l-time-picker.vue.d.ts +8 -11
- package/dist/runtime/components/l-view-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-view-btn.vue.d.ts +2 -1
- package/dist/runtime/components/user-list.d.vue.ts +7 -5
- package/dist/runtime/components/user-list.vue.d.ts +7 -5
- package/dist/runtime/composables/collect.d.ts +1 -2
- package/dist/runtime/composables/collect.js +3 -2
- package/dist/runtime/composables/defineLightModel.js +2 -2
- package/dist/runtime/composables/f.d.ts +3 -0
- package/dist/runtime/composables/getCurrentUser.d.ts +1 -2
- package/dist/runtime/composables/getCurrentUser.js +4 -9
- package/dist/runtime/composables/getGQLFields.js +2 -2
- package/dist/runtime/composables/getModelField.js +2 -2
- package/dist/runtime/composables/getObject.d.ts +3 -0
- package/dist/runtime/composables/m.js +16 -2
- package/dist/runtime/composables/model.d.ts +2 -2
- package/dist/runtime/composables/model.js +2 -2
- package/dist/runtime/composables/sv.js +2 -2
- package/dist/runtime/composables/toJson.d.ts +3 -0
- package/dist/runtime/composables/useEntityId.d.ts +2 -0
- package/dist/runtime/composables/useEntityId.js +11 -0
- package/dist/runtime/composables/useLight.d.ts +14 -14
- package/dist/runtime/composables/useLight.js +1 -1
- package/dist/runtime/composables/{list.d.ts → useList.d.ts} +1 -2
- package/dist/runtime/composables/useList.js +37 -0
- package/dist/runtime/composables/useObject.d.ts +2 -1
- package/dist/runtime/composables/useObject.js +23 -38
- package/dist/runtime/composables/useRoles.js +3 -3
- package/dist/runtime/composables/useWebAuthn.d.ts +2 -4
- package/dist/runtime/composables/useWebAuthn.js +2 -3
- package/dist/runtime/formkit/Checkbox.d.vue.ts +7 -5
- package/dist/runtime/formkit/Checkbox.vue.d.ts +7 -5
- package/dist/runtime/formkit/DatePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/DatePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/Editor.d.vue.ts +7 -5
- package/dist/runtime/formkit/Editor.vue.d.ts +7 -5
- package/dist/runtime/formkit/File.d.vue.ts +7 -5
- package/dist/runtime/formkit/File.vue.d.ts +7 -5
- package/dist/runtime/formkit/FilePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/FilePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/FileUpload.d.vue.ts +7 -5
- package/dist/runtime/formkit/FileUpload.vue.d.ts +7 -5
- package/dist/runtime/formkit/Form.d.vue.ts +5 -4
- package/dist/runtime/formkit/Form.vue.d.ts +5 -4
- package/dist/runtime/formkit/GroupSelect.d.vue.ts +7 -5
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +7 -5
- package/dist/runtime/formkit/Input.d.vue.ts +5 -4
- package/dist/runtime/formkit/Input.vue.d.ts +5 -4
- package/dist/runtime/formkit/InputSelect.d.vue.ts +5 -4
- package/dist/runtime/formkit/InputSelect.vue.d.ts +5 -4
- package/dist/runtime/formkit/InputXlsx.d.vue.ts +7 -5
- package/dist/runtime/formkit/InputXlsx.vue.d.ts +7 -5
- package/dist/runtime/formkit/OptionGroup.d.vue.ts +7 -5
- package/dist/runtime/formkit/OptionGroup.vue.d.ts +7 -5
- package/dist/runtime/formkit/Radio.d.vue.ts +7 -5
- package/dist/runtime/formkit/Radio.vue.d.ts +7 -5
- package/dist/runtime/formkit/Repeater.d.vue.ts +7 -5
- package/dist/runtime/formkit/Repeater.vue.d.ts +7 -5
- package/dist/runtime/formkit/Select.d.vue.ts +7 -5
- package/dist/runtime/formkit/Select.vue.d.ts +7 -5
- package/dist/runtime/formkit/Textarea.d.vue.ts +5 -4
- package/dist/runtime/formkit/Textarea.vue.d.ts +5 -4
- package/dist/runtime/formkit/TimePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/TimePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/Toggle.d.vue.ts +5 -4
- package/dist/runtime/formkit/Toggle.vue.d.ts +5 -4
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +14 -2
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/CustomField/index.d.vue.ts +2 -1
- package/dist/runtime/pages/CustomField/index.vue.d.ts +2 -1
- package/dist/runtime/pages/EventLog/_eventlog_id/view.d.vue.ts +2 -1
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +13 -3
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue.d.ts +2 -1
- package/dist/runtime/pages/EventLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/EventLog/index.vue.d.ts +2 -1
- package/dist/runtime/pages/FileManager/index.d.vue.ts +2 -1
- package/dist/runtime/pages/FileManager/index.vue.d.ts +2 -1
- package/dist/runtime/pages/MailLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/MailLog/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/add.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/add.vue +3 -2
- package/dist/runtime/pages/Permission/add.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/all.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/all.vue +2 -2
- package/dist/runtime/pages/Permission/all.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/export.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/export.vue +2 -2
- package/dist/runtime/pages/Permission/export.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/_name/update-child.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/_name/update-child.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/add.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/add.vue +7 -3
- package/dist/runtime/pages/Role/add.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/add2.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/add2.vue +2 -2
- package/dist/runtime/pages/Role/add2.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/backup.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/backup.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/check.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/check.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/event.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/event.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/process.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/process.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/restore.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/restore.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/table.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/table.vue +2 -2
- package/dist/runtime/pages/System/database/table.vue.d.ts +2 -1
- package/dist/runtime/pages/System/fs.d.vue.ts +2 -1
- package/dist/runtime/pages/System/fs.vue.d.ts +2 -1
- package/dist/runtime/pages/System/index.d.vue.ts +2 -1
- package/dist/runtime/pages/System/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/mailtest.d.vue.ts +2 -1
- package/dist/runtime/pages/System/mailtest.vue.d.ts +2 -1
- package/dist/runtime/pages/System/menu/index.d.vue.ts +2 -1
- package/dist/runtime/pages/System/menu/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/package.d.vue.ts +2 -1
- package/dist/runtime/pages/System/package.vue.d.ts +2 -1
- package/dist/runtime/pages/System/phpinfo.d.vue.ts +2 -1
- package/dist/runtime/pages/System/phpinfo.vue.d.ts +2 -1
- package/dist/runtime/pages/System/setting.d.vue.ts +2 -1
- package/dist/runtime/pages/System/setting.vue +1 -1
- package/dist/runtime/pages/System/setting.vue.d.ts +2 -1
- package/dist/runtime/pages/System/test.d.vue.ts +2 -1
- package/dist/runtime/pages/System/test.vue.d.ts +2 -1
- package/dist/runtime/pages/System/view_as.d.vue.ts +2 -1
- package/dist/runtime/pages/System/view_as.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +7 -4
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/add.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/add.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/index.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Translate/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Translate/index.vue +10 -6
- package/dist/runtime/pages/Translate/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/change-password.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/change-password.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/edit.vue +19 -18
- package/dist/runtime/pages/User/_user_id/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/update-role.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/update-role.vue +8 -5
- package/dist/runtime/pages/User/_user_id/update-role.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/view.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/view.vue +4 -10
- package/dist/runtime/pages/User/_user_id/view.vue.d.ts +2 -1
- package/dist/runtime/pages/User/add.d.vue.ts +2 -1
- package/dist/runtime/pages/User/add.vue.d.ts +2 -1
- package/dist/runtime/pages/User/index.d.vue.ts +2 -1
- package/dist/runtime/pages/User/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/profile.d.vue.ts +2 -1
- package/dist/runtime/pages/User/profile.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/bio-auth.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/bio-auth.vue +21 -32
- package/dist/runtime/pages/User/setting/bio-auth.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/favorite.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/favorite.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/index.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/information.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/information.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/menu.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/menu.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/open_id.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/open_id.vue +5 -2
- package/dist/runtime/pages/User/setting/open_id.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/password.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/password.vue +6 -3
- package/dist/runtime/pages/User/setting/password.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/style.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/style.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/two-factor-auth.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/two-factor-auth.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting.vue.d.ts +2 -1
- package/dist/runtime/pages/UserLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/UserLog/index.vue.d.ts +2 -1
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugin.js +17 -14
- package/package.json +8 -8
- package/dist/runtime/composables/api.d.ts +0 -2
- package/dist/runtime/composables/api.js +0 -2
- package/dist/runtime/composables/isGranted.d.ts +0 -1
- package/dist/runtime/composables/isGranted.js +0 -13
- package/dist/runtime/composables/list.js +0 -4
- package/dist/runtime/composables/q.d.ts +0 -1
- package/dist/runtime/composables/q.js +0 -26
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { useLight, m,
|
|
2
|
+
import { useLight, m, useObject } from "#imports";
|
|
3
3
|
import { useRoute } from "vue-router";
|
|
4
|
-
import { useAsyncData } from "#imports";
|
|
5
4
|
const route = useRoute();
|
|
6
|
-
const { data: obj } = await
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
canDelete: true
|
|
10
|
-
}).where("user_id", route.params.user_id).fetchFirst();
|
|
5
|
+
const { data: obj } = await useObject({
|
|
6
|
+
canUpdate: true,
|
|
7
|
+
canDelete: true
|
|
11
8
|
});
|
|
12
9
|
const light = useLight();
|
|
13
10
|
const id = route.params.user_id;
|
|
@@ -37,9 +34,6 @@ const reset2fa = async () => {
|
|
|
37
34
|
|
|
38
35
|
<template>
|
|
39
36
|
<l-page :edit-btn="obj.canUpdate" v-if="obj">
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
37
|
<template #header>
|
|
44
38
|
<l-btn to="change-password" icon="sym_o_key" permission="user.changePassword"
|
|
45
39
|
label="Change password"></l-btn>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,38 +1,27 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useQuasar } from "quasar";
|
|
3
|
-
import {
|
|
4
|
-
import { q, m,
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
import { webAuthn } from "@hostlink/light";
|
|
4
|
+
import { q, m, useAsyncData } from "#imports";
|
|
5
|
+
const { data, refresh } = await useAsyncData("user-setting-bio-auth", async () => {
|
|
6
|
+
return await q({
|
|
7
|
+
app: {
|
|
8
|
+
hasBioAuth: true
|
|
9
|
+
},
|
|
10
|
+
my: {
|
|
11
|
+
webAuthn: {
|
|
12
|
+
uuid: true,
|
|
13
|
+
ip: true,
|
|
14
|
+
user_agent: true,
|
|
15
|
+
createdTime: true
|
|
16
|
+
}
|
|
15
17
|
}
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
+
});
|
|
19
|
+
});
|
|
18
20
|
const quasar = useQuasar();
|
|
19
21
|
const register = async () => {
|
|
20
22
|
try {
|
|
21
|
-
await
|
|
22
|
-
|
|
23
|
-
localStorage.setItem("username", user.username);
|
|
24
|
-
const { my } = await q({
|
|
25
|
-
my: {
|
|
26
|
-
webAuthn: {
|
|
27
|
-
uuid: true,
|
|
28
|
-
ip: true,
|
|
29
|
-
user_agent: true,
|
|
30
|
-
createdTime: true
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
webAuthn.splice(0, webAuthn.length);
|
|
35
|
-
webAuthn.push(...my.webAuthn);
|
|
23
|
+
await webAuthn.register();
|
|
24
|
+
await refresh();
|
|
36
25
|
} catch (e) {
|
|
37
26
|
quasar.dialog({
|
|
38
27
|
title: "Error",
|
|
@@ -76,14 +65,14 @@ const deleteItem = async (uuid) => {
|
|
|
76
65
|
cancel: "No"
|
|
77
66
|
}).onOk(async () => {
|
|
78
67
|
await m("deleteWebAuthn", { uuid });
|
|
79
|
-
|
|
68
|
+
await refresh();
|
|
80
69
|
});
|
|
81
70
|
};
|
|
82
71
|
</script>
|
|
83
72
|
|
|
84
73
|
<template>
|
|
85
74
|
<l-card :bordered="false">
|
|
86
|
-
<q-card-section v-if="!app.hasBioAuth">
|
|
75
|
+
<q-card-section v-if="!data.app.hasBioAuth">
|
|
87
76
|
Biometric authentication is not installed, please install web-auth/webauthn-lib on the server.
|
|
88
77
|
</q-card-section>
|
|
89
78
|
|
|
@@ -93,7 +82,7 @@ const deleteItem = async (uuid) => {
|
|
|
93
82
|
<l-btn label="Register" @click="register" icon="sym_o_add"></l-btn>
|
|
94
83
|
</q-toolbar>
|
|
95
84
|
|
|
96
|
-
<q-table :rows="webAuthn" :columns="columns" dense :rows-per-page-options="[0]">
|
|
85
|
+
<q-table :rows="data.my.webAuthn" :columns="columns" dense :rows-per-page-options="[0]">
|
|
97
86
|
<template #body-cell-action="props">
|
|
98
87
|
<q-td :props="props" auto-width>
|
|
99
88
|
<q-btn @click="deleteItem(props.row.uuid)" icon="sym_o_delete" round flat dense></q-btn>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { reactive, onMounted, nextTick } from "vue";
|
|
3
3
|
import { useQuasar } from "quasar";
|
|
4
|
-
import { q, useLight
|
|
4
|
+
import { q, useLight } from "#imports";
|
|
5
|
+
import { getApiClient } from "@hostlink/light";
|
|
5
6
|
import { fabGoogle, fabFacebook, fabMicrosoft } from "@quasar/extras/fontawesome-v6";
|
|
7
|
+
const api = getApiClient();
|
|
6
8
|
const light = useLight();
|
|
7
9
|
const quasar = useQuasar();
|
|
8
10
|
let { app, my } = await q({
|
|
@@ -135,6 +137,7 @@ const onUnlinkFacebook = async () => {
|
|
|
135
137
|
window.location.reload();
|
|
136
138
|
});
|
|
137
139
|
};
|
|
140
|
+
const text1 = "Your social accounts are securely linked using industry-standard OAuth protocols. You can unlink them at any time.";
|
|
138
141
|
</script>
|
|
139
142
|
|
|
140
143
|
<template>
|
|
@@ -294,7 +297,7 @@ const onUnlinkFacebook = async () => {
|
|
|
294
297
|
<div class="text-h6 text-blue-8">{{ $t('Security Notice') }}</div>
|
|
295
298
|
</div>
|
|
296
299
|
<p class="text-blue-7 q-mb-none q-mt-sm">
|
|
297
|
-
{{ $t(
|
|
300
|
+
{{ $t(text1) }}
|
|
298
301
|
</p>
|
|
299
302
|
</q-card-section>
|
|
300
303
|
</q-card>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,10 +3,11 @@ import { useI18n } from "vue-i18n";
|
|
|
3
3
|
import { Dialog } from "quasar";
|
|
4
4
|
import { reset } from "@formkit/core";
|
|
5
5
|
import { computed } from "vue";
|
|
6
|
-
import { q
|
|
6
|
+
import { q } from "#imports";
|
|
7
|
+
import { updatePassword } from "@hostlink/light";
|
|
7
8
|
const { t } = useI18n();
|
|
8
9
|
const onSubmit = async (data, form) => {
|
|
9
|
-
if (await
|
|
10
|
+
if (await updatePassword(data.old_password, data.new_password)) {
|
|
10
11
|
reset(form);
|
|
11
12
|
await Dialog.create({
|
|
12
13
|
title: "Password updated",
|
|
@@ -21,7 +22,9 @@ const onSubmit = async (data, form) => {
|
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
const system = await q(
|
|
25
|
+
const { system } = await q({
|
|
26
|
+
system: { passwordPolicy: true }
|
|
27
|
+
});
|
|
25
28
|
const policies = computed(() => {
|
|
26
29
|
return system.passwordPolicy.split("|").map((policy) => {
|
|
27
30
|
let name = policy.split(":")[0];
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@quasar/quasar-ui-qmarkdown/dist/index.css';
|
|
2
2
|
import "./assets/main.css.js";
|
|
3
|
-
declare const _default: import("
|
|
3
|
+
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
|
|
4
4
|
export default _default;
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import QMarkdownVuePlugin from "@quasar/quasar-ui-qmarkdown";
|
|
2
2
|
import "@quasar/quasar-ui-qmarkdown/dist/index.css";
|
|
3
|
+
import { createClient, useGlobalModel, setApiClient } from "@hostlink/light";
|
|
3
4
|
import { q } from "#imports";
|
|
4
5
|
import { createI18n } from "vue-i18n";
|
|
5
6
|
import createLight from "./composables/createLight.js";
|
|
@@ -7,7 +8,6 @@ import { addRouteMiddleware, defineNuxtPlugin, useRoute } from "#app";
|
|
|
7
8
|
import "./assets/main.css";
|
|
8
9
|
import message_en from "./locales/en.json";
|
|
9
10
|
import message_zh from "./locales/zh-hk.json";
|
|
10
|
-
import { default as api } from "./composables/api.js";
|
|
11
11
|
localStorage.getItem("locale") || localStorage.setItem("locale", "en");
|
|
12
12
|
import { createQuasarPlugin } from "formkit-quasar";
|
|
13
13
|
import { createLightPlugin } from "./formkit/index.js";
|
|
@@ -42,19 +42,22 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
42
42
|
return "/page_not_found?path=" + encodeURIComponent(to.fullPath);
|
|
43
43
|
}
|
|
44
44
|
}, { global: true });
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
const client = createClient(getApiBase());
|
|
46
|
+
setApiClient(client);
|
|
47
|
+
const models = useGlobalModel();
|
|
48
|
+
models.createModel("User", TypeUser.fields);
|
|
49
|
+
models.createModel("CustomField", TypeCustomerField.fields);
|
|
50
|
+
models.createModel("UserLog", TypeUserLog.fields);
|
|
51
|
+
models.createModel("SystemValue", TypeSystemValue.fields);
|
|
52
|
+
models.createModel("MailLog", TypeMailLog.fields);
|
|
53
|
+
models.createModel("EventLog", TypeEventLog.fields);
|
|
54
|
+
models.createModel("Permission", {});
|
|
55
|
+
models.getModel("User").setDataPath("app.listUser");
|
|
56
|
+
models.getModel("MailLog").setDataPath("app.listMailLog");
|
|
57
|
+
models.getModel("EventLog").setDataPath("app.listEventLog");
|
|
58
|
+
models.getModel("UserLog").setDataPath("app.listUserLog");
|
|
59
|
+
models.getModel("SystemValue").setDataPath("app.listSystemValue");
|
|
60
|
+
models.getModel("Permission").setDataPath("app.listPermission");
|
|
58
61
|
nuxtApp.vueApp.config.errorHandler = (err, instance, info) => {
|
|
59
62
|
const $route = useRoute();
|
|
60
63
|
const light = useLight();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.1",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"test:watch": "vitest watch"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@azure/msal-browser": "^
|
|
33
|
+
"@azure/msal-browser": "^4.26.2",
|
|
34
34
|
"@formkit/drag-and-drop": "^0.5.3",
|
|
35
|
-
"@hostlink/light": "^
|
|
35
|
+
"@hostlink/light": "^3.0.1",
|
|
36
36
|
"@nuxt/module-builder": "^1.0.1",
|
|
37
37
|
"@quasar/extras": "^1.17.0",
|
|
38
38
|
"@quasar/quasar-ui-qmarkdown": "^2.0.5",
|
|
39
|
-
"@vueuse/core": "^
|
|
39
|
+
"@vueuse/core": "^14.0.0",
|
|
40
40
|
"axios": "^1.12.2",
|
|
41
41
|
"defu": "^6.1.4",
|
|
42
42
|
"diff2html": "^3.4.47",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@nuxt/devtools": "latest",
|
|
52
|
-
"@nuxt/eslint-config": "^
|
|
52
|
+
"@nuxt/eslint-config": "^1.10.0",
|
|
53
53
|
"@nuxt/kit": "^4.2.1",
|
|
54
54
|
"@nuxt/schema": "^4.2.1",
|
|
55
55
|
"@nuxt/test-utils": "^3.17.2",
|
|
56
|
-
"@types/node": "^
|
|
56
|
+
"@types/node": "^24.10.1",
|
|
57
57
|
"changelogen": "^0.5.4",
|
|
58
|
-
"eslint": "^
|
|
58
|
+
"eslint": "^9.39.1",
|
|
59
59
|
"nuxt": "^4.2.1",
|
|
60
60
|
"typescript": "^5.9.2",
|
|
61
|
-
"vue-tsc": "^
|
|
61
|
+
"vue-tsc": "^3.1.5"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function isGranted(right: string): Promise<boolean>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (operation: string | object, args?: any, fields?: Array<any>): Promise<any>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import f from "./f.js";
|
|
2
|
-
import { jsonToGraphQLQuery } from "json-to-graphql-query";
|
|
3
|
-
import { toQuery } from "@hostlink/light";
|
|
4
|
-
import { default as api } from "./api.js";
|
|
5
|
-
export default async function(operation, args = null, fields = []) {
|
|
6
|
-
let query;
|
|
7
|
-
if (operation instanceof Object) {
|
|
8
|
-
query = jsonToGraphQLQuery(toQuery(operation));
|
|
9
|
-
} else {
|
|
10
|
-
if (arguments.length === 2) {
|
|
11
|
-
fields = args;
|
|
12
|
-
args = {};
|
|
13
|
-
}
|
|
14
|
-
query = f(operation, args, fields);
|
|
15
|
-
}
|
|
16
|
-
const resp = (await api.axios.post("", {
|
|
17
|
-
query: `{ ${query} }`
|
|
18
|
-
})).data;
|
|
19
|
-
if (resp.errors) {
|
|
20
|
-
throw resp.errors[0].message;
|
|
21
|
-
}
|
|
22
|
-
if (operation instanceof Object) {
|
|
23
|
-
return resp.data;
|
|
24
|
-
}
|
|
25
|
-
return resp.data[operation];
|
|
26
|
-
}
|