@hostlink/nuxt-light 0.0.7 → 0.0.9

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 (37) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +30 -31
  3. package/dist/runtime/light.d.ts +5 -5
  4. package/dist/runtime/light.mjs +5 -5
  5. package/package.json +1 -1
  6. /package/dist/runtime/{composables → lib}/addObject.d.ts +0 -0
  7. /package/dist/runtime/{composables → lib}/addObject.mjs +0 -0
  8. /package/dist/runtime/{composables → lib}/f.d.ts +0 -0
  9. /package/dist/runtime/{composables → lib}/f.mjs +0 -0
  10. /package/dist/runtime/{composables → lib}/getApiUrl.d.ts +0 -0
  11. /package/dist/runtime/{composables → lib}/getApiUrl.mjs +0 -0
  12. /package/dist/runtime/{composables → lib}/getCurrentUser.d.ts +0 -0
  13. /package/dist/runtime/{composables → lib}/getCurrentUser.mjs +0 -0
  14. /package/dist/runtime/{composables → lib}/getObject.d.ts +0 -0
  15. /package/dist/runtime/{composables → lib}/getObject.mjs +0 -0
  16. /package/dist/runtime/{composables → lib}/id.d.ts +0 -0
  17. /package/dist/runtime/{composables → lib}/id.mjs +0 -0
  18. /package/dist/runtime/{composables → lib}/list.d.ts +0 -0
  19. /package/dist/runtime/{composables → lib}/list.mjs +0 -0
  20. /package/dist/runtime/{composables → lib}/listData.d.ts +0 -0
  21. /package/dist/runtime/{composables → lib}/listData.mjs +0 -0
  22. /package/dist/runtime/{composables → lib}/login.d.ts +0 -0
  23. /package/dist/runtime/{composables → lib}/login.mjs +0 -0
  24. /package/dist/runtime/{composables → lib}/m.d.ts +0 -0
  25. /package/dist/runtime/{composables → lib}/m.mjs +0 -0
  26. /package/dist/runtime/{composables → lib}/mutation.d.ts +0 -0
  27. /package/dist/runtime/{composables → lib}/mutation.mjs +0 -0
  28. /package/dist/runtime/{composables → lib}/q.d.ts +0 -0
  29. /package/dist/runtime/{composables → lib}/q.mjs +0 -0
  30. /package/dist/runtime/{composables → lib}/removeObject.d.ts +0 -0
  31. /package/dist/runtime/{composables → lib}/removeObject.mjs +0 -0
  32. /package/dist/runtime/{composables → lib}/t.d.ts +0 -0
  33. /package/dist/runtime/{composables → lib}/t.mjs +0 -0
  34. /package/dist/runtime/{composables → lib}/updateObject.d.ts +0 -0
  35. /package/dist/runtime/{composables → lib}/updateObject.mjs +0 -0
  36. /package/dist/runtime/{composables → lib}/viewAs.d.ts +0 -0
  37. /package/dist/runtime/{composables → lib}/viewAs.mjs +0 -0
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "0.0.7"
4
+ "version": "0.0.9"
5
5
  }
package/dist/module.mjs CHANGED
@@ -23,43 +23,42 @@ const module = defineNuxtModule({
23
23
  href: "https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+HK&family=Noto+Sans+TC&family=Material+Symbols+Outlined"
24
24
  });
25
25
  nuxt.options.vite.plugins?.push(AutoImport({
26
- imports: [
27
- "vue",
28
- "vue-router",
29
- {
30
- "quasar": [
31
- "useQuasar"
32
- ]
33
- },
34
- {
35
- "vue-i18n": [
36
- "useI18n"
37
- ]
38
- }
39
- ]
26
+ imports: [{
27
+ "quasar": [
28
+ "useQuasar"
29
+ ]
30
+ }, {
31
+ "vue-i18n": [
32
+ "useI18n"
33
+ ]
34
+ }]
40
35
  }));
41
36
  addComponentsDir({
42
37
  path: resolver.resolve("./runtime/components")
43
38
  });
44
- const composables = resolver.resolve("./runtime/composables");
39
+ const from = resolver.resolve("./runtime/lib");
45
40
  addImports([
46
- { name: "q", from: composables },
47
- { name: "addObject", from: composables },
48
- { name: "f", from: composables },
49
- { name: "getApiUrl", from: composables },
50
- { name: "getCurrentUser", from: composables },
51
- { name: "id", from: composables },
52
- { name: "list", from: composables },
53
- { name: "listData", from: composables },
54
- { name: "m", from: composables },
55
- { name: "mutation", from: composables },
56
- { name: "q", from: composables },
57
- { name: "removeObject", from: composables },
58
- { name: "t", from: composables },
59
- { name: "updateObject", from: composables },
60
- { name: "viewAs", from: composables }
41
+ { name: "addObject", from },
42
+ { name: "f", from },
43
+ { name: "getApiUrl", from },
44
+ { name: "getCurrentUser", from },
45
+ { name: "getObject", from },
46
+ { name: "id", from },
47
+ { name: "list", from },
48
+ { name: "listData", from },
49
+ { name: "login", from },
50
+ { name: "m", from },
51
+ { name: "mutation", from },
52
+ { name: "q", from },
53
+ { name: "removeObject", from },
54
+ { name: "t", from },
55
+ { name: "updateObject", from },
56
+ { name: "viewAs", from }
61
57
  ]);
62
- addPlugin(resolver.resolve("./runtime/plugin"));
58
+ addPlugin({
59
+ src: resolver.resolve("./runtime/plugin"),
60
+ mode: "client"
61
+ });
63
62
  }
64
63
  });
65
64
 
@@ -4,9 +4,9 @@ interface Light {
4
4
  removeError: (error: String) => void;
5
5
  }
6
6
  export declare function useLight(): Light;
7
- import q from "./composables/q";
8
- import m from "./composables/m";
9
- import f from "./composables/f";
10
- import getCurrentUser from "./composables/getCurrentUser";
11
- import login from "./composables/login";
7
+ import q from "./lib/q";
8
+ import m from "./lib/m";
9
+ import f from "./lib/f";
10
+ import getCurrentUser from "./lib/getCurrentUser";
11
+ import login from "./lib/login";
12
12
  export { q, getCurrentUser, login, m, f };
@@ -15,9 +15,9 @@ export function useLight() {
15
15
  }
16
16
  };
17
17
  }
18
- import q from "./composables/q.mjs";
19
- import m from "./composables/m.mjs";
20
- import f from "./composables/f.mjs";
21
- import getCurrentUser from "./composables/getCurrentUser.mjs";
22
- import login from "./composables/login.mjs";
18
+ import q from "./lib/q.mjs";
19
+ import m from "./lib/m.mjs";
20
+ import f from "./lib/f.mjs";
21
+ import getCurrentUser from "./lib/getCurrentUser.mjs";
22
+ import login from "./lib/login.mjs";
23
23
  export { q, getCurrentUser, login, m, f };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes