adata-ui 3.1.43 → 3.1.45

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.43",
8
+ "version": "3.1.45",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -121,7 +121,7 @@ onBeforeMount(() => {
121
121
  </button>
122
122
  </div>
123
123
  </section>
124
- <div class="hidden lg:flex items-center gap-4 justify-between lg:justify-start w-full">
124
+ <nav class="hidden lg:flex items-center gap-4 justify-between lg:justify-start w-full" itemscope itemtype="https://schema.org/SiteNavigationElement" role="list">
125
125
  <nuxt-link
126
126
  aria-label="Adata-logo"
127
127
  :to="`https://${mode}.kz`"
@@ -134,7 +134,7 @@ onBeforeMount(() => {
134
134
  />
135
135
  </nuxt-link>
136
136
  <header-link class="hidden lg:block" />
137
- </div>
137
+ </nav>
138
138
  <div class="text-deepblue hidden items-center gap-4 dark:text-[#E3E5E8] lg:flex">
139
139
  <!-- Mobile hidden -->
140
140
  <div class="hidden items-center gap-4 lg:flex">
@@ -125,6 +125,7 @@ watch(
125
125
  <li
126
126
  v-for="(nav, index) in navs"
127
127
  :key="nav.label"
128
+ role="listitem"
128
129
  class="group inline-block border-r border-[#2C3E501A] px-2 last-of-type:border-none dark:border-[#E3E5E81A]"
129
130
  @click="lockMenu"
130
131
  >
@@ -19,6 +19,7 @@ onClickOutside(langSwitcher, () => {
19
19
  <button
20
20
  class="text-xs font-semibold py-1 px-2 bg-gray-100 dark:bg-gray-200/5 rounded"
21
21
  @click="isOpen = true"
22
+ aria-hidden="true"
22
23
  >
23
24
  {{ t(`lang.${locale}.short`) }}
24
25
  </button>
@@ -86,6 +86,7 @@ function isActive(itemPath) {
86
86
  :to="item.to"
87
87
  class="inline-block normal-case w-full cursor-pointer align-middle text-sm font-semibold text-gray-600 dark:text-gray-200"
88
88
  exact-active-class="text-blue-700 dark:text-blue-500"
89
+ itemprop="name"
89
90
  >
90
91
  {{ item.title }}
91
92
  </nuxt-link>
@@ -19,6 +19,7 @@ const props = defineProps({
19
19
  rate: { type: String, required: true },
20
20
  daysRemaining: { type: Number, required: false, default: 0 },
21
21
  limitRemaining: { type: Number, required: false, default: 0 },
22
+ limitRemainingLabel: { type: String, required: false },
22
23
  balance: { type: Number, required: true },
23
24
  replenish: { type: String, required: false },
24
25
  oldVersion: { type: String, required: false },
@@ -166,7 +167,7 @@ const onReplenish = () => {
166
167
  class="w-full py-[6px] font-semibold"
167
168
  >
168
169
  <span>
169
- {{ t("header.profile.requests") }}
170
+ {{ limitRemainingLabel ?? t("header.profile.requests") }}
170
171
  </span>
171
172
  {{ limitRemaining }}
172
173
  </a-status-badge>
@@ -2,6 +2,7 @@ interface Props {
2
2
  rate: string;
3
3
  daysRemaining?: number;
4
4
  limitRemaining?: number;
5
+ limitRemainingLabel?: string;
5
6
  balance: number;
6
7
  replenish?: string;
7
8
  oldVersion?: string;
@@ -142,7 +142,7 @@ async function submit() {
142
142
  }
143
143
  }
144
144
  function authWithSocial(social) {
145
- const mode = useNuxtApp().$config.public.authApiURL.includes("adata") ? "adata" : "adtdev";
145
+ const mode = authApiURL.includes("adata") ? "adata" : "adtdev";
146
146
  document.location.replace(`https://auth.${mode}.kz/api/login/social?source=${social}`);
147
147
  }
148
148
  function onRegister() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.43",
3
+ "version": "3.1.45",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",