@mevbg/nuxt-kit 0.1.1 → 0.1.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.
- package/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -7
- package/dist/runtime/plugins/wm.plugin.js +2 -2
- package/package.json +2 -2
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,21 +9,20 @@ const module = defineNuxtModule({
|
|
|
9
9
|
},
|
|
10
10
|
// Default configuration options of the Nuxt module
|
|
11
11
|
defaults: {
|
|
12
|
+
wm: true,
|
|
12
13
|
colorScheme: {
|
|
13
14
|
default: DEFAULT_COLOR_SCHEME,
|
|
14
15
|
systemScheme: true
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
async setup(options, nuxt) {
|
|
18
|
-
nuxt.options.runtimeConfig.public.
|
|
19
|
-
colorScheme: {
|
|
20
|
-
default: options.colorScheme?.default ?? DEFAULT_COLOR_SCHEME,
|
|
21
|
-
systemScheme: options.colorScheme?.systemScheme ?? true
|
|
22
|
-
}
|
|
23
|
-
};
|
|
19
|
+
nuxt.options.runtimeConfig.public.wm = options.wm;
|
|
24
20
|
const resolver = createResolver(import.meta.url);
|
|
25
21
|
addPlugin(resolver.resolve("./runtime/plugins/wm.plugin"));
|
|
26
|
-
await installModule("@mevbg/nuxt-color-scheme"
|
|
22
|
+
await installModule("@mevbg/nuxt-color-scheme", {
|
|
23
|
+
default: options.colorScheme?.default ?? DEFAULT_COLOR_SCHEME,
|
|
24
|
+
systemScheme: options.colorScheme?.systemScheme ?? true
|
|
25
|
+
});
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#app";
|
|
1
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
2
2
|
import wm from "@mevbg/wm";
|
|
3
3
|
export default defineNuxtPlugin(() => {
|
|
4
|
-
if (import.meta.client) {
|
|
4
|
+
if (import.meta.client && useRuntimeConfig().public.wm) {
|
|
5
5
|
wm();
|
|
6
6
|
}
|
|
7
7
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mevbg/nuxt-kit",
|
|
3
3
|
"title": "Mev’s Nuxt Kit",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.3",
|
|
5
5
|
"description": "Mev’s personal Nuxt kit module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"nuxt kit",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@mevbg/design-essentials-vendor": "^2.0.4",
|
|
64
|
-
"@mevbg/nuxt-color-scheme": "^1.0.
|
|
64
|
+
"@mevbg/nuxt-color-scheme": "^1.0.3",
|
|
65
65
|
"@nuxt/kit": "^4.0.3"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|