adata-ui 2.1.25 → 2.1.27
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/components/modals/ContentNavigationModal.vue +3 -3
- package/components/navigation/footer/AFooter.vue +1 -1
- package/components/navigation/header/HeaderLink.vue +13 -7
- package/components/navigation/header/ProductMenu.vue +1 -1
- package/composables/useHeaderNavigationLinks.ts +4 -4
- package/composables/useUrls.ts +2 -1
- package/package.json +1 -1
- package/shared/constans/pages.ts +1 -1
|
@@ -206,17 +206,17 @@ const sideLinks = <any>{
|
|
|
206
206
|
{
|
|
207
207
|
icon: IconArrowGraph,
|
|
208
208
|
label: 'header.products.analytics.items.activity.title',
|
|
209
|
-
link: urls.
|
|
209
|
+
link: urls.analytics + PAGES.analytics.index
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
icon: IconCompany,
|
|
213
213
|
label: 'header.products.analytics.items.subjects.title',
|
|
214
|
-
link: urls.
|
|
214
|
+
link: urls.analytics + PAGES.analytics.business
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
icon: IconMedal,
|
|
218
218
|
label: 'header.products.analytics.items.rate.title',
|
|
219
|
-
link: urls.
|
|
219
|
+
link: urls.analytics + PAGES.analytics.rating
|
|
220
220
|
}
|
|
221
221
|
],
|
|
222
222
|
fines: [
|
|
@@ -69,7 +69,7 @@ const mainLinks = computed(() => ({
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
title: t('footer.analytics.title'),
|
|
72
|
-
link: buildLocalizedUrl(locale.value, urls.
|
|
72
|
+
link: buildLocalizedUrl(locale.value, urls.analytics, PAGES.analytics.main),
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
title: t('footer.zakupki.title'),
|
|
@@ -8,7 +8,7 @@ import ContactMenu from '#adata-ui/components/navigation/header/ContactMenu.vue'
|
|
|
8
8
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
9
9
|
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
10
10
|
|
|
11
|
-
const { landing } = useUrls()
|
|
11
|
+
const { landing, pk } = useUrls()
|
|
12
12
|
const { t, locale } = useI18n()
|
|
13
13
|
|
|
14
14
|
const navs: any = [
|
|
@@ -28,12 +28,18 @@ const navs: any = [
|
|
|
28
28
|
label: 'header.navs.api',
|
|
29
29
|
to: landing + PAGES.api
|
|
30
30
|
},
|
|
31
|
-
{
|
|
32
|
-
label: 'header.navs.services',
|
|
33
|
-
to: landing + PAGES.services
|
|
34
|
-
}
|
|
35
31
|
]
|
|
36
32
|
|
|
33
|
+
const pageUrl = useRequestURL()
|
|
34
|
+
if (pageUrl.hostname.startsWith('pk')) {
|
|
35
|
+
navs.push(
|
|
36
|
+
{
|
|
37
|
+
label: 'header.navs.services',
|
|
38
|
+
to: pk + PAGES.services + '/kgd'
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
const menu = ref<HTMLElement | null>(null)
|
|
38
44
|
const isBodyAlreadyLocked = ref<boolean>(false)
|
|
39
45
|
const currentIndex = ref(0)
|
|
@@ -63,7 +69,7 @@ const toggleMenu = (index: number) => {
|
|
|
63
69
|
if (pageUrl.hostname.includes('pk')) code = '?code=pk'
|
|
64
70
|
if (pageUrl.hostname.includes('avto')) code = '?code=auto'
|
|
65
71
|
if (pageUrl.hostname.includes('tnved')) code = '?code=ved'
|
|
66
|
-
if (pageUrl.hostname.includes('analytics
|
|
72
|
+
if (pageUrl.hostname.includes('analytics')) code = '?code=analytics'
|
|
67
73
|
if (pageUrl.hostname.includes('ac')) code = '?code=compliance'
|
|
68
74
|
if (pageUrl.hostname.includes('zakupki')) code = '?code=procurement'
|
|
69
75
|
if (pageUrl.hostname.includes('edo')) code = '?code=edo'
|
|
@@ -73,7 +79,7 @@ const toggleMenu = (index: number) => {
|
|
|
73
79
|
navigateToLocalizedPage({ locale, projectUrl: landing, path: PAGES.api, target: '_blank' })
|
|
74
80
|
}
|
|
75
81
|
else if (index === 4) {
|
|
76
|
-
navigateToLocalizedPage({ locale, projectUrl:
|
|
82
|
+
navigateToLocalizedPage({ locale, projectUrl: pk, path: PAGES.services + '/kgd', target: '_blank' })
|
|
77
83
|
}
|
|
78
84
|
else {
|
|
79
85
|
currentMenu.value = currentMenuToShow(index)
|
|
@@ -23,7 +23,7 @@ const filteredItems = useHeaderNavigationLinks()
|
|
|
23
23
|
|
|
24
24
|
function isCurrentModule(currentModule: string) {
|
|
25
25
|
if (currentModule === 'fines') return 'avto'
|
|
26
|
-
if (currentModule === 'analytics') return 'analytics
|
|
26
|
+
if (currentModule === 'analytics') return 'analytics'
|
|
27
27
|
if (currentModule === 'compliance') return 'ac'
|
|
28
28
|
if (currentModule === 'fea') return 'tnved'
|
|
29
29
|
if (currentModule === 'tenders') return 'zakupki'
|
|
@@ -317,7 +317,7 @@ export const useHeaderNavigationLinks = () => {
|
|
|
317
317
|
{
|
|
318
318
|
key: 'analytics',
|
|
319
319
|
name: t('header.products.analytics.label'),
|
|
320
|
-
link: buildLocalizedUrl(locale, urls.
|
|
320
|
+
link: buildLocalizedUrl(locale, urls.analytics, ''),
|
|
321
321
|
icon: AIconArrowGraphUp,
|
|
322
322
|
items: [
|
|
323
323
|
// {
|
|
@@ -330,20 +330,20 @@ export const useHeaderNavigationLinks = () => {
|
|
|
330
330
|
title: t('header.products.analytics.items.activity.title'),
|
|
331
331
|
subtitle: t('header.products.analytics.items.activity.subtitle'),
|
|
332
332
|
icon: IconArrowGraph,
|
|
333
|
-
to: buildLocalizedUrl(locale, urls.
|
|
333
|
+
to: buildLocalizedUrl(locale, urls.analytics, PAGES.analytics.index)
|
|
334
334
|
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
title: t('header.products.analytics.items.rate.title'),
|
|
338
338
|
subtitle: t('header.products.analytics.items.rate.subtitle'),
|
|
339
339
|
icon: IconMedal,
|
|
340
|
-
to: buildLocalizedUrl(locale, urls.
|
|
340
|
+
to: buildLocalizedUrl(locale, urls.analytics, PAGES.analytics.rating)
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
title: t('header.products.analytics.items.subjects.title'),
|
|
344
344
|
subtitle: t('header.products.analytics.items.subjects.subtitle'),
|
|
345
345
|
icon: IconCompany,
|
|
346
|
-
to: buildLocalizedUrl(locale, urls.
|
|
346
|
+
to: buildLocalizedUrl(locale, urls.analytics, PAGES.analytics.business)
|
|
347
347
|
}
|
|
348
348
|
]
|
|
349
349
|
},
|
package/composables/useUrls.ts
CHANGED
|
@@ -10,8 +10,9 @@ export function useUrls() {
|
|
|
10
10
|
tender: `https://tender.${mode}.kz`,
|
|
11
11
|
zakupki: `https://zakupki.${mode}.kz`,
|
|
12
12
|
avto: `https://avto.${mode}.kz`,
|
|
13
|
+
analyticsOld: `https://analytics-old.${mode}.kz`,
|
|
13
14
|
analytics: `https://analytics.${mode}.kz`,
|
|
14
|
-
analyticsNew: `https://analytics
|
|
15
|
+
analyticsNew: `https://analytics.${mode}.kz`,
|
|
15
16
|
tnved: `https://tnved.${mode}.kz`,
|
|
16
17
|
edo: `https://edo.${mode}.kz`,
|
|
17
18
|
compliance: `https://ac.${mode}.kz/compliance`,
|
package/package.json
CHANGED
package/shared/constans/pages.ts
CHANGED
|
@@ -10,7 +10,7 @@ export const PAGES = {
|
|
|
10
10
|
favourites: '/favourites',
|
|
11
11
|
totalServices: '/total-services',
|
|
12
12
|
allServices: '/all-services',
|
|
13
|
-
services: '/
|
|
13
|
+
services: '/services',
|
|
14
14
|
profile: {
|
|
15
15
|
index: '/profile',
|
|
16
16
|
security: '/profile/change-password',
|