@inzombieland/nuxt-common 1.18.53 → 1.18.55
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 +1 -1
- package/dist/runtime/packages/core/define-vue-plugins.mjs +1 -2
- package/dist/runtime/packages/core/init-application.mjs +0 -5
- package/dist/runtime/packages/core/package.json +2 -3
- package/dist/runtime/packages/core/plugins/index.d.ts +0 -1
- package/dist/runtime/packages/core/plugins/index.mjs +0 -1
- package/package.json +2 -2
- package/dist/runtime/packages/core/plugins/varlet-ui.d.ts +0 -9
- package/dist/runtime/packages/core/plugins/varlet-ui.mjs +0 -12
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
2
2
|
import { defineNuxtModule, createResolver, addServerHandler, addImportsDir, addPlugin, addComponent } from '@nuxt/kit';
|
|
3
3
|
|
|
4
4
|
const name = "@inzombieland/nuxt-common";
|
|
5
|
-
const version = "1.18.
|
|
5
|
+
const version = "1.18.55";
|
|
6
6
|
|
|
7
7
|
const module = defineNuxtModule({
|
|
8
8
|
meta: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineOtpInputPlugin, defineSanitizeHtmlPlugin, defineSanitizeUrlPlugin
|
|
1
|
+
import { defineOtpInputPlugin, defineSanitizeHtmlPlugin, defineSanitizeUrlPlugin } from "./plugins/index.mjs";
|
|
2
2
|
export function defineVuePlugins(app) {
|
|
3
3
|
defineOtpInputPlugin(app);
|
|
4
4
|
defineSanitizeHtmlPlugin(app);
|
|
5
5
|
defineSanitizeUrlPlugin(app);
|
|
6
|
-
defineVarletPlugin(app);
|
|
7
6
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { StyleProvider, Themes, Locale as VarletLocale } from "@varlet/ui";
|
|
2
1
|
import { setNotifyDefaultOptions, Locale as VantLocale } from "vant";
|
|
3
2
|
import enUS from "vant/es/locale/lang/en-US";
|
|
4
3
|
import ruRU from "vant/es/locale/lang/ru-RU";
|
|
@@ -39,11 +38,9 @@ function initApplication() {
|
|
|
39
38
|
if (theme2?.value === "dark") {
|
|
40
39
|
document.documentElement.classList.remove("light", "van-theme-light");
|
|
41
40
|
document.documentElement.classList.add("dark", "van-theme-dark");
|
|
42
|
-
StyleProvider(Themes.dark);
|
|
43
41
|
} else {
|
|
44
42
|
document.documentElement.classList.remove("dark", "van-theme-dark");
|
|
45
43
|
document.documentElement.classList.add("light", "van-theme-light");
|
|
46
|
-
StyleProvider(null);
|
|
47
44
|
}
|
|
48
45
|
},
|
|
49
46
|
{ immediate: true }
|
|
@@ -56,11 +53,9 @@ function initApplication() {
|
|
|
56
53
|
}
|
|
57
54
|
if (locale2?.value === "en") {
|
|
58
55
|
VantLocale.use("en-US", enUS);
|
|
59
|
-
VarletLocale.add("en-US", VarletLocale.enUS);
|
|
60
56
|
}
|
|
61
57
|
if (locale2?.value === "ru") {
|
|
62
58
|
VantLocale.use("ru-RU", ruRU);
|
|
63
|
-
VarletLocale.add("en-US", VarletLocale.enUS);
|
|
64
59
|
}
|
|
65
60
|
const localeCookie = useCookies("locale", { maxAge: 60 * 60 * 24 * 365 });
|
|
66
61
|
localeCookie.value = locale2?.value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inzombieland/core",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "./index.mjs",
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fingerprintjs/fingerprintjs": "^4.6.2",
|
|
13
|
-
"@varlet/ui": "^3.10.5",
|
|
14
13
|
"@vueuse/core": "^12.8.2",
|
|
15
|
-
"centrifuge": "^5.
|
|
14
|
+
"centrifuge": "^5.5.2",
|
|
16
15
|
"cookie-es": "^2.0.0",
|
|
17
16
|
"destr": "^2.0.5",
|
|
18
17
|
"klona": "^2.0.6",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inzombieland/nuxt-common",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.55",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"packages:publish": "lerna publish from-package --dist-tag latest -y"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"centrifuge": "^5.
|
|
39
|
+
"centrifuge": "^5.5.2",
|
|
40
40
|
"rxjs": "^7.8.2",
|
|
41
41
|
"ultrahtml": "^1.5.2"
|
|
42
42
|
},
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { createApp } from "vue";
|
|
2
|
-
import "@varlet/ui/es/button/style/index";
|
|
3
|
-
import "@varlet/ui/es/chip/style/index";
|
|
4
|
-
import "@varlet/ui/es/icon/style/index";
|
|
5
|
-
import "@varlet/ui/es/link/style/index";
|
|
6
|
-
import "@varlet/ui/es/styles/elevation.css";
|
|
7
|
-
type App = ReturnType<typeof createApp>;
|
|
8
|
-
export declare function defineVarletPlugin(app: App): void;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Button, Chip, Icon, Link } from "@varlet/ui";
|
|
2
|
-
import "@varlet/ui/es/button/style/index";
|
|
3
|
-
import "@varlet/ui/es/chip/style/index";
|
|
4
|
-
import "@varlet/ui/es/icon/style/index";
|
|
5
|
-
import "@varlet/ui/es/link/style/index";
|
|
6
|
-
import "@varlet/ui/es/styles/elevation.css";
|
|
7
|
-
export function defineVarletPlugin(app) {
|
|
8
|
-
app.use(Button);
|
|
9
|
-
app.use(Chip);
|
|
10
|
-
app.use(Icon);
|
|
11
|
-
app.use(Link);
|
|
12
|
-
}
|