@mundogamernetwork/shared-ui 1.1.53 → 1.1.55

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.
@@ -21,6 +21,7 @@ const props = defineProps({
21
21
 
22
22
  const authStore = useAuthStore();
23
23
  const { user } = storeToRefs(authStore);
24
+ const { t } = useI18n();
24
25
 
25
26
  const walletBalance = computed<number>(
26
27
  () => (user.value as any)?.mgc_balance ?? (user.value as any)?.coins ?? 0,
@@ -32,7 +33,7 @@ const planDisplayName = computed(() => {
32
33
  if (!sub.plan_name && raw && props.planPrefix) {
33
34
  raw = raw.replace(new RegExp(`^${props.planPrefix}`), "");
34
35
  }
35
- raw = (raw || "Free").replace(/-/g, " ");
36
+ raw = (raw || t("account_menu.plan_free", "Free")).replace(/-/g, " ");
36
37
  return raw.charAt(0).toUpperCase() + raw.slice(1);
37
38
  });
38
39
 
@@ -78,17 +79,16 @@ const isSubscriber = computed(() => !!(user.value as any)?.subscription?.is_subs
78
79
  }
79
80
 
80
81
  &__tag {
81
- font-size: 0.7rem;
82
- font-weight: 600;
82
+ font-size: 0.68rem;
83
+ font-weight: 500;
83
84
  text-transform: uppercase;
84
- letter-spacing: 0.04em;
85
- padding: 2px 8px;
86
- color: var(--inactive, #aaa);
87
- border: 1px solid var(--border-card, #333);
85
+ letter-spacing: 0.05em;
86
+ color: var(--inactive, #666);
87
+ opacity: 0.8;
88
88
 
89
89
  &.is-subscriber {
90
90
  color: var(--highlight-color, var(--header-active-fg, #ff7700));
91
- border-color: currentColor;
91
+ opacity: 1;
92
92
  }
93
93
  }
94
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.1.53",
3
+ "version": "1.1.55",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -8,24 +8,19 @@ definePageMeta({ layout: 'blank' });
8
8
  const route = useRoute();
9
9
  const slug = route.params.slug as string;
10
10
 
11
- const runtimeConfig = useRuntimeConfig();
12
- const cfg = (runtimeConfig.public?.mgSharedUi || {}) as Record<string, any>;
13
- const apiBase: string =
14
- cfg.apiBaseURL ||
15
- (runtimeConfig.public as any)?.apiBaseURL ||
16
- '';
17
-
18
11
  const SUPPORTED_LOCALES = ['en', 'pt-BR', 'es', 'de', 'ro', 'ar-AE'];
19
12
  const routePath = route.path.split('/');
20
13
  const lang = SUPPORTED_LOCALES.find(l => routePath.includes(l)) || 'en';
21
14
 
15
+ const apiBase = (import.meta.env?.VITE_API_BASE_URL as string) || '';
16
+
22
17
  const { data: keyData, error: fetchError, pending } = await useAsyncData(
23
18
  `public-key-${slug}`,
24
19
  () => $fetch<any>(`${apiBase}/public/keys/${slug}`, { params: { lang } }),
25
20
  { lazy: false },
26
21
  );
27
22
 
28
- const key = computed(() => keyData.value?.data || keyData.value || null);
23
+ const key = computed(() => keyData.value?.data || null);
29
24
  const loading = pending;
30
25
  const error = computed(() => !!fetchError.value || (!pending.value && !key.value));
31
26