@mundogamernetwork/shared-ui 1.19.7 → 1.19.10
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/components/ui/Header/MgMessageModal.vue +7 -0
- package/components/ui/MgHeaderUIUser.vue +12 -2
- package/components/whats-new/MgWhatsNewMenuItem.vue +5 -2
- package/locales/de.json +1 -0
- package/locales/en.json +1 -0
- package/locales/es.json +1 -0
- package/locales/pt-BR.json +1 -0
- package/locales/ro.json +1 -0
- package/package.json +1 -1
- package/utils/keyRequestError.ts +5 -0
|
@@ -165,6 +165,13 @@ const submitChatMessage = async () => {
|
|
|
165
165
|
message: chatMessageInput.value,
|
|
166
166
|
});
|
|
167
167
|
chatMessageInput.value = "";
|
|
168
|
+
// The websocket is what normally draws the sent message; with no live connection (not configured, blocked, still
|
|
169
|
+
// connecting) it never would, so the conversation is read again instead.
|
|
170
|
+
if ((window as any).Echo?.connector?.pusher?.connection?.state !== "connected") {
|
|
171
|
+
const response = await getChat({ chat_id: selectedChatId.value });
|
|
172
|
+
chatMessages.value = response.data;
|
|
173
|
+
chatStore.setChatMessagesWidget(response.data, true);
|
|
174
|
+
}
|
|
168
175
|
scrollToBottom(true);
|
|
169
176
|
} catch {
|
|
170
177
|
// silent fail
|
|
@@ -296,6 +296,9 @@ const handleToggleOnline = () => {
|
|
|
296
296
|
<style scoped lang="scss">
|
|
297
297
|
.ui-config-user {
|
|
298
298
|
position: absolute;
|
|
299
|
+
// The menu reads left to right from its own left edge, whatever the host page does: some hosts set text-align on an
|
|
300
|
+
// ancestor of the header (right/center), which this subtree would inherit and push every label to the far side.
|
|
301
|
+
text-align: start;
|
|
299
302
|
// A fixed width, not width:100%. This is position:absolute, so a
|
|
300
303
|
// percentage width resolves against the nearest positioned ancestor —
|
|
301
304
|
// every real host's profile-icon <li> (32px, position:relative for its
|
|
@@ -400,7 +403,7 @@ const handleToggleOnline = () => {
|
|
|
400
403
|
height: 40px;
|
|
401
404
|
width: 40px;
|
|
402
405
|
border-radius: 0;
|
|
403
|
-
background:
|
|
406
|
+
background: var(--header-ui-config-border);
|
|
404
407
|
// Was a hardcoded blue (--ck-highlight-marker-blue), the same on
|
|
405
408
|
// every host regardless of that platform's own accent — fell
|
|
406
409
|
// through to the same fallback chain .plans-pricing-link already
|
|
@@ -450,6 +453,13 @@ const handleToggleOnline = () => {
|
|
|
450
453
|
}
|
|
451
454
|
}
|
|
452
455
|
|
|
456
|
+
// The XP bar brings its own side padding (it is a card elsewhere); inside the menu it must start and end on the same
|
|
457
|
+
// edges as every other row (the 16px of .info-row), or it sits 8px further in than the rows around it.
|
|
458
|
+
.menu-group--identity :deep(.mg-xp-bar--compact) {
|
|
459
|
+
padding-left: 0;
|
|
460
|
+
padding-right: 0;
|
|
461
|
+
}
|
|
462
|
+
|
|
453
463
|
.menu-group--nav {
|
|
454
464
|
// The host's own links keep their markup; they only get the shared edge.
|
|
455
465
|
gap: 0;
|
|
@@ -557,7 +567,7 @@ const handleToggleOnline = () => {
|
|
|
557
567
|
font-size: 0.75rem;
|
|
558
568
|
font-weight: 400;
|
|
559
569
|
// Each platform brands this differently (TV's own fork used a fixed
|
|
560
|
-
// lavender tint of its purple,
|
|
570
|
+
// lavender tint of its purple, rather than plain body text) —
|
|
561
571
|
// falling through the same accent tokens MgWalletPlanBadge/MgXpLevelBar
|
|
562
572
|
// use lets every front's real accent take over here without a per-front
|
|
563
573
|
// override.
|
|
@@ -84,8 +84,11 @@ function open() {
|
|
|
84
84
|
font-size: 0.6875rem;
|
|
85
85
|
font-weight: 700;
|
|
86
86
|
line-height: 1;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
// A quiet outline in the row's own text colour, not a solid block: the menu is a list of text rows, and a filled
|
|
88
|
+
// chip on one of them reads as an alert. The avatar badge (MgWhatsNewBadge) keeps the solid fill, it sits on a photo.
|
|
89
|
+
color: var(--mg-wn-text);
|
|
90
|
+
background: transparent;
|
|
91
|
+
border: 1px solid var(--mg-wn-border);
|
|
89
92
|
border-radius: 0;
|
|
90
93
|
}
|
|
91
94
|
}
|
package/locales/de.json
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
"error_user_blocked": "Ihr Zugang zu Key-Anfragen wurde vorübergehend gesperrt, da Material-Einreichungen überfällig sind. Bitte reichen Sie Ihre ausstehenden Materialien ein.",
|
|
387
387
|
"error_not_eligible": "Diese Kampagne ist für Ihren aktuellen Plan nicht verfügbar.",
|
|
388
388
|
"error_pending_limit": "Sie haben das gleichzeitige Anfragenlimit Ihres Plans erreicht. Bitte erfüllen Sie Ihre ausstehenden Verpflichtungen, bevor Sie einen neuen Key anfordern.",
|
|
389
|
+
"error_daily_limit": "Sie haben das tägliche Anfragenlimit Ihres Plans erreicht. Bitte versuchen Sie es morgen erneut.",
|
|
389
390
|
"error_not_open_yet": "Diese Kampagne ist noch nicht geöffnet.",
|
|
390
391
|
"error_closed": "Diese Kampagne ist beendet.",
|
|
391
392
|
"error_country": "Diese Kampagne ist in deinem Land nicht verfügbar.",
|
package/locales/en.json
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
"error_user_blocked": "Your key request access has been temporarily blocked due to overdue material submissions. Please submit your pending materials to restore access.",
|
|
387
387
|
"error_not_eligible": "This campaign is not available for your current plan.",
|
|
388
388
|
"error_pending_limit": "You have reached the simultaneous request limit for your plan. Please fulfill your pending obligations before requesting a new key.",
|
|
389
|
+
"error_daily_limit": "You have reached the daily limit of key requests for your plan. Please try again tomorrow.",
|
|
389
390
|
"error_not_open_yet": "This campaign has not opened yet.",
|
|
390
391
|
"error_closed": "This campaign is closed.",
|
|
391
392
|
"error_country": "This campaign is not available in your country.",
|
package/locales/es.json
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
"error_user_blocked": "Tu acceso a solicitudes de claves ha sido bloqueado temporalmente por envíos de material pendientes. Envía tus materiales para restaurar el acceso.",
|
|
387
387
|
"error_not_eligible": "Esta campaña no está disponible para tu plan actual.",
|
|
388
388
|
"error_pending_limit": "Has alcanzado el límite de solicitudes simultáneas de tu plan. Cumple con tus obligaciones pendientes antes de solicitar una nueva clave.",
|
|
389
|
+
"error_daily_limit": "Has alcanzado el límite diario de solicitudes de clave de tu plan. Inténtalo de nuevo mañana.",
|
|
389
390
|
"error_not_open_yet": "Esta campaña aún no se ha abierto.",
|
|
390
391
|
"error_closed": "Esta campaña está cerrada.",
|
|
391
392
|
"error_country": "Esta campaña no está disponible en tu país.",
|
package/locales/pt-BR.json
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
"error_user_blocked": "Seu acesso a pedidos de chave está temporariamente bloqueado por materiais não entregues. Envie seus materiais pendentes para restaurar o acesso.",
|
|
387
387
|
"error_not_eligible": "Esta campanha não está disponível para o seu plano atual.",
|
|
388
388
|
"error_pending_limit": "Você atingiu o limite de pedidos simultâneos do seu plano. Entregue o material pendente antes de solicitar uma nova chave.",
|
|
389
|
+
"error_daily_limit": "Você atingiu o limite diário de pedidos de chave do seu plano. Tente novamente amanhã.",
|
|
389
390
|
"error_not_open_yet": "Esta campanha ainda não foi aberta.",
|
|
390
391
|
"error_closed": "Esta campanha está encerrada.",
|
|
391
392
|
"error_country": "Esta campanha não está disponível no seu país.",
|
package/locales/ro.json
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
"error_user_blocked": "Accesul dvs. la solicitările de chei a fost blocat temporar din cauza transmisiilor de materiale restante. Trimiteți materialele dvs. pentru a restabili accesul.",
|
|
387
387
|
"error_not_eligible": "Această campanie nu este disponibilă pentru planul dvs. actual.",
|
|
388
388
|
"error_pending_limit": "Ați atins limita de cereri simultane a planului dvs. Îndepliniți-vă obligațiile restante înainte de a solicita o nouă cheie.",
|
|
389
|
+
"error_daily_limit": "Ați atins limita zilnică de cereri de chei a planului dvs. Încercați din nou mâine.",
|
|
389
390
|
"error_not_open_yet": "Această campanie nu s-a deschis încă.",
|
|
390
391
|
"error_closed": "Această campanie este închisă.",
|
|
391
392
|
"error_country": "Această campanie nu este disponibilă în țara ta.",
|
package/package.json
CHANGED
package/utils/keyRequestError.ts
CHANGED
|
@@ -29,6 +29,11 @@ export function keyRequestErrorMessage(err: any): KeyRequestErrorMessage | null
|
|
|
29
29
|
return { key: "keys.campaigns.error_pending_limit" }
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
// The plan's cap of requests per day: say so, and when to come back, instead of the server's untranslated sentence.
|
|
33
|
+
if (status === 422 && errorCode === "daily_limit_reached") {
|
|
34
|
+
return { key: "keys.campaigns.error_daily_limit" }
|
|
35
|
+
}
|
|
36
|
+
|
|
32
37
|
if (status !== 403) return null
|
|
33
38
|
|
|
34
39
|
if (errorCode === "user_key_blocked") return { key: "keys.campaigns.error_user_blocked" }
|