adata-ui 2.0.21 → 2.0.23
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/.editorconfig +12 -12
- package/app.config.ts +3 -2
- package/components/elements/feature-description/AFeatureDescription.vue +2 -2
- package/components/modals/SubmitApplicationModal.vue +3 -0
- package/components/modals/id/AuthModal.vue +76 -0
- package/components/modals/id/IdEmailModal.vue +29 -0
- package/components/{forms/login/ALogin.vue → modals/id/IdLoginModal.vue} +39 -39
- package/components/modals/id/IdModals.vue +19 -0
- package/components/modals/id/IdNewPasswordModal.vue +137 -0
- package/components/modals/id/IdPasswordSuccessfulModal.vue +26 -0
- package/components/modals/id/IdRecoveryModal.vue +114 -0
- package/components/{forms/registration/ARegistration.vue → modals/id/IdRegistrationModal.vue} +14 -17
- package/components/modals/two-factor/two-factor.vue +9 -8
- package/components/navigation/bottom-navigation/ABottomNavigation.vue +33 -29
- package/components/navigation/header/AHeader.vue +32 -39
- package/composables/modalsState.ts +0 -3
- package/composables/useHeaderNavigationLinks.ts +22 -22
- package/composables/useIdModals.ts +17 -0
- package/eslint.config.mjs +45 -0
- package/lang/ru.ts +139 -107
- package/nuxt.config.ts +15 -7
- package/package.json +6 -5
- package/.eslintrc.cjs +0 -4
- package/.prettierignore +0 -24
- package/.prettierrc +0 -10
- package/components/modals/AuthModal.vue +0 -50
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adata-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.23",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "nuxi dev .playground",
|
|
@@ -9,24 +9,25 @@
|
|
|
9
9
|
"generate": "nuxt generate .playground",
|
|
10
10
|
"preview": "nuxt preview .playground",
|
|
11
11
|
"lint": "eslint .",
|
|
12
|
+
"lint:fix": "eslint . --fix",
|
|
12
13
|
"type-check": "vue-tsc --noEmit",
|
|
13
14
|
"postinstall": "nuxt prepare .playground",
|
|
14
15
|
"test": "vitest --ui",
|
|
15
16
|
"coverage": "vitest run --coverage"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
+
"@antfu/eslint-config": "^5.2.1",
|
|
20
|
+
"@nuxt/eslint": "^1.9.0",
|
|
19
21
|
"@nuxt/test-utils": "^3.19.2",
|
|
20
22
|
"@types/body-scroll-lock": "^3.1.2",
|
|
21
23
|
"@types/lodash-es": "^4.17.12",
|
|
22
24
|
"@vitest/coverage-v8": "^1.6.1",
|
|
23
25
|
"@vitest/ui": "^1.6.1",
|
|
24
26
|
"@vue/test-utils": "^2.4.6",
|
|
25
|
-
"eslint": "^9.
|
|
27
|
+
"eslint": "^9.33.0",
|
|
28
|
+
"eslint-plugin-tailwindcss": "^3.18.2",
|
|
26
29
|
"histoire": "^0.17.17",
|
|
27
30
|
"nuxt": "^3.18.1",
|
|
28
|
-
"prettier": "^3.6.2",
|
|
29
|
-
"prettier-plugin-tailwindcss": "^0.5.14",
|
|
30
31
|
"sass-embedded": "^1.90.0",
|
|
31
32
|
"typescript": "^5.9.2",
|
|
32
33
|
"vitest": "^1.6.1",
|
package/.eslintrc.cjs
DELETED
package/.prettierignore
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Nuxt dev/build outputs
|
|
2
|
-
.output
|
|
3
|
-
.data
|
|
4
|
-
.nuxt
|
|
5
|
-
.nitro
|
|
6
|
-
.cache
|
|
7
|
-
dist
|
|
8
|
-
|
|
9
|
-
# Node dependencies
|
|
10
|
-
node_modules
|
|
11
|
-
|
|
12
|
-
# Logs
|
|
13
|
-
logs
|
|
14
|
-
*.log
|
|
15
|
-
|
|
16
|
-
# Misc
|
|
17
|
-
.DS_Store
|
|
18
|
-
.fleet
|
|
19
|
-
.idea
|
|
20
|
-
|
|
21
|
-
# Local env files
|
|
22
|
-
.env
|
|
23
|
-
.env.*
|
|
24
|
-
!.env.example
|
package/.prettierrc
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
const {t} = useI18n()
|
|
4
|
-
const isOpen = useAuthModal()
|
|
5
|
-
const appConfig = useAppConfig()
|
|
6
|
-
const loginUrl = appConfig.myLayer.loginUrl
|
|
7
|
-
|
|
8
|
-
const emit = defineEmits<{
|
|
9
|
-
(e: 'close'): void
|
|
10
|
-
}>()
|
|
11
|
-
|
|
12
|
-
const goAuth = () => {
|
|
13
|
-
if (window) {
|
|
14
|
-
let fullPath = encodeURIComponent(window.location.toString())
|
|
15
|
-
if (fullPath.includes('basic-info')) {
|
|
16
|
-
fullPath = fullPath.replace('%2Fcounterparty%2Fmain', '').replace('%2Fbasic-info', '')
|
|
17
|
-
}
|
|
18
|
-
window.location.href = `${loginUrl}?url=${fullPath}`
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const goRegister = () => {
|
|
23
|
-
if (window) {
|
|
24
|
-
let fullPath = encodeURIComponent(window.location.toString())
|
|
25
|
-
if (fullPath.includes('basic-info')) {
|
|
26
|
-
fullPath = fullPath.replace('%2Fcounterparty%2Fmain', '').replace('%2Fbasic-info', '')
|
|
27
|
-
}
|
|
28
|
-
window.location.href = `${loginUrl}register?url=${fullPath}`
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<template>
|
|
34
|
-
<a-modal v-model="isOpen" :title="t('modals.auth.title')" >
|
|
35
|
-
<div class="flex flex-col items-center gap-5 text-center text-sm">
|
|
36
|
-
<a-ill-door ></a-ill-door>
|
|
37
|
-
<div>{{ t('modals.auth.content') }}</div>
|
|
38
|
-
<a-button @click="goAuth" block variant="success">{{ t('modals.buttons.logIn') }}</a-button>
|
|
39
|
-
<div>{{ t('modals.auth.firstTime') }}</div>
|
|
40
|
-
</div>
|
|
41
|
-
<template #footer>
|
|
42
|
-
<div class="flex gap-2">
|
|
43
|
-
<a-button @click="$emit('close')" view="outline" block>{{ t('modals.buttons.close') }}</a-button>
|
|
44
|
-
<a-button @click="goRegister" block>{{ t('modals.buttons.register') }}</a-button>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
</a-modal>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<style scoped></style>
|