adata-ui 3.1.60 → 3.1.61
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 +1 -1
- package/dist/runtime/components/NewFooter.vue +1 -0
- package/dist/runtime/components/{MobileServices.vue → PkMobileServices.vue} +11 -19
- package/dist/runtime/composables/useNavigationLInks.js +1 -1
- package/dist/runtime/shared/constants/pages.d.ts +3 -0
- package/dist/runtime/shared/constants/pages.js +3 -0
- package/dist/runtime/utils/useUrls.d.ts +1 -0
- package/dist/runtime/utils/useUrls.js +1 -0
- package/package.json +1 -1
- /package/dist/runtime/components/{MobileServices.vue.d.ts → PkMobileServices.vue.d.ts} +0 -0
package/dist/module.json
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { PAGES } from "#adata-ui/shared/constants/pages";
|
|
3
2
|
import { useServicesLinks } from "#adata-ui/composables/useNavigationLInks";
|
|
4
|
-
import {
|
|
5
|
-
import { useUrls } from "#adata-ui/utils/useUrls";
|
|
6
|
-
import { buildLocalizedUrl } from "#adata-ui/utils/localizedNavigation";
|
|
3
|
+
import { onMounted, ref, useRoute } from "#imports";
|
|
7
4
|
const services = useServicesLinks();
|
|
8
5
|
const route = useRoute();
|
|
9
|
-
const localePath = useLocalePath();
|
|
10
|
-
const { landing } = useUrls();
|
|
11
|
-
const { locale } = useI18n();
|
|
12
6
|
const blockStyles = [
|
|
13
7
|
"first-border-gradient",
|
|
14
8
|
"second-border-gradient",
|
|
@@ -20,17 +14,14 @@ const blockStyles = [
|
|
|
20
14
|
"eighth-border-gradient",
|
|
21
15
|
"ninth-border-gradient"
|
|
22
16
|
];
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
PAGES.pk.sanctions,
|
|
32
|
-
buildLocalizedUrl(locale, landing, "/all-services")
|
|
33
|
-
];
|
|
17
|
+
const hostname = ref("");
|
|
18
|
+
onMounted(() => {
|
|
19
|
+
hostname.value = window.location.hostname;
|
|
20
|
+
});
|
|
21
|
+
const isActive = (to) => {
|
|
22
|
+
const url = new URL(to);
|
|
23
|
+
return url.hostname === hostname.value && url.pathname === route.path;
|
|
24
|
+
};
|
|
34
25
|
</script>
|
|
35
26
|
|
|
36
27
|
<template>
|
|
@@ -45,7 +36,7 @@ const linkByIndex = [
|
|
|
45
36
|
class="size-10 p-2 rounded-lg"
|
|
46
37
|
:class="[
|
|
47
38
|
'bg-deepblue-900/5 dark:bg-gray-200/5',
|
|
48
|
-
{ '!bg-blue-700 text-white dark:!bg-blue-500
|
|
39
|
+
{ '!bg-blue-700 text-white dark:!bg-blue-500': isActive(service.to) }
|
|
49
40
|
]"
|
|
50
41
|
>
|
|
51
42
|
<component
|
|
@@ -56,6 +47,7 @@ const linkByIndex = [
|
|
|
56
47
|
<p class="text-xs text-center">
|
|
57
48
|
{{ service.title }}
|
|
58
49
|
</p>
|
|
50
|
+
|
|
59
51
|
</nuxt-link-locale>
|
|
60
52
|
</div>
|
|
61
53
|
</template>
|
|
@@ -43,7 +43,7 @@ export const useServicesLinks = () => {
|
|
|
43
43
|
{
|
|
44
44
|
title: t("header.products.counterparties.items.unloading.title"),
|
|
45
45
|
icon: IconArrowSquareDown,
|
|
46
|
-
to: buildLocalizedUrl(locale.value, urls.
|
|
46
|
+
to: buildLocalizedUrl(locale.value, urls.export, PAGES.export.main)
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
title: t("header.products.counterparties.items.compare.title"),
|
package/package.json
CHANGED
|
File without changes
|