@hostlink/nuxt-light 1.66.0 → 1.66.2
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/README.md +1 -0
- package/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +24 -0
- package/dist/runtime/components/{l-audit-card.d.vue.ts → L/AuditCard.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-audit-card.vue → L/AuditCard.vue} +1 -1
- package/dist/runtime/components/{l-audit-card.vue.d.ts → L/AuditCard.vue.d.ts} +1 -1
- package/dist/runtime/components/{l-bar.vue → L/Bar.vue} +1 -2
- package/dist/runtime/components/{l-btn.d.vue.ts → L/Btn.d.vue.ts} +0 -1
- package/dist/runtime/components/{l-btn.vue → L/Btn.vue} +17 -14
- package/dist/runtime/components/{l-btn.vue.d.ts → L/Btn.vue.d.ts} +0 -1
- package/dist/runtime/components/{l-card.vue → L/Card.vue} +8 -6
- package/dist/runtime/components/{l-checkbox.vue → L/Checkbox.vue} +4 -2
- package/dist/runtime/components/{l-date-picker.vue → L/DatePicker.vue} +85 -103
- package/dist/runtime/components/L/DialogDatabaseFieldAdd.d.vue.ts +21 -0
- package/dist/runtime/components/{l-dialog-database-field-add.vue → L/DialogDatabaseFieldAdd.vue} +14 -15
- package/dist/runtime/components/L/DialogDatabaseFieldAdd.vue.d.ts +21 -0
- package/dist/runtime/components/L/DocumentViewer.d.vue.ts +1 -1
- package/dist/runtime/components/L/DocumentViewer.vue.d.ts +1 -1
- package/dist/runtime/components/L/DocumentViewerDialog.d.vue.ts +2 -2
- package/dist/runtime/components/L/DocumentViewerDialog.vue.d.ts +2 -2
- package/dist/runtime/components/{l-editor.vue → L/Editor.vue} +31 -17
- package/dist/runtime/components/L/Fieldset.d.vue.ts +15 -27
- package/dist/runtime/components/L/Fieldset.vue +4 -10
- package/dist/runtime/components/L/Fieldset.vue.d.ts +15 -27
- package/dist/runtime/components/{l-file-manager.vue → L/FileManager.vue} +2 -5
- package/dist/runtime/components/{l-icon-picker.vue → L/IconPicker.vue} +13 -13
- package/dist/runtime/components/{l-input.d.vue.ts → L/Input.d.vue.ts} +7 -3
- package/dist/runtime/components/{l-input.vue → L/Input.vue} +59 -80
- package/dist/runtime/components/{l-input.vue.d.ts → L/Input.vue.d.ts} +7 -3
- package/dist/runtime/components/{l-input-select.d.vue.ts → L/InputSelect.d.vue.ts} +3 -2
- package/dist/runtime/components/{l-input-select.vue → L/InputSelect.vue} +27 -9
- package/dist/runtime/components/{l-input-select.vue.d.ts → L/InputSelect.vue.d.ts} +3 -2
- package/dist/runtime/components/L/InputXlsx.d.vue.ts +17 -0
- package/dist/runtime/components/L/InputXlsx.vue +81 -0
- package/dist/runtime/components/L/InputXlsx.vue.d.ts +17 -0
- package/dist/runtime/components/{l-item.vue → L/Item.vue} +14 -5
- package/dist/runtime/components/{l-list.vue → L/List.vue} +18 -21
- package/dist/runtime/components/{l-page.vue → L/Page.vue} +6 -8
- package/dist/runtime/components/L/Select.d.vue.ts +46 -0
- package/dist/runtime/components/{l-select.vue → L/Select.vue} +37 -18
- package/dist/runtime/components/L/Select.vue.d.ts +46 -0
- package/dist/runtime/components/L/System/Setting/logs.vue +75 -0
- package/dist/runtime/components/{l-tab.d.vue.ts → L/Tab.d.vue.ts} +2 -2
- package/dist/runtime/components/L/Tab.vue +38 -0
- package/dist/runtime/components/{l-tab.vue.d.ts → L/Tab.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-table.vue → L/Table.vue} +71 -78
- package/dist/runtime/components/{l-tabs.vue → L/Tabs.vue} +15 -8
- package/dist/runtime/components/{l-time-picker.d.vue.ts → L/TimePicker.d.vue.ts} +3 -2
- package/dist/runtime/components/L/TimePicker.vue +73 -0
- package/dist/runtime/components/{l-time-picker.vue.d.ts → L/TimePicker.vue.d.ts} +3 -2
- package/dist/runtime/components/{MyTest.d.vue.ts → L/User/apikey.d.vue.ts} +4 -4
- package/dist/runtime/components/L/User/apikey.vue +18 -0
- package/dist/runtime/components/{MyTest.vue.d.ts → L/User/apikey.vue.d.ts} +4 -4
- package/dist/runtime/components/L/ViewBtn.d.vue.ts +3 -0
- package/dist/runtime/components/L/ViewBtn.vue.d.ts +3 -0
- package/dist/runtime/composables/defineLightModel.d.ts +1 -1
- package/dist/runtime/composables/model.d.ts +1 -1
- package/dist/runtime/composables/showUploadFilesDialog.js +1 -1
- package/dist/runtime/composables/useLight.d.ts +22 -22
- package/dist/runtime/composables/useLightProps.d.ts +26 -0
- package/dist/runtime/composables/useLightProps.js +73 -0
- package/dist/runtime/models/APIKey.d.ts +2 -0
- package/dist/runtime/models/APIKey.js +20 -0
- package/dist/runtime/models/SystemValue.d.ts +2 -0
- package/dist/runtime/models/SystemValue.js +15 -0
- package/dist/runtime/pages/System/database/table.vue +28 -1
- package/dist/runtime/pages/System/index.vue +1 -1
- package/dist/runtime/pages/System/menu/index.vue +5 -1
- package/dist/runtime/pages/System/setting.vue +2 -0
- package/dist/runtime/pages/System/view_as.vue +4 -1
- package/dist/runtime/pages/SystemValue/index.vue +4 -1
- package/dist/runtime/pages/User/createAccessToken.vue +2 -1
- package/dist/runtime/pages/User/index.vue +2 -2
- package/dist/runtime/pages/User/profile.d.vue.ts +1 -1
- package/dist/runtime/pages/User/profile.vue +48 -5
- package/dist/runtime/pages/User/profile.vue.d.ts +1 -1
- package/dist/runtime/plugin.js +1 -22
- package/package.json +2 -1
- package/dist/runtime/components/MyTest.vue +0 -11
- package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +0 -9
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +0 -9
- package/dist/runtime/components/l-input-xlsx.d.vue.ts +0 -11
- package/dist/runtime/components/l-input-xlsx.vue +0 -60
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +0 -11
- package/dist/runtime/components/l-select.d.vue.ts +0 -20
- package/dist/runtime/components/l-select.vue.d.ts +0 -20
- package/dist/runtime/components/l-tab.vue +0 -30
- package/dist/runtime/components/l-time-picker.vue +0 -71
- package/dist/runtime/components/{l-action-btn.d.vue.ts → L/ActionBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-action-btn.vue → L/ActionBtn.vue} +0 -0
- package/dist/runtime/components/{l-action-btn.vue.d.ts → L/ActionBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-add-btn.d.vue.ts → L/AddBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-add-btn.vue → L/AddBtn.vue} +0 -0
- package/dist/runtime/components/{l-add-btn.vue.d.ts → L/AddBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-alert.d.vue.ts → L/Alert.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-alert.vue → L/Alert.vue} +0 -0
- package/dist/runtime/components/{l-alert.vue.d.ts → L/Alert.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-app.d.vue.ts → L/App.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-app.vue → L/App.vue} +0 -0
- package/dist/runtime/components/{l-app.vue.d.ts → L/App.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-app-main.d.vue.ts → L/AppMain.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-app-main.vue → L/AppMain.vue} +0 -0
- package/dist/runtime/components/{l-app-main.vue.d.ts → L/AppMain.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-back-btn.d.vue.ts → L/BackBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-back-btn.vue → L/BackBtn.vue} +0 -0
- package/dist/runtime/components/{l-back-btn.vue.d.ts → L/BackBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-banner.d.vue.ts → L/Banner.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-banner.vue → L/Banner.vue} +0 -0
- package/dist/runtime/components/{l-banner.vue.d.ts → L/Banner.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-bar.d.vue.ts → L/Bar.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-bar.vue.d.ts → L/Bar.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-card.d.vue.ts → L/Card.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-card.vue.d.ts → L/Card.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-checkbox.d.vue.ts → L/Checkbox.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-checkbox.vue.d.ts → L/Checkbox.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-col.d.vue.ts → L/Col.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-col.vue → L/Col.vue} +0 -0
- package/dist/runtime/components/{l-col.vue.d.ts → L/Col.vue.d.ts} +1 -1
- package/dist/runtime/components/{l-customizer.vue.d.ts → L/Customizer.d.vue.ts} +2 -2
- package/dist/runtime/components/{l-customizer.vue → L/Customizer.vue} +0 -0
- package/dist/runtime/components/{l-customizer.d.vue.ts → L/Customizer.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-date-picker.d.vue.ts → L/DatePicker.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-date-picker.vue.d.ts → L/DatePicker.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-delete-btn.d.vue.ts → L/DeleteBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-delete-btn.vue → L/DeleteBtn.vue} +0 -0
- package/dist/runtime/components/{l-delete-btn.vue.d.ts → L/DeleteBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-dialog-upload-files.d.vue.ts → L/DialogUploadFiles.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-dialog-upload-files.vue → L/DialogUploadFiles.vue} +0 -0
- package/dist/runtime/components/{l-dialog-upload-files.vue.d.ts → L/DialogUploadFiles.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop.d.vue.ts → L/DragDrop.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop.vue → L/DragDrop.vue} +0 -0
- package/dist/runtime/components/{l-drag-drop.vue.d.ts → L/DragDrop.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop-container.d.vue.ts → L/DragDropContainer.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop-container.vue → L/DragDropContainer.vue} +0 -0
- package/dist/runtime/components/{l-drag-drop-container.vue.d.ts → L/DragDropContainer.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop-group.d.vue.ts → L/DragDropGroup.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-drag-drop-group.vue → L/DragDropGroup.vue} +0 -0
- package/dist/runtime/components/{l-drag-drop-group.vue.d.ts → L/DragDropGroup.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-edit-btn.d.vue.ts → L/EditBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-edit-btn.vue → L/EditBtn.vue} +0 -0
- package/dist/runtime/components/{l-edit-btn.vue.d.ts → L/EditBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-editor.d.vue.ts → L/Editor.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-editor.vue.d.ts → L/Editor.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-facebook-button.d.vue.ts → L/FacebookButton.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-facebook-button.vue → L/FacebookButton.vue} +0 -0
- package/dist/runtime/components/{l-facebook-button.vue.d.ts → L/FacebookButton.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-fav-menu.d.vue.ts → L/FavMenu.d.vue.ts} +2 -2
- package/dist/runtime/components/{l-fav-menu.vue → L/FavMenu.vue} +0 -0
- package/dist/runtime/components/{l-menu.d.vue.ts → L/FavMenu.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-field.d.vue.ts → L/Field.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-field.vue → L/Field.vue} +0 -0
- package/dist/runtime/components/{l-field.vue.d.ts → L/Field.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file.d.vue.ts → L/File.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-file.vue → L/File.vue} +0 -0
- package/dist/runtime/components/{l-file.vue.d.ts → L/File.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file-manager.d.vue.ts → L/FileManager.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-file-manager.vue.d.ts → L/FileManager.vue.d.ts} +1 -1
- package/dist/runtime/components/{l-file-manager-breadcrumbs.d.vue.ts → L/FileManagerBreadcrumbs.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-breadcrumbs.vue → L/FileManagerBreadcrumbs.vue} +0 -0
- package/dist/runtime/components/{l-file-manager-breadcrumbs.vue.d.ts → L/FileManagerBreadcrumbs.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-labels.d.vue.ts → L/FileManagerLabels.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-labels.vue → L/FileManagerLabels.vue} +0 -0
- package/dist/runtime/components/{l-file-manager-labels.vue.d.ts → L/FileManagerLabels.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-move.d.vue.ts → L/FileManagerMove.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-move.vue → L/FileManagerMove.vue} +0 -0
- package/dist/runtime/components/{l-file-manager-move.vue.d.ts → L/FileManagerMove.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-preview.d.vue.ts → L/FileManagerPreview.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-file-manager-preview.vue → L/FileManagerPreview.vue} +0 -0
- package/dist/runtime/components/{l-file-manager-preview.vue.d.ts → L/FileManagerPreview.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-file-upload.d.vue.ts → L/FileUpload.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-file-upload.vue → L/FileUpload.vue} +0 -0
- package/dist/runtime/components/{l-file-upload.vue.d.ts → L/FileUpload.vue.d.ts} +1 -1
- package/dist/runtime/components/{l-form.d.vue.ts → L/Form.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-form.vue → L/Form.vue} +0 -0
- package/dist/runtime/components/{l-form.vue.d.ts → L/Form.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-form-dialog.d.vue.ts → L/FormDialog.d.vue.ts} +2 -2
- package/dist/runtime/components/{l-form-dialog.vue → L/FormDialog.vue} +0 -0
- package/dist/runtime/components/{l-form-dialog.vue.d.ts → L/FormDialog.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-group-select.d.vue.ts → L/GroupSelect.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-group-select.vue → L/GroupSelect.vue} +0 -0
- package/dist/runtime/components/{l-group-select.vue.d.ts → L/GroupSelect.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-icon-picker.d.vue.ts → L/IconPicker.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-icon-picker.vue.d.ts → L/IconPicker.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-item.d.vue.ts → L/Item.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-item.vue.d.ts → L/Item.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-link.d.vue.ts → L/Link.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-link.vue → L/Link.vue} +0 -0
- package/dist/runtime/components/{l-link.vue.d.ts → L/Link.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-list.d.vue.ts → L/List.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-list.vue.d.ts → L/List.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-login.d.vue.ts → L/Login.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-login.vue → L/Login.vue} +0 -0
- package/dist/runtime/components/{l-login.vue.d.ts → L/Login.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-fav-menu.vue.d.ts → L/Menu.d.vue.ts} +2 -2
- package/dist/runtime/components/{l-menu.vue → L/Menu.vue} +0 -0
- package/dist/runtime/components/{l-menu.vue.d.ts → L/Menu.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-microsoft-button.d.vue.ts → L/MicrosoftButton.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-microsoft-button.vue → L/MicrosoftButton.vue} +0 -0
- package/dist/runtime/components/{l-microsoft-button.vue.d.ts → L/MicrosoftButton.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-page.d.vue.ts → L/Page.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-page.vue.d.ts → L/Page.vue.d.ts} +1 -1
- package/dist/runtime/components/{l-repeater.d.vue.ts → L/Repeater.d.vue.ts} +2 -2
- package/dist/runtime/components/{l-repeater.vue → L/Repeater.vue} +0 -0
- package/dist/runtime/components/{l-repeater.vue.d.ts → L/Repeater.vue.d.ts} +2 -2
- package/dist/runtime/components/{l-row.d.vue.ts → L/Row.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-row.vue → L/Row.vue} +0 -0
- package/dist/runtime/components/{l-row.vue.d.ts → L/Row.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-save-btn.d.vue.ts → L/SaveBtn.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-save-btn.vue → L/SaveBtn.vue} +0 -0
- package/dist/runtime/components/{l-save-btn.vue.d.ts → L/SaveBtn.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-setup-2fa-dialog.d.vue.ts → L/Setup2faDialog.d.vue.ts} +0 -0
- package/dist/runtime/components/{l-setup-2fa-dialog.vue → L/Setup2faDialog.vue} +0 -0
- package/dist/runtime/components/{l-setup-2fa-dialog.vue.d.ts → L/Setup2faDialog.vue.d.ts} +0 -0
- package/dist/runtime/components/{l-small-box.d.vue.ts → L/SmallBox.d.vue.ts} +1 -1
- package/dist/runtime/components/{l-small-box.vue → L/SmallBox.vue} +0 -0
- package/dist/runtime/components/{l-small-box.vue.d.ts → L/SmallBox.vue.d.ts} +1 -1
- /package/dist/runtime/components/{l-statistic.d.vue.ts → L/Statistic.d.vue.ts} +0 -0
- /package/dist/runtime/components/{l-statistic.vue → L/Statistic.vue} +0 -0
- /package/dist/runtime/components/{l-statistic.vue.d.ts → L/Statistic.vue.d.ts} +0 -0
- /package/dist/runtime/components/{l-view-btn.d.vue.ts → L/System/Setting/logs.d.vue.ts} +0 -0
- /package/dist/runtime/components/{l-view-btn.vue.d.ts → L/System/Setting/logs.vue.d.ts} +0 -0
- /package/dist/runtime/components/{l-table.d.vue.ts → L/Table.d.vue.ts} +0 -0
- /package/dist/runtime/components/{l-table.vue.d.ts → L/Table.vue.d.ts} +0 -0
- /package/dist/runtime/components/{l-tabs.d.vue.ts → L/Tabs.d.vue.ts} +0 -0
- /package/dist/runtime/components/{l-tabs.vue.d.ts → L/Tabs.vue.d.ts} +0 -0
- /package/dist/runtime/components/{l-test2.d.vue.ts → L/Test2.d.vue.ts} +0 -0
- /package/dist/runtime/components/{l-test2.vue → L/Test2.vue} +0 -0
- /package/dist/runtime/components/{l-test2.vue.d.ts → L/Test2.vue.d.ts} +0 -0
- /package/dist/runtime/components/{user-list.d.vue.ts → L/UserList.d.vue.ts} +0 -0
- /package/dist/runtime/components/{user-list.vue → L/UserList.vue} +0 -0
- /package/dist/runtime/components/{user-list.vue.d.ts → L/UserList.vue.d.ts} +0 -0
- /package/dist/runtime/components/{l-view-btn.vue → L/ViewBtn.vue} +0 -0
|
@@ -224,18 +224,18 @@ declare const light: {
|
|
|
224
224
|
isoName: string;
|
|
225
225
|
nativeName: string;
|
|
226
226
|
label: {
|
|
227
|
-
|
|
227
|
+
create: string;
|
|
228
228
|
set: string;
|
|
229
|
-
|
|
229
|
+
clear: string;
|
|
230
230
|
filter: string;
|
|
231
|
-
search: string;
|
|
232
231
|
remove: string;
|
|
233
232
|
cancel: string;
|
|
234
233
|
close: string;
|
|
235
234
|
reset: string;
|
|
235
|
+
select: string;
|
|
236
|
+
search: string;
|
|
236
237
|
ok: string;
|
|
237
238
|
update: string;
|
|
238
|
-
create: string;
|
|
239
239
|
refresh: string;
|
|
240
240
|
expand: (label?: string | undefined) => string;
|
|
241
241
|
collapse: (label?: string | undefined) => string;
|
|
@@ -265,8 +265,6 @@ declare const light: {
|
|
|
265
265
|
pagination: (start: number, end: number, total: number) => string;
|
|
266
266
|
};
|
|
267
267
|
editor: {
|
|
268
|
-
code: string;
|
|
269
|
-
hr: string;
|
|
270
268
|
bold: string;
|
|
271
269
|
left: string;
|
|
272
270
|
right: string;
|
|
@@ -290,6 +288,7 @@ declare const light: {
|
|
|
290
288
|
removeFormat: string;
|
|
291
289
|
formatting: string;
|
|
292
290
|
fontSize: string;
|
|
291
|
+
hr: string;
|
|
293
292
|
undo: string;
|
|
294
293
|
redo: string;
|
|
295
294
|
heading1: string;
|
|
@@ -299,6 +298,7 @@ declare const light: {
|
|
|
299
298
|
heading5: string;
|
|
300
299
|
heading6: string;
|
|
301
300
|
paragraph: string;
|
|
301
|
+
code: string;
|
|
302
302
|
size1: string;
|
|
303
303
|
size2: string;
|
|
304
304
|
size3: string;
|
|
@@ -318,10 +318,10 @@ declare const light: {
|
|
|
318
318
|
set: (iconSet: import("quasar").QuasarIconSet) => void;
|
|
319
319
|
name: string;
|
|
320
320
|
type: {
|
|
321
|
+
positive: string;
|
|
322
|
+
negative: string;
|
|
321
323
|
info: string;
|
|
322
324
|
warning: string;
|
|
323
|
-
negative: string;
|
|
324
|
-
positive: string;
|
|
325
325
|
};
|
|
326
326
|
arrow: {
|
|
327
327
|
left: string;
|
|
@@ -361,8 +361,6 @@ declare const light: {
|
|
|
361
361
|
};
|
|
362
362
|
editor: {
|
|
363
363
|
size: string;
|
|
364
|
-
code: string;
|
|
365
|
-
hr: string;
|
|
366
364
|
bold: string;
|
|
367
365
|
left: string;
|
|
368
366
|
right: string;
|
|
@@ -385,8 +383,10 @@ declare const light: {
|
|
|
385
383
|
removeFormat: string;
|
|
386
384
|
formatting: string;
|
|
387
385
|
fontSize: string;
|
|
386
|
+
hr: string;
|
|
388
387
|
undo: string;
|
|
389
388
|
redo: string;
|
|
389
|
+
code: string;
|
|
390
390
|
viewSource: string;
|
|
391
391
|
heading: string;
|
|
392
392
|
font: string;
|
|
@@ -413,8 +413,8 @@ declare const light: {
|
|
|
413
413
|
activeIcon: string;
|
|
414
414
|
};
|
|
415
415
|
field: {
|
|
416
|
-
clear: string;
|
|
417
416
|
error: string;
|
|
417
|
+
clear: string;
|
|
418
418
|
};
|
|
419
419
|
pagination: {
|
|
420
420
|
first: string;
|
|
@@ -821,18 +821,18 @@ declare const _default: () => {
|
|
|
821
821
|
isoName: string;
|
|
822
822
|
nativeName: string;
|
|
823
823
|
label: {
|
|
824
|
-
|
|
824
|
+
create: string;
|
|
825
825
|
set: string;
|
|
826
|
-
|
|
826
|
+
clear: string;
|
|
827
827
|
filter: string;
|
|
828
|
-
search: string;
|
|
829
828
|
remove: string;
|
|
830
829
|
cancel: string;
|
|
831
830
|
close: string;
|
|
832
831
|
reset: string;
|
|
832
|
+
select: string;
|
|
833
|
+
search: string;
|
|
833
834
|
ok: string;
|
|
834
835
|
update: string;
|
|
835
|
-
create: string;
|
|
836
836
|
refresh: string;
|
|
837
837
|
expand: (label?: string | undefined) => string;
|
|
838
838
|
collapse: (label?: string | undefined) => string;
|
|
@@ -862,8 +862,6 @@ declare const _default: () => {
|
|
|
862
862
|
pagination: (start: number, end: number, total: number) => string;
|
|
863
863
|
};
|
|
864
864
|
editor: {
|
|
865
|
-
code: string;
|
|
866
|
-
hr: string;
|
|
867
865
|
bold: string;
|
|
868
866
|
left: string;
|
|
869
867
|
right: string;
|
|
@@ -887,6 +885,7 @@ declare const _default: () => {
|
|
|
887
885
|
removeFormat: string;
|
|
888
886
|
formatting: string;
|
|
889
887
|
fontSize: string;
|
|
888
|
+
hr: string;
|
|
890
889
|
undo: string;
|
|
891
890
|
redo: string;
|
|
892
891
|
heading1: string;
|
|
@@ -896,6 +895,7 @@ declare const _default: () => {
|
|
|
896
895
|
heading5: string;
|
|
897
896
|
heading6: string;
|
|
898
897
|
paragraph: string;
|
|
898
|
+
code: string;
|
|
899
899
|
size1: string;
|
|
900
900
|
size2: string;
|
|
901
901
|
size3: string;
|
|
@@ -915,10 +915,10 @@ declare const _default: () => {
|
|
|
915
915
|
set: (iconSet: import("quasar").QuasarIconSet) => void;
|
|
916
916
|
name: string;
|
|
917
917
|
type: {
|
|
918
|
+
positive: string;
|
|
919
|
+
negative: string;
|
|
918
920
|
info: string;
|
|
919
921
|
warning: string;
|
|
920
|
-
negative: string;
|
|
921
|
-
positive: string;
|
|
922
922
|
};
|
|
923
923
|
arrow: {
|
|
924
924
|
left: string;
|
|
@@ -958,8 +958,6 @@ declare const _default: () => {
|
|
|
958
958
|
};
|
|
959
959
|
editor: {
|
|
960
960
|
size: string;
|
|
961
|
-
code: string;
|
|
962
|
-
hr: string;
|
|
963
961
|
bold: string;
|
|
964
962
|
left: string;
|
|
965
963
|
right: string;
|
|
@@ -982,8 +980,10 @@ declare const _default: () => {
|
|
|
982
980
|
removeFormat: string;
|
|
983
981
|
formatting: string;
|
|
984
982
|
fontSize: string;
|
|
983
|
+
hr: string;
|
|
985
984
|
undo: string;
|
|
986
985
|
redo: string;
|
|
986
|
+
code: string;
|
|
987
987
|
viewSource: string;
|
|
988
988
|
heading: string;
|
|
989
989
|
font: string;
|
|
@@ -1010,8 +1010,8 @@ declare const _default: () => {
|
|
|
1010
1010
|
activeIcon: string;
|
|
1011
1011
|
};
|
|
1012
1012
|
field: {
|
|
1013
|
-
clear: string;
|
|
1014
1013
|
error: string;
|
|
1014
|
+
clear: string;
|
|
1015
1015
|
};
|
|
1016
1016
|
pagination: {
|
|
1017
1017
|
first: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reactive input props — auto-translates label/hint.
|
|
3
|
+
* Priority (lowest→highest): light.styles.input < declared props < $attrs
|
|
4
|
+
* Use with defineOptions({ inheritAttrs: false }) in the component.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useLightInputDefaults(props: Readonly<Record<string, any>>, attrs: Readonly<Record<string, any>>, excludeKeys?: string[]): import("vue").ComputedRef<Record<string, any>>;
|
|
7
|
+
/**
|
|
8
|
+
* Reactive card props — auto-translates label.
|
|
9
|
+
* Priority (lowest→highest): light.styles.card < declared props < $attrs
|
|
10
|
+
*/
|
|
11
|
+
export declare function useLightCardDefaults(props: Readonly<Record<string, any>>, attrs: Readonly<Record<string, any>>, excludeKeys?: string[]): import("vue").ComputedRef<Record<string, any>>;
|
|
12
|
+
/**
|
|
13
|
+
* Reactive table props — auto-translates label.
|
|
14
|
+
* Priority (lowest→highest): light.styles.table < declared props < $attrs
|
|
15
|
+
*/
|
|
16
|
+
export declare function useLightTableDefaults(props: Readonly<Record<string, any>>, attrs: Readonly<Record<string, any>>, excludeKeys?: string[]): import("vue").ComputedRef<Record<string, any>>;
|
|
17
|
+
/**
|
|
18
|
+
* Reactive button props — auto-translates label.
|
|
19
|
+
* Priority (lowest→highest): light.styles.button < declared props < $attrs
|
|
20
|
+
*/
|
|
21
|
+
export declare function useLightButtonDefaults(props: Readonly<Record<string, any>>, attrs: Readonly<Record<string, any>>, excludeKeys?: string[]): import("vue").ComputedRef<Record<string, any>>;
|
|
22
|
+
/**
|
|
23
|
+
* Lightweight composable for simple label-only wrappers (Checkbox, Radio, Tab, Toggle…).
|
|
24
|
+
* Returns a reactive translated label string (or undefined).
|
|
25
|
+
*/
|
|
26
|
+
export declare function useLightLabel(props: Readonly<Record<string, any>>): import("vue").ComputedRef<any>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { computed } from "vue";
|
|
2
|
+
import useLight from "./useLight.js";
|
|
3
|
+
const MODEL_KEYS = ["modelValue", "onUpdate:modelValue"];
|
|
4
|
+
function filterDefined(obj, exclude = []) {
|
|
5
|
+
return Object.fromEntries(
|
|
6
|
+
Object.entries(obj).filter(([k, v]) => v !== void 0 && !exclude.includes(k))
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
const TRANSLATE_KEYS = ["label", "hint"];
|
|
10
|
+
function withTranslations(result, light, extra = {}) {
|
|
11
|
+
if (result.label !== void 0)
|
|
12
|
+
result.label = light.$t(result.label);
|
|
13
|
+
if (result.hint !== void 0)
|
|
14
|
+
result.hint = light.$t(result.hint);
|
|
15
|
+
return { ...result, ...extra };
|
|
16
|
+
}
|
|
17
|
+
export function useLightInputDefaults(props, attrs, excludeKeys = []) {
|
|
18
|
+
const light = useLight();
|
|
19
|
+
const allExclude = [...MODEL_KEYS, ...excludeKeys];
|
|
20
|
+
return computed(() => {
|
|
21
|
+
const base = {
|
|
22
|
+
color: light.color,
|
|
23
|
+
...light.styles.input,
|
|
24
|
+
...filterDefined(props, allExclude),
|
|
25
|
+
...filterDefined(attrs, MODEL_KEYS),
|
|
26
|
+
class: attrs.class ?? props.class ?? "col-12"
|
|
27
|
+
};
|
|
28
|
+
return withTranslations(base, light);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export function useLightCardDefaults(props, attrs, excludeKeys = []) {
|
|
32
|
+
const light = useLight();
|
|
33
|
+
const allExclude = [...MODEL_KEYS, ...excludeKeys];
|
|
34
|
+
return computed(() => {
|
|
35
|
+
const base = {
|
|
36
|
+
...light.styles.card,
|
|
37
|
+
...filterDefined(props, allExclude),
|
|
38
|
+
...filterDefined(attrs, MODEL_KEYS)
|
|
39
|
+
};
|
|
40
|
+
return withTranslations(base, light);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
export function useLightTableDefaults(props, attrs, excludeKeys = []) {
|
|
44
|
+
const light = useLight();
|
|
45
|
+
const allExclude = [...MODEL_KEYS, ...excludeKeys];
|
|
46
|
+
return computed(() => {
|
|
47
|
+
const base = {
|
|
48
|
+
color: light.color,
|
|
49
|
+
...light.styles.table,
|
|
50
|
+
...filterDefined(props, allExclude),
|
|
51
|
+
...filterDefined(attrs, MODEL_KEYS)
|
|
52
|
+
};
|
|
53
|
+
return withTranslations(base, light);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
export function useLightButtonDefaults(props, attrs, excludeKeys = []) {
|
|
57
|
+
const light = useLight();
|
|
58
|
+
return computed(() => {
|
|
59
|
+
const base = {
|
|
60
|
+
color: "primary",
|
|
61
|
+
...light.styles.button,
|
|
62
|
+
...filterDefined(props, excludeKeys),
|
|
63
|
+
...filterDefined(attrs)
|
|
64
|
+
};
|
|
65
|
+
return withTranslations(base, light);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export function useLightLabel(props) {
|
|
69
|
+
const light = useLight();
|
|
70
|
+
return computed(
|
|
71
|
+
() => props.label !== void 0 ? light.$t(props.label) : void 0
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineLightModel } from "#imports";
|
|
2
|
+
export default defineLightModel({
|
|
3
|
+
name: "APIKey",
|
|
4
|
+
fields: {
|
|
5
|
+
apikey_id: {
|
|
6
|
+
label: "ID",
|
|
7
|
+
sortable: true,
|
|
8
|
+
autoWidth: true
|
|
9
|
+
},
|
|
10
|
+
name: {
|
|
11
|
+
label: "Name",
|
|
12
|
+
sortable: true,
|
|
13
|
+
searchable: true
|
|
14
|
+
},
|
|
15
|
+
created_time: {
|
|
16
|
+
label: "Created time",
|
|
17
|
+
sortable: true
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineLightModel } from "#imports";
|
|
2
|
+
export default defineLightModel({
|
|
3
|
+
name: "SystemValue",
|
|
4
|
+
dataPath: "app.listSystemValue",
|
|
5
|
+
fields: {
|
|
6
|
+
name: {
|
|
7
|
+
label: "Name",
|
|
8
|
+
sortable: true
|
|
9
|
+
},
|
|
10
|
+
value: {
|
|
11
|
+
label: "Value",
|
|
12
|
+
sortable: true
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
@@ -24,6 +24,7 @@ const custom_tables = computed(() => {
|
|
|
24
24
|
const systables = computed(() => {
|
|
25
25
|
return (data.value?.tableStatus ?? []).filter((table) => SYSTEM_TABLES.includes(table.Name));
|
|
26
26
|
});
|
|
27
|
+
const selected = reactive({});
|
|
27
28
|
const add = async (table) => {
|
|
28
29
|
$q.dialog({
|
|
29
30
|
component: LDialogDatabaseFieldAdd
|
|
@@ -51,7 +52,30 @@ const add = async (table) => {
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
};
|
|
54
|
-
const
|
|
55
|
+
const edit = async (table) => {
|
|
56
|
+
const field = selected[table]?.[0];
|
|
57
|
+
if (!field) return;
|
|
58
|
+
$q.dialog({
|
|
59
|
+
component: LDialogDatabaseFieldAdd,
|
|
60
|
+
componentProps: { field }
|
|
61
|
+
}).onOk(async (data2) => {
|
|
62
|
+
try {
|
|
63
|
+
await m("lightDatabaseEditField", {
|
|
64
|
+
table,
|
|
65
|
+
field: data2.name,
|
|
66
|
+
type: data2.type,
|
|
67
|
+
length: data2.length,
|
|
68
|
+
default: data2.default,
|
|
69
|
+
nullable: data2.nullable,
|
|
70
|
+
autoincrement: data2.autoincrement
|
|
71
|
+
});
|
|
72
|
+
light.notify({ type: "positive", message: "Field updated successfully" });
|
|
73
|
+
refresh();
|
|
74
|
+
} catch (e) {
|
|
75
|
+
light.notify({ type: "negative", message: e.message });
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
};
|
|
55
79
|
if (data.value?.table) {
|
|
56
80
|
for (let table of data.value.table) {
|
|
57
81
|
selected[table.name] = [];
|
|
@@ -210,6 +234,9 @@ const truncatTable = async () => {
|
|
|
210
234
|
<div class="row items-center q-gutter-sm">
|
|
211
235
|
<q-btn icon="sym_o_add" @click="add(table.name)" flat size="sm" label="Add Field"
|
|
212
236
|
color="primary" />
|
|
237
|
+
<q-btn icon="sym_o_edit" @click="edit(table.name)"
|
|
238
|
+
:disable="selected[table.name]?.length !== 1" label="Edit Field" flat size="sm"
|
|
239
|
+
color="secondary" />
|
|
213
240
|
<q-btn icon="sym_o_delete" @click="removeField(table.name)"
|
|
214
241
|
:disable="selected[table.name]?.length == 0" label="Remove Field" flat size="sm"
|
|
215
242
|
color="negative" />
|
|
@@ -264,7 +264,11 @@ const menusOnly = computed(() => {
|
|
|
264
264
|
<l-input label="Label" v-model="selectedNode.label" />
|
|
265
265
|
<l-input label="To" v-model="selectedNode.to" />
|
|
266
266
|
<l-input label="Icon" v-model="selectedNode.icon"
|
|
267
|
-
hint="example: sym_o_add, fas fa-ambulance, mdi-alert-circle-outline"
|
|
267
|
+
hint="example: sym_o_add, fas fa-ambulance, mdi-alert-circle-outline">
|
|
268
|
+
<template #append>
|
|
269
|
+
<l-icon-picker v-model="selectedNode.icon" dense />
|
|
270
|
+
</template>
|
|
271
|
+
</l-input>
|
|
268
272
|
<l-input label="Permission" v-model="selectedNode.permission" />
|
|
269
273
|
<l-input label="UUID" v-model="selectedNode.uuid" readonly />
|
|
270
274
|
</div>
|
|
@@ -52,6 +52,7 @@ const onSubmit = async (d) => {
|
|
|
52
52
|
<q-tab name="forget-password" icon="sym_o_lock" :label="$t('Forget password')" />
|
|
53
53
|
<q-tab name="authentication" icon="sym_o_passkey" :label="$t('Authentication')" />
|
|
54
54
|
<q-tab name="developer" icon="sym_o_code" :label="$t('Developer')" />
|
|
55
|
+
<q-tab name="logs" icon="sym_o_event_note" :label="$t('Logs')" />
|
|
55
56
|
</q-tabs>
|
|
56
57
|
</template>
|
|
57
58
|
<template #after>
|
|
@@ -62,6 +63,7 @@ const onSubmit = async (d) => {
|
|
|
62
63
|
<l-system-setting-developer v-if="tab == 'developer'" v-bind="obj" @submit="onSubmit" />
|
|
63
64
|
<l-system-setting-forget-password v-if="tab == 'forget-password'" v-bind="obj" @submit="onSubmit" />
|
|
64
65
|
<l-system-setting-authentication v-if="tab == 'authentication'" v-bind="obj" @submit="onSubmit" />
|
|
66
|
+
<l-system-setting-logs v-if="tab == 'logs'" />
|
|
65
67
|
|
|
66
68
|
</template>
|
|
67
69
|
</q-splitter>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { list, m, useLight } from "#imports";
|
|
2
|
+
import { list, m, useLight, navigateTo } from "#imports";
|
|
3
3
|
import { ref, computed } from "vue";
|
|
4
4
|
const light = useLight();
|
|
5
|
+
if (!light.isGranted("system.view_as")) {
|
|
6
|
+
await navigateTo("/");
|
|
7
|
+
}
|
|
5
8
|
let users = await list("User", {
|
|
6
9
|
user_id: true,
|
|
7
10
|
username: true,
|
|
@@ -7,7 +7,8 @@ const token = ref(null);
|
|
|
7
7
|
const expiresOptions = [
|
|
8
8
|
{ label: "7 \u65E5", value: 7 * 24 * 60 * 60 },
|
|
9
9
|
{ label: "30 \u65E5", value: 30 * 24 * 60 * 60 },
|
|
10
|
-
{ label: "3 \u500B\u6708", value: 90 * 24 * 60 * 60 }
|
|
10
|
+
{ label: "3 \u500B\u6708", value: 90 * 24 * 60 * 60 },
|
|
11
|
+
{ label: "\u4E0D\u9650\u6642\u9593", value: 0 }
|
|
11
12
|
];
|
|
12
13
|
const onSubmit = async (data) => {
|
|
13
14
|
token.value = null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
<l-page>
|
|
3
3
|
<l-tabs route>
|
|
4
4
|
<l-tab label="Active" name="active">
|
|
5
|
-
<user-list :status="0" name="user-active" />
|
|
5
|
+
<l-user-list :status="0" name="user-active" />
|
|
6
6
|
</l-tab>
|
|
7
7
|
<l-tab label="Inactive" name="inactive">
|
|
8
|
-
<user-list :status="1" name="user-inactive" />
|
|
8
|
+
<l-user-list :status="1" name="user-inactive" />
|
|
9
9
|
</l-tab>
|
|
10
10
|
</l-tabs>
|
|
11
11
|
</l-page>
|
|
@@ -1,3 +1,3 @@
|
|
|
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>;
|
|
1
2
|
declare const _default: typeof __VLS_export;
|
|
2
3
|
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,7 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { q, getGQLFields, model } from "#imports";
|
|
2
|
+
import { q, getGQLFields, model, m, useLight } from "#imports";
|
|
3
|
+
import { reactive } from "vue";
|
|
3
4
|
import { toQuery } from "@hostlink/light";
|
|
4
|
-
const { my } = await q({
|
|
5
|
+
const { my, listAPIKey: _listAPIKey } = await q({
|
|
5
6
|
my: {
|
|
6
7
|
user_id: true,
|
|
7
8
|
username: true,
|
|
@@ -36,8 +37,19 @@ const { my } = await q({
|
|
|
36
37
|
...toQuery(getGQLFields("EventLog", ["class", "id", "action", "created_time"]))
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
},
|
|
41
|
+
listAPIKey: {
|
|
42
|
+
__args: {
|
|
43
|
+
sort: "apikey_id:desc"
|
|
44
|
+
},
|
|
45
|
+
data: {
|
|
46
|
+
apikey_id: true,
|
|
47
|
+
name: true,
|
|
48
|
+
created_time: true
|
|
49
|
+
}
|
|
39
50
|
}
|
|
40
51
|
});
|
|
52
|
+
const listAPIKey = reactive(_listAPIKey);
|
|
41
53
|
const userlogColumns = model("UserLog").columns(["login_dt", "result", "user_agent"]);
|
|
42
54
|
userlogColumns.forEach((col) => {
|
|
43
55
|
col.searchable = false;
|
|
@@ -46,6 +58,25 @@ const eventLogCols = model("EventLog").columns(["class", "action", "created_time
|
|
|
46
58
|
eventLogCols.forEach((col) => {
|
|
47
59
|
col.searchable = false;
|
|
48
60
|
});
|
|
61
|
+
const apiKeyCols = model("APIKey").columns(["name", "created_time"]);
|
|
62
|
+
apiKeyCols.forEach((col) => {
|
|
63
|
+
col.searchable = false;
|
|
64
|
+
});
|
|
65
|
+
apiKeyCols.push({ name: "_delete", label: "", field: "_delete", align: "right" });
|
|
66
|
+
const light = useLight();
|
|
67
|
+
const deleteToken = async (id) => {
|
|
68
|
+
light.dialog({
|
|
69
|
+
title: "Delete Token",
|
|
70
|
+
message: "Are you sure you want to delete this token?",
|
|
71
|
+
cancel: true,
|
|
72
|
+
persistent: true
|
|
73
|
+
}).onOk(async () => {
|
|
74
|
+
await m("deleteAPIKey", { id });
|
|
75
|
+
const idx = listAPIKey.data.findIndex((r) => r.apikey_id === id);
|
|
76
|
+
if (idx !== -1) listAPIKey.data.splice(idx, 1);
|
|
77
|
+
light.notify({ type: "positive", message: "Token deleted" });
|
|
78
|
+
});
|
|
79
|
+
};
|
|
49
80
|
</script>
|
|
50
81
|
|
|
51
82
|
<template>
|
|
@@ -70,7 +101,7 @@ eventLogCols.forEach((col) => {
|
|
|
70
101
|
|
|
71
102
|
<q-separator />
|
|
72
103
|
<l-list :bordered="false">
|
|
73
|
-
<q-item-label header>{{ $t(
|
|
104
|
+
<q-item-label header>{{ $t("Details") }}</q-item-label>
|
|
74
105
|
<l-item label="Username">{{ my.username }}</l-item>
|
|
75
106
|
<l-item label="First name">{{ my.first_name }}</l-item>
|
|
76
107
|
<l-item label="Last name">{{ my.last_name }}</l-item>
|
|
@@ -84,12 +115,24 @@ eventLogCols.forEach((col) => {
|
|
|
84
115
|
|
|
85
116
|
<l-col md="8">
|
|
86
117
|
<l-tabs>
|
|
87
|
-
<l-tab label="User Log" name="user_log">
|
|
118
|
+
<l-tab label="User Log" name="user_log" icon="sym_o_manage_accounts">
|
|
88
119
|
<l-table :rows="my.userLog.data" searchable :columns="userlogColumns" hide-pagination />
|
|
89
120
|
</l-tab>
|
|
90
|
-
<l-tab label="Event Log" name="event_log">
|
|
121
|
+
<l-tab label="Event Log" name="event_log" icon="sym_o_history">
|
|
91
122
|
<l-table :rows="my.eventLog.data" :columns="eventLogCols" searchable hide-pagination />
|
|
92
123
|
</l-tab>
|
|
124
|
+
<l-tab label="Access Tokens" name="access_tokens" icon="sym_o_token">
|
|
125
|
+
<l-table :rows="listAPIKey.data" :columns="apiKeyCols" hide-pagination row-key="apikey_id">
|
|
126
|
+
<template #body-cell-_delete="props">
|
|
127
|
+
<q-td :props="props">
|
|
128
|
+
<q-btn flat round dense icon="sym_o_delete" color="negative"
|
|
129
|
+
@click="deleteToken(props.row.apikey_id)">
|
|
130
|
+
<q-tooltip>Delete</q-tooltip>
|
|
131
|
+
</q-btn>
|
|
132
|
+
</q-td>
|
|
133
|
+
</template>
|
|
134
|
+
</l-table>
|
|
135
|
+
</l-tab>
|
|
93
136
|
</l-tabs>
|
|
94
137
|
</l-col>
|
|
95
138
|
</l-row>
|
|
@@ -1,3 +1,3 @@
|
|
|
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>;
|
|
1
2
|
declare const _default: typeof __VLS_export;
|
|
2
3
|
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.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import QMarkdownVuePlugin from "@quasar/quasar-ui-qmarkdown";
|
|
2
2
|
import "@quasar/quasar-ui-qmarkdown/dist/index.css";
|
|
3
3
|
import { createClient, setApiClient, defineModel } from "@hostlink/light";
|
|
4
|
-
import { q } from "#imports";
|
|
5
4
|
import { createI18n } from "vue-i18n";
|
|
6
5
|
import createLight from "./composables/createLight.js";
|
|
7
|
-
import {
|
|
6
|
+
import { defineNuxtPlugin, useRoute } from "#app";
|
|
8
7
|
import "./assets/main.css";
|
|
9
8
|
import message_en from "./locales/en.json";
|
|
10
9
|
import message_zh from "./locales/zh-hk.json";
|
|
@@ -16,26 +15,6 @@ import getApiBase from "./composables/getApiBase.js";
|
|
|
16
15
|
import useLight from "./composables/useLight.js";
|
|
17
16
|
import { zhTW } from "@formkit/i18n";
|
|
18
17
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
19
|
-
addRouteMiddleware("auth", async (to, from) => {
|
|
20
|
-
if (to.path == "/") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const { my } = await q({
|
|
24
|
-
my: {
|
|
25
|
-
allowedPath: {
|
|
26
|
-
__args: {
|
|
27
|
-
path: to.path
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
if (!my) {
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
if (!my.allowedPath) {
|
|
36
|
-
return "/page_not_found?path=" + encodeURIComponent(to.fullPath);
|
|
37
|
-
}
|
|
38
|
-
}, { global: true });
|
|
39
18
|
const client = createClient(getApiBase());
|
|
40
19
|
setApiClient(client);
|
|
41
20
|
defineModel("Permission", {}).setDataPath("app.listPermission");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.66.
|
|
3
|
+
"version": "1.66.2",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"scripts": {
|
|
22
22
|
"prepack": "nuxt-module-build build",
|
|
23
23
|
"dev": "nuxi dev playground --public",
|
|
24
|
+
"dev:docs": "nuxi dev docs",
|
|
24
25
|
"dev:build": "nuxi build playground",
|
|
25
26
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
26
27
|
"release:org": "npm run lint && npm run test && npm run prepack && npm publish && git push --follow-tags",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: typeof __VLS_export;
|
|
2
|
-
export default _default;
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
-
hide: (...args: any[]) => void;
|
|
5
|
-
ok: (...args: any[]) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
onOk?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: typeof __VLS_export;
|
|
2
|
-
export default _default;
|
|
3
|
-
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
-
hide: (...args: any[]) => void;
|
|
5
|
-
ok: (...args: any[]) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
7
|
-
onHide?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
onOk?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|