valaxy 0.7.4 → 0.7.5

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/client/config.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // @ts-expect-error virtual module @valaxyjs/config
2
- import valaxyConfig from '@valaxyjs/config'
2
+ import valaxyConfig from '/@valaxyjs/config'
3
3
  // @ts-expect-error virtual module @valaxyjs/context
4
- import valaxyContext from '@valaxyjs/context'
4
+ import valaxyContext from '/@valaxyjs/context'
5
5
  import type { ComputedRef, InjectionKey, Ref } from 'vue'
6
6
  import { computed, inject, readonly, shallowRef } from 'vue'
7
7
  // import type { RouteMeta } from 'vue-router'
package/client/index.ts CHANGED
@@ -4,6 +4,3 @@ export * from './composables'
4
4
  export * from './utils'
5
5
 
6
6
  export * from './setups'
7
-
8
- // fix client alias export
9
- export * from '../shared'
package/client/main.ts CHANGED
@@ -25,9 +25,6 @@ export const createApp = ViteSSG(
25
25
  },
26
26
  },
27
27
  (ctx) => {
28
- // install all modules under `modules/`
29
- Object.values(import.meta.globEager('./modules/*.ts')).forEach(i => i.install?.(ctx))
30
-
31
28
  setupMain(ctx)
32
29
  },
33
30
  )
@@ -1,11 +1,17 @@
1
1
  /* __imports__ */
2
-
3
2
  import type { ViteSSGContext } from 'vite-ssg'
3
+ import { install as installValaxy } from '../modules/valaxy'
4
+ import { install as installPinia } from '../modules/pinia'
5
+ import { install as installNprogress } from '../modules/nprogress'
4
6
 
5
7
  export default function setupMain(ctx: ViteSSGContext) {
6
8
  // @ts-expect-error inject in runtime
7
9
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
10
  const injection_arg = ctx
9
11
 
12
+ installValaxy(ctx)
13
+ installPinia(ctx)
14
+ installNprogress(ctx)
15
+
10
16
  /* __injections__ */
11
17
  }
package/client/shims.d.ts CHANGED
@@ -17,13 +17,13 @@ declare module '*.vue' {
17
17
  }
18
18
 
19
19
  // vite hmr data
20
- declare module '@valaxyjs/config' {
20
+ declare module '/@valaxyjs/config' {
21
21
  // import type { ValaxyConfig } from 'valaxy'
22
22
  const config: string
23
23
  export default config
24
24
  }
25
25
 
26
- declare module '@valaxyjs/context' {
26
+ declare module '/@valaxyjs/context' {
27
27
  const ctx: string
28
28
  export default ctx
29
29
  }
@@ -0,0 +1 @@
1
+ var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var g=Object.create;var f=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var l=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&f(a,d,{get:()=>b[d],enumerable:!(e=h(b,d))||e.enumerable});return a};var o=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:!0}):c,a));exports.a = m; exports.b = n; exports.c = o;