@hostlink/nuxt-light 1.18.1 → 1.18.3

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.
Files changed (31) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +0 -5
  3. package/dist/runtime/components/L/ForgetPasswordDialog.vue +11 -13
  4. package/dist/runtime/components/L/System/Setting/modules.vue +1 -1
  5. package/dist/runtime/components/l-app-main.vue +22 -17
  6. package/dist/runtime/components/l-app.vue +6 -13
  7. package/dist/runtime/components/l-edit-btn.vue +1 -1
  8. package/dist/runtime/components/l-form-dialog.vue +1 -2
  9. package/dist/runtime/components/l-input.vue +14 -9
  10. package/dist/runtime/components/l-login.vue +22 -17
  11. package/dist/runtime/components/l-page.vue +2 -1
  12. package/dist/runtime/components/l-tab.vue +4 -1
  13. package/dist/runtime/components/l-tabs.vue +2 -4
  14. package/dist/runtime/index.d.ts +1 -100
  15. package/dist/runtime/index.js +1 -209
  16. package/dist/runtime/lib/index.d.ts +1 -1
  17. package/dist/runtime/light.d.ts +1224 -0
  18. package/dist/runtime/light.js +242 -0
  19. package/dist/runtime/locales/zh-hk.json +29 -1
  20. package/dist/runtime/pages/System/database/table.vue +8 -10
  21. package/dist/runtime/pages/System/setting.vue +1 -1
  22. package/dist/runtime/pages/System/view_as.vue +3 -3
  23. package/dist/runtime/pages/User/_user_id/view.vue +6 -20
  24. package/dist/runtime/pages/User/setting/bio-auth.vue +34 -15
  25. package/dist/runtime/pages/User/setting/my_favorite.vue +2 -5
  26. package/dist/runtime/pages/User/setting/open_id.vue +35 -20
  27. package/dist/runtime/pages/User/setting/two-factor-auth.vue +2 -3
  28. package/dist/runtime/plugin.js +4 -1
  29. package/package.json +1 -1
  30. package/dist/runtime/components/L/ForgetPasswordResetDialog.vue +0 -34
  31. package/dist/runtime/pages/logout.vue +0 -17
@@ -1,5 +1,6 @@
1
1
  import { Quasar, Dialog, Notify, Loading, AppFullscreen } from "quasar";
2
2
  import { createI18n } from "vue-i18n";
3
+ import { createLight } from "./light.js";
3
4
  import { defineNuxtPlugin } from "#app";
4
5
  import "./assets/main.css";
5
6
  import message_en from "./locales/en.json";
@@ -23,7 +24,6 @@ export default defineNuxtPlugin((nuxtApp) => {
23
24
  api.models.create("SystemValue", TypeSystemValue);
24
25
  api.models.create("MailLog", TypeMailLog);
25
26
  api.models.create("EventLog", TypeEventLog);
26
- nuxtApp.vueApp.config.globalProperties.$light = useLight();
27
27
  nuxtApp.vueApp.config.errorHandler = (err, instance, info) => {
28
28
  console.log(err);
29
29
  const light = useLight();
@@ -44,6 +44,9 @@ export default defineNuxtPlugin((nuxtApp) => {
44
44
  fallbackWarn: false,
45
45
  missingWarn: false
46
46
  });
47
+ nuxtApp.vueApp.use(createLight({
48
+ i18n
49
+ }));
47
50
  nuxtApp.vueApp.use(i18n);
48
51
  nuxtApp.vueApp.use(Quasar, {
49
52
  config: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,34 +0,0 @@
1
- <script setup lang="ts">
2
- import { useQuasar, useDialogPluginComponent } from 'quasar'
3
- import { m, api } from '#imports';
4
- const $q = useQuasar()
5
- const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent()
6
-
7
- defineProps({
8
- username: String,
9
- code: String
10
- })
11
-
12
- </script>
13
- <template>
14
- <q-dialog ref="dialogRef">
15
- <q-card class="q-dialog-plugin">
16
- <q-card-section class="q-dialog__title">
17
- Reset password
18
- </q-card-section>
19
-
20
- <q-card-section class="q-dialog__message">
21
- Please enter your new password
22
- </q-card-section>
23
-
24
- <q-card-section>
25
- <form-kit type="form" :actions="false">
26
- <form-kit type="l-input" name="password" :stack-label="true"></form-kit>
27
- </form-kit>
28
- </q-card-section>
29
-
30
-
31
-
32
- </q-card>
33
- </q-dialog>
34
- </template>
@@ -1,17 +0,0 @@
1
- <script setup>
2
-
3
- import { api } from '#imports';
4
-
5
- await api.auth.logout();
6
- const href = window.self.location.href;
7
-
8
- const url = new URL(href);
9
- //move up one level
10
- const newUrl = url.origin + url.pathname.substring(0, url.pathname.lastIndexOf("/"));
11
- window.self.location = newUrl;
12
-
13
-
14
-
15
-
16
- </script>
17
- <template></template>