adata-ui 3.1.64 → 3.1.65

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
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.64",
8
+ "version": "3.1.65",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -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: `https://${mode}.kz` + PAGES.allServices,
58
+ link: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices),
55
59
  items: [
56
60
  [
57
61
  {
58
62
  title: "footer.counterparties.title",
59
- link: `https://pk.${mode}.kz`
63
+ link: buildLocalizedUrl(locale.value, urls.pk, "")
60
64
  },
61
65
  {
62
66
  title: "footer.fines.title",
63
- link: `https://avto.${mode}.kz/`
67
+ link: buildLocalizedUrl(locale.value, urls.avto, PAGES.fines.main)
64
68
  },
65
69
  {
66
70
  title: "footer.work.title",
67
- link: `https://work.${mode}.kz/`
71
+ link: buildLocalizedUrl(locale.value, urls.work, PAGES.work.main)
68
72
  },
69
73
  {
70
74
  title: "footer.analytics.title",
71
- link: `https://analytics-new.${mode}.kz/`
75
+ link: buildLocalizedUrl(locale.value, urls.analyticsNew, PAGES.analytics.main)
72
76
  },
73
77
  {
74
78
  title: "footer.zakupki.title",
75
- link: `https://zakupki.${mode}.kz/`
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: `https://ac.${mode}.kz/compliance`,
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: `https://edo.${mode}.kz/`,
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: `https://tnved.${mode}.kz/`,
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: `https://${mode}.kz` + PAGES.usefulMain,
100
- items: [[
101
- {
102
- title: "footer.info.api",
103
- link: `https://${mode}.kz` + PAGES.apiDescription
104
- },
105
- {
106
- title: "footer.info.userAgreement",
107
- link: `https://${mode}.kz` + PAGES.userAgreement
108
- },
109
- {
110
- title: "footer.info.privacyPolicy",
111
- link: `https://${mode}.kz` + PAGES.privacy
112
- },
113
- {
114
- title: "footer.info.vacancy",
115
- link: `https://${mode}.kz` + PAGES.vacancy
116
- },
117
- {
118
- title: "footer.info.counterparty",
119
- link: `https://pk.${mode}.kz` + PAGES.pk.counterparty
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: `https://${mode}.kz` + PAGES.contacts,
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
- <!--/noindex-->
254
+ <!-- /noindex -->
249
255
  </div>
250
256
 
251
257
  <div class="lg:hidden flex gap-8 flex-wrap">
@@ -65,6 +65,9 @@ export declare const PAGES: {
65
65
  rating: string;
66
66
  business: string;
67
67
  };
68
+ zakupki: {
69
+ main: string;
70
+ };
68
71
  fea: {
69
72
  main: string;
70
73
  t: string;
@@ -65,6 +65,9 @@ export const PAGES = {
65
65
  rating: "/tax-payment",
66
66
  business: "/business-entities"
67
67
  },
68
+ zakupki: {
69
+ main: ""
70
+ },
68
71
  fea: {
69
72
  main: "/",
70
73
  t: "/fea",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.64",
3
+ "version": "3.1.65",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",