adata-ui 2.1.37 → 2.1.38

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.
@@ -49,13 +49,18 @@ const close = () => {
49
49
  </script>
50
50
 
51
51
  <template>
52
- <a-modal v-model="isOpen" :title="t('modals.auth.title')">
52
+ <a-modal
53
+ v-model="isOpen"
54
+ :title="t('modals.auth.title')"
55
+ data-test-id="no-access-popup"
56
+ >
53
57
  <div class="flex flex-col items-center gap-5 text-center text-sm">
54
58
  <a-ill-door />
55
59
  <div>{{ t('modals.auth.content') }}</div>
56
60
  <a-button
57
61
  block
58
62
  variant="success"
63
+ data-test-id="no-access-popup-authorize-button"
59
64
  @click="goAuth"
60
65
  >
61
66
  {{ t('modals.buttons.logIn') }}
@@ -67,11 +72,16 @@ const close = () => {
67
72
  <a-button
68
73
  view="outline"
69
74
  block
75
+ data-test-id="no-access-popup-close-button"
70
76
  @click="close"
71
77
  >
72
78
  {{ t('modals.buttons.close') }}
73
79
  </a-button>
74
- <a-button block @click="goRegister">
80
+ <a-button
81
+ block
82
+ data-test-id="no-access-popup-register-button"
83
+ @click="goRegister"
84
+ >
75
85
  {{ t('modals.buttons.register') }}
76
86
  </a-button>
77
87
  </div>
@@ -48,6 +48,7 @@ const { t } = useI18n()
48
48
  :to="breadcrumbItem.to"
49
49
  rel="noopener noreferrer"
50
50
  itemprop="item"
51
+ :data-test-id="breadcrumbItem?.dataTestId"
51
52
  >
52
53
  <span itemprop="name">
53
54
  {{ t(breadcrumbItem.label) }}
@@ -1,4 +1,5 @@
1
1
  export interface Crumb {
2
2
  label: string
3
3
  to: string
4
+ dataTestId?: string
4
5
  }
@@ -177,6 +177,7 @@ const onReplenish = () => {
177
177
 
178
178
  <div
179
179
  class="flex items-center justify-center lg:justify-start gap-3 pb-2 pt-4 px-4 cursor-pointer text-red-500 hover:text-red-700 border-t"
180
+ data-test-id="logout-button"
180
181
  @click="$emit('logout')"
181
182
  >
182
183
  <icon-logout class="h-5 w-5" />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.37",
4
+ "version": "2.1.38",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",