adata-ui 2.0.70 → 2.0.72

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.
@@ -44,11 +44,11 @@ import MapPinRect from '#adata-ui/icons/map/map-pin-rect.vue'
44
44
  import MapPaper from '#adata-ui/icons/map-paper.vue'
45
45
  import ChartBar from '#adata-ui/icons/chart-bar.vue'
46
46
  import Bank from '#adata-ui/icons/bank.vue'
47
+ import { useUrls } from '#adata-ui/composables/useUrls'
47
48
 
48
49
  export const useHeaderNavigationLinks = () => {
49
50
  const { t, locale } = useI18n()
50
- const { myLayer } = useAppConfig()
51
- const mode = myLayer.mode
51
+ const urls = useUrls()
52
52
 
53
53
  return computed(() => {
54
54
  return [
@@ -62,7 +62,7 @@ export const useHeaderNavigationLinks = () => {
62
62
  title: t('header.products.edo.items.l.t'),
63
63
  subtitle: t('header.products.edo.items.l.t'),
64
64
  icon: AIconFiles,
65
- to: buildLocalizedUrl(locale, `https://edo.${mode}.kz` , '')
65
+ to: buildLocalizedUrl(locale, urls.edo , '')
66
66
  }
67
67
  ]
68
68
  },
@@ -70,51 +70,51 @@ export const useHeaderNavigationLinks = () => {
70
70
  key: 'pk',
71
71
  name: t('header.products.counterparties.label'),
72
72
  icon: AIconUsersThree,
73
- to: `https://pk.${mode}.kz`,
73
+ to: urls.pk,
74
74
  items: [
75
75
  {
76
76
  title: t('header.products.counterparties.items.counterparty.title'),
77
77
  subtitle: t('header.products.counterparties.items.counterparty.subtitle'),
78
78
  icon: IconSearch,
79
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.main),
79
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.main),
80
80
  },
81
81
  {
82
82
  title: t('header.products.counterparties.items.unloading.title'),
83
83
  subtitle: t('header.products.counterparties.items.unloading.subtitle'),
84
84
  icon: IconArrowCircle,
85
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.unload),
85
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.unload),
86
86
  },
87
87
  {
88
88
  title: t('header.products.counterparties.items.wholesale.title'),
89
89
  subtitle: t('header.products.counterparties.items.wholesale.subtitle'),
90
90
  icon: IconUsers,
91
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.employees),
91
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.employees),
92
92
  },
93
93
  {
94
94
  title: t('header.products.counterparties.items.foreign.title'),
95
95
  subtitle: t('header.products.counterparties.items.foreign.subtitle'),
96
96
  icon: IconGlobe,
97
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.foreign),
97
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.foreign),
98
98
  },
99
99
  {
100
100
  title: t('header.products.counterparties.items.compare.title'),
101
101
  icon: IconScales,
102
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.compare),
102
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.compare),
103
103
  },
104
104
  {
105
105
  title: t('header.products.counterparties.items.networks.title'),
106
106
  icon: IconLink,
107
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.connections)
107
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.connections)
108
108
  },
109
109
  {
110
110
  title: t('header.products.counterparties.items.sanction.title'),
111
111
  icon: IconBlock,
112
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.sanctions)
112
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.sanctions)
113
113
  },
114
114
  {
115
115
  title: t('header.products.counterparties.items.offshore.title'),
116
116
  icon: IconDollar,
117
- to: buildLocalizedUrl(locale, `https://pk.${mode}.kz`, PAGES.pk.offshore)
117
+ to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.offshore)
118
118
  }
119
119
  ]
120
120
  },
@@ -128,7 +128,7 @@ export const useHeaderNavigationLinks = () => {
128
128
  title: t('header.products.compliance.items.l.t'),
129
129
  subtitle: t('header.products.compliance.items.l.st'),
130
130
  icon: IconProfile,
131
- to: buildLocalizedUrl(locale, `https://ac.${mode}.kz/compliance`, '')
131
+ to: buildLocalizedUrl(locale, urls.compliance, '')
132
132
  }
133
133
  ]
134
134
  },
@@ -137,37 +137,37 @@ export const useHeaderNavigationLinks = () => {
137
137
  name: t('header.products.tenders.label'),
138
138
  icon: AIconReceipt,
139
139
  is_new: true,
140
- to: `https://tender.${mode}.kz`,
140
+ to: urls.tender,
141
141
  items: [
142
142
  {
143
143
  title: t('header.products.tenders.items.monitoring.title'),
144
144
  subtitle: t('header.products.tenders.items.monitoring.subtitle'),
145
145
  icon: ChartBar,
146
- to: `https://zakupki.${mode}.kz` + PAGES.tender.monitoring,
146
+ to: urls.zakupki + PAGES.tender.monitoring,
147
147
  },
148
148
  {
149
149
  title: t('header.products.tenders.items.akimat.title'),
150
150
  subtitle: t('header.products.tenders.items.akimat.subtitle'),
151
151
  icon: Bank,
152
- to: `https://zakupki.${mode}.kz` + PAGES.tender.akimat,
152
+ to: urls.zakupki + PAGES.tender.akimat,
153
153
  },
154
154
  {
155
155
  title: t('header.products.tenders.items.tenders.title'),
156
156
  subtitle: t('header.products.tenders.items.tenders.subtitle'),
157
157
  icon: IconSearch,
158
- to: `https://tender.${mode}.kz` + PAGES.tender.main
158
+ to: urls.tender + PAGES.tender.main
159
159
  },
160
160
  {
161
161
  title: t('header.products.tenders.items.procurement.title'),
162
162
  subtitle: t('header.products.tenders.items.procurement.subtitle'),
163
163
  icon: IconCheck,
164
- to: `https://tender.${mode}.kz` + PAGES.tender.plans
164
+ to: urls.tender + PAGES.tender.plans
165
165
  },
166
166
  {
167
167
  title: t('header.products.tenders.items.contracts.title'),
168
168
  subtitle: t('header.products.tenders.items.contracts.subtitle'),
169
169
  icon: IconFile,
170
- to: `https://tender.${mode}.kz` + PAGES.tender.contracts
170
+ to: urls.tender + PAGES.tender.contracts
171
171
  }
172
172
  ]
173
173
  },
@@ -180,26 +180,26 @@ export const useHeaderNavigationLinks = () => {
180
180
  title: t('header.products.analytics.items.procurement.title'),
181
181
  subtitle: t('header.products.analytics.items.procurement.subtitle'),
182
182
  icon: IconClipboardText,
183
- to: buildLocalizedUrl(locale, `https://analytics-new.${mode}.kz`, PAGES.analytics.main)
183
+ to: buildLocalizedUrl(locale, urls.analyticsNew, PAGES.analytics.main)
184
184
  },
185
185
  {
186
186
  title: t('header.products.analytics.items.activity.title'),
187
187
  subtitle: t('header.products.analytics.items.activity.subtitle'),
188
188
  icon: IconArrowGraph,
189
- to: buildLocalizedUrl(locale, `https://analytics-new.${mode}.kz`, PAGES.analytics.index)
189
+ to: buildLocalizedUrl(locale, urls.analyticsNew, PAGES.analytics.index)
190
190
 
191
191
  },
192
192
  {
193
193
  title: t('header.products.analytics.items.rate.title'),
194
194
  subtitle: t('header.products.analytics.items.rate.subtitle'),
195
195
  icon: IconMedal,
196
- to: buildLocalizedUrl(locale, `https://analytics-new.${mode}.kz`, PAGES.analytics.rating)
196
+ to: buildLocalizedUrl(locale, urls.analyticsNew, PAGES.analytics.rating)
197
197
  },
198
198
  {
199
199
  title: t('header.products.analytics.items.subjects.title'),
200
200
  subtitle: t('header.products.analytics.items.subjects.subtitle'),
201
201
  icon: IconCompany,
202
- to: buildLocalizedUrl(locale, `https://analytics-new.${mode}.kz`, PAGES.analytics.business)
202
+ to: buildLocalizedUrl(locale, urls.analyticsNew, PAGES.analytics.business)
203
203
  }
204
204
  ]
205
205
  },
@@ -213,44 +213,44 @@ export const useHeaderNavigationLinks = () => {
213
213
  title: t('header.products.fea.items.o.t'),
214
214
  subtitle: t('header.products.fea.items.o.st'),
215
215
  icon: Connections,
216
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.main)
216
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.main)
217
+ },
218
+ {
219
+ title: t('header.products.fea.items.i.t'),
220
+ subtitle: t('header.products.fea.items.i.st'),
221
+ icon: IconHandshake,
222
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.t)
217
223
  },
218
- // {
219
- // title: t('header.products.fea.items.i.t'),
220
- // subtitle: t('header.products.fea.items.i.st'),
221
- // icon: IconHandshake,
222
- // to: buildLocalizedUrl(locale, myLayer.tnvedUrl, PAGES.fea.t)
223
- // },
224
224
  {
225
225
  title: t('header.products.fea.items.cp.t'),
226
226
  subtitle: t('header.products.fea.items.cp.st'),
227
227
  icon: IconTruck,
228
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.cp)
228
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.cp)
229
229
 
230
230
  },
231
231
  {
232
232
  title: t('header.products.fea.items.ca.t'),
233
233
  subtitle: t('header.products.fea.items.ca.st'),
234
234
  icon: IconCalc,
235
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.ca)
235
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.ca)
236
236
  },
237
237
  {
238
238
  title: t('header.products.fea.items.tr.t'),
239
239
  subtitle: t('header.products.fea.items.tr.st'),
240
240
  icon: IconGlobe,
241
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.tr)
241
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.tr)
242
242
  },
243
243
  {
244
244
  title: t('header.products.fea.items.containers.t'),
245
245
  subtitle: t('header.products.fea.items.containers.st'),
246
246
  icon: MapPaper,
247
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.containers)
247
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.containers)
248
248
  },
249
249
  {
250
250
  title: t('header.products.fea.items.importerMap.t'),
251
251
  subtitle: t('header.products.fea.items.importerMap.st'),
252
252
  icon: MapPinRect,
253
- to: buildLocalizedUrl(locale, `https://tnved.${mode}.kz`, PAGES.fea.importerMap)
253
+ to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.importerMap)
254
254
  },
255
255
  ]
256
256
  },
@@ -263,19 +263,19 @@ export const useHeaderNavigationLinks = () => {
263
263
  title: t('header.products.fines.items.fines.title'),
264
264
  subtitle: t('header.products.fines.items.fines.subtitle'),
265
265
  icon: IconCheckCircle,
266
- to: buildLocalizedUrl(locale, `https://avto.${mode}.kz`, PAGES.fines.main)
266
+ to: buildLocalizedUrl(locale, urls.avto, PAGES.fines.main)
267
267
  },
268
268
  {
269
269
  title: t('header.products.fines.items.auto.title'),
270
270
  subtitle: t('header.products.fines.items.auto.subtitle'),
271
271
  icon: IconCar,
272
- to: buildLocalizedUrl(locale, `https://avto.${mode}.kz`, PAGES.fines.avto)
272
+ to: buildLocalizedUrl(locale, urls.avto, PAGES.fines.avto)
273
273
  },
274
274
  // {
275
275
  // title: t('header.products.fines.items.wholesaleAuto.title'),
276
276
  // subtitle: t('header.products.fines.items.wholesaleAuto.subtitle'),
277
277
  // icon: IconTruck,
278
- // to: buildLocalizedUrl(locale, `https://avto.${mode}.kz`, PAGES.fines.bulk)
278
+ // to: buildLocalizedUrl(locale, urls.avto, PAGES.fines.bulk)
279
279
  // }
280
280
  ]
281
281
  },
@@ -288,13 +288,13 @@ export const useHeaderNavigationLinks = () => {
288
288
  title: t('header.products.jobs.items.vacancies.title'),
289
289
  icon: IconWork,
290
290
  subtitle: t('header.products.jobs.items.vacancies.subtitle'),
291
- to: `https://work.${mode}.kz` + PAGES.work.vacancy
291
+ to: urls.work + PAGES.work.vacancy
292
292
  },
293
293
  {
294
294
  title: t('header.products.jobs.items.resume.title'),
295
295
  subtitle: t('header.products.jobs.items.resume.subtitle'),
296
296
  icon: IconDocument,
297
- to: `https://work.${mode}.kz` + PAGES.work.summary
297
+ to: urls.work + PAGES.work.summary
298
298
  }
299
299
  ]
300
300
  },
@@ -304,103 +304,101 @@ export const useHeaderNavigationLinks = () => {
304
304
 
305
305
  export const useHeaderMenuLinks = () => {
306
306
  const { t, locale } = useI18n()
307
- const { myLayer } = useAppConfig()
308
- const mode = myLayer.mode
307
+ const urls = useUrls()
309
308
 
310
309
  return [
311
310
  {
312
311
  title: t('header.profile.menu.personalInfo'),
313
312
  icon: IconProfile,
314
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.index)
313
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.index)
315
314
  },
316
315
  {
317
316
  title: t('header.profile.menu.security'),
318
317
  icon: IconLock,
319
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.security)
318
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.security)
320
319
  },
321
320
  {
322
321
  title: t('header.profile.menu.paymentHistory'),
323
322
  icon: IconReceipt,
324
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.paymentHistory)
323
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.paymentHistory)
325
324
  },
326
325
  {
327
326
  title: t('header.profile.menu.favourites'),
328
327
  icon: IconFavorite,
329
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.favourites)
328
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.favourites)
330
329
  },
331
330
  // {
332
331
  // title: t('header.profile.menu.myReports'),
333
332
  // icon: IconReport,
334
- // to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.reports)
333
+ // to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.reports)
335
334
  // },
336
335
  {
337
336
  title: t('header.profile.menu.browsingHistory'),
338
337
  icon: IconHistory,
339
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.browsingHistory)
338
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.browsingHistory)
340
339
  },
341
340
  {
342
341
  title: t('header.profile.menu.myGroups'),
343
342
  icon: IconUsers,
344
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.myGroups)
343
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.myGroups)
345
344
  },
346
345
  {
347
346
  title: t('header.profile.menu.notes'),
348
347
  icon: IconMessage,
349
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.profile.notes)
348
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.profile.notes)
350
349
  }
351
350
  ]
352
351
  }
353
352
 
354
353
  export const usePkServicesLinks = () => {
355
354
  const { t, locale } = useI18n()
356
- const { myLayer } = useAppConfig()
357
- const mode = myLayer.mode
355
+ const urls = useUrls()
358
356
 
359
357
  return [
360
358
  {
361
359
  title: t('header.products.counterparties.items.counterparty.title'),
362
360
  icon: IconSearch,
363
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.main)
361
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.main)
364
362
  },
365
363
  {
366
364
  title: t('header.products.counterparties.items.wholesale.title'),
367
365
  icon: AIconUsersThree,
368
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.employees)
366
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.employees)
369
367
  },
370
368
  {
371
369
  title: t('header.products.counterparties.items.networks.title'),
372
370
  icon: IconLink,
373
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.connections)
371
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.connections)
374
372
  },
375
373
  {
376
374
  title: t('header.products.counterparties.items.offshore.title'),
377
375
  icon: IconDollar,
378
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.offshore)
376
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.offshore)
379
377
  },
380
378
  {
381
379
  title: t('header.products.counterparties.items.foreign.title'),
382
380
  icon: IconGlobe,
383
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.foreign)
381
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.foreign)
384
382
  },
385
383
  {
386
384
  title: t('header.products.counterparties.items.unloading.title'),
387
385
  icon: AIconArrowSquareDown,
388
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.unload)
386
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.unload)
389
387
  },
390
388
  {
391
389
  title: t('header.products.counterparties.items.compare.title'),
392
390
  icon: IconScales,
393
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.compare)
391
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.compare)
394
392
  },
395
393
  {
396
394
  title: t('header.products.counterparties.items.sanction.title'),
397
395
  icon: IconBlock,
398
- to: buildLocalizedUrl(locale.value, `https://pk.${mode}.kz`, PAGES.pk.sanctions)
396
+ to: buildLocalizedUrl(locale.value, urls.pk, PAGES.pk.sanctions)
399
397
  },
400
398
  {
401
399
  title: t('all_services'),
402
400
  icon: AIconExpandWindow,
403
- to: buildLocalizedUrl(locale.value, `https://${mode}.kz`, PAGES.allServices)
401
+ to: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices)
404
402
  },
405
403
  ]
406
404
  }
@@ -0,0 +1,20 @@
1
+ export function useUrls() {
2
+ const { myLayer } = useAppConfig()
3
+ const mode = myLayer.mode
4
+
5
+ return {
6
+ landing: `https://${mode}.kz`,
7
+ pk: `https://pk.${mode}.kz`,
8
+ login: `https://id.${mode}.kz`,
9
+ work: `https://work.${mode}.kz`,
10
+ tender: `https://tender.${mode}.kz`,
11
+ zakupki: `https://zakupki.${mode}.kz`,
12
+ avto: `https://avto.${mode}.kz`,
13
+ analytics: `https://analytics.${mode}.kz`,
14
+ analyticsNew: `https://analytics-new${mode}.kz`,
15
+ tnved: `https://tnved.${mode}.kz`,
16
+ edo: `https://edo.${mode}.kz`,
17
+ compliance: `https://ac.${mode}.kz/compliance`,
18
+ mode,
19
+ }
20
+ }
package/lang/en.ts CHANGED
@@ -63,6 +63,7 @@ const EnLocale: RuLocale = {
63
63
  products: 'Products and Solutions',
64
64
  tariffs: 'Tariffs',
65
65
  contacts: 'Contacts',
66
+ api: "API"
66
67
  },
67
68
  products: {
68
69
  counterparties: {
package/lang/kk.ts CHANGED
@@ -63,6 +63,7 @@ const KkLocale: RuLocale = {
63
63
  products: 'Өнімдер мен шешімдер',
64
64
  tariffs: 'Тарифтер',
65
65
  contacts: 'Байланыс',
66
+ api: "API"
66
67
  },
67
68
  products: {
68
69
  counterparties: {
package/lang/ru.ts CHANGED
@@ -59,6 +59,7 @@ const RuLocale = {
59
59
  products: 'Продукты и решения',
60
60
  tariffs: 'Тарифы',
61
61
  contacts: 'Контакты',
62
+ api: "API"
62
63
  },
63
64
  products: {
64
65
  counterparties: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.70",
4
+ "version": "2.0.72",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",
@@ -1,5 +1,6 @@
1
1
  export const PAGES = {
2
2
  tariffs: '/tariffs',
3
+ api: '/api-description',
3
4
  userAgreement: '/user-agreements',
4
5
  privacy: '/privacy-policy',
5
6
  vacancy: '/vacancy',