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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.21",
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
- "@nuxt/eslint-config": "^0.7.6",
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.32.0",
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
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ["@nuxt/eslint-config"],
4
- };
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,10 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/prettierrc",
3
- "semi": false,
4
- "tabWidth": 2,
5
- "singleQuote": true,
6
- "printWidth": 100,
7
- "trailingComma": "none",
8
- "plugins": ["prettier-plugin-tailwindcss"]
9
- }
10
-
@@ -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>