@hostlink/nuxt-light 1.46.6 → 1.47.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,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.46.6",
4
+ "version": "1.47.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,8 +1,12 @@
1
- declare var __VLS_30: {}, __VLS_180: {};
1
+ declare var __VLS_30: {}, __VLS_180: {}, __VLS_267: {}, __VLS_273: {};
2
2
  type __VLS_Slots = {} & {
3
3
  header?: (props: typeof __VLS_30) => any;
4
4
  } & {
5
5
  'user-menu'?: (props: typeof __VLS_180) => any;
6
+ } & {
7
+ 'page-top'?: (props: typeof __VLS_267) => any;
8
+ } & {
9
+ 'page-bottom'?: (props: typeof __VLS_273) => any;
6
10
  };
7
11
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
12
  logout: (...args: any[]) => void;
@@ -383,7 +383,9 @@ const onLogout = async () => {
383
383
  </template>
384
384
  </router-view -->
385
385
  <NuxtLoadingIndicator />
386
+ <slot name="page-top"></slot>
386
387
  <NuxtPage />
388
+ <slot name="page-bottom"></slot>
387
389
  </q-page-container>
388
390
  <q-footer bordered v-if="style.footer">
389
391
  <q-item>
@@ -1,8 +1,12 @@
1
- declare var __VLS_30: {}, __VLS_180: {};
1
+ declare var __VLS_30: {}, __VLS_180: {}, __VLS_267: {}, __VLS_273: {};
2
2
  type __VLS_Slots = {} & {
3
3
  header?: (props: typeof __VLS_30) => any;
4
4
  } & {
5
5
  'user-menu'?: (props: typeof __VLS_180) => any;
6
+ } & {
7
+ 'page-top'?: (props: typeof __VLS_267) => any;
8
+ } & {
9
+ 'page-bottom'?: (props: typeof __VLS_273) => any;
6
10
  };
7
11
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
12
  logout: (...args: any[]) => void;
@@ -8,4 +8,8 @@ type __VLS_Slots = {
8
8
  header?: ((props: {}) => any) | undefined;
9
9
  } & {
10
10
  'user-menu'?: ((props: {}) => any) | undefined;
11
+ } & {
12
+ 'page-top'?: ((props: {}) => any) | undefined;
13
+ } & {
14
+ 'page-bottom'?: ((props: {}) => any) | undefined;
11
15
  };
@@ -91,5 +91,13 @@ if (app.value.facebookAppId) {
91
91
  <slot name="user-menu"></slot>
92
92
  </template>
93
93
 
94
+ <template #page-top>
95
+ <slot name="page-top"></slot>
96
+ </template>
97
+
98
+ <template #page-bottom>
99
+ <slot name="page-bottom"></slot>
100
+ </template>
101
+
94
102
  </l-app-main>
95
103
  </template>
@@ -8,4 +8,8 @@ type __VLS_Slots = {
8
8
  header?: ((props: {}) => any) | undefined;
9
9
  } & {
10
10
  'user-menu'?: ((props: {}) => any) | undefined;
11
+ } & {
12
+ 'page-top'?: ((props: {}) => any) | undefined;
13
+ } & {
14
+ 'page-bottom'?: ((props: {}) => any) | undefined;
11
15
  };
@@ -3,7 +3,7 @@ import "@quasar/quasar-ui-qmarkdown/dist/index.css";
3
3
  import { q } from "#imports";
4
4
  import { createI18n } from "vue-i18n";
5
5
  import createLight from "./composables/createLight.js";
6
- import { addRouteMiddleware, defineNuxtPlugin, navigateTo, useRoute } from "#app";
6
+ import { addRouteMiddleware, defineNuxtPlugin, useRoute } from "#app";
7
7
  import "./assets/main.css";
8
8
  import message_en from "./locales/en.json";
9
9
  import message_zh from "./locales/zh-hk.json";
@@ -36,8 +36,7 @@ export default defineNuxtPlugin((nuxtApp) => {
36
36
  }
37
37
  });
38
38
  if (!my) {
39
- await navigateTo("/");
40
- return false;
39
+ return;
41
40
  }
42
41
  if (!my.allowedPath) {
43
42
  return "/page_not_found?path=" + encodeURIComponent(to.fullPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.46.6",
3
+ "version": "1.47.0",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",