@mevbg/nuxt-kit 0.1.19 → 0.1.22
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 +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/composables/index.d.ts +1 -1
- package/dist/runtime/composables/index.js +1 -1
- package/dist/runtime/composables/{useClientInfo.d.ts → useClientInfoClasses.d.ts} +1 -1
- package/dist/runtime/composables/{useClientInfo.js → useClientInfoClasses.js} +2 -1
- package/package.json +5 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -31,8 +31,8 @@ const module = defineNuxtModule({
|
|
|
31
31
|
addPlugin(resolver.resolve("./runtime/plugins/tooltip-system.plugin"));
|
|
32
32
|
addImports([
|
|
33
33
|
{
|
|
34
|
-
name: "
|
|
35
|
-
from: resolver.resolve("./runtime/composables/
|
|
34
|
+
name: "useClientInfoClasses",
|
|
35
|
+
from: resolver.resolve("./runtime/composables/useClientInfoClasses")
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
name: "useErrorHandler",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, onBeforeMount, ref } from "vue";
|
|
2
|
-
export function
|
|
2
|
+
export function useClientInfoClasses() {
|
|
3
3
|
const data = ref({});
|
|
4
4
|
const classes = computed(
|
|
5
5
|
() => Object.keys(data.value).filter(
|
|
@@ -13,6 +13,7 @@ export function useClientInfo() {
|
|
|
13
13
|
...clientData
|
|
14
14
|
} = await import("mobile-device-detect");
|
|
15
15
|
data.value = clientData;
|
|
16
|
+
window.document.documentElement.classList.add(...classes.value);
|
|
16
17
|
});
|
|
17
18
|
return { data, classes };
|
|
18
19
|
}
|
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.22",
|
|
5
5
|
"description": "Mev’s personal Nuxt kit module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"nuxt kit",
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"./useNotificationSystem": {
|
|
52
52
|
"types": "./dist/runtime/composables/useNotificationSystem.d.ts",
|
|
53
53
|
"import": "./dist/runtime/composables/useNotificationSystem.js"
|
|
54
|
+
},
|
|
55
|
+
"./useClientInfoClasses": {
|
|
56
|
+
"types": "./dist/runtime/composables/useClientInfoClasses.d.ts",
|
|
57
|
+
"import": "./dist/runtime/composables/useClientInfoClasses.js"
|
|
54
58
|
}
|
|
55
59
|
},
|
|
56
60
|
"files": [
|