@mundogamernetwork/shared-ui 1.17.18 → 1.18.1
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/README.md +23 -0
- package/assets/kit/kit-base.css +47 -0
- package/assets/whats-new/tokens.css +43 -0
- package/components/MediaKit/MgRateCardBundleEditor.vue +2 -7
- package/components/MediaKit/MgRateCardEditor.vue +1 -1
- package/components/keys/KeyBrowser.vue +4 -9
- package/components/keys/KeyCampaignDashboardCard.vue +1 -1
- package/components/playtest/PlaytestInviteLanding.vue +17 -6
- package/components/ui/MgBanners.vue +13 -0
- package/components/ui/MgLoginModal.vue +1 -1
- package/components/whats-new/MgWhatsNewDialog.vue +552 -0
- package/components/whats-new/MgWhatsNewMedia.vue +242 -0
- package/components/whats-new/MgWhatsNewModal.vue +285 -0
- package/components/whats-new/MgWhatsNewRichText.vue +90 -0
- package/composables/useForceLogout.ts +0 -1
- package/composables/useLogout.ts +0 -2
- package/composables/useMgCheckout.ts +0 -1
- package/error.vue +1 -1
- package/locales/de.json +6 -0
- package/locales/en.json +6 -0
- package/locales/es.json +6 -0
- package/locales/pt-BR.json +6 -0
- package/locales/ro.json +6 -0
- package/nuxt.config.ts +11 -2
- package/package.json +5 -11
- package/pages/[slug]/index.vue +1 -1
- package/pages/about.vue +1 -1
- package/pages/blog.vue +1 -1
- package/pages/careers.vue +1 -1
- package/pages/contact.vue +8 -14
- package/pages/faq.vue +1 -1
- package/pages/key-campaigns/index.vue +1 -1
- package/pages/key-campaigns/redeem-key.vue +5 -11
- package/pages/magazine/[slug]/index.vue +1 -1
- package/pages/magazine/[slug]/preview.vue +2 -2
- package/pages/magazine/index.vue +3 -2
- package/pages/partners.vue +1 -1
- package/pages/press.vue +1 -1
- package/pages/presskit/game/[slug].vue +29 -1
- package/pages/roadmap.vue +1 -1
- package/pages/status.vue +1 -1
- package/pages/team.vue +1 -1
- package/pages/whats-new-preview.vue +96 -0
- package/services/campaignService.ts +0 -1
- package/services/creatorNetworkProgramService.ts +47 -0
- package/services/documentService.ts +16 -4
- package/services/httpService.ts +2 -2
- package/services/institutionalService.ts +1 -1
- package/stores/whatsNew.ts +170 -0
- package/types/index.ts +0 -3
- package/utils/clearSession.ts +0 -1
- package/utils/keyRequestError.ts +54 -0
- package/utils/whatsNew.ts +300 -0
- package/utils/whatsNewMessages.ts +133 -0
- package/utils/whatsNewText.ts +10 -0
- package/types/echo.d.ts +0 -7
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixed copy of the What's New modal, one block per language.
|
|
3
|
+
*
|
|
4
|
+
* Kept as TypeScript (not JSON under locales/) on purpose: @nuxtjs/i18n compiles every
|
|
5
|
+
* JSON it finds in a locales dir into message ASTs, which turned these plain strings into
|
|
6
|
+
* objects. It also ships with the component rather than the host app's vue-i18n messages,
|
|
7
|
+
* because several fronts do not merge the shared-ui locale files.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export const WN_MESSAGES = {
|
|
11
|
+
"en": {
|
|
12
|
+
title: "What's new",
|
|
13
|
+
kind_release: "Release",
|
|
14
|
+
kind_update: "Update",
|
|
15
|
+
kind_launch: "Launch",
|
|
16
|
+
kind_maintenance: "Maintenance",
|
|
17
|
+
feature: "New features",
|
|
18
|
+
improvement: "Improvements",
|
|
19
|
+
fix: "Fixes",
|
|
20
|
+
note: "Notice",
|
|
21
|
+
close: "Close",
|
|
22
|
+
later: "Later",
|
|
23
|
+
view_all: "See all news",
|
|
24
|
+
watch: "Watch",
|
|
25
|
+
play: "Play video",
|
|
26
|
+
pause: "Pause video",
|
|
27
|
+
follow: "Follow the network",
|
|
28
|
+
new_tab: "opens in a new tab",
|
|
29
|
+
media_label: "Media",
|
|
30
|
+
},
|
|
31
|
+
"pt-BR": {
|
|
32
|
+
title: "Novidades",
|
|
33
|
+
kind_release: "Lançamento de versão",
|
|
34
|
+
kind_update: "Atualização",
|
|
35
|
+
kind_launch: "Lançamento",
|
|
36
|
+
kind_maintenance: "Manutenção",
|
|
37
|
+
feature: "Novos recursos",
|
|
38
|
+
improvement: "Melhorias",
|
|
39
|
+
fix: "Correções",
|
|
40
|
+
note: "Aviso",
|
|
41
|
+
close: "Fechar",
|
|
42
|
+
later: "Depois",
|
|
43
|
+
view_all: "Ver todas as novidades",
|
|
44
|
+
watch: "Assistir",
|
|
45
|
+
play: "Reproduzir vídeo",
|
|
46
|
+
pause: "Pausar vídeo",
|
|
47
|
+
follow: "Siga a rede",
|
|
48
|
+
new_tab: "abre em uma nova aba",
|
|
49
|
+
media_label: "Mídia",
|
|
50
|
+
},
|
|
51
|
+
"de": {
|
|
52
|
+
title: "Neuigkeiten",
|
|
53
|
+
kind_release: "Release",
|
|
54
|
+
kind_update: "Update",
|
|
55
|
+
kind_launch: "Start",
|
|
56
|
+
kind_maintenance: "Wartung",
|
|
57
|
+
feature: "Neue Funktionen",
|
|
58
|
+
improvement: "Verbesserungen",
|
|
59
|
+
fix: "Korrekturen",
|
|
60
|
+
note: "Hinweis",
|
|
61
|
+
close: "Schließen",
|
|
62
|
+
later: "Später",
|
|
63
|
+
view_all: "Alle Neuigkeiten ansehen",
|
|
64
|
+
watch: "Ansehen",
|
|
65
|
+
play: "Video abspielen",
|
|
66
|
+
pause: "Video pausieren",
|
|
67
|
+
follow: "Folge dem Netzwerk",
|
|
68
|
+
new_tab: "öffnet in einem neuen Tab",
|
|
69
|
+
media_label: "Medien",
|
|
70
|
+
},
|
|
71
|
+
"es": {
|
|
72
|
+
title: "Novedades",
|
|
73
|
+
kind_release: "Versión",
|
|
74
|
+
kind_update: "Actualización",
|
|
75
|
+
kind_launch: "Lanzamiento",
|
|
76
|
+
kind_maintenance: "Mantenimiento",
|
|
77
|
+
feature: "Nuevas funciones",
|
|
78
|
+
improvement: "Mejoras",
|
|
79
|
+
fix: "Correcciones",
|
|
80
|
+
note: "Aviso",
|
|
81
|
+
close: "Cerrar",
|
|
82
|
+
later: "Después",
|
|
83
|
+
view_all: "Ver todas las novedades",
|
|
84
|
+
watch: "Ver",
|
|
85
|
+
play: "Reproducir vídeo",
|
|
86
|
+
pause: "Pausar vídeo",
|
|
87
|
+
follow: "Sigue la red",
|
|
88
|
+
new_tab: "se abre en una pestaña nueva",
|
|
89
|
+
media_label: "Multimedia",
|
|
90
|
+
},
|
|
91
|
+
"ro": {
|
|
92
|
+
title: "Noutăți",
|
|
93
|
+
kind_release: "Versiune nouă",
|
|
94
|
+
kind_update: "Actualizare",
|
|
95
|
+
kind_launch: "Lansare",
|
|
96
|
+
kind_maintenance: "Mentenanță",
|
|
97
|
+
feature: "Funcții noi",
|
|
98
|
+
improvement: "Îmbunătățiri",
|
|
99
|
+
fix: "Remedieri",
|
|
100
|
+
note: "Notă",
|
|
101
|
+
close: "Închide",
|
|
102
|
+
later: "Mai târziu",
|
|
103
|
+
view_all: "Vezi toate noutățile",
|
|
104
|
+
watch: "Vizionează",
|
|
105
|
+
play: "Redă videoclipul",
|
|
106
|
+
pause: "Oprește videoclipul",
|
|
107
|
+
follow: "Urmărește rețeaua",
|
|
108
|
+
new_tab: "se deschide într-o filă nouă",
|
|
109
|
+
media_label: "Media",
|
|
110
|
+
},
|
|
111
|
+
"ar": {
|
|
112
|
+
title: "الجديد",
|
|
113
|
+
kind_release: "إصدار",
|
|
114
|
+
kind_update: "تحديث",
|
|
115
|
+
kind_launch: "إطلاق",
|
|
116
|
+
kind_maintenance: "صيانة",
|
|
117
|
+
feature: "ميزات جديدة",
|
|
118
|
+
improvement: "تحسينات",
|
|
119
|
+
fix: "إصلاحات",
|
|
120
|
+
note: "تنبيه",
|
|
121
|
+
close: "إغلاق",
|
|
122
|
+
later: "لاحقًا",
|
|
123
|
+
view_all: "عرض كل الأخبار",
|
|
124
|
+
watch: "مشاهدة",
|
|
125
|
+
play: "تشغيل الفيديو",
|
|
126
|
+
pause: "إيقاف الفيديو مؤقتًا",
|
|
127
|
+
follow: "تابع الشبكة",
|
|
128
|
+
new_tab: "يفتح في علامة تبويب جديدة",
|
|
129
|
+
media_label: "وسائط",
|
|
130
|
+
},
|
|
131
|
+
} as const;
|
|
132
|
+
|
|
133
|
+
export type WnMessages = typeof WN_MESSAGES;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WN_MESSAGES } from "./whatsNewMessages";
|
|
2
|
+
import { toUiLocale, type WnUiLocale } from "./whatsNew";
|
|
3
|
+
|
|
4
|
+
export type WnTextKey = keyof (typeof WN_MESSAGES)["en"];
|
|
5
|
+
|
|
6
|
+
export const WN_DICTIONARY: Record<WnUiLocale, Record<string, string>> = WN_MESSAGES;
|
|
7
|
+
|
|
8
|
+
export function wnText(locale: string | null | undefined, key: WnTextKey): string {
|
|
9
|
+
return WN_DICTIONARY[toUiLocale(locale)][key] ?? WN_MESSAGES.en[key];
|
|
10
|
+
}
|