adata-ui 3.1.64 → 3.1.66
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
CHANGED
|
@@ -12,10 +12,14 @@ import INavigationExpandWindow from "#icons/navigation/expand-window.vue";
|
|
|
12
12
|
import ICommunicationPhone from "#icons/communication/phone.vue";
|
|
13
13
|
import ICommunicationMail from "#icons/communication/mail.vue";
|
|
14
14
|
import IAdata from "#icons/logo/adata.vue";
|
|
15
|
+
import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
|
|
16
|
+
import { useUrls } from "#adata-ui/utils/useUrls";
|
|
17
|
+
import { computed } from "vue";
|
|
15
18
|
const year = (/* @__PURE__ */ new Date()).getFullYear();
|
|
16
|
-
const { t } = useI18n();
|
|
19
|
+
const { t, locale } = useI18n();
|
|
17
20
|
const appConfig = useAppConfig();
|
|
18
21
|
const mode = appConfig.adataUI.mode;
|
|
22
|
+
const urls = useUrls();
|
|
19
23
|
const socialMedia = [
|
|
20
24
|
{
|
|
21
25
|
icon: ISocialsLinkedin,
|
|
@@ -48,47 +52,47 @@ const socialMedia = [
|
|
|
48
52
|
name: "Tiktok"
|
|
49
53
|
}
|
|
50
54
|
];
|
|
51
|
-
const mainLinks = {
|
|
55
|
+
const mainLinks = computed(() => ({
|
|
52
56
|
services: {
|
|
53
57
|
title: "footer.services",
|
|
54
|
-
link:
|
|
58
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices),
|
|
55
59
|
items: [
|
|
56
60
|
[
|
|
57
61
|
{
|
|
58
62
|
title: "footer.counterparties.title",
|
|
59
|
-
link:
|
|
63
|
+
link: buildLocalizedUrl(locale.value, urls.pk, "")
|
|
60
64
|
},
|
|
61
65
|
{
|
|
62
66
|
title: "footer.fines.title",
|
|
63
|
-
link:
|
|
67
|
+
link: buildLocalizedUrl(locale.value, urls.avto, PAGES.fines.main)
|
|
64
68
|
},
|
|
65
69
|
{
|
|
66
70
|
title: "footer.work.title",
|
|
67
|
-
link:
|
|
71
|
+
link: buildLocalizedUrl(locale.value, urls.work, PAGES.work.main)
|
|
68
72
|
},
|
|
69
73
|
{
|
|
70
74
|
title: "footer.analytics.title",
|
|
71
|
-
link:
|
|
75
|
+
link: buildLocalizedUrl(locale.value, urls.analyticsNew, PAGES.analytics.main)
|
|
72
76
|
},
|
|
73
77
|
{
|
|
74
78
|
title: "footer.zakupki.title",
|
|
75
|
-
link:
|
|
79
|
+
link: buildLocalizedUrl(locale.value, urls.zakupki, PAGES.zakupki.main)
|
|
76
80
|
}
|
|
77
81
|
],
|
|
78
82
|
[
|
|
79
83
|
{
|
|
80
84
|
title: "footer.compliance.title",
|
|
81
|
-
link:
|
|
85
|
+
link: buildLocalizedUrl(locale.value, urls.compliance, PAGES.compliance.l),
|
|
82
86
|
isNew: true
|
|
83
87
|
},
|
|
84
88
|
{
|
|
85
89
|
title: "header.products.edo.label",
|
|
86
|
-
link:
|
|
90
|
+
link: buildLocalizedUrl(locale.value, urls.edo, PAGES.edo.l),
|
|
87
91
|
isNew: true
|
|
88
92
|
},
|
|
89
93
|
{
|
|
90
94
|
title: "footer.fea.title",
|
|
91
|
-
link:
|
|
95
|
+
link: buildLocalizedUrl(locale.value, urls.tnved, PAGES.fea.main),
|
|
92
96
|
isNew: true
|
|
93
97
|
}
|
|
94
98
|
]
|
|
@@ -96,34 +100,36 @@ const mainLinks = {
|
|
|
96
100
|
},
|
|
97
101
|
useful: {
|
|
98
102
|
title: "footer.useful",
|
|
99
|
-
link:
|
|
100
|
-
items: [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
103
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.usefulMain),
|
|
104
|
+
items: [
|
|
105
|
+
[
|
|
106
|
+
{
|
|
107
|
+
title: "footer.info.api",
|
|
108
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.apiDescription)
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: "footer.info.userAgreement",
|
|
112
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.userAgreement)
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: "footer.info.privacyPolicy",
|
|
116
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.privacy)
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
title: "footer.info.vacancy",
|
|
120
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.vacancy)
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: "footer.info.counterparty",
|
|
124
|
+
link: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.counterparty)
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
]
|
|
122
128
|
}
|
|
123
|
-
};
|
|
124
|
-
const contactLinks = {
|
|
129
|
+
}));
|
|
130
|
+
const contactLinks = computed(() => ({
|
|
125
131
|
title: "footer.contacts.title",
|
|
126
|
-
link:
|
|
132
|
+
link: buildLocalizedUrl(locale.value, urls.landing, PAGES.contacts),
|
|
127
133
|
items: [
|
|
128
134
|
{
|
|
129
135
|
title: "footer.contacts.address",
|
|
@@ -151,7 +157,7 @@ const contactLinks = {
|
|
|
151
157
|
class: "!font-bold"
|
|
152
158
|
}
|
|
153
159
|
]
|
|
154
|
-
};
|
|
160
|
+
}));
|
|
155
161
|
</script>
|
|
156
162
|
|
|
157
163
|
<template>
|
|
@@ -202,7 +208,7 @@ const contactLinks = {
|
|
|
202
208
|
</div>
|
|
203
209
|
|
|
204
210
|
<!-- contactLinks -->
|
|
205
|
-
<!--noindex-->
|
|
211
|
+
<!-- noindex -->
|
|
206
212
|
|
|
207
213
|
<div class="flex flex-col gap-2 items-start" data-nosnippet>
|
|
208
214
|
<nuxt-link-locale
|
|
@@ -245,7 +251,7 @@ const contactLinks = {
|
|
|
245
251
|
</div>
|
|
246
252
|
</div>
|
|
247
253
|
</div>
|
|
248
|
-
|
|
254
|
+
<!-- /noindex -->
|
|
249
255
|
</div>
|
|
250
256
|
|
|
251
257
|
<div class="lg:hidden flex gap-8 flex-wrap">
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import ContactMenu from "./ContactMenu.vue";
|
|
3
3
|
import ProductMenu from "./ProductMenu.vue";
|
|
4
|
-
import { ref, shallowRef, useI18n, onBeforeUnmount, watch, useAppConfig } from "#imports";
|
|
5
|
-
|
|
4
|
+
import { ref, shallowRef, useI18n, onBeforeUnmount, watch, useAppConfig, useRequestURL } from "#imports";
|
|
5
|
+
import { navigateToLocalizedPage } from "#adata-ui/utils/localizedNavigation";
|
|
6
|
+
const { t, locale } = useI18n();
|
|
6
7
|
const appConfig = useAppConfig();
|
|
7
8
|
const mode = appConfig.adataUI.mode;
|
|
8
9
|
const navs = [
|
|
@@ -46,9 +47,18 @@ const currentMenuToShow = (index) => {
|
|
|
46
47
|
};
|
|
47
48
|
const toggleMenu = (index) => {
|
|
48
49
|
if (index === 2) {
|
|
49
|
-
|
|
50
|
+
const pageUrl = useRequestURL();
|
|
51
|
+
let code = "";
|
|
52
|
+
if (pageUrl.hostname.includes("pk")) code = "?code=pk";
|
|
53
|
+
if (pageUrl.hostname.includes("avto")) code = "?code=auto";
|
|
54
|
+
if (pageUrl.hostname.includes("tnved")) code = "?code=ved";
|
|
55
|
+
if (pageUrl.hostname.includes("analytics-new")) code = "?code=analytics";
|
|
56
|
+
if (pageUrl.hostname.includes("ac")) code = "?code=compliance";
|
|
57
|
+
if (pageUrl.hostname.includes("zakupki")) code = "?code=procurement";
|
|
58
|
+
if (pageUrl.hostname.includes("edo")) code = "?code=edo";
|
|
59
|
+
navigateToLocalizedPage({ locale, projectUrl: `https://${mode}.kz`, path: "/tariffs" + code, target: "_blank" });
|
|
50
60
|
} else if (index === 3) {
|
|
51
|
-
|
|
61
|
+
navigateToLocalizedPage({ locale, projectUrl: `https://${mode}.kz`, path: "/api-description", target: "_blank" });
|
|
52
62
|
} else {
|
|
53
63
|
currentMenu.value = currentMenuToShow(index);
|
|
54
64
|
const prev = currentIndex.value;
|