adata-ui 4.0.2 → 4.0.4
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/components/Footer.vue +2 -2
- package/dist/runtime/plugin.js +16 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
|
-
import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir,
|
|
2
|
+
import { defineNuxtModule, createResolver, addVitePlugin, addComponentsDir, installModule, addPlugin, hasNuxtModule } from '@nuxt/kit';
|
|
3
3
|
|
|
4
4
|
const module = defineNuxtModule({
|
|
5
5
|
meta: {
|
|
@@ -41,12 +41,12 @@ const module = defineNuxtModule({
|
|
|
41
41
|
path: resolver.resolve("./runtime/icons"),
|
|
42
42
|
prefix: "I"
|
|
43
43
|
});
|
|
44
|
-
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
45
44
|
await installModule("@nuxtjs/i18n", {
|
|
46
45
|
defaultLocale: "ru",
|
|
47
46
|
strategy: "prefix_except_default",
|
|
48
47
|
vueI18n: resolver.resolve("./runtime/i18n/i18n.config.ts")
|
|
49
48
|
});
|
|
49
|
+
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
@@ -5,7 +5,7 @@ import ISocialsInstagram from "#icons/socials/instagram.vue";
|
|
|
5
5
|
import ISocialsTelegram from "#icons/socials/telegram.vue";
|
|
6
6
|
import ISocialsFacebook from "#icons/socials/facebook.vue";
|
|
7
7
|
import ISocialsTiktok from "#icons/socials/tik-tok.vue";
|
|
8
|
-
import { useI18n } from "#imports";
|
|
8
|
+
import { useI18n, ref } from "#imports";
|
|
9
9
|
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10
10
|
const { t } = useI18n();
|
|
11
11
|
const socialMedia = [
|
|
@@ -102,7 +102,7 @@ const info = ref([]);
|
|
|
102
102
|
</div>
|
|
103
103
|
<div class="flex justify-center lg:grow lg:items-center lg:justify-end lg:gap-4">
|
|
104
104
|
<div class="flex flex-col gap-1">
|
|
105
|
-
<span>{{ year }} © {{ t("
|
|
105
|
+
<span>{{ year }} © {{ t("ui.hello") }} "Alldata"</span>
|
|
106
106
|
</div>
|
|
107
107
|
<i-adata
|
|
108
108
|
filled
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { defineNuxtPlugin } from "#app";
|
|
2
2
|
export default defineNuxtPlugin((_nuxtApp) => {
|
|
3
|
-
|
|
3
|
+
const { $i18n } = _nuxtApp;
|
|
4
|
+
const messages = {
|
|
5
|
+
ru: {
|
|
6
|
+
ui: {
|
|
7
|
+
hello: "\u041F\u0440\u0438\u0432\u0435\u0442 \u0438\u0437 \u043C\u043E\u0434\u0443\u043B\u044F"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
en: {
|
|
11
|
+
ui: {
|
|
12
|
+
hello: "Hello from module"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
for (const locale in messages) {
|
|
17
|
+
$i18n.mergeLocaleMessage(locale, messages[locale]);
|
|
18
|
+
}
|
|
4
19
|
});
|