adata-ui 2.1.12 → 2.1.14
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.
|
@@ -16,7 +16,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
16
16
|
moduleName: 'counterparty'
|
|
17
17
|
})
|
|
18
18
|
|
|
19
|
-
const { t } = useI18n()
|
|
19
|
+
const { t, locale } = useI18n()
|
|
20
20
|
|
|
21
21
|
interface ResponseData<DataResult> {
|
|
22
22
|
success: boolean
|
|
@@ -43,6 +43,9 @@ const systemMessage = ref(null)
|
|
|
43
43
|
const isOpenNotification = ref(false)
|
|
44
44
|
const message = useCookie('message')
|
|
45
45
|
|
|
46
|
+
const { myLayer } = useAppConfig()
|
|
47
|
+
const env = myLayer.mode
|
|
48
|
+
|
|
46
49
|
const mode = computed(() => {
|
|
47
50
|
if (props.moduleName === 'pk') {
|
|
48
51
|
return 'counterparty'
|
|
@@ -77,12 +80,22 @@ const computedClass = (state: string) =>
|
|
|
77
80
|
const fetchNotification = async () => {
|
|
78
81
|
try {
|
|
79
82
|
if (message.value === undefined) {
|
|
80
|
-
const link = `https://users.
|
|
83
|
+
const link = `https://users.${env}.kz/api/v1/system-messages/active-list/?module_name=${mode.value}`
|
|
81
84
|
const response = await fetch(link)
|
|
82
85
|
const { data } = await response.json()
|
|
83
86
|
|
|
84
|
-
if (data.details
|
|
85
|
-
|
|
87
|
+
if (data.details?.length) {
|
|
88
|
+
switch (locale.value) {
|
|
89
|
+
case 'ru':
|
|
90
|
+
systemMessage.value = data.details[0].message
|
|
91
|
+
break
|
|
92
|
+
case 'en':
|
|
93
|
+
systemMessage.value = data.details[0].message_en
|
|
94
|
+
break
|
|
95
|
+
case 'kk':
|
|
96
|
+
systemMessage.value = data.details[0].message_kz
|
|
97
|
+
break
|
|
98
|
+
}
|
|
86
99
|
isOpenNotification.value = true
|
|
87
100
|
}
|
|
88
101
|
}
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<svg width="
|
|
7
|
-
|
|
8
|
-
<path
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<path class="group-hover:fill-[#97134B]" d="M177.187 34.9354L177.89 36.9653C178.264 38.1867 178.713 38.974 179.238 39.3272C178.877 39.7536 178.426 40.0964 177.917 40.3313C177.408 40.5663 176.852 40.6877 176.291 40.6869C175.785 40.7237 175.284 40.5697 174.888 40.256C174.487 39.827 174.197 39.3078 174.043 38.7431L173.205 36.3525C173.1 35.9177 172.877 35.5194 172.56 35.2003C172.281 34.9961 171.94 34.8925 171.593 34.9066C171.18 34.9066 170.89 34.9162 170.723 34.9354V40.4667C169.309 40.6879 167.87 40.6879 166.457 40.4667V20.2054L166.654 20.0107H168.337C169.217 20.0107 169.833 20.2054 170.191 20.5948C170.548 20.9842 170.723 21.6609 170.723 22.6248V31.351H171.171C171.337 31.3511 171.499 31.3038 171.638 31.215C171.778 31.1261 171.889 30.9994 171.957 30.8499L173.418 28.0699C173.615 27.5859 173.958 27.1734 174.4 26.8881C174.841 26.6027 175.361 26.4582 175.888 26.474C176.433 26.474 177.245 26.4932 178.332 26.5283L178.499 26.7517L176.339 30.901C176.005 31.5559 175.513 32.1193 174.908 32.5416C175.45 32.7373 175.938 33.0556 176.334 33.4712C176.729 33.8868 177.022 34.3882 177.187 34.9354Z" fill="#97134B"/>
|
|
16
|
-
<path class="group-hover:fill-[#0CAFC0]" d="M47.0608 29.6089C46.9927 29.469 46.8861 29.351 46.7532 29.2685C46.6202 29.1861 46.4665 29.1425 46.3096 29.1428H44.0527C43.8474 29.1434 43.6497 29.2196 43.4982 29.3567C42.8575 29.9604 42.0961 30.4246 41.2631 30.7192C40.4301 31.0139 39.5441 31.1325 38.6619 31.0675C35.3862 30.8568 32.9423 28.4215 32.9778 25.3957C32.9965 24.2963 33.4525 23.2485 34.247 22.48C35.0414 21.7115 36.11 21.2843 37.2208 21.2912C37.6928 21.2989 38.1579 21.4047 38.5861 21.6015C39.0143 21.7983 39.396 22.0818 39.7066 22.4338C39.8545 22.6059 39.9781 22.797 40.0741 23.0019C40.1323 23.1706 40.1323 23.3536 40.0741 23.5222C39.9985 23.7172 39.8523 23.8774 39.6641 23.9718C39.4758 24.0661 39.2589 24.0879 39.0553 24.0329H39.0392C38.5134 23.8416 37.9365 23.8392 37.4092 24.0263C36.8819 24.2133 36.4378 24.5778 36.1543 25.056C35.8709 25.5343 35.7663 26.0959 35.8586 26.6428C35.951 27.1897 36.2346 27.6871 36.6598 28.0481C36.6922 28.0876 36.7315 28.1212 36.7758 28.147L36.8274 28.1789L36.8532 28.1981C36.8801 28.2296 36.913 28.2556 36.9499 28.2747C37.5377 28.6008 38.1963 28.7818 38.8698 28.8024C39.5433 28.8229 40.2119 28.6824 40.8189 28.3928C41.5423 28.0197 42.1646 27.4799 42.6331 26.8189C43.1016 26.1578 43.4028 25.395 43.5111 24.5946C43.6262 23.8319 43.572 23.0535 43.352 22.3137C43.1321 21.574 42.7517 20.8906 42.2375 20.3113C41.6186 19.6008 40.8547 19.0282 39.9961 18.631C39.1376 18.2338 38.2038 18.0211 37.2562 18.0068H37.1466C35.1698 18.0141 33.2748 18.7889 31.8689 20.1646C30.4629 21.5403 29.6583 23.4071 29.6279 25.3638C29.6194 26.1523 29.7192 26.9383 29.9245 27.7002C29.7794 27.6842 29.6344 27.6683 29.4893 27.6587C26.1426 27.4448 23.17 28.7949 20.9517 31.5175C20.8527 31.6386 20.7902 31.7849 20.7715 31.9396C20.7528 32.0943 20.7787 32.251 20.8461 32.3918C20.9135 32.5326 21.0197 32.6517 21.1525 32.7353C21.2853 32.8189 21.4392 32.8637 21.5966 32.8644H23.8535C24.0598 32.8644 24.2587 32.7881 24.4112 32.6506C25.0529 32.0434 25.8168 31.5772 26.6529 31.2824C27.4891 30.9876 28.3787 30.8709 29.2636 30.9398C32.5393 31.1505 34.98 33.5858 34.9477 36.6116C34.9266 37.7107 34.4686 38.7573 33.6731 39.5245C32.8777 40.2917 31.8088 40.7175 30.6983 40.7098C30.2268 40.7017 29.7622 40.5959 29.3346 40.399C28.907 40.2022 28.5258 39.9188 28.2157 39.5671C28.0667 39.3952 27.942 39.2041 27.845 38.999C27.7884 38.8301 27.7884 38.6476 27.845 38.4787C27.9206 38.2844 28.0662 38.1247 28.2537 38.0304C28.4413 37.9361 28.6575 37.9139 28.8606 37.968H28.8799C29.4054 38.1578 29.9814 38.1589 30.5077 37.9714C31.034 37.7838 31.4771 37.4194 31.7598 36.9416C32.0426 36.4639 32.147 35.903 32.055 35.3569C31.9629 34.8107 31.6802 34.3138 31.2561 33.9528C31.2267 33.9137 31.1893 33.8811 31.1465 33.8571L31.0884 33.822L31.0659 33.8028C31.0383 33.772 31.0056 33.7461 30.9691 33.7262C30.3811 33.4006 29.7224 33.2201 29.0489 33.2001C28.3754 33.1801 27.7069 33.3212 27.1002 33.6113C26.3756 33.9821 25.7524 34.5209 25.2836 35.1817C24.8149 35.8425 24.5145 36.6057 24.408 37.4063C24.2931 38.1687 24.3471 38.9468 24.5665 39.6865C24.7859 40.4262 25.1653 41.1097 25.6783 41.6896C26.2982 42.3998 27.0627 42.9723 27.9217 43.3694C28.7807 43.7666 29.7149 43.9795 30.6629 43.9941H30.7499C32.7267 43.9876 34.6218 43.213 36.0274 41.837C37.433 40.4611 38.2367 38.5938 38.2654 36.6371C38.2734 35.8488 38.1747 35.063 37.972 34.3007C38.1171 34.3007 38.2589 34.3358 38.404 34.3422C38.6297 34.3582 38.8554 34.3646 39.0779 34.3646C42.1537 34.3646 44.8813 33.0208 46.9448 30.4834C47.0449 30.363 47.1088 30.2172 47.1293 30.0626C47.1498 29.908 47.1261 29.7508 47.0608 29.6089Z" fill="#0CAFC0"/>
|
|
6
|
+
<svg width="87" height="26" viewBox="0 0 87 26" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<g clip-path="url(#clip0_19390_4334)">
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.004 0V4.56875H12.7871C9.1083 4.56875 5.98386 6.99778 4.94076 10.3386C2.85456 11.5349 1.13793 13.3001 0 15.4253V12.7871C0 5.73585 5.73586 0 12.7871 0H16.004ZM59.5613 19.9892V8.8433H64.4583V5.44413H59.5613V0.43771H55.3598V5.44655H52.9843V8.84575H55.3598V19.9916C55.3598 21.9636 55.8583 23.3884 56.8575 24.2661C57.8545 25.144 59.2915 25.5815 61.1685 25.5815H64.4583V22.1094H61.9005C61.047 22.1094 60.444 21.9441 60.0915 21.6159C59.7388 21.2876 59.5613 20.7454 59.5613 19.9892ZM17.3194 20.9544C18.1972 22.5252 19.4032 23.7433 20.9374 24.6089V24.6065C22.4717 25.4698 24.164 25.9025 26.0898 25.9025C28.0155 25.9025 29.7758 25.472 31.3708 24.6065C32.966 23.7433 34.2255 22.5179 35.1518 20.935C36.0783 19.3521 36.5403 17.5358 36.5403 15.4909C36.5403 13.446 36.088 11.6297 35.1883 10.0469C34.2863 8.46395 33.0558 7.2458 31.4973 6.39235C29.9388 5.5389 28.1953 5.11338 26.272 5.11338C24.3488 5.11338 22.6054 5.5389 21.0469 6.39235C19.4883 7.2458 18.258 8.46395 17.3559 10.0469C16.4538 11.6297 16.004 13.4193 16.004 15.4909C16.004 17.5625 16.4417 19.3837 17.3194 20.9544ZM31.388 19.2183C30.8043 20.242 30.0433 21.0103 29.1048 21.521V21.5185C28.1663 22.0316 27.162 22.2869 26.0898 22.2869C24.4072 22.2869 23.0139 21.696 21.9052 20.5143C20.7964 19.3351 20.242 17.6598 20.242 15.4909C20.242 14.0296 20.5119 12.7944 21.0469 11.7829C21.5818 10.7738 22.3064 10.0104 23.2206 9.49977C24.1348 8.98672 25.1293 8.73143 26.199 8.73143C27.269 8.73143 28.2683 8.98915 29.1948 9.49977C30.121 10.0104 30.8628 10.7714 31.4243 11.7829C31.986 12.792 32.2658 14.0296 32.2658 15.4909C32.2658 16.9522 31.9715 18.1947 31.388 19.2183ZM86.6018 17.0645H71.2178C71.3393 18.6717 71.935 19.9628 73.0073 20.9378C74.0795 21.9128 75.395 22.3992 76.9535 22.3992C79.1955 22.3992 80.7783 21.4606 81.7048 19.5859H86.2005C85.5903 21.4363 84.4888 22.9535 82.8938 24.1352C81.2988 25.317 79.3195 25.9077 76.956 25.9077C75.0303 25.9077 73.3088 25.475 71.7843 24.6118C70.2623 23.7462 69.0683 22.528 68.2028 20.9573C67.337 19.3866 66.9068 17.5654 66.9068 15.4937C66.9068 13.4221 67.3275 11.601 68.1663 10.0302C69.0075 8.4595 70.1893 7.2462 71.7113 6.39517C73.2335 5.54175 74.9818 5.11622 76.956 5.11622C78.9303 5.11622 80.5498 5.52957 82.0353 6.3587C83.521 7.18785 84.6785 8.3501 85.5075 9.84787C86.3343 11.3457 86.75 13.0696 86.75 15.0196C86.75 15.7758 86.7013 16.4566 86.604 17.0669L86.6018 17.0645ZM82.4 13.7017C82.3758 12.1675 81.8263 10.9372 80.7565 10.0108C79.6843 9.0844 78.3565 8.62243 76.7738 8.62243C75.3368 8.62243 74.1063 9.07952 73.0828 9.99378C72.059 10.908 71.4513 12.1432 71.2568 13.7017H82.4ZM12.7871 14.7273V10.161C12.2765 10.161 11.7756 10.1902 11.282 10.2485C8.74358 10.5476 6.42881 11.5931 4.56631 13.1614C2.71353 14.7176 1.31056 16.7916 0.573828 19.1574C0.201812 20.3562 0 21.6278 0 22.9481V25.5765H4.56631V22.9481C4.56631 18.4158 8.25728 14.7273 12.7871 14.7273ZM50.864 5.4438V8.82843C47.8043 8.82843 45.2615 11.0975 44.834 14.0427V25.579H40.6688V5.44387H44.834V7.61575C46.2018 6.48285 47.8945 5.72735 49.748 5.50945C50.1125 5.4657 50.4848 5.4438 50.864 5.4438Z" fill="#A31551"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<clipPath id="clip0_19390_4334">
|
|
12
|
+
<rect width="86.75" height="26" fill="white"/>
|
|
13
|
+
</clipPath>
|
|
14
|
+
</defs>
|
|
17
15
|
</svg>
|
|
18
16
|
</template>
|
|
19
17
|
|