@hostlink/nuxt-light 1.27.7 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +40 -42
- package/dist/runtime/components/L/CustomField/Add.vue +41 -52
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +2 -0
- package/dist/runtime/components/L/CustomField/List.vue +26 -30
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -0
- package/dist/runtime/components/L/Database/create-table-dialog.vue +22 -38
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Fieldset.vue +19 -23
- package/dist/runtime/components/L/Fieldset.vue.d.ts +2 -0
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +39 -41
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Revision.vue +101 -137
- package/dist/runtime/components/L/Revision.vue.d.ts +2 -0
- package/dist/runtime/components/L/Storage.vue +26 -30
- package/dist/runtime/components/L/Storage.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/authentication.vue +22 -44
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/developer.vue +43 -59
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/forget-password.vue +42 -58
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/general.vue +29 -41
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/mail.vue +39 -42
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/modules.vue +9 -9
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/security.vue +20 -39
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/eventlog.vue +26 -26
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/overview.vue +25 -27
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/userlog.vue +22 -28
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/ValidationInput.vue +68 -91
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +2 -0
- package/dist/runtime/components/MyTest.vue +8 -7
- package/dist/runtime/components/MyTest.vue.d.ts +2 -0
- package/dist/runtime/components/l-add-btn.vue +13 -12
- package/dist/runtime/components/l-add-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-alert.vue +25 -29
- package/dist/runtime/components/l-alert.vue.d.ts +2 -0
- package/dist/runtime/components/l-app-main.vue +226 -294
- package/dist/runtime/components/l-app-main.vue.d.ts +2 -0
- package/dist/runtime/components/l-app.vue +76 -89
- package/dist/runtime/components/l-app.vue.d.ts +2 -0
- package/dist/runtime/components/l-audit-card.vue +8 -14
- package/dist/runtime/components/l-audit-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-banner.vue +28 -34
- package/dist/runtime/components/l-banner.vue.d.ts +2 -0
- package/dist/runtime/components/l-bar.vue +21 -25
- package/dist/runtime/components/l-bar.vue.d.ts +2 -0
- package/dist/runtime/components/l-btn.vue +62 -39
- package/dist/runtime/components/l-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-card.vue +90 -141
- package/dist/runtime/components/l-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-checkbox.vue +30 -7
- package/dist/runtime/components/l-checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/l-col.vue +21 -29
- package/dist/runtime/components/l-col.vue.d.ts +2 -0
- package/dist/runtime/components/l-customizer.vue +84 -100
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -0
- package/dist/runtime/components/l-date-picker.vue +101 -147
- package/dist/runtime/components/l-date-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-delete-btn.vue +22 -27
- package/dist/runtime/components/l-delete-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-dialog-database-field-add.vue +19 -36
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-container.vue +44 -62
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-group.vue +49 -70
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop.vue +33 -44
- package/dist/runtime/components/l-drag-drop.vue.d.ts +2 -0
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-editor.vue +185 -172
- package/dist/runtime/components/l-editor.vue.d.ts +2 -0
- package/dist/runtime/components/l-facebook-button.vue +18 -26
- package/dist/runtime/components/l-facebook-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-fav-menu.vue +19 -24
- package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-field.vue +49 -18
- package/dist/runtime/components/l-field.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-labels.vue +46 -48
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-move.vue +53 -68
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-preview.vue +46 -81
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager.vue +498 -640
- package/dist/runtime/components/l-file-manager.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-upload.vue +80 -109
- package/dist/runtime/components/l-file-upload.vue.d.ts +2 -0
- package/dist/runtime/components/l-file.vue +37 -61
- package/dist/runtime/components/l-file.vue.d.ts +2 -0
- package/dist/runtime/components/l-form-dialog.vue +71 -83
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/l-form.vue +82 -96
- package/dist/runtime/components/l-form.vue.d.ts +2 -0
- package/dist/runtime/components/l-group-select.vue +59 -94
- package/dist/runtime/components/l-group-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-icon-picker.vue +3265 -3274
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-input-xlsx.vue +30 -38
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +2 -0
- package/dist/runtime/components/l-input.vue +142 -126
- package/dist/runtime/components/l-input.vue.d.ts +2 -0
- package/dist/runtime/components/l-item.vue +30 -21
- package/dist/runtime/components/l-item.vue.d.ts +2 -0
- package/dist/runtime/components/l-link.vue +16 -15
- package/dist/runtime/components/l-link.vue.d.ts +2 -0
- package/dist/runtime/components/l-list.vue +27 -35
- package/dist/runtime/components/l-list.vue.d.ts +2 -0
- package/dist/runtime/components/l-login.vue +246 -287
- package/dist/runtime/components/l-login.vue.d.ts +2 -0
- package/dist/runtime/components/l-menu.vue +45 -54
- package/dist/runtime/components/l-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-microsoft-button.vue +42 -52
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-page.vue +48 -67
- package/dist/runtime/components/l-page.vue.d.ts +2 -0
- package/dist/runtime/components/l-row.vue +8 -13
- package/dist/runtime/components/l-row.vue.d.ts +2 -0
- package/dist/runtime/components/l-save-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-select.vue +150 -76
- package/dist/runtime/components/l-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-small-box.vue +18 -31
- package/dist/runtime/components/l-small-box.vue.d.ts +2 -0
- package/dist/runtime/components/l-statistic.vue +17 -23
- package/dist/runtime/components/l-statistic.vue.d.ts +2 -0
- package/dist/runtime/components/l-tab.vue +20 -15
- package/dist/runtime/components/l-tab.vue.d.ts +2 -0
- package/dist/runtime/components/l-table.vue +444 -560
- package/dist/runtime/components/l-table.vue.d.ts +2 -0
- package/dist/runtime/components/l-tabs.vue +34 -16
- package/dist/runtime/components/l-tabs.vue.d.ts +2 -0
- package/dist/runtime/components/l-test2.vue +10 -9
- package/dist/runtime/components/l-test2.vue.d.ts +2 -0
- package/dist/runtime/components/l-time-picker.vue +53 -68
- package/dist/runtime/components/l-time-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-view-btn.vue.d.ts +2 -0
- package/dist/runtime/composables/mytest.d.ts +2 -0
- package/dist/runtime/composables/mytest.js +3 -0
- package/dist/runtime/formkit/Checkbox.vue +15 -18
- package/dist/runtime/formkit/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/formkit/DatePicker.vue +15 -18
- package/dist/runtime/formkit/DatePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Editor.vue +15 -18
- package/dist/runtime/formkit/Editor.vue.d.ts +2 -0
- package/dist/runtime/formkit/File.vue +30 -37
- package/dist/runtime/formkit/File.vue.d.ts +2 -0
- package/dist/runtime/formkit/FilePicker.vue +22 -25
- package/dist/runtime/formkit/FilePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/FileUpload.vue +22 -25
- package/dist/runtime/formkit/FileUpload.vue.d.ts +2 -0
- package/dist/runtime/formkit/Form.vue +79 -100
- package/dist/runtime/formkit/Form.vue.d.ts +2 -0
- package/dist/runtime/formkit/GroupSelect.vue +21 -27
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +2 -0
- package/dist/runtime/formkit/Input.vue +53 -61
- package/dist/runtime/formkit/Input.vue.d.ts +2 -0
- package/dist/runtime/formkit/InputXlsx.vue +15 -18
- package/dist/runtime/formkit/InputXlsx.vue.d.ts +2 -0
- package/dist/runtime/formkit/OptionGroup.vue +20 -26
- package/dist/runtime/formkit/OptionGroup.vue.d.ts +2 -0
- package/dist/runtime/formkit/Radio.vue +15 -18
- package/dist/runtime/formkit/Radio.vue.d.ts +2 -0
- package/dist/runtime/formkit/Repeater.vue +62 -76
- package/dist/runtime/formkit/Repeater.vue.d.ts +2 -0
- package/dist/runtime/formkit/Select.vue +21 -29
- package/dist/runtime/formkit/Select.vue.d.ts +2 -0
- package/dist/runtime/formkit/TimePicker.vue +15 -19
- package/dist/runtime/formkit/TimePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Toggle.vue +13 -16
- package/dist/runtime/formkit/Toggle.vue.d.ts +2 -0
- package/dist/runtime/light.d.ts +1129 -6
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +24 -26
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/CustomField/index.vue +22 -29
- package/dist/runtime/pages/CustomField/index.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +8 -8
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/index.vue +7 -6
- package/dist/runtime/pages/EventLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/FileManager/index.vue.d.ts +2 -0
- package/dist/runtime/pages/MailLog/index.vue +7 -6
- package/dist/runtime/pages/MailLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/add.vue +26 -29
- package/dist/runtime/pages/Permission/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/all.vue +57 -73
- package/dist/runtime/pages/Permission/all.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/export.vue +49 -62
- package/dist/runtime/pages/Permission/export.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/index.vue +19 -20
- package/dist/runtime/pages/Permission/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/_name/update-child.vue +12 -14
- package/dist/runtime/pages/Role/_name/update-child.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add.vue +13 -15
- package/dist/runtime/pages/Role/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add2.vue +27 -38
- package/dist/runtime/pages/Role/add2.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/index.vue +100 -127
- package/dist/runtime/pages/Role/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/backup.vue +28 -36
- package/dist/runtime/pages/System/database/backup.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/process.vue +33 -43
- package/dist/runtime/pages/System/database/process.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/table.vue +168 -205
- package/dist/runtime/pages/System/database/table.vue.d.ts +2 -0
- package/dist/runtime/pages/System/fs.vue +95 -107
- package/dist/runtime/pages/System/fs.vue.d.ts +2 -0
- package/dist/runtime/pages/System/index.vue +30 -31
- package/dist/runtime/pages/System/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/mailtest.vue +29 -35
- package/dist/runtime/pages/System/mailtest.vue.d.ts +2 -0
- package/dist/runtime/pages/System/menu/index.vue +175 -223
- package/dist/runtime/pages/System/menu/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/package.vue +21 -21
- package/dist/runtime/pages/System/package.vue.d.ts +2 -0
- package/dist/runtime/pages/System/phpinfo.vue +11 -10
- package/dist/runtime/pages/System/phpinfo.vue.d.ts +2 -0
- package/dist/runtime/pages/System/setting.vue +42 -59
- package/dist/runtime/pages/System/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/System/test.vue.d.ts +2 -0
- package/dist/runtime/pages/System/view_as.vue +65 -68
- package/dist/runtime/pages/System/view_as.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +7 -7
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/add.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/index.vue +7 -6
- package/dist/runtime/pages/SystemValue/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Translate/index.vue +81 -100
- package/dist/runtime/pages/Translate/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/change-password.vue +38 -45
- package/dist/runtime/pages/User/_user_id/change-password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/edit.vue +35 -26
- package/dist/runtime/pages/User/_user_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/update-role.vue +33 -43
- package/dist/runtime/pages/User/_user_id/update-role.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/view.vue +35 -37
- package/dist/runtime/pages/User/_user_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/User/add.vue +52 -60
- package/dist/runtime/pages/User/add.vue.d.ts +2 -0
- package/dist/runtime/pages/User/index.vue +23 -32
- package/dist/runtime/pages/User/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/profile.vue +52 -58
- package/dist/runtime/pages/User/profile.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/bio-auth.vue +85 -95
- package/dist/runtime/pages/User/setting/bio-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/index.vue +27 -28
- package/dist/runtime/pages/User/setting/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/information.vue +28 -27
- package/dist/runtime/pages/User/setting/information.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/my_favorite.vue +29 -35
- package/dist/runtime/pages/User/setting/my_favorite.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/open_id.vue +140 -165
- package/dist/runtime/pages/User/setting/open_id.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/password.vue +37 -44
- package/dist/runtime/pages/User/setting/password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/style.vue +84 -102
- package/dist/runtime/pages/User/setting/style.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +51 -61
- package/dist/runtime/pages/User/setting/two-factor-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting.vue +9 -9
- package/dist/runtime/pages/User/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/UserLog/index.vue +7 -6
- package/dist/runtime/pages/UserLog/index.vue.d.ts +2 -0
- package/dist/types.d.mts +3 -1
- package/package.json +9 -11
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -7
- package/dist/types.d.ts +0 -1
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createResolver, defineNuxtModule, resolvePath, addVitePlugin, addComponentsDir, addImports, resolveFiles, addPlugin } from '@nuxt/kit';
|
|
3
|
-
import { readFile } from 'node:fs/promises';
|
|
4
|
-
import { quasar } from '@quasar/vite-plugin';
|
|
1
|
+
import { createResolver, defineNuxtModule, installModule, addComponentsDir, addImportsDir, addImports, resolveFiles, addPlugin } from '@nuxt/kit';
|
|
5
2
|
|
|
6
3
|
const resolver = createResolver(import.meta.url);
|
|
7
4
|
const routes = [
|
|
@@ -261,6 +258,44 @@ const module = defineNuxtModule({
|
|
|
261
258
|
}
|
|
262
259
|
},
|
|
263
260
|
async setup(options, nuxt) {
|
|
261
|
+
await installModule("nuxt-quasar-ui", {
|
|
262
|
+
config: {
|
|
263
|
+
brand: {
|
|
264
|
+
primary: "#7367f0",
|
|
265
|
+
secondary: "#82868b",
|
|
266
|
+
accent: "#9C27B0",
|
|
267
|
+
dark: "#4b4b4b",
|
|
268
|
+
darkPage: "#121212",
|
|
269
|
+
positive: "#28c76f",
|
|
270
|
+
negative: "#ea5455",
|
|
271
|
+
info: "#00cfe8",
|
|
272
|
+
warning: "#ff9f43"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
components: {
|
|
276
|
+
defaults: {
|
|
277
|
+
QInput: {
|
|
278
|
+
stackLabel: true,
|
|
279
|
+
outlined: true
|
|
280
|
+
},
|
|
281
|
+
QSelect: {
|
|
282
|
+
stackLabel: true,
|
|
283
|
+
outlined: true
|
|
284
|
+
},
|
|
285
|
+
QCard: {
|
|
286
|
+
flat: true,
|
|
287
|
+
bordered: true
|
|
288
|
+
},
|
|
289
|
+
QTable: {
|
|
290
|
+
dense: true,
|
|
291
|
+
flat: true,
|
|
292
|
+
bordered: true,
|
|
293
|
+
separator: "cell"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
plugins: ["Dialog", "Loading", "LoadingBar", "Notify"]
|
|
298
|
+
});
|
|
264
299
|
nuxt.options.imports = nuxt.options.imports || {};
|
|
265
300
|
nuxt.options.imports.presets = nuxt.options.imports.presets || [];
|
|
266
301
|
nuxt.options.imports.presets.push({ from: "quasar", imports: ["useQuasar"] });
|
|
@@ -271,25 +306,17 @@ const module = defineNuxtModule({
|
|
|
271
306
|
nuxt.options.vite.optimizeDeps.include.push("json-to-graphql-query");
|
|
272
307
|
nuxt.options.vite.optimizeDeps.include.push("collect.js");
|
|
273
308
|
const resolver = createResolver(import.meta.url);
|
|
274
|
-
const { resolve: resolveQuasar } = createResolver(dirname(await resolvePath("quasar/package.json")));
|
|
275
|
-
const importMap = JSON.parse(await await readFile(resolveQuasar("dist/transforms/import-map.json"), "utf-8"));
|
|
276
|
-
nuxt.options.css.push("quasar/dist/quasar.prod.css");
|
|
277
|
-
nuxt.options.css.push("@quasar/extras/material-icons/material-icons.css");
|
|
278
|
-
nuxt.options.css.push("@quasar/extras/material-icons-outlined/material-icons-outlined.css");
|
|
279
|
-
nuxt.options.css.push("@quasar/extras/fontawesome-v6/fontawesome-v6.css");
|
|
280
|
-
nuxt.options.css.push("@quasar/extras/fontawesome-v5/fontawesome-v5.css");
|
|
281
|
-
nuxt.options.css.push("@quasar/extras/mdi-v7/mdi-v7.css");
|
|
282
309
|
nuxt.options.app.head.link = nuxt.options.app.head.link || [];
|
|
283
310
|
nuxt.options.app.head.link.push({
|
|
284
311
|
rel: "stylesheet",
|
|
285
312
|
href: "https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+HK&family=Noto+Sans+TC&family=Material+Symbols+Outlined"
|
|
286
313
|
});
|
|
287
|
-
addVitePlugin(quasar());
|
|
288
314
|
await addComponentsDir({
|
|
289
315
|
path: resolver.resolve("./runtime/components")
|
|
290
316
|
});
|
|
291
317
|
const index = resolver.resolve("./runtime/index");
|
|
292
318
|
const SystemValue = resolver.resolve("./runtime/lib/SystemValue");
|
|
319
|
+
addImportsDir(resolver.resolve("./runtime/composables"));
|
|
293
320
|
addImports([
|
|
294
321
|
{ name: "api", from: index },
|
|
295
322
|
{ name: "id", from: index },
|
|
@@ -336,36 +363,7 @@ const module = defineNuxtModule({
|
|
|
336
363
|
src: resolver.resolve("./runtime/plugin"),
|
|
337
364
|
mode: "client"
|
|
338
365
|
});
|
|
339
|
-
addVitePlugin(virtualQuasarEntryPlugin({
|
|
340
|
-
resolveQuasar,
|
|
341
|
-
dev: nuxt.options.dev,
|
|
342
|
-
imports: {
|
|
343
|
-
raw: importMap
|
|
344
|
-
}
|
|
345
|
-
}));
|
|
346
366
|
}
|
|
347
367
|
});
|
|
348
|
-
function virtualQuasarEntryPlugin(context) {
|
|
349
|
-
const { resolveQuasar } = context;
|
|
350
|
-
const QUASAR_ENTRY = "quasar";
|
|
351
|
-
const QUASAR_VIRTUAL_ENTRY = "/__quasar/entry.mjs";
|
|
352
|
-
const clientEntry = resolveQuasar("dist/quasar.client.js");
|
|
353
|
-
return {
|
|
354
|
-
name: "quasar:entry",
|
|
355
|
-
enforce: "pre",
|
|
356
|
-
resolveId(id) {
|
|
357
|
-
if (id === QUASAR_ENTRY) {
|
|
358
|
-
return {
|
|
359
|
-
id: clientEntry,
|
|
360
|
-
moduleSideEffects: false
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
async load(id) {
|
|
365
|
-
if (!context.dev && id === QUASAR_VIRTUAL_ENTRY)
|
|
366
|
-
return Object.entries(context.imports.raw).filter(([, path]) => !path.includes("/__tests__/")).map(([name, path]) => `export { default as ${name} } from "quasar/${path}"`).join("\n");
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
|
-
}
|
|
370
368
|
|
|
371
369
|
export { module as default };
|
|
@@ -1,54 +1,43 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useDialogPluginComponent, useQuasar } from
|
|
3
|
-
import { m, q } from "#imports"
|
|
4
|
-
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent()
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
onDialogOK()
|
|
42
|
-
|
|
43
|
-
} catch (e) {
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
</script>
|
|
51
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useDialogPluginComponent, useQuasar } from "quasar";
|
|
3
|
+
import { m, q } from "#imports";
|
|
4
|
+
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent();
|
|
5
|
+
defineProps({
|
|
6
|
+
models: {
|
|
7
|
+
type: Array,
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const $q = useQuasar();
|
|
12
|
+
defineEmits([
|
|
13
|
+
// REQUIRED; need to specify some events that your
|
|
14
|
+
// component will emit through useDialogPluginComponent()
|
|
15
|
+
...useDialogPluginComponent.emits
|
|
16
|
+
]);
|
|
17
|
+
const types = [
|
|
18
|
+
{ label: "Text", value: "text" },
|
|
19
|
+
{ label: "Textarea", value: "textarea" },
|
|
20
|
+
{ label: "Select", value: "select" },
|
|
21
|
+
{ label: "Date", value: "date" },
|
|
22
|
+
{ label: "Time", value: "time" }
|
|
23
|
+
];
|
|
24
|
+
const onOKClick = async (value) => {
|
|
25
|
+
try {
|
|
26
|
+
await m("addCustomField", {
|
|
27
|
+
data: value
|
|
28
|
+
});
|
|
29
|
+
$q.notify({
|
|
30
|
+
icon: "sym_o_check",
|
|
31
|
+
message: "Custom Field added successfully",
|
|
32
|
+
color: "positive"
|
|
33
|
+
});
|
|
34
|
+
onDialogOK();
|
|
35
|
+
} catch (e) {
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
52
41
|
<q-dialog ref="dialogRef" full-width>
|
|
53
42
|
<q-card class="q-dialog-plugin">
|
|
54
43
|
<q-toolbar>
|
|
@@ -91,4 +80,4 @@ const onOKClick = async (value) => {
|
|
|
91
80
|
|
|
92
81
|
</q-card>
|
|
93
82
|
</q-dialog>
|
|
94
|
-
</template>
|
|
83
|
+
</template>
|
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { q } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
const { customFieldSchema } = app
|
|
28
|
-
</script>
|
|
29
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { q } from "#imports";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
model: { type: null, required: true },
|
|
5
|
+
data: { type: Object, required: true },
|
|
6
|
+
bordered: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
7
|
+
dense: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
8
|
+
separator: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
9
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true },
|
|
10
|
+
padding: { type: Boolean, required: false, skipCheck: true },
|
|
11
|
+
tag: { type: null, required: false }
|
|
12
|
+
});
|
|
13
|
+
const { app } = await q({
|
|
14
|
+
app: {
|
|
15
|
+
customFieldSchema: {
|
|
16
|
+
__args: {
|
|
17
|
+
model: props.model
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const { customFieldSchema } = app;
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<template>
|
|
30
26
|
<q-list v-bind="$props">
|
|
31
27
|
<l-item v-for="field in customFieldSchema" :label="field.label">
|
|
32
28
|
{{ data[field.name] }}
|
|
33
29
|
</l-item>
|
|
34
30
|
</q-list>
|
|
35
|
-
</template>
|
|
31
|
+
</template>
|
|
@@ -1,40 +1,24 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useDialogPluginComponent } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// or with payload: onDialogOK({ ... })
|
|
23
|
-
// ...and it will also hide the dialog automatically
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
defineEmits([
|
|
27
|
-
// REQUIRED; need to specify some events that your
|
|
28
|
-
// component will emit through useDialogPluginComponent()
|
|
29
|
-
...useDialogPluginComponent.emits
|
|
30
|
-
])
|
|
31
|
-
|
|
32
|
-
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent()
|
|
33
|
-
const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text", "blob", "json", "jsonb", "uuid", "boolean", "decimal", "float", "double", "real", "numeric", "smallint", "bigint", "tinyint", "mediumint", "char", "binary", "varbinary", "enum"]
|
|
34
|
-
|
|
35
|
-
</script>
|
|
36
|
-
<template>
|
|
37
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useDialogPluginComponent } from "quasar";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
// ...your custom props
|
|
5
|
+
});
|
|
6
|
+
function onOKClick(value) {
|
|
7
|
+
value.fields.forEach((field) => {
|
|
8
|
+
field.nullable = field.nullable ? true : false;
|
|
9
|
+
});
|
|
10
|
+
onDialogOK(value);
|
|
11
|
+
}
|
|
12
|
+
defineEmits([
|
|
13
|
+
// REQUIRED; need to specify some events that your
|
|
14
|
+
// component will emit through useDialogPluginComponent()
|
|
15
|
+
...useDialogPluginComponent.emits
|
|
16
|
+
]);
|
|
17
|
+
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent();
|
|
18
|
+
const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text", "blob", "json", "jsonb", "uuid", "boolean", "decimal", "float", "double", "real", "numeric", "smallint", "bigint", "tinyint", "mediumint", "char", "binary", "varbinary", "enum"];
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
38
22
|
<q-dialog ref="dialogRef" full-width>
|
|
39
23
|
<q-card class="q-dialog-plugin">
|
|
40
24
|
<q-toolbar>
|
|
@@ -69,4 +53,4 @@ const types = ["varchar", "int", "date", "time", "datetime", "timestamp", "text"
|
|
|
69
53
|
|
|
70
54
|
</q-card>
|
|
71
55
|
</q-dialog>
|
|
72
|
-
</template>
|
|
56
|
+
</template>
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
</script>
|
|
20
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useI18n } from "vue-i18n";
|
|
3
|
+
const i18n = useI18n();
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
gutter: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: "none"
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: null
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
21
16
|
<style scoped>
|
|
22
17
|
body.body--dark fieldset{border-color:hsla(0,0%,100%,.6)}fieldset{border:1px solid rgba(0,0,0,.24);border-radius:4px}legend{padding-left:.5rem;padding-right:.5rem}
|
|
23
|
-
</style>
|
|
24
|
-
|
|
18
|
+
</style>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
25
21
|
<fieldset>
|
|
26
22
|
<legend v-if="props.label">{{ i18n.t(props.label) }}</legend>
|
|
27
23
|
|
|
@@ -33,4 +29,4 @@ body.body--dark fieldset{border-color:hsla(0,0%,100%,.6)}fieldset{border:1px sol
|
|
|
33
29
|
|
|
34
30
|
|
|
35
31
|
</fieldset>
|
|
36
|
-
</template>
|
|
32
|
+
</template>
|
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { ref } from
|
|
3
|
-
import { useQuasar, useDialogPluginComponent } from
|
|
4
|
-
import { api } from
|
|
5
|
-
import { useI18n } from
|
|
6
|
-
const { t } = useI18n();
|
|
7
|
-
const $q = useQuasar()
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</script>
|
|
40
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { useQuasar, useDialogPluginComponent } from "quasar";
|
|
4
|
+
import { api } from "#imports";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
const { t } = useI18n();
|
|
7
|
+
const $q = useQuasar();
|
|
8
|
+
const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent();
|
|
9
|
+
const username = ref("");
|
|
10
|
+
const email = ref("");
|
|
11
|
+
const onOKClick = async () => {
|
|
12
|
+
if (username.value == "" || email.value == "") {
|
|
13
|
+
$q.notify({
|
|
14
|
+
type: "negative",
|
|
15
|
+
message: t("Username and Email is required")
|
|
16
|
+
});
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
$q.loading.show();
|
|
21
|
+
await api.auth.forgetPassword(username.value, email.value);
|
|
22
|
+
onDialogOK({
|
|
23
|
+
username: username.value,
|
|
24
|
+
email: email.value
|
|
25
|
+
});
|
|
26
|
+
} catch (e) {
|
|
27
|
+
$q.notify({
|
|
28
|
+
type: "negative",
|
|
29
|
+
message: e.message
|
|
30
|
+
});
|
|
31
|
+
onDialogCancel();
|
|
32
|
+
} finally {
|
|
33
|
+
$q.loading.hide();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
41
39
|
<q-dialog ref="dialogRef">
|
|
42
40
|
<q-card class="q-dialog-plugin">
|
|
43
41
|
|
|
@@ -63,4 +61,4 @@ const onOKClick = async () => {
|
|
|
63
61
|
</q-card-actions>
|
|
64
62
|
</q-card>
|
|
65
63
|
</q-dialog>
|
|
66
|
-
</template>
|
|
64
|
+
</template>
|