@hostlink/nuxt-light 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -120
- package/dist/module.json +1 -1
- package/dist/runtime/components/L/CustomField/Add.vue +40 -42
- package/dist/runtime/components/L/CustomField/List.vue +5 -5
- package/dist/runtime/components/L/Database/create-table-dialog.vue +33 -34
- package/dist/runtime/components/L/Fieldset.vue +8 -11
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +26 -27
- package/dist/runtime/components/L/Revision.vue +89 -93
- package/dist/runtime/components/L/Storage.vue +7 -7
- package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/authentication.vue +16 -16
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/developer.vue +10 -11
- package/dist/runtime/components/L/System/Setting/forget-password.vue +9 -9
- package/dist/runtime/components/L/System/Setting/general.vue +9 -9
- package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/mail.vue +28 -32
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/modules.vue +6 -6
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/security.vue +38 -41
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +1 -5
- package/dist/runtime/components/L/User/eventlog.vue +5 -5
- package/dist/runtime/components/L/User/overview.vue +19 -19
- package/dist/runtime/components/L/User/userlog.vue +1 -1
- package/dist/runtime/components/L/ValidationInput.vue +14 -14
- package/dist/runtime/components/MyTest.vue +3 -3
- package/dist/runtime/components/l-action-btn.vue +4 -4
- package/dist/runtime/components/l-add-btn.vue +3 -3
- package/dist/runtime/components/l-alert.vue +8 -8
- package/dist/runtime/components/l-app-main.d.vue.ts +1 -5
- package/dist/runtime/components/l-app-main.vue +170 -171
- package/dist/runtime/components/l-app-main.vue.d.ts +1 -5
- package/dist/runtime/components/l-app.vue +27 -27
- package/dist/runtime/components/l-audit-card.vue +8 -8
- package/dist/runtime/components/l-back-btn.vue +6 -6
- package/dist/runtime/components/l-banner.d.vue.ts +1 -1
- package/dist/runtime/components/l-banner.vue +10 -10
- package/dist/runtime/components/l-banner.vue.d.ts +1 -1
- package/dist/runtime/components/l-bar.vue +3 -3
- package/dist/runtime/components/l-btn.vue +4 -4
- package/dist/runtime/components/l-card.d.vue.ts +1 -9
- package/dist/runtime/components/l-card.vue +31 -31
- package/dist/runtime/components/l-card.vue.d.ts +1 -9
- package/dist/runtime/components/l-checkbox.vue +3 -3
- package/dist/runtime/components/l-col.vue +5 -5
- package/dist/runtime/components/l-customizer.d.vue.ts +2 -2
- package/dist/runtime/components/l-customizer.vue +95 -96
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -2
- package/dist/runtime/components/l-date-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-date-picker.vue +17 -17
- package/dist/runtime/components/l-date-picker.vue.d.ts +1 -1
- package/dist/runtime/components/l-delete-btn.vue +1 -1
- package/dist/runtime/components/l-dialog-database-field-add.vue +25 -26
- package/dist/runtime/components/l-drag-drop-container.vue +5 -5
- package/dist/runtime/components/l-drag-drop-group.vue +1 -1
- package/dist/runtime/components/l-drag-drop.vue +6 -6
- package/dist/runtime/components/l-edit-btn.vue +2 -2
- package/dist/runtime/components/l-editor.d.vue.ts +1 -5
- package/dist/runtime/components/l-editor.vue +41 -41
- package/dist/runtime/components/l-editor.vue.d.ts +1 -5
- package/dist/runtime/components/l-facebook-button.vue +2 -2
- package/dist/runtime/components/l-fav-menu.vue +14 -14
- package/dist/runtime/components/l-field.vue +3 -3
- package/dist/runtime/components/l-file-manager-labels.vue +11 -11
- package/dist/runtime/components/l-file-manager-move.vue +67 -67
- package/dist/runtime/components/l-file-manager-preview.vue +22 -22
- package/dist/runtime/components/l-file-manager.vue +245 -250
- package/dist/runtime/components/l-file-upload.d.vue.ts +1 -1
- package/dist/runtime/components/l-file-upload.vue +25 -25
- package/dist/runtime/components/l-file-upload.vue.d.ts +1 -1
- package/dist/runtime/components/l-file.d.vue.ts +1 -5
- package/dist/runtime/components/l-file.vue +8 -8
- package/dist/runtime/components/l-file.vue.d.ts +1 -5
- package/dist/runtime/components/l-form-dialog.vue +27 -27
- package/dist/runtime/components/l-form.d.vue.ts +1 -33
- package/dist/runtime/components/l-form.vue +11 -11
- package/dist/runtime/components/l-form.vue.d.ts +1 -33
- package/dist/runtime/components/l-group-select.vue +22 -22
- package/dist/runtime/components/l-icon-picker.vue +35 -38
- package/dist/runtime/components/l-input-select.vue +4 -4
- package/dist/runtime/components/l-input-xlsx.vue +30 -31
- package/dist/runtime/components/l-input.d.vue.ts +1 -1
- package/dist/runtime/components/l-input.vue +23 -23
- package/dist/runtime/components/l-input.vue.d.ts +1 -1
- package/dist/runtime/components/l-item.vue +18 -18
- package/dist/runtime/components/l-link.vue +3 -3
- package/dist/runtime/components/l-list.vue +12 -12
- package/dist/runtime/components/l-login.d.vue.ts +1 -5
- package/dist/runtime/components/l-login.vue +57 -57
- package/dist/runtime/components/l-login.vue.d.ts +1 -5
- package/dist/runtime/components/l-menu.vue +33 -34
- package/dist/runtime/components/l-microsoft-button.d.vue.ts +1 -11
- package/dist/runtime/components/l-microsoft-button.vue +68 -68
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +1 -11
- package/dist/runtime/components/l-page.vue +21 -21
- package/dist/runtime/components/l-repeater.d.vue.ts +3 -3
- package/dist/runtime/components/l-repeater.vue +35 -35
- package/dist/runtime/components/l-repeater.vue.d.ts +3 -3
- package/dist/runtime/components/l-row.vue +5 -5
- package/dist/runtime/components/l-save-btn.vue +2 -2
- package/dist/runtime/components/l-select.vue +1 -1
- package/dist/runtime/components/l-small-box.vue +9 -9
- package/dist/runtime/components/l-statistic.vue +9 -9
- package/dist/runtime/components/l-tab.vue +10 -10
- package/dist/runtime/components/l-table.d.vue.ts +1 -1
- package/dist/runtime/components/l-table.vue +176 -190
- package/dist/runtime/components/l-table.vue.d.ts +1 -1
- package/dist/runtime/components/l-tabs.vue +9 -9
- package/dist/runtime/components/l-test2.vue +3 -3
- package/dist/runtime/components/l-time-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-time-picker.vue +18 -18
- package/dist/runtime/components/l-time-picker.vue.d.ts +1 -1
- package/dist/runtime/components/l-view-btn.vue +2 -2
- package/dist/runtime/components/user-list.vue +3 -3
- package/dist/runtime/composables/mytest.js +2 -2
- package/dist/runtime/composables/tc2sc.js +85 -85
- package/dist/runtime/formkit/Checkbox.d.vue.ts +0 -1
- package/dist/runtime/formkit/Checkbox.vue +6 -6
- package/dist/runtime/formkit/Checkbox.vue.d.ts +0 -1
- package/dist/runtime/formkit/DatePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/DatePicker.vue +11 -11
- package/dist/runtime/formkit/DatePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/Editor.vue +7 -7
- package/dist/runtime/formkit/File.d.vue.ts +0 -1
- package/dist/runtime/formkit/File.vue +6 -6
- package/dist/runtime/formkit/File.vue.d.ts +0 -1
- package/dist/runtime/formkit/FilePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/FilePicker.vue +6 -6
- package/dist/runtime/formkit/FilePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/FileUpload.d.vue.ts +0 -1
- package/dist/runtime/formkit/FileUpload.vue +6 -6
- package/dist/runtime/formkit/FileUpload.vue.d.ts +0 -1
- package/dist/runtime/formkit/Form.d.vue.ts +1 -3
- package/dist/runtime/formkit/Form.vue +11 -11
- package/dist/runtime/formkit/Form.vue.d.ts +1 -3
- package/dist/runtime/formkit/GroupSelect.d.vue.ts +0 -1
- package/dist/runtime/formkit/GroupSelect.vue +7 -7
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +0 -1
- package/dist/runtime/formkit/Input.d.vue.ts +1 -1
- package/dist/runtime/formkit/Input.vue +11 -11
- package/dist/runtime/formkit/Input.vue.d.ts +1 -1
- package/dist/runtime/formkit/InputSelect.d.vue.ts +1 -1
- package/dist/runtime/formkit/InputSelect.vue +7 -7
- package/dist/runtime/formkit/InputSelect.vue.d.ts +1 -1
- package/dist/runtime/formkit/InputXlsx.vue +4 -4
- package/dist/runtime/formkit/OptionGroup.vue +5 -5
- package/dist/runtime/formkit/Radio.vue +4 -4
- package/dist/runtime/formkit/Repeater.d.vue.ts +1 -1
- package/dist/runtime/formkit/Repeater.vue +37 -37
- package/dist/runtime/formkit/Repeater.vue.d.ts +1 -1
- package/dist/runtime/formkit/Select.d.vue.ts +0 -1
- package/dist/runtime/formkit/Select.vue +6 -6
- package/dist/runtime/formkit/Select.vue.d.ts +0 -1
- package/dist/runtime/formkit/Textarea.d.vue.ts +1 -1
- package/dist/runtime/formkit/Textarea.vue +11 -11
- package/dist/runtime/formkit/Textarea.vue.d.ts +1 -1
- package/dist/runtime/formkit/TimePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/TimePicker.vue +10 -10
- package/dist/runtime/formkit/TimePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/Toggle.vue +3 -3
- package/dist/runtime/index.d.ts +39 -39
- package/dist/runtime/locales/en.json +9 -9
- package/dist/runtime/locales/zh-hk.json +213 -213
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +33 -38
- package/dist/runtime/pages/CustomField/index.vue +12 -14
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +36 -36
- package/dist/runtime/pages/EventLog/index.vue +7 -7
- package/dist/runtime/pages/FileManager/index.vue +4 -4
- package/dist/runtime/pages/MailLog/index.vue +18 -18
- package/dist/runtime/pages/Permission/add.vue +13 -13
- package/dist/runtime/pages/Permission/all.vue +63 -63
- package/dist/runtime/pages/Permission/export.vue +9 -10
- package/dist/runtime/pages/Permission/index.vue +4 -4
- package/dist/runtime/pages/Role/_name/update-child.vue +4 -4
- package/dist/runtime/pages/Role/add.vue +7 -7
- package/dist/runtime/pages/Role/add2.vue +30 -30
- package/dist/runtime/pages/Role/index.vue +27 -27
- package/dist/runtime/pages/System/database/backup.vue +72 -72
- package/dist/runtime/pages/System/database/check.vue +72 -72
- package/dist/runtime/pages/System/database/event.vue +51 -51
- package/dist/runtime/pages/System/database/process.vue +21 -21
- package/dist/runtime/pages/System/database/restore.vue +110 -110
- package/dist/runtime/pages/System/database/table.vue +67 -69
- package/dist/runtime/pages/System/fs.vue +99 -99
- package/dist/runtime/pages/System/index.vue +16 -18
- package/dist/runtime/pages/System/mailtest.vue +12 -12
- package/dist/runtime/pages/System/menu/index.vue +142 -144
- package/dist/runtime/pages/System/package.vue +11 -11
- package/dist/runtime/pages/System/phpinfo.vue +3 -3
- package/dist/runtime/pages/System/setting.vue +28 -30
- package/dist/runtime/pages/System/test.vue +12 -12
- package/dist/runtime/pages/System/view_as.vue +21 -22
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +6 -6
- package/dist/runtime/pages/SystemValue/add.vue +7 -7
- package/dist/runtime/pages/SystemValue/index.vue +4 -4
- package/dist/runtime/pages/Translate/index.vue +38 -38
- package/dist/runtime/pages/User/_user_id/change-password.vue +17 -18
- package/dist/runtime/pages/User/_user_id/edit.vue +28 -28
- package/dist/runtime/pages/User/_user_id/update-role.vue +7 -8
- package/dist/runtime/pages/User/_user_id/view.vue +27 -30
- package/dist/runtime/pages/User/add.vue +35 -35
- package/dist/runtime/pages/User/index.vue +11 -11
- package/dist/runtime/pages/User/profile.vue +45 -46
- package/dist/runtime/pages/User/setting/bio-auth.vue +22 -22
- package/dist/runtime/pages/User/setting/favorite.vue +61 -62
- package/dist/runtime/pages/User/setting/index.vue +6 -6
- package/dist/runtime/pages/User/setting/information.vue +6 -6
- package/dist/runtime/pages/User/setting/menu.vue +165 -165
- package/dist/runtime/pages/User/setting/open_id.vue +161 -161
- package/dist/runtime/pages/User/setting/password.vue +19 -19
- package/dist/runtime/pages/User/setting/style.vue +104 -106
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +176 -176
- package/dist/runtime/pages/User/setting.vue +32 -32
- package/dist/runtime/pages/UserLog/index.vue +4 -4
- package/package.json +63 -63
|
@@ -167,73 +167,71 @@ const truncatTable = async () => {
|
|
|
167
167
|
</script>
|
|
168
168
|
|
|
169
169
|
<template>
|
|
170
|
-
<l-page title="Database">
|
|
171
|
-
|
|
172
|
-
<l-card>
|
|
173
|
-
<l-list>
|
|
174
|
-
<l-item label="Type">{{ data.type }}</l-item>
|
|
175
|
-
<l-item label="Version">{{ data.version }}</l-item>
|
|
176
|
-
</l-list>
|
|
177
|
-
</l-card>
|
|
178
|
-
|
|
179
|
-
<q-card>
|
|
180
|
-
<q-list separator bordered>
|
|
181
|
-
<q-expansion-item label="Table Status" dense>
|
|
182
|
-
<div s>
|
|
183
|
-
|
|
184
|
-
<q-table :rows="custom_tables" hide-pagination flat bordered separator="cell" dense
|
|
185
|
-
:rows-per-page-options="[0]" v-model:selected="selectedTable" selection="multiple"
|
|
186
|
-
row-key="Name">
|
|
187
|
-
|
|
188
|
-
<template #top-left>
|
|
189
|
-
<q-btn icon="sym_o_add" @click="createTable()" round flat size="sm">
|
|
190
|
-
<q-tooltip>Create table</q-tooltip>
|
|
191
|
-
</q-btn>
|
|
192
|
-
<q-btn icon="sym_o_delete" @click="removeTable()" round flat size="sm"
|
|
193
|
-
:disable="selectedTable.length == 0">
|
|
194
|
-
<q-tooltip>Remove table</q-tooltip>
|
|
195
|
-
</q-btn>
|
|
196
|
-
|
|
197
|
-
<q-btn icon="sym_o_scan_delete" @click="truncatTable" round flat size="sm"
|
|
198
|
-
:disable="selectedTable.length == 0">
|
|
199
|
-
<q-tooltip>Truncate table</q-tooltip>
|
|
200
|
-
</q-btn>
|
|
201
|
-
|
|
202
|
-
</template>
|
|
203
|
-
</q-table>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
</l-page>
|
|
170
|
+
<l-page title="Database">
|
|
171
|
+
|
|
172
|
+
<l-card>
|
|
173
|
+
<l-list>
|
|
174
|
+
<l-item label="Type">{{ data.type }}</l-item>
|
|
175
|
+
<l-item label="Version">{{ data.version }}</l-item>
|
|
176
|
+
</l-list>
|
|
177
|
+
</l-card>
|
|
178
|
+
|
|
179
|
+
<q-card>
|
|
180
|
+
<q-list separator bordered>
|
|
181
|
+
<q-expansion-item label="Table Status" dense>
|
|
182
|
+
<div s>
|
|
183
|
+
|
|
184
|
+
<q-table :rows="custom_tables" hide-pagination flat bordered separator="cell" dense
|
|
185
|
+
:rows-per-page-options="[0]" v-model:selected="selectedTable" selection="multiple"
|
|
186
|
+
row-key="Name">
|
|
187
|
+
|
|
188
|
+
<template #top-left>
|
|
189
|
+
<q-btn icon="sym_o_add" @click="createTable()" round flat size="sm">
|
|
190
|
+
<q-tooltip>Create table</q-tooltip>
|
|
191
|
+
</q-btn>
|
|
192
|
+
<q-btn icon="sym_o_delete" @click="removeTable()" round flat size="sm"
|
|
193
|
+
:disable="selectedTable.length == 0">
|
|
194
|
+
<q-tooltip>Remove table</q-tooltip>
|
|
195
|
+
</q-btn>
|
|
196
|
+
|
|
197
|
+
<q-btn icon="sym_o_scan_delete" @click="truncatTable" round flat size="sm"
|
|
198
|
+
:disable="selectedTable.length == 0">
|
|
199
|
+
<q-tooltip>Truncate table</q-tooltip>
|
|
200
|
+
</q-btn>
|
|
201
|
+
|
|
202
|
+
</template>
|
|
203
|
+
</q-table>
|
|
204
|
+
|
|
205
|
+
<q-table :rows="systables" hide-pagination flat bordered separator="cell" dense
|
|
206
|
+
:rows-per-page-options="[0]" row-key="Name" title="System tables">
|
|
207
|
+
|
|
208
|
+
</q-table>
|
|
209
|
+
</div>
|
|
210
|
+
</q-expansion-item>
|
|
211
|
+
</q-list>
|
|
212
|
+
</q-card>
|
|
213
|
+
|
|
214
|
+
<q-card>
|
|
215
|
+
<q-list separator bordered>
|
|
216
|
+
<q-expansion-item :label="table.name" v-for="table in data.table" dense>
|
|
217
|
+
<div class="q-ma-sm">
|
|
218
|
+
<q-table row-key="name" :rows="table.columns" :rows-per-page-options="[0]" hide-pagination flat
|
|
219
|
+
bordered selection="multiple" v-model:selected="selected[table.name]">
|
|
220
|
+
<template #top-left>
|
|
221
|
+
<q-btn icon="sym_o_add" @click="add(table.name)" round flat size="sm">
|
|
222
|
+
<q-tooltip>Add field</q-tooltip>
|
|
223
|
+
</q-btn>
|
|
224
|
+
<q-btn icon="sym_o_delete" @click="removeField(table.name)" round flat size="sm"
|
|
225
|
+
:disable="selected[table.name].length == 0">
|
|
226
|
+
<q-tooltip>Remove field</q-tooltip>
|
|
227
|
+
</q-btn>
|
|
228
|
+
</template>
|
|
229
|
+
</q-table>
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
</q-expansion-item>
|
|
233
|
+
</q-list>
|
|
234
|
+
</q-card>
|
|
235
|
+
|
|
236
|
+
</l-page>
|
|
239
237
|
</template>
|
|
@@ -92,103 +92,103 @@ const loading = ref(false);
|
|
|
92
92
|
</script>
|
|
93
93
|
|
|
94
94
|
<template>
|
|
95
|
-
<l-page title="File system">
|
|
96
|
-
|
|
97
|
-
<q-dialog v-model="dialog" persistent>
|
|
98
|
-
<q-card style="width: 500px;">
|
|
99
|
-
|
|
100
|
-
<q-toolbar>
|
|
101
|
-
<q-toolbar-title v-if="value.uuid">{{ $t('Edit File System') }}</q-toolbar-title>
|
|
102
|
-
<q-toolbar-title v-else>{{ $t('Add File System') }}</q-toolbar-title>
|
|
103
|
-
<q-space></q-space>
|
|
104
|
-
<q-btn flat round dense icon="sym_o_close" v-close-popup></q-btn>
|
|
105
|
-
</q-toolbar>
|
|
106
|
-
|
|
107
|
-
<form-kit type="l-form" :value="value" @submit="onSubmit" #default="{ value }">
|
|
108
|
-
<form-kit type="l-input" label="Name" name="name" validation="required"></form-kit>
|
|
109
|
-
<form-kit type="l-select" label="Type" name="type" validation="required" :options="[
|
|
110
|
-
{ label: 'Local', value: 'local', disable: !app.driveTypes.includes('local') },
|
|
111
|
-
{ label: 'S3', value: 's3', disable: !app.driveTypes.includes('s3') },
|
|
112
|
-
{ label: 'HostLink storage', value: 'hostlink', disable: !app.driveTypes.includes('hostlink') },
|
|
113
|
-
{ label: 'Aliyun OSS', value: 'aliyun-oss', disable: !app.driveTypes.includes('aliyun-oss') },
|
|
114
|
-
]"></form-kit>
|
|
115
|
-
|
|
116
|
-
<form-kit type="group" name="data">
|
|
117
|
-
<form-kit type="l-input" label="Url" name="url"
|
|
118
|
-
hint="URL is used to generate the full URL of the file.">
|
|
119
|
-
</form-kit>
|
|
120
|
-
|
|
121
|
-
<template v-if="value.type == 'local'">
|
|
122
|
-
<form-kit type="l-input" label="Location" name="location" validation="required"
|
|
123
|
-
hint="Location is the path to the directory where the files are stored."></form-kit>
|
|
124
|
-
</template>
|
|
125
|
-
|
|
126
|
-
<template v-if="value.type == 's3'">
|
|
127
|
-
<form-kit type="l-input" label="Bucket" name="bucket" validation="required"></form-kit>
|
|
128
|
-
<form-kit type="l-input" label="Access Key" name="accessKey"
|
|
129
|
-
validation="required"></form-kit>
|
|
130
|
-
<form-kit type="l-input" label="Secret Key" name="secretKey"
|
|
131
|
-
validation="required"></form-kit>
|
|
132
|
-
<form-kit type="l-input" label="Region" name="region" validation="required"></form-kit>
|
|
133
|
-
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
134
|
-
<form-kit type="l-input" label="Prefix" name="prefix"></form-kit>
|
|
135
|
-
<form-kit type="l-select" label="Visibility" name="visibility" validation="required"
|
|
136
|
-
:options="[
|
|
137
|
-
{ label: 'Public', value: 'public' },
|
|
138
|
-
{ label: 'Private', value: 'private' }
|
|
139
|
-
]"></form-kit>
|
|
140
|
-
</template>
|
|
141
|
-
|
|
142
|
-
<template v-if="value.type == 'hostlink'">
|
|
143
|
-
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
144
|
-
<form-kit type="l-input" label="Token" name="token" validation="required"></form-kit>
|
|
145
|
-
</template>
|
|
146
|
-
|
|
147
|
-
<template v-if="value.type == 'aliyun-oss'">
|
|
148
|
-
<form-kit type="l-input" label="Access Key" name="access_key_id" validation="required">
|
|
149
|
-
</form-kit>
|
|
150
|
-
<form-kit type="l-input" label="Secret Key" name="access_key_secret" validation="required">
|
|
151
|
-
</form-kit>
|
|
152
|
-
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
153
|
-
<form-kit type="l-input" label="Bucket" name="bucket" validation="required"></form-kit>
|
|
154
|
-
<form-kit type="l-input" label="Prefix" name="prefix"></form-kit>
|
|
155
|
-
</template>
|
|
156
|
-
</form-kit>
|
|
157
|
-
|
|
158
|
-
</form-kit>
|
|
159
|
-
|
|
160
|
-
</q-card>
|
|
161
|
-
</q-dialog>
|
|
162
|
-
|
|
163
|
-
<q-table :rows="items" :columns="columns" selection="multiple" flat bordered dense separator="cell"
|
|
164
|
-
v-model:selected="selected" row-key="uuid" :loading="loading">
|
|
165
|
-
<template #top-left>
|
|
166
|
-
<q-btn icon="sym_o_add" @click="value = {
|
|
167
|
-
data: {
|
|
168
|
-
url: '',
|
|
169
|
-
}
|
|
170
|
-
}; dialog = true" flat round dense>
|
|
171
|
-
<q-tooltip>Add File System</q-tooltip>
|
|
172
|
-
</q-btn>
|
|
173
|
-
<q-btn icon="sym_o_delete" @click="onRemove(selected)" flat round dense :disable="selected.length == 0">
|
|
174
|
-
<q-tooltip>Remove File System</q-tooltip>
|
|
175
|
-
</q-btn>
|
|
176
|
-
</template>
|
|
177
|
-
|
|
178
|
-
<template #body-cell-data="props">
|
|
179
|
-
<q-td>
|
|
180
|
-
<pre>{{ props.row.data }}</pre>
|
|
181
|
-
</q-td>
|
|
182
|
-
</template>
|
|
183
|
-
|
|
184
|
-
<template #body-cell-action="props">
|
|
185
|
-
<q-td auto-width>
|
|
186
|
-
<q-btn icon="sym_o_edit" @click="value = props.row; dialog = true" flat round dense>
|
|
187
|
-
<q-tooltip>Edit</q-tooltip>
|
|
188
|
-
</q-btn>
|
|
189
|
-
</q-td>
|
|
190
|
-
</template>
|
|
191
|
-
|
|
192
|
-
</q-table>
|
|
193
|
-
</l-page>
|
|
95
|
+
<l-page title="File system">
|
|
96
|
+
|
|
97
|
+
<q-dialog v-model="dialog" persistent>
|
|
98
|
+
<q-card style="width: 500px;">
|
|
99
|
+
|
|
100
|
+
<q-toolbar>
|
|
101
|
+
<q-toolbar-title v-if="value.uuid">{{ $t('Edit File System') }}</q-toolbar-title>
|
|
102
|
+
<q-toolbar-title v-else>{{ $t('Add File System') }}</q-toolbar-title>
|
|
103
|
+
<q-space></q-space>
|
|
104
|
+
<q-btn flat round dense icon="sym_o_close" v-close-popup></q-btn>
|
|
105
|
+
</q-toolbar>
|
|
106
|
+
|
|
107
|
+
<form-kit type="l-form" :value="value" @submit="onSubmit" #default="{ value }">
|
|
108
|
+
<form-kit type="l-input" label="Name" name="name" validation="required"></form-kit>
|
|
109
|
+
<form-kit type="l-select" label="Type" name="type" validation="required" :options="[
|
|
110
|
+
{ label: 'Local', value: 'local', disable: !app.driveTypes.includes('local') },
|
|
111
|
+
{ label: 'S3', value: 's3', disable: !app.driveTypes.includes('s3') },
|
|
112
|
+
{ label: 'HostLink storage', value: 'hostlink', disable: !app.driveTypes.includes('hostlink') },
|
|
113
|
+
{ label: 'Aliyun OSS', value: 'aliyun-oss', disable: !app.driveTypes.includes('aliyun-oss') },
|
|
114
|
+
]"></form-kit>
|
|
115
|
+
|
|
116
|
+
<form-kit type="group" name="data">
|
|
117
|
+
<form-kit type="l-input" label="Url" name="url"
|
|
118
|
+
hint="URL is used to generate the full URL of the file.">
|
|
119
|
+
</form-kit>
|
|
120
|
+
|
|
121
|
+
<template v-if="value.type == 'local'">
|
|
122
|
+
<form-kit type="l-input" label="Location" name="location" validation="required"
|
|
123
|
+
hint="Location is the path to the directory where the files are stored."></form-kit>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<template v-if="value.type == 's3'">
|
|
127
|
+
<form-kit type="l-input" label="Bucket" name="bucket" validation="required"></form-kit>
|
|
128
|
+
<form-kit type="l-input" label="Access Key" name="accessKey"
|
|
129
|
+
validation="required"></form-kit>
|
|
130
|
+
<form-kit type="l-input" label="Secret Key" name="secretKey"
|
|
131
|
+
validation="required"></form-kit>
|
|
132
|
+
<form-kit type="l-input" label="Region" name="region" validation="required"></form-kit>
|
|
133
|
+
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
134
|
+
<form-kit type="l-input" label="Prefix" name="prefix"></form-kit>
|
|
135
|
+
<form-kit type="l-select" label="Visibility" name="visibility" validation="required"
|
|
136
|
+
:options="[
|
|
137
|
+
{ label: 'Public', value: 'public' },
|
|
138
|
+
{ label: 'Private', value: 'private' }
|
|
139
|
+
]"></form-kit>
|
|
140
|
+
</template>
|
|
141
|
+
|
|
142
|
+
<template v-if="value.type == 'hostlink'">
|
|
143
|
+
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
144
|
+
<form-kit type="l-input" label="Token" name="token" validation="required"></form-kit>
|
|
145
|
+
</template>
|
|
146
|
+
|
|
147
|
+
<template v-if="value.type == 'aliyun-oss'">
|
|
148
|
+
<form-kit type="l-input" label="Access Key" name="access_key_id" validation="required">
|
|
149
|
+
</form-kit>
|
|
150
|
+
<form-kit type="l-input" label="Secret Key" name="access_key_secret" validation="required">
|
|
151
|
+
</form-kit>
|
|
152
|
+
<form-kit type="l-input" label="Endpoint" name="endpoint" validation="required"></form-kit>
|
|
153
|
+
<form-kit type="l-input" label="Bucket" name="bucket" validation="required"></form-kit>
|
|
154
|
+
<form-kit type="l-input" label="Prefix" name="prefix"></form-kit>
|
|
155
|
+
</template>
|
|
156
|
+
</form-kit>
|
|
157
|
+
|
|
158
|
+
</form-kit>
|
|
159
|
+
|
|
160
|
+
</q-card>
|
|
161
|
+
</q-dialog>
|
|
162
|
+
|
|
163
|
+
<q-table :rows="items" :columns="columns" selection="multiple" flat bordered dense separator="cell"
|
|
164
|
+
v-model:selected="selected" row-key="uuid" :loading="loading">
|
|
165
|
+
<template #top-left>
|
|
166
|
+
<q-btn icon="sym_o_add" @click="value = {
|
|
167
|
+
data: {
|
|
168
|
+
url: '',
|
|
169
|
+
}
|
|
170
|
+
}; dialog = true" flat round dense>
|
|
171
|
+
<q-tooltip>Add File System</q-tooltip>
|
|
172
|
+
</q-btn>
|
|
173
|
+
<q-btn icon="sym_o_delete" @click="onRemove(selected)" flat round dense :disable="selected.length == 0">
|
|
174
|
+
<q-tooltip>Remove File System</q-tooltip>
|
|
175
|
+
</q-btn>
|
|
176
|
+
</template>
|
|
177
|
+
|
|
178
|
+
<template #body-cell-data="props">
|
|
179
|
+
<q-td>
|
|
180
|
+
<pre>{{ props.row.data }}</pre>
|
|
181
|
+
</q-td>
|
|
182
|
+
</template>
|
|
183
|
+
|
|
184
|
+
<template #body-cell-action="props">
|
|
185
|
+
<q-td auto-width>
|
|
186
|
+
<q-btn icon="sym_o_edit" @click="value = props.row; dialog = true" flat round dense>
|
|
187
|
+
<q-tooltip>Edit</q-tooltip>
|
|
188
|
+
</q-btn>
|
|
189
|
+
</q-td>
|
|
190
|
+
</template>
|
|
191
|
+
|
|
192
|
+
</q-table>
|
|
193
|
+
</l-page>
|
|
194
194
|
</template>
|
|
@@ -27,22 +27,20 @@ const columns = [
|
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<template>
|
|
30
|
-
<l-page>
|
|
31
|
-
<l-card>
|
|
32
|
-
<l-list>
|
|
33
|
-
<l-item label="Arch">{{ system.arch }}</l-item>
|
|
34
|
-
<l-item label="OS">{{ system.os }}</l-item>
|
|
35
|
-
<l-item label="CPUCores">{{ system.CPUCores }}</l-item>
|
|
36
|
-
<l-item label="Hostname">{{ system.hostname }}</l-item>
|
|
37
|
-
<l-item label="Memory Total">{{ system.memoryTotal }}</l-item>
|
|
38
|
-
<l-item label="Memory Free">{{ system.memoryFree }}</l-item>
|
|
39
|
-
<l-item label="Memory Available">{{ system.memoryAvailable }}</l-item>
|
|
40
|
-
</l-list>
|
|
41
|
-
</l-card>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
hide-pagination></l-table>
|
|
47
|
-
</l-page>
|
|
30
|
+
<l-page>
|
|
31
|
+
<l-card>
|
|
32
|
+
<l-list>
|
|
33
|
+
<l-item label="Arch">{{ system.arch }}</l-item>
|
|
34
|
+
<l-item label="OS">{{ system.os }}</l-item>
|
|
35
|
+
<l-item label="CPUCores">{{ system.CPUCores }}</l-item>
|
|
36
|
+
<l-item label="Hostname">{{ system.hostname }}</l-item>
|
|
37
|
+
<l-item label="Memory Total">{{ system.memoryTotal }}</l-item>
|
|
38
|
+
<l-item label="Memory Free">{{ system.memoryFree }}</l-item>
|
|
39
|
+
<l-item label="Memory Available">{{ system.memoryAvailable }}</l-item>
|
|
40
|
+
</l-list>
|
|
41
|
+
</l-card>
|
|
42
|
+
|
|
43
|
+
<l-table searchable :rows="system.server" :columns="columns" :rows-per-page-options="[0]"
|
|
44
|
+
hide-pagination></l-table>
|
|
45
|
+
</l-page>
|
|
48
46
|
</template>
|
|
@@ -26,16 +26,16 @@ const onSubmit = async (data) => {
|
|
|
26
26
|
</script>
|
|
27
27
|
|
|
28
28
|
<template>
|
|
29
|
-
<l-page title="Mail test">
|
|
30
|
-
<form-kit type="l-form" @submit="onSubmit" :value="{
|
|
31
|
-
email: my.email,
|
|
32
|
-
subject: 'Test email',
|
|
33
|
-
content: 'Hello, this is a test email'
|
|
34
|
-
}">
|
|
35
|
-
<form-kit type="l-input" label="Email" name="email" validation="required|email"></form-kit>
|
|
36
|
-
<form-kit type="l-input" label="Subject" name="subject" validation="required"></form-kit>
|
|
37
|
-
<form-kit type="l-input" input-type="textarea" label="Content" name="content" validation="required">
|
|
38
|
-
</form-kit>
|
|
39
|
-
</form-kit>
|
|
40
|
-
</l-page>
|
|
29
|
+
<l-page title="Mail test">
|
|
30
|
+
<form-kit type="l-form" @submit="onSubmit" :value="{
|
|
31
|
+
email: my.email,
|
|
32
|
+
subject: 'Test email',
|
|
33
|
+
content: 'Hello, this is a test email'
|
|
34
|
+
}">
|
|
35
|
+
<form-kit type="l-input" label="Email" name="email" validation="required|email"></form-kit>
|
|
36
|
+
<form-kit type="l-input" label="Subject" name="subject" validation="required"></form-kit>
|
|
37
|
+
<form-kit type="l-input" input-type="textarea" label="Content" name="content" validation="required">
|
|
38
|
+
</form-kit>
|
|
39
|
+
</form-kit>
|
|
40
|
+
</l-page>
|
|
41
41
|
</template>
|