@hostlink/nuxt-light 1.27.8 → 1.28.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.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +40 -42
- package/dist/runtime/components/L/CustomField/Add.vue +41 -52
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +2 -0
- package/dist/runtime/components/L/CustomField/List.vue +26 -30
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -0
- package/dist/runtime/components/L/Database/create-table-dialog.vue +22 -38
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Fieldset.vue +19 -23
- package/dist/runtime/components/L/Fieldset.vue.d.ts +2 -0
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +39 -41
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Revision.vue +101 -137
- package/dist/runtime/components/L/Revision.vue.d.ts +2 -0
- package/dist/runtime/components/L/Storage.vue +26 -30
- package/dist/runtime/components/L/Storage.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/authentication.vue +22 -44
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/developer.vue +43 -59
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/forget-password.vue +42 -58
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/general.vue +29 -41
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/mail.vue +39 -42
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/modules.vue +9 -9
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/security.vue +20 -39
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/eventlog.vue +26 -26
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/overview.vue +25 -27
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/userlog.vue +22 -28
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/ValidationInput.vue +68 -91
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +2 -0
- package/dist/runtime/components/MyTest.vue +8 -7
- package/dist/runtime/components/MyTest.vue.d.ts +2 -0
- package/dist/runtime/components/l-add-btn.vue +13 -12
- package/dist/runtime/components/l-add-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-alert.vue +25 -29
- package/dist/runtime/components/l-alert.vue.d.ts +2 -0
- package/dist/runtime/components/l-app-main.vue +226 -294
- package/dist/runtime/components/l-app-main.vue.d.ts +2 -0
- package/dist/runtime/components/l-app.vue +76 -89
- package/dist/runtime/components/l-app.vue.d.ts +2 -0
- package/dist/runtime/components/l-audit-card.vue +8 -14
- package/dist/runtime/components/l-audit-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-banner.vue +28 -34
- package/dist/runtime/components/l-banner.vue.d.ts +2 -0
- package/dist/runtime/components/l-bar.vue +21 -25
- package/dist/runtime/components/l-bar.vue.d.ts +2 -0
- package/dist/runtime/components/l-btn.vue +62 -37
- package/dist/runtime/components/l-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-card.vue +90 -141
- package/dist/runtime/components/l-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-checkbox.vue +30 -7
- package/dist/runtime/components/l-checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/l-col.vue +21 -29
- package/dist/runtime/components/l-col.vue.d.ts +2 -0
- package/dist/runtime/components/l-customizer.vue +84 -100
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -0
- package/dist/runtime/components/l-date-picker.vue +101 -147
- package/dist/runtime/components/l-date-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-delete-btn.vue +22 -27
- package/dist/runtime/components/l-delete-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-dialog-database-field-add.vue +19 -36
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-container.vue +44 -62
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-group.vue +49 -70
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop.vue +33 -44
- package/dist/runtime/components/l-drag-drop.vue.d.ts +2 -0
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-editor.vue +185 -172
- package/dist/runtime/components/l-editor.vue.d.ts +2 -0
- package/dist/runtime/components/l-facebook-button.vue +18 -26
- package/dist/runtime/components/l-facebook-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-fav-menu.vue +19 -24
- package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-field.vue +49 -18
- package/dist/runtime/components/l-field.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-labels.vue +46 -48
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-move.vue +53 -68
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-preview.vue +46 -81
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager.vue +498 -640
- package/dist/runtime/components/l-file-manager.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-upload.vue +80 -109
- package/dist/runtime/components/l-file-upload.vue.d.ts +2 -0
- package/dist/runtime/components/l-file.vue +37 -61
- package/dist/runtime/components/l-file.vue.d.ts +2 -0
- package/dist/runtime/components/l-form-dialog.vue +71 -83
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/l-form.vue +82 -96
- package/dist/runtime/components/l-form.vue.d.ts +2 -0
- package/dist/runtime/components/l-group-select.vue +59 -94
- package/dist/runtime/components/l-group-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-icon-picker.vue +3265 -3274
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-input-xlsx.vue +30 -38
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +2 -0
- package/dist/runtime/components/l-input.vue +141 -127
- 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,207 +1,170 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { api, m, useLight, useAsyncData } from
|
|
3
|
-
import { resolveComponent, ref, reactive, computed } from
|
|
4
|
-
const light = useLight();
|
|
5
|
-
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
const
|
|
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
|
-
const
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
const truncatTable = async () => {
|
|
169
|
-
light.dialog({
|
|
170
|
-
title: 'Truncate table',
|
|
171
|
-
message: 'Are you sure you want to truncate the selected tables?',
|
|
172
|
-
ok: 'Yes',
|
|
173
|
-
cancel: 'No'
|
|
174
|
-
}).onOk(async () => {
|
|
175
|
-
//map selected fields
|
|
176
|
-
const tables = selectedTable.value.map(table => table.Name)
|
|
177
|
-
try {
|
|
178
|
-
for (let table of tables) {
|
|
179
|
-
await m("lightDatabaseTruncateTable", {
|
|
180
|
-
table
|
|
181
|
-
})
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
} catch (e) {
|
|
185
|
-
light.notify({
|
|
186
|
-
type: 'negative',
|
|
187
|
-
message: e.message
|
|
188
|
-
})
|
|
189
|
-
return;
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
light.notify({
|
|
194
|
-
type: 'positive',
|
|
195
|
-
message: "Tables truncated successfully"
|
|
196
|
-
})
|
|
197
|
-
|
|
198
|
-
selectedTable.value = [];
|
|
199
|
-
|
|
200
|
-
refresh();
|
|
201
|
-
})
|
|
202
|
-
}
|
|
203
|
-
</script>
|
|
204
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { api, m, useLight, useAsyncData } from "#imports";
|
|
3
|
+
import { resolveComponent, ref, reactive, computed } from "vue";
|
|
4
|
+
const light = useLight();
|
|
5
|
+
const { data, refresh } = await useAsyncData("database", async () => {
|
|
6
|
+
const { system } = await api.query({
|
|
7
|
+
system: {
|
|
8
|
+
database: {
|
|
9
|
+
table: true,
|
|
10
|
+
version: true,
|
|
11
|
+
tableStatus: true
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
return system.database;
|
|
16
|
+
});
|
|
17
|
+
const SYSTEM_TABLES = ["Config", "EventLog", "MailLog", "Permission", "Role", "SystemValue", "Translate", "User", "UserLog", "UserRole", "MyFavorite", "CustomField"];
|
|
18
|
+
const custom_tables = computed(() => {
|
|
19
|
+
return data.value.tableStatus.filter((table) => !SYSTEM_TABLES.includes(table.Name));
|
|
20
|
+
});
|
|
21
|
+
const systables = computed(() => {
|
|
22
|
+
return data.value.tableStatus.filter((table) => SYSTEM_TABLES.includes(table.Name));
|
|
23
|
+
});
|
|
24
|
+
const field_add = resolveComponent("l-dialog-database-field-add");
|
|
25
|
+
const table_add = resolveComponent("l-database-create-table-dialog");
|
|
26
|
+
const add = async (table) => {
|
|
27
|
+
light.dialog({
|
|
28
|
+
component: field_add
|
|
29
|
+
}).onOk(async (data2) => {
|
|
30
|
+
try {
|
|
31
|
+
await m("lightDatabaseAddField", {
|
|
32
|
+
table,
|
|
33
|
+
field: data2.name,
|
|
34
|
+
type: data2.type,
|
|
35
|
+
length: data2.length,
|
|
36
|
+
default: data2.default,
|
|
37
|
+
nullable: data2.nullable,
|
|
38
|
+
autoincrement: data2.autoincrement
|
|
39
|
+
});
|
|
40
|
+
light.notify({
|
|
41
|
+
type: "positive",
|
|
42
|
+
message: "Field added successfully"
|
|
43
|
+
});
|
|
44
|
+
refresh();
|
|
45
|
+
} catch (e) {
|
|
46
|
+
light.notify({
|
|
47
|
+
type: "negative",
|
|
48
|
+
message: e.message
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const selected = reactive({});
|
|
54
|
+
for (let table of data.value.table) {
|
|
55
|
+
selected[table.name] = [];
|
|
56
|
+
}
|
|
57
|
+
const removeField = async (table) => {
|
|
58
|
+
light.dialog({
|
|
59
|
+
title: "Remove field",
|
|
60
|
+
message: "Are you sure you want to remove the selected fields?",
|
|
61
|
+
ok: "Yes",
|
|
62
|
+
cancel: "No"
|
|
63
|
+
}).onOk(async () => {
|
|
64
|
+
const fields = selected[table].map((field) => field.Field);
|
|
65
|
+
try {
|
|
66
|
+
await m("lightDatabaseRemoveFields", {
|
|
67
|
+
table,
|
|
68
|
+
fields
|
|
69
|
+
});
|
|
70
|
+
light.notify({
|
|
71
|
+
type: "positive",
|
|
72
|
+
message: "Fields removed successfully"
|
|
73
|
+
});
|
|
74
|
+
selected[table] = [];
|
|
75
|
+
refresh();
|
|
76
|
+
} catch (e) {
|
|
77
|
+
light.notify({
|
|
78
|
+
type: "negative",
|
|
79
|
+
message: e.message
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const createTable = () => {
|
|
85
|
+
light.dialog({
|
|
86
|
+
component: table_add
|
|
87
|
+
}).onOk(async (data2) => {
|
|
88
|
+
try {
|
|
89
|
+
await m("lightDatabaseCreateTable", {
|
|
90
|
+
name: data2.name,
|
|
91
|
+
fields: data2.fields
|
|
92
|
+
});
|
|
93
|
+
light.notify({
|
|
94
|
+
type: "positive",
|
|
95
|
+
message: "Table created successfully"
|
|
96
|
+
});
|
|
97
|
+
} catch (e) {
|
|
98
|
+
light.notify({
|
|
99
|
+
type: "negative",
|
|
100
|
+
message: e.message
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
refresh();
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
const selectedTable = ref([]);
|
|
107
|
+
const removeTable = async () => {
|
|
108
|
+
light.dialog({
|
|
109
|
+
title: "Remove table",
|
|
110
|
+
message: "Are you sure you want to remove the selected tables?",
|
|
111
|
+
ok: "Yes",
|
|
112
|
+
cancel: "No"
|
|
113
|
+
}).onOk(async () => {
|
|
114
|
+
const tables = selectedTable.value.map((table) => table.Name);
|
|
115
|
+
try {
|
|
116
|
+
for (let table of tables) {
|
|
117
|
+
await m("lightDatabaseRemoveTable", {
|
|
118
|
+
table
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
} catch (e) {
|
|
122
|
+
light.notify({
|
|
123
|
+
type: "negative",
|
|
124
|
+
message: e.message
|
|
125
|
+
});
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
light.notify({
|
|
129
|
+
type: "positive",
|
|
130
|
+
message: "Tables removed successfully"
|
|
131
|
+
});
|
|
132
|
+
selectedTable.value = [];
|
|
133
|
+
refresh();
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
const truncatTable = async () => {
|
|
137
|
+
light.dialog({
|
|
138
|
+
title: "Truncate table",
|
|
139
|
+
message: "Are you sure you want to truncate the selected tables?",
|
|
140
|
+
ok: "Yes",
|
|
141
|
+
cancel: "No"
|
|
142
|
+
}).onOk(async () => {
|
|
143
|
+
const tables = selectedTable.value.map((table) => table.Name);
|
|
144
|
+
try {
|
|
145
|
+
for (let table of tables) {
|
|
146
|
+
await m("lightDatabaseTruncateTable", {
|
|
147
|
+
table
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
} catch (e) {
|
|
151
|
+
light.notify({
|
|
152
|
+
type: "negative",
|
|
153
|
+
message: e.message
|
|
154
|
+
});
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
light.notify({
|
|
158
|
+
type: "positive",
|
|
159
|
+
message: "Tables truncated successfully"
|
|
160
|
+
});
|
|
161
|
+
selectedTable.value = [];
|
|
162
|
+
refresh();
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
</script>
|
|
166
|
+
|
|
167
|
+
<template>
|
|
205
168
|
<l-page title="Database">
|
|
206
169
|
|
|
207
170
|
<l-card>
|
|
@@ -272,4 +235,4 @@ const truncatTable = async () => {
|
|
|
272
235
|
|
|
273
236
|
|
|
274
237
|
</l-page>
|
|
275
|
-
</template>
|
|
238
|
+
</template>
|
|
@@ -1,109 +1,97 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref, computed } from
|
|
3
|
-
import { m, q, useAsyncData } from "#imports"
|
|
4
|
-
import { useQuasar } from "#imports"
|
|
5
|
-
const $q = useQuasar()
|
|
6
|
-
const { data: app, refresh } = await useAsyncData(async () => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
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
|
-
name: 'data',
|
|
97
|
-
label: 'Data',
|
|
98
|
-
align: 'left',
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
const selected = ref([])
|
|
102
|
-
|
|
103
|
-
const loading = ref(false)
|
|
104
|
-
</script>
|
|
105
|
-
<template>
|
|
106
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed } from "vue";
|
|
3
|
+
import { m, q, useAsyncData } from "#imports";
|
|
4
|
+
import { useQuasar } from "#imports";
|
|
5
|
+
const $q = useQuasar();
|
|
6
|
+
const { data: app, refresh } = await useAsyncData(async () => {
|
|
7
|
+
return (await q({
|
|
8
|
+
app: {
|
|
9
|
+
driveTypes: true,
|
|
10
|
+
listFileSystem: true
|
|
11
|
+
}
|
|
12
|
+
})).app;
|
|
13
|
+
});
|
|
14
|
+
const items = computed(() => app.value.listFileSystem);
|
|
15
|
+
const dialog = ref(false);
|
|
16
|
+
const value = ref({});
|
|
17
|
+
const onSubmit = async (data) => {
|
|
18
|
+
loading.value = true;
|
|
19
|
+
try {
|
|
20
|
+
if (data.uuid) {
|
|
21
|
+
await m("lightFSupdate", {
|
|
22
|
+
data
|
|
23
|
+
});
|
|
24
|
+
} else {
|
|
25
|
+
await m("lightFSadd", {
|
|
26
|
+
data
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
dialog.value = false;
|
|
30
|
+
refresh();
|
|
31
|
+
} catch (e) {
|
|
32
|
+
$q.notify({
|
|
33
|
+
type: "negative",
|
|
34
|
+
message: e.message
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
loading.value = false;
|
|
38
|
+
};
|
|
39
|
+
const onRemove = async (selected2) => {
|
|
40
|
+
$q.dialog({
|
|
41
|
+
title: "Confirm",
|
|
42
|
+
message: "Are you sure you want to delete this file system?",
|
|
43
|
+
ok: "Yes",
|
|
44
|
+
cancel: "No"
|
|
45
|
+
}).onOk(async () => {
|
|
46
|
+
for (let row of selected2) {
|
|
47
|
+
await m("lightFSdelete", {
|
|
48
|
+
uuid: row.uuid
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
selected2.value = [];
|
|
52
|
+
refresh();
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
const columns = [
|
|
56
|
+
{
|
|
57
|
+
name: "action"
|
|
58
|
+
},
|
|
59
|
+
/* {
|
|
60
|
+
name: 'uuid',
|
|
61
|
+
required: true,
|
|
62
|
+
label: 'UUID',
|
|
63
|
+
field: row => row.uuid,
|
|
64
|
+
},
|
|
65
|
+
*/
|
|
66
|
+
{
|
|
67
|
+
name: "name",
|
|
68
|
+
required: true,
|
|
69
|
+
label: "Name",
|
|
70
|
+
align: "left",
|
|
71
|
+
field: (row) => row.name,
|
|
72
|
+
format: (val) => `${val}`,
|
|
73
|
+
sortable: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "type",
|
|
77
|
+
required: true,
|
|
78
|
+
label: "Type",
|
|
79
|
+
align: "left",
|
|
80
|
+
field: (row) => row.type,
|
|
81
|
+
format: (val) => `${val}`,
|
|
82
|
+
sortable: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "data",
|
|
86
|
+
label: "Data",
|
|
87
|
+
align: "left"
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
const selected = ref([]);
|
|
91
|
+
const loading = ref(false);
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<template>
|
|
107
95
|
<l-page title="File system">
|
|
108
96
|
|
|
109
97
|
<q-dialog v-model="dialog" persistent>
|
|
@@ -203,4 +191,4 @@ const loading = ref(false)
|
|
|
203
191
|
|
|
204
192
|
</q-table>
|
|
205
193
|
</l-page>
|
|
206
|
-
</template>
|
|
194
|
+
</template>
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { q } from
|
|
3
|
-
const { system } = await q({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
const { system } = await q({
|
|
4
|
+
system: {
|
|
5
|
+
server: true,
|
|
6
|
+
arch: true,
|
|
7
|
+
os: true,
|
|
8
|
+
CPUCores: true,
|
|
9
|
+
hostname: true,
|
|
10
|
+
memoryTotal: true,
|
|
11
|
+
memoryFree: true,
|
|
12
|
+
memoryAvailable: true
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
const columns = [
|
|
16
|
+
{
|
|
17
|
+
name: "name",
|
|
18
|
+
label: "Name",
|
|
19
|
+
sortable: true
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: "value",
|
|
23
|
+
label: "Value",
|
|
24
|
+
whiteSpace: "pre-wrap"
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
31
30
|
<l-page>
|
|
32
31
|
<l-card>
|
|
33
32
|
<l-list>
|
|
@@ -46,4 +45,4 @@ const columns = [
|
|
|
46
45
|
<l-table searchable :rows="system.server" :columns="columns" :rows-per-page-options="[0]"
|
|
47
46
|
hide-pagination></l-table>
|
|
48
47
|
</l-page>
|
|
49
|
-
</template>
|
|
48
|
+
</template>
|