adata-ui 3.1.70 → 3.1.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.
- package/dist/module.json +1 -1
- package/dist/runtime/components/modals/TokenTimeoutContent.vue +38 -0
- package/dist/runtime/components/modals/TokenTimeoutContent.vue.d.ts +6 -0
- package/dist/runtime/components/modals/id/IdLoginModal.vue +14 -8
- package/dist/runtime/i18n/i18n.config.d.ts +18 -0
- package/dist/runtime/lang/en.js +8 -2
- package/dist/runtime/lang/kk.js +8 -2
- package/dist/runtime/lang/ru.d.ts +6 -0
- package/dist/runtime/lang/ru.js +8 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import AButton from "#adata-ui/components/button/Button.vue";
|
|
3
|
+
import { useI18n, useIdModals } from "#imports";
|
|
4
|
+
const emit = defineEmits(["close"]);
|
|
5
|
+
const { t } = useI18n();
|
|
6
|
+
const { loginModal } = useIdModals();
|
|
7
|
+
function login() {
|
|
8
|
+
emit("close");
|
|
9
|
+
loginModal.value = true;
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div class="flex flex-col justify-center items-center gap-5">
|
|
15
|
+
<h1 class="font-bold text-2xl text-center">
|
|
16
|
+
{{ t("modals.token_timeout.title") }}
|
|
17
|
+
</h1>
|
|
18
|
+
<ill-info />
|
|
19
|
+
<p class="text-sm text-center">
|
|
20
|
+
{{ t("modals.token_timeout.info") }}
|
|
21
|
+
</p>
|
|
22
|
+
<div class="flex gap-2 items-center w-full">
|
|
23
|
+
<a-button
|
|
24
|
+
view="outline"
|
|
25
|
+
class="w-full font-semibold"
|
|
26
|
+
@click="emit('close')"
|
|
27
|
+
>
|
|
28
|
+
{{ t("modals.buttons.close") }}
|
|
29
|
+
</a-button>
|
|
30
|
+
<a-button
|
|
31
|
+
class="w-full font-semibold"
|
|
32
|
+
@click="login"
|
|
33
|
+
>
|
|
34
|
+
{{ t("modals.buttons.enter") }}
|
|
35
|
+
</a-button>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
close: (...args: any[]) => void;
|
|
3
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -11,6 +11,9 @@ const { commonAuth } = useAppConfig();
|
|
|
11
11
|
const { t, locale } = useI18n();
|
|
12
12
|
const { pk, landing } = useUrls();
|
|
13
13
|
const route = useRoute();
|
|
14
|
+
const appConfig = useAppConfig();
|
|
15
|
+
const mode = appConfig.adataUI.mode;
|
|
16
|
+
const COOKIE_DOMAIN = `.${mode}.kz`;
|
|
14
17
|
const regex = /^\/counterparty\/main\/company\/\d+\/basic-info$/;
|
|
15
18
|
const { loginModal, registrationModal, recoveryModal, confirmAccountOtpModal, twoFactorModal, intermediateState } = useIdModals();
|
|
16
19
|
const authApiURL = commonAuth.authApiURL;
|
|
@@ -31,6 +34,7 @@ function getError(path) {
|
|
|
31
34
|
function savePassAndLogin(form2) {
|
|
32
35
|
const { username, password } = form2;
|
|
33
36
|
const cookieOptions = {
|
|
37
|
+
domain: COOKIE_DOMAIN,
|
|
34
38
|
expires: rememberMe.value ? new Date(Date.now() + 14 * 24 * 60 * 60 * 1e3) : void 0
|
|
35
39
|
// Срок действия 14 дней
|
|
36
40
|
};
|
|
@@ -38,13 +42,14 @@ function savePassAndLogin(form2) {
|
|
|
38
42
|
useCookie("password", cookieOptions).value = password;
|
|
39
43
|
}
|
|
40
44
|
function clearAuthCookie() {
|
|
41
|
-
|
|
42
|
-
useCookie("
|
|
45
|
+
const options = { domain: COOKIE_DOMAIN };
|
|
46
|
+
useCookie("username", options).value = null;
|
|
47
|
+
useCookie("password", options).value = null;
|
|
43
48
|
}
|
|
44
49
|
const loading = ref(false);
|
|
45
50
|
const form = reactive({
|
|
46
|
-
username: useCookie("username").value || "",
|
|
47
|
-
password: useCookie("password").value || ""
|
|
51
|
+
username: useCookie("username", { domain: COOKIE_DOMAIN }).value || "",
|
|
52
|
+
password: useCookie("password", { domain: COOKIE_DOMAIN }).value || ""
|
|
48
53
|
});
|
|
49
54
|
const rememberMe = ref(false);
|
|
50
55
|
async function submit() {
|
|
@@ -107,7 +112,7 @@ async function submit() {
|
|
|
107
112
|
const hostname = location.hostname.split(".").reverse();
|
|
108
113
|
useCookie("accessToken", {
|
|
109
114
|
maxAge: expire_in,
|
|
110
|
-
domain:
|
|
115
|
+
domain: COOKIE_DOMAIN,
|
|
111
116
|
path: "/",
|
|
112
117
|
secure: true
|
|
113
118
|
}).value = access_token;
|
|
@@ -142,8 +147,8 @@ async function submit() {
|
|
|
142
147
|
}
|
|
143
148
|
}
|
|
144
149
|
function authWithSocial(social) {
|
|
145
|
-
const
|
|
146
|
-
document.location.replace(`https://auth.${
|
|
150
|
+
const mode2 = authApiURL.includes("adata") ? "adata" : "adtdev";
|
|
151
|
+
document.location.replace(`https://auth.${mode2}.kz/api/login/social?source=${social}`);
|
|
147
152
|
}
|
|
148
153
|
function onRegister() {
|
|
149
154
|
loginModal.value = false;
|
|
@@ -158,7 +163,8 @@ function toTariffs() {
|
|
|
158
163
|
});
|
|
159
164
|
}
|
|
160
165
|
onMounted(() => {
|
|
161
|
-
|
|
166
|
+
const options = { domain: COOKIE_DOMAIN };
|
|
167
|
+
rememberMe.value = !!useCookie("username", options).value && !!useCookie("password", options).value;
|
|
162
168
|
});
|
|
163
169
|
function handleEnter(e) {
|
|
164
170
|
if (e.key === "Enter") {
|
|
@@ -645,6 +645,7 @@ declare const _default: {
|
|
|
645
645
|
title: string;
|
|
646
646
|
info: string;
|
|
647
647
|
enter_sum: string;
|
|
648
|
+
error: string;
|
|
648
649
|
};
|
|
649
650
|
low_balance: {
|
|
650
651
|
title: string;
|
|
@@ -660,6 +661,10 @@ declare const _default: {
|
|
|
660
661
|
title: string;
|
|
661
662
|
info: string;
|
|
662
663
|
};
|
|
664
|
+
token_timeout: {
|
|
665
|
+
title: string;
|
|
666
|
+
info: string;
|
|
667
|
+
};
|
|
663
668
|
buttons: {
|
|
664
669
|
close: string;
|
|
665
670
|
back: string;
|
|
@@ -672,6 +677,7 @@ declare const _default: {
|
|
|
672
677
|
example: string;
|
|
673
678
|
toMain: string;
|
|
674
679
|
goToKaspi: string;
|
|
680
|
+
enter: string;
|
|
675
681
|
};
|
|
676
682
|
submit_application_modal: {
|
|
677
683
|
title: string;
|
|
@@ -1419,6 +1425,7 @@ declare const _default: {
|
|
|
1419
1425
|
title: string;
|
|
1420
1426
|
info: string;
|
|
1421
1427
|
enter_sum: string;
|
|
1428
|
+
error: string;
|
|
1422
1429
|
};
|
|
1423
1430
|
low_balance: {
|
|
1424
1431
|
title: string;
|
|
@@ -1434,6 +1441,10 @@ declare const _default: {
|
|
|
1434
1441
|
title: string;
|
|
1435
1442
|
info: string;
|
|
1436
1443
|
};
|
|
1444
|
+
token_timeout: {
|
|
1445
|
+
title: string;
|
|
1446
|
+
info: string;
|
|
1447
|
+
};
|
|
1437
1448
|
buttons: {
|
|
1438
1449
|
close: string;
|
|
1439
1450
|
back: string;
|
|
@@ -1446,6 +1457,7 @@ declare const _default: {
|
|
|
1446
1457
|
example: string;
|
|
1447
1458
|
toMain: string;
|
|
1448
1459
|
goToKaspi: string;
|
|
1460
|
+
enter: string;
|
|
1449
1461
|
};
|
|
1450
1462
|
submit_application_modal: {
|
|
1451
1463
|
title: string;
|
|
@@ -2193,6 +2205,7 @@ declare const _default: {
|
|
|
2193
2205
|
title: string;
|
|
2194
2206
|
info: string;
|
|
2195
2207
|
enter_sum: string;
|
|
2208
|
+
error: string;
|
|
2196
2209
|
};
|
|
2197
2210
|
low_balance: {
|
|
2198
2211
|
title: string;
|
|
@@ -2208,6 +2221,10 @@ declare const _default: {
|
|
|
2208
2221
|
title: string;
|
|
2209
2222
|
info: string;
|
|
2210
2223
|
};
|
|
2224
|
+
token_timeout: {
|
|
2225
|
+
title: string;
|
|
2226
|
+
info: string;
|
|
2227
|
+
};
|
|
2211
2228
|
buttons: {
|
|
2212
2229
|
close: string;
|
|
2213
2230
|
back: string;
|
|
@@ -2220,6 +2237,7 @@ declare const _default: {
|
|
|
2220
2237
|
example: string;
|
|
2221
2238
|
toMain: string;
|
|
2222
2239
|
goToKaspi: string;
|
|
2240
|
+
enter: string;
|
|
2223
2241
|
};
|
|
2224
2242
|
submit_application_modal: {
|
|
2225
2243
|
title: string;
|
package/dist/runtime/lang/en.js
CHANGED
|
@@ -642,7 +642,8 @@ const EnLocale = {
|
|
|
642
642
|
replenish_modal: {
|
|
643
643
|
title: "Top up balance",
|
|
644
644
|
info: "Funds will be credited in tenge.",
|
|
645
|
-
enter_sum: "Enter the amount"
|
|
645
|
+
enter_sum: "Enter the amount",
|
|
646
|
+
error: "Maximum amount \u2013 1 000 000 \u20B8"
|
|
646
647
|
},
|
|
647
648
|
low_balance: {
|
|
648
649
|
title: "Insufficient Funds",
|
|
@@ -658,6 +659,10 @@ const EnLocale = {
|
|
|
658
659
|
title: "No access",
|
|
659
660
|
info: "This functionality is unavailable"
|
|
660
661
|
},
|
|
662
|
+
token_timeout: {
|
|
663
|
+
title: "Information",
|
|
664
|
+
info: "For security reasons, you have been automatically logged out of your account"
|
|
665
|
+
},
|
|
661
666
|
buttons: {
|
|
662
667
|
close: "Close",
|
|
663
668
|
back: "Cancel",
|
|
@@ -669,7 +674,8 @@ const EnLocale = {
|
|
|
669
674
|
goTariffs: "Go to tariffs",
|
|
670
675
|
example: "View example",
|
|
671
676
|
toMain: "To Home",
|
|
672
|
-
goToKaspi: "Go to Kaspi.kz"
|
|
677
|
+
goToKaspi: "Go to Kaspi.kz",
|
|
678
|
+
enter: "Log in"
|
|
673
679
|
},
|
|
674
680
|
submit_application_modal: {
|
|
675
681
|
title: "Submit Application",
|
package/dist/runtime/lang/kk.js
CHANGED
|
@@ -642,7 +642,8 @@ const KkLocale = {
|
|
|
642
642
|
replenish_modal: {
|
|
643
643
|
title: "\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043B\u0442\u044B\u0440\u0443",
|
|
644
644
|
info: "\u049A\u0430\u0440\u0430\u0436\u0430\u0442 \u0442\u0435\u04A3\u0433\u0435\u0434\u0435 \u0435\u0441\u0435\u043F\u0442\u0435\u043B\u0435\u0434\u0456.",
|
|
645
|
-
enter_sum: "\u0421\u043E\u043C\u0430\u043D\u044B \u0435\u043D\u0433\u0456\u0437\u0456\u04A3\u0456\u0437"
|
|
645
|
+
enter_sum: "\u0421\u043E\u043C\u0430\u043D\u044B \u0435\u043D\u0433\u0456\u0437\u0456\u04A3\u0456\u0437",
|
|
646
|
+
error: "\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u0434\u044B \u0441\u043E\u043C\u0430 \u2013 1 000 000 \u20B8"
|
|
646
647
|
},
|
|
647
648
|
low_balance: {
|
|
648
649
|
title: "\u049A\u0430\u0440\u0430\u0436\u0430\u0442 \u0436\u0435\u0442\u043A\u0456\u043B\u0456\u043A\u0441\u0456\u0437",
|
|
@@ -658,6 +659,10 @@ const KkLocale = {
|
|
|
658
659
|
title: "\u049A\u043E\u043B \u0436\u0435\u0442\u0456\u043C\u0434\u0456\u043B\u0456\u043A \u0436\u043E\u049B",
|
|
659
660
|
info: "\u0411\u04B1\u043B \u0444\u0443\u043D\u043A\u0446\u0438\u044F \u049B\u043E\u043B \u0436\u0435\u0442\u0456\u043C\u0434\u0456 \u0435\u043C\u0435\u0441"
|
|
660
661
|
},
|
|
662
|
+
token_timeout: {
|
|
663
|
+
title: "\u0410\u049B\u043F\u0430\u0440\u0430\u0442",
|
|
664
|
+
info: "\u049A\u0430\u0443\u0456\u043F\u0441\u0456\u0437\u0434\u0456\u043A \u043C\u0430\u049B\u0441\u0430\u0442\u044B\u043D\u0434\u0430 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0442\u0430\u043D \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0442\u044B \u0442\u04AF\u0440\u0434\u0435 \u0448\u044B\u0493\u0430\u0440\u044B\u043B\u0434\u044B\u04A3\u044B\u0437"
|
|
665
|
+
},
|
|
661
666
|
buttons: {
|
|
662
667
|
close: "\u0416\u0430\u0431\u0443",
|
|
663
668
|
back: "\u0411\u0430\u0441 \u0442\u0430\u0440\u0442\u0443",
|
|
@@ -669,7 +674,8 @@ const KkLocale = {
|
|
|
669
674
|
goTariffs: "\u0422\u0430\u0440\u0438\u0444\u0442\u0435\u0440\u0433\u0435 \u04E9\u0442\u0443",
|
|
670
675
|
example: "\u041C\u044B\u0441\u0430\u043B\u0434\u044B \u043A\u04E9\u0440\u0443",
|
|
671
676
|
toMain: "\u0411\u0430\u0441\u0442\u044B \u0431\u0435\u0442\u043A\u0435",
|
|
672
|
-
goToKaspi: "Kaspi.kz-\u043A\u0435 \u04E9\u0442\u0443"
|
|
677
|
+
goToKaspi: "Kaspi.kz-\u043A\u0435 \u04E9\u0442\u0443",
|
|
678
|
+
enter: "\u041A\u0456\u0440\u0443"
|
|
673
679
|
},
|
|
674
680
|
submit_application_modal: {
|
|
675
681
|
title: "\u04E8\u0442\u0456\u043D\u0456\u043C \u0431\u0435\u0440\u0443",
|
|
@@ -639,6 +639,7 @@ declare const RuLocale: {
|
|
|
639
639
|
title: string;
|
|
640
640
|
info: string;
|
|
641
641
|
enter_sum: string;
|
|
642
|
+
error: string;
|
|
642
643
|
};
|
|
643
644
|
low_balance: {
|
|
644
645
|
title: string;
|
|
@@ -654,6 +655,10 @@ declare const RuLocale: {
|
|
|
654
655
|
title: string;
|
|
655
656
|
info: string;
|
|
656
657
|
};
|
|
658
|
+
token_timeout: {
|
|
659
|
+
title: string;
|
|
660
|
+
info: string;
|
|
661
|
+
};
|
|
657
662
|
buttons: {
|
|
658
663
|
close: string;
|
|
659
664
|
back: string;
|
|
@@ -666,6 +671,7 @@ declare const RuLocale: {
|
|
|
666
671
|
example: string;
|
|
667
672
|
toMain: string;
|
|
668
673
|
goToKaspi: string;
|
|
674
|
+
enter: string;
|
|
669
675
|
};
|
|
670
676
|
submit_application_modal: {
|
|
671
677
|
title: string;
|
package/dist/runtime/lang/ru.js
CHANGED
|
@@ -636,7 +636,8 @@ const RuLocale = {
|
|
|
636
636
|
replenish_modal: {
|
|
637
637
|
title: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0431\u0430\u043B\u0430\u043D\u0441\u0430",
|
|
638
638
|
info: "\u0417\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043F\u0440\u043E\u0438\u0437\u043E\u0439\u0434\u0435\u0442 \u0432 \u0442\u0435\u043D\u0433\u0435",
|
|
639
|
-
enter_sum: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443"
|
|
639
|
+
enter_sum: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0443\u043C\u043C\u0443",
|
|
640
|
+
error: "\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C - 1 000 000 \u20B8"
|
|
640
641
|
},
|
|
641
642
|
low_balance: {
|
|
642
643
|
title: "\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0441\u0440\u0435\u0434\u0441\u0442\u0432",
|
|
@@ -652,6 +653,10 @@ const RuLocale = {
|
|
|
652
653
|
title: "\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430",
|
|
653
654
|
info: "\u0414\u0430\u043D\u043D\u044B\u0439 \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D"
|
|
654
655
|
},
|
|
656
|
+
token_timeout: {
|
|
657
|
+
title: "\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",
|
|
658
|
+
info: "\u0412 \u0446\u0435\u043B\u044F\u0445 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0431\u044B\u043B \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u0430"
|
|
659
|
+
},
|
|
655
660
|
buttons: {
|
|
656
661
|
close: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C",
|
|
657
662
|
back: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",
|
|
@@ -663,7 +668,8 @@ const RuLocale = {
|
|
|
663
668
|
goTariffs: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0442\u0430\u0440\u0438\u0444\u044B",
|
|
664
669
|
example: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u043F\u0440\u0438\u043C\u0435\u0440",
|
|
665
670
|
toMain: "\u041D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E",
|
|
666
|
-
goToKaspi: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 Kaspi.kz"
|
|
671
|
+
goToKaspi: "\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 Kaspi.kz",
|
|
672
|
+
enter: "\u0412\u043E\u0439\u0442\u0438"
|
|
667
673
|
},
|
|
668
674
|
submit_application_modal: {
|
|
669
675
|
title: "\u041E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443",
|