adata-ui 2.0.71 → 2.0.73
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/elements/illustrations/noAccess.vue +3 -2
- package/components/features/payment/banner/PaymentBanner.vue +3 -3
- package/components/features/pk-mobile-services/APkMobileServices.vue +3 -2
- package/components/modals/AnotherDeviceModal.vue +3 -2
- package/components/modals/ContentNavigationModal.vue +32 -29
- package/components/modals/LimitReachedModal.vue +4 -3
- package/components/modals/Resend.vue +4 -3
- package/components/modals/id/AuthModal.vue +5 -3
- package/components/modals/id/IdConfirmSuccessfulModal.vue +4 -3
- package/components/modals/id/IdLoginModal.vue +3 -2
- package/components/modals/id/IdRegistrationModal.vue +5 -3
- package/components/modals/id/IdTwoFactorModal.vue +3 -3
- package/components/navigation/bottom-navigation/ABottomNavigation.vue +3 -2
- package/components/navigation/footer/AFooter.vue +18 -18
- package/components/navigation/header/AHeader.vue +4 -2
- package/components/navigation/header/CardGallery.vue +5 -4
- package/components/navigation/header/HeaderLink.vue +9 -8
- package/components/navigation/mobile-navigation/AMobileNavigation.vue +3 -3
- package/components/navigation/side-navigation/ASideNavigation.vue +23 -21
- package/composables/useHeaderNavigationLinks.ts +54 -56
- package/composables/useUrls.ts +20 -0
- package/package.json +1 -1
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { AIconArrowCircleDown, AIconGlobe, AIconId, AIconArrowSideUp } from '#components'
|
|
3
3
|
import { PAGES } from '#adata-ui/shared/constans/pages'
|
|
4
4
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
5
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
5
6
|
|
|
6
|
-
const
|
|
7
|
+
const urls = useUrls()
|
|
7
8
|
const { t, locale } = useI18n()
|
|
8
9
|
const colorMode = useColorMode()
|
|
9
10
|
const computedColorMode = computed(() => colorMode.value)
|
|
@@ -13,21 +14,21 @@ const items = computed(()=>{
|
|
|
13
14
|
{
|
|
14
15
|
title: 'header.products.galleryCards.unload.title',
|
|
15
16
|
subtitle: 'header.products.galleryCards.unload.subtitle',
|
|
16
|
-
to: buildLocalizedUrl(locale,
|
|
17
|
+
to: buildLocalizedUrl(locale, urls.pk, PAGES.pk.unload),
|
|
17
18
|
image: '/header/unload.webp',
|
|
18
19
|
icon: AIconArrowCircleDown,
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
title: 'header.products.galleryCards.compliance.title',
|
|
22
23
|
subtitle: 'header.products.galleryCards.compliance.subtitle',
|
|
23
|
-
to: buildLocalizedUrl(locale,
|
|
24
|
+
to: buildLocalizedUrl(locale, urls.compliance, PAGES.compliance.l),
|
|
24
25
|
image: '/header/compliance.webp',
|
|
25
26
|
icon: AIconId,
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
title: 'header.products.galleryCards.ved.title',
|
|
29
30
|
subtitle: 'header.products.galleryCards.ved.subtitle',
|
|
30
|
-
to: buildLocalizedUrl(locale,
|
|
31
|
+
to: buildLocalizedUrl(locale, urls.tnved),
|
|
31
32
|
image: '/header/ved.webp',
|
|
32
33
|
icon: AIconGlobe,
|
|
33
34
|
},
|
|
@@ -6,26 +6,27 @@ import ProductMenu from '#adata-ui/components/navigation/header/ProductMenu.vue'
|
|
|
6
6
|
|
|
7
7
|
import ContactMenu from '#adata-ui/components/navigation/header/ContactMenu.vue'
|
|
8
8
|
import { buildLocalizedUrl } from '#adata-ui/utils/localizedNavigation'
|
|
9
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
9
10
|
|
|
10
|
-
const {
|
|
11
|
+
const { landing } = useUrls()
|
|
11
12
|
const { t, locale } = useI18n()
|
|
12
13
|
|
|
13
14
|
const navs: any = [
|
|
14
15
|
{
|
|
15
16
|
label: 'header.navs.products',
|
|
16
|
-
to:
|
|
17
|
+
to: landing + PAGES.totalServices
|
|
17
18
|
},
|
|
18
19
|
{
|
|
19
20
|
label: 'header.navs.contacts',
|
|
20
|
-
to:
|
|
21
|
+
to: landing + PAGES.contacts
|
|
21
22
|
},
|
|
22
23
|
{
|
|
23
24
|
label: 'header.navs.tariffs',
|
|
24
|
-
to:
|
|
25
|
+
to: landing + PAGES.tariffs
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
label: 'header.navs.api',
|
|
28
|
-
to:
|
|
29
|
+
to: landing + PAGES.api
|
|
29
30
|
}
|
|
30
31
|
]
|
|
31
32
|
|
|
@@ -51,9 +52,9 @@ const currentMenuToShow = (index) => {
|
|
|
51
52
|
}
|
|
52
53
|
const toggleMenu = (index: number) => {
|
|
53
54
|
if (index === 2) {
|
|
54
|
-
window.open(buildLocalizedUrl(locale,
|
|
55
|
+
window.open(buildLocalizedUrl(locale, landing, PAGES.tariffs), '_blank')
|
|
55
56
|
} else if (index === 3) {
|
|
56
|
-
window.open(buildLocalizedUrl(locale,
|
|
57
|
+
window.open(buildLocalizedUrl(locale, landing, PAGES.api), '_blank')
|
|
57
58
|
} else {
|
|
58
59
|
currentMenu.value = currentMenuToShow(index)
|
|
59
60
|
const prev = currentIndex.value
|
|
@@ -174,7 +175,7 @@ watch(
|
|
|
174
175
|
v-show="show"
|
|
175
176
|
:animation="forward ? 'next' : 'prev'"
|
|
176
177
|
:index="currentIndex"
|
|
177
|
-
:url="buildLocalizedUrl(locale,
|
|
178
|
+
:url="buildLocalizedUrl(locale, landing, PAGES.contacts)"
|
|
178
179
|
@outer-click="closeMenu(true)"
|
|
179
180
|
@mouse-over="closeMenu"
|
|
180
181
|
/>
|
|
@@ -7,6 +7,7 @@ import ProfileMenu from '#adata-ui/components/navigation/header/ProfileMenu.vue'
|
|
|
7
7
|
import type { ProjectKeys } from '#adata-ui/components/navigation/header/types'
|
|
8
8
|
import { useCurrentModule } from '#adata-ui/composables/projectState'
|
|
9
9
|
import AModal from "#adata-ui/components/overlays/modal/AModal.vue";
|
|
10
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
10
11
|
|
|
11
12
|
interface Props {
|
|
12
13
|
replenish?: string
|
|
@@ -31,8 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
31
32
|
})
|
|
32
33
|
const emit = defineEmits(['logout'])
|
|
33
34
|
useCurrentModule().value = props.module
|
|
34
|
-
const
|
|
35
|
-
const landingUrl = appConfig.myLayer.landingUrl
|
|
35
|
+
const { landing } = useUrls()
|
|
36
36
|
const activeModule = ref<string | null>(null)
|
|
37
37
|
const isMain = ref(false)
|
|
38
38
|
const isContacts = ref(false)
|
|
@@ -62,7 +62,7 @@ watch(activeModule, (e) => {
|
|
|
62
62
|
} else if (e === 'profile') {
|
|
63
63
|
isProfile.value = true
|
|
64
64
|
} else if (e === 'tariff') {
|
|
65
|
-
navigateTo(`${
|
|
65
|
+
navigateTo(`${landing}/tariffs`, { external: true })
|
|
66
66
|
}
|
|
67
67
|
activeModule.value = ''
|
|
68
68
|
})
|
|
@@ -24,6 +24,7 @@ import IconMedal from "#adata-ui/icons/medal.vue";
|
|
|
24
24
|
|
|
25
25
|
import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock'
|
|
26
26
|
import {PAGES} from "#adata-ui/shared/constans/pages";
|
|
27
|
+
import { useUrls } from '#adata-ui/composables/useUrls'
|
|
27
28
|
|
|
28
29
|
type Modules = 'counterparty' | 'work' | 'tender' | 'fines' | 'analytics'
|
|
29
30
|
|
|
@@ -43,6 +44,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
43
44
|
zIndex: 'auto'
|
|
44
45
|
})
|
|
45
46
|
const { myLayer }: any = useAppConfig()
|
|
47
|
+
const urls = useUrls()
|
|
46
48
|
|
|
47
49
|
const activeModule = ref<Modules | null>(null)
|
|
48
50
|
const bottom = ref<HTMLElement | null>(null)
|
|
@@ -98,37 +100,37 @@ const sideLinks = {
|
|
|
98
100
|
{
|
|
99
101
|
icon: IconSearch,
|
|
100
102
|
label: "Проверка контрагентов",
|
|
101
|
-
link:
|
|
103
|
+
link: urls.pk + PAGES.pk.main
|
|
102
104
|
},
|
|
103
105
|
{
|
|
104
106
|
icon: IconScales,
|
|
105
107
|
label: "Сравнение контрагентов",
|
|
106
|
-
link: myLayer.counterParty ?
|
|
108
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.compare : urls.pk + PAGES.pk.compare
|
|
107
109
|
},
|
|
108
110
|
{
|
|
109
111
|
icon: IconLink,
|
|
110
112
|
label: "Косвенные связи",
|
|
111
|
-
link: myLayer.counterParty ?
|
|
113
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + '/search-connections/check' : urls.pk + PAGES.pk.connections
|
|
112
114
|
},
|
|
113
115
|
{
|
|
114
116
|
icon: IconUsers,
|
|
115
117
|
label: "Массовая проверка",
|
|
116
|
-
link: myLayer.counterParty ?
|
|
118
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.employees : urls.pk + PAGES.pk.employees
|
|
117
119
|
},
|
|
118
120
|
{
|
|
119
121
|
icon: IconGlobe,
|
|
120
122
|
label: "Зарубежные контрагенты",
|
|
121
|
-
link:
|
|
123
|
+
link: urls.pk + PAGES.pk.foreign
|
|
122
124
|
},
|
|
123
125
|
{
|
|
124
126
|
icon: IconBlock,
|
|
125
127
|
label: "Санкции",
|
|
126
|
-
link: myLayer.counterParty ?
|
|
128
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.sanctions : urls.pk + PAGES.pk.sanctions
|
|
127
129
|
},
|
|
128
130
|
{
|
|
129
131
|
icon: IconDollar,
|
|
130
132
|
label: "Офшоры",
|
|
131
|
-
link: myLayer.counterParty ?
|
|
133
|
+
link: myLayer.counterParty ? urls.pk + myLayer.counterParty + PAGES.pk.offshore : urls.pk + PAGES.pk.offshore
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
icon: IconDocument,
|
|
@@ -138,80 +140,80 @@ const sideLinks = {
|
|
|
138
140
|
{
|
|
139
141
|
icon: IconArrowCircle,
|
|
140
142
|
label: "Выгрузка данных",
|
|
141
|
-
link:
|
|
143
|
+
link: urls.pk + PAGES.pk.unload
|
|
142
144
|
}
|
|
143
145
|
],
|
|
144
146
|
work: [
|
|
145
147
|
{
|
|
146
148
|
icon: IconWork,
|
|
147
149
|
label: "Вакансии",
|
|
148
|
-
link:
|
|
150
|
+
link: urls.work + PAGES.work.vacancy
|
|
149
151
|
},
|
|
150
152
|
{
|
|
151
153
|
icon: IconDocument,
|
|
152
154
|
label: "Резюме",
|
|
153
|
-
link:
|
|
155
|
+
link: urls.work + PAGES.work.summary
|
|
154
156
|
},
|
|
155
157
|
],
|
|
156
158
|
tender: [
|
|
157
159
|
{
|
|
158
160
|
icon: IconSearch,
|
|
159
161
|
label: "Поиск тендеров",
|
|
160
|
-
link:
|
|
162
|
+
link: urls.tender + PAGES.tender.main
|
|
161
163
|
},
|
|
162
164
|
{
|
|
163
165
|
icon: IconFile,
|
|
164
166
|
label: "Поиск договоров",
|
|
165
|
-
link:
|
|
167
|
+
link: urls.tender + PAGES.tender.contracts
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
icon: IconCheck,
|
|
169
171
|
label: "Планы закупок",
|
|
170
|
-
link:
|
|
172
|
+
link: urls.tender + PAGES.tender.plans
|
|
171
173
|
}
|
|
172
174
|
],
|
|
173
175
|
fines: [
|
|
174
176
|
{
|
|
175
177
|
icon: IconCheckCircle,
|
|
176
178
|
label: "Проверка штрафов",
|
|
177
|
-
link:
|
|
179
|
+
link: urls.avto + PAGES.fines.main
|
|
178
180
|
},
|
|
179
181
|
{
|
|
180
182
|
icon: IconCar,
|
|
181
183
|
label: "Проверка авто",
|
|
182
|
-
link:
|
|
184
|
+
link: urls.avto + PAGES.fines.avto
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
187
|
icon: IconTruck,
|
|
186
188
|
label: "Массовая проверка авто",
|
|
187
|
-
link:
|
|
189
|
+
link: urls.avto + PAGES.fines.bulk
|
|
188
190
|
}
|
|
189
191
|
],
|
|
190
192
|
analytics: [
|
|
191
193
|
{
|
|
192
194
|
icon: IconSearch,
|
|
193
195
|
label: "Поиск клиентов",
|
|
194
|
-
link:
|
|
196
|
+
link: urls.analytics + PAGES.analytics.clients
|
|
195
197
|
},
|
|
196
198
|
{
|
|
197
199
|
icon: IconCheck,
|
|
198
200
|
label: "Анализ закупок",
|
|
199
|
-
link:
|
|
201
|
+
link: urls.analytics + PAGES.analytics.analysis
|
|
200
202
|
},
|
|
201
203
|
{
|
|
202
204
|
icon: IconArrowGraph,
|
|
203
205
|
label: "Индекс деловой активности",
|
|
204
|
-
link:
|
|
206
|
+
link: urls.analytics + PAGES.analytics.index
|
|
205
207
|
},
|
|
206
208
|
{
|
|
207
209
|
icon: IconCompany,
|
|
208
210
|
label: "Субьекты бизнеса",
|
|
209
|
-
link:
|
|
211
|
+
link: urls.analytics + PAGES.analytics.business
|
|
210
212
|
},
|
|
211
213
|
{
|
|
212
214
|
icon: IconMedal,
|
|
213
215
|
label: "Рейтинг налогоплательщиков",
|
|
214
|
-
link:
|
|
216
|
+
link: urls.analytics + PAGES.analytics.rating
|
|
215
217
|
}
|
|
216
218
|
],
|
|
217
219
|
}
|
|
@@ -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
|
|
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,
|
|
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:
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
216
|
+
to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.main)
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
title: t('header.products.fea.items.i.t'),
|
|
220
220
|
subtitle: t('header.products.fea.items.i.st'),
|
|
221
221
|
icon: IconHandshake,
|
|
222
|
-
to: buildLocalizedUrl(locale,
|
|
222
|
+
to: buildLocalizedUrl(locale, urls.tnved, PAGES.fea.t)
|
|
223
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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:
|
|
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:
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
401
|
+
to: buildLocalizedUrl(locale.value, urls.landing, PAGES.allServices)
|
|
404
402
|
},
|
|
405
403
|
]
|
|
406
404
|
}
|