@hostlink/nuxt-light 1.10.22 → 1.11.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.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.10.22"
4
+ "version": "1.11.0"
5
5
  }
package/dist/module.mjs CHANGED
@@ -20,6 +20,7 @@ const module = defineNuxtModule({
20
20
  nuxt.options.css.push("@quasar/extras/material-icons-outlined/material-icons-outlined.css");
21
21
  nuxt.options.css.push("@quasar/extras/fontawesome-v6/fontawesome-v6.css");
22
22
  nuxt.options.css.push("@quasar/extras/fontawesome-v5/fontawesome-v5.css");
23
+ nuxt.options.css.push("@quasar/extras/mdi-v7/mdi-v7.css");
23
24
  nuxt.options.app.head.link = nuxt.options.app.head.link || [];
24
25
  nuxt.options.app.head.link.push({
25
26
  rel: "stylesheet",
@@ -421,14 +421,17 @@ if (route.fullPath == "/" && my.default_page) {
421
421
  </template>
422
422
  </q-banner>
423
423
 
424
- <router-view v-slot="{ Component }">
424
+ <!-- router-view v-slot="{ Component }">
425
425
 
426
426
  <template v-if="Component">
427
427
  <suspense>
428
428
  <component :is="Component" :reloadMenu="reloadMenu"></component>
429
429
  </suspense>
430
430
  </template>
431
- </router-view>
431
+ </router-view -->
432
+ <NuxtLoadingIndicator />
433
+
434
+ <NuxtPage />
432
435
 
433
436
 
434
437
  </q-page-container>
@@ -3,7 +3,7 @@ import { provide, ref } from 'vue'
3
3
  import { useLight, watch } from "#imports";
4
4
  import { useRuntimeConfig } from 'nuxt/app'
5
5
  import { setApiUrl } from '@hostlink/light'
6
- import { useQuasar, Dialog } from 'quasar'
6
+ import { useQuasar } from 'quasar'
7
7
  import { q } from '#imports'
8
8
  import { useRoute } from "vue-router";
9
9
  const config = useRuntimeConfig();
@@ -56,7 +56,8 @@ provide('color', color)
56
56
  <slot name="header"></slot>
57
57
  </template>
58
58
 
59
- <slot></slot>
59
+
60
+
60
61
 
61
62
 
62
63
  </l-app-main>
@@ -213,8 +213,8 @@ const menusOnly = computed(() => {
213
213
  <q-dialog v-model="showMove">
214
214
  <l-card>
215
215
  <q-card-section>
216
- <q-tree :nodes="menus" :selected-color="$light.color" default-expand-all v-model:selected="moveTarget"
217
- node-key="uuid" ref="tree2" />
216
+ <q-tree :nodes="menus" :selected-color="$light.color" default-expand-all
217
+ v-model:selected="moveTarget" node-key="uuid" ref="tree2" />
218
218
  </q-card-section>
219
219
 
220
220
  <q-card-actions align="right">
@@ -298,13 +298,31 @@ const menusOnly = computed(() => {
298
298
  <div class="q-gutter-md">
299
299
  <l-input label="Label" v-model="selectedNode.label" />
300
300
  <l-input label="To" v-model="selectedNode.to" />
301
- <l-input label="Icon" v-model="selectedNode.icon" hint="example: sym_o_add" />
301
+ <l-input label="Icon" v-model="selectedNode.icon"
302
+ hint="example: sym_o_add, fas fa-ambulance, mdi-alert-circle-outline" />
302
303
  <l-input label="Permission" v-model="selectedNode.permission" />
303
304
  <l-input label="UUID" v-model="selectedNode.uuid" readonly />
304
305
  </div>
305
306
 
306
307
  <div>
307
- <a href="https://fonts.google.com/icons" target="_blank">Material Icons</a>
308
+ <ul>
309
+ <li>
310
+ <a href="https://fonts.google.com/icons" target="_blank">Material Icons</a>
311
+ </li>
312
+ <li>
313
+ <a href="https://fontawesome.com/search" target="_blank">Font Awesome</a>
314
+ </li>
315
+
316
+ <li>
317
+ <a href="https://materialdesignicons.com/" target="_blank">Material Design
318
+ Icons</a>
319
+ </li>
320
+ <li>
321
+ <a href="https://quasar.dev/vue-components/icon#webfont-usage" target="_blank">Quasar
322
+ Icons</a>
323
+ </li>
324
+ </ul>
325
+
308
326
  </div>
309
327
 
310
328
  </template>
@@ -11,29 +11,28 @@ const route = useRoute()
11
11
  <q-splitter unit="px" :model-value="120">
12
12
  <template #before>
13
13
  <q-tabs v-model="tab" vertical :active-color="$light.color">
14
- <q-route-tab name="general" icon="sym_o_info" :label="$t('General')" to="/User/setting" exact
15
- replace />
14
+ <q-route-tab name="general" icon="sym_o_info" :label="$t('General')" to="/User/setting" exact />
16
15
  <q-route-tab name="information" icon="sym_o_info" :label="$t('Information')"
17
- to="/User/setting/information" exact replace />
16
+ to="/User/setting/information" exact />
18
17
  <q-route-tab name="password" icon="sym_o_password" :label="$t('Password')"
19
- to="/User/setting/password" exact replace />
20
- <q-route-tab name="style" icon="sym_o_style" :label="$t('Style')" to="/User/setting/style" exact
21
- replace />
22
- <q-route-tab name="2fa" icon="sym_o_key" :label="$t('2FA')" to="/User/setting/two-factor-auth" exact
23
- replace />
18
+ to="/User/setting/password" exact />
19
+ <q-route-tab name="style" icon="sym_o_style" :label="$t('Style')" to="/User/setting/style"
20
+ exact />
21
+ <q-route-tab name="2fa" icon="sym_o_key" :label="$t('2FA')" to="/User/setting/two-factor-auth"
22
+ exact />
24
23
  <q-route-tab name="bio" icon="sym_o_fingerprint" :label="$t('Bio')" to="/User/setting/bio-auth"
25
- exact replace />
26
- <q-route-tab name="openid" icon="sym_o_key" :label="$t('Open ID')" to="/User/setting/open_id" exact
27
- replace />
24
+ exact />
25
+ <q-route-tab name="openid" icon="sym_o_key" :label="$t('Open ID')" to="/User/setting/open_id"
26
+ exact />
28
27
  <q-route-tab name="myfav" icon="sym_o_star" :label="$t('My favorite')"
29
- to="/User/setting/my_favorite" exact replace />
28
+ to="/User/setting/my_favorite" exact />
30
29
 
31
30
  </q-tabs>
32
31
  </template>
33
32
 
34
33
  <template #after>
35
- <router-view :key="route.path">
36
- </router-view>
34
+ <NuxtPage :key="route.path"></NuxtPage>
35
+
37
36
  </template>
38
37
  </q-splitter>
39
38
  </l-card>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.10.22",
3
+ "version": "1.11.0",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",
@@ -28,6 +28,7 @@
28
28
  "dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
29
29
  "release:org": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
30
30
  "release": "npm run prepack && changelogen --release && npm publish --access=public && git push --follow-tags",
31
+ "publish": "npm run prepack && npm publish --access=public && git push --follow-tags",
31
32
  "lint": "eslint .",
32
33
  "test": "vitest run",
33
34
  "test:watch": "vitest watch",