mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
merge: sync upstream duckietm/Dev (b2318b9) into feat/react19-modernization
Absorbs 10 upstream commits (JSON5 config support, user-settings reset
password/email/username, wear-badge popup fix, login screen fix, About
update, offer selection logic, client path fix).
Conflicts resolved by keeping the modernized React 19 / Zustand / Form
Actions structure and porting upstream intent surgically:
- bootstrap.ts: kept GetConfiguration().init() pre-init + useEffectEvent,
added JSON5 import (already wired into the parse fallback)
- LoginView.tsx: kept Form Actions (useActionState/useFormStatus); the
upstream persistAccessTokenFromPayload(payload) fix was already
integrated in the modernized SSO branch
- App.tsx: kept useEffectEvent import + StrictMode/ErrorBoundary umbrella
- vite.config.mjs: kept sirv plugin + react-compiler babel; absorbed
upstream's base: process.env.VITE_BASE || './'
- package.json: kept superset (sirv, Vitest, Zustand, react-colorful,
React Compiler) + added json5
- User-settings views: accepted upstream (duplicate of local cherry-pick
2053c8e); notification badge bubble: accepted upstream fix
Verification: yarn typecheck clean, 193/193 Vitest, yarn build green.
This commit is contained in:
@@ -224,8 +224,18 @@ const useNotificationStore = () =>
|
||||
useMessageEvent<HabboBroadcastMessageEvent>(HabboBroadcastMessageEvent, event =>
|
||||
{
|
||||
const parser = event.getParser();
|
||||
const raw = parser.message.replace(/\\r/g, '\r');
|
||||
|
||||
simpleAlert(parser.message.replace(/\\r/g, '\r'), null, null, LocalizeText('notifications.broadcast.title'));
|
||||
const sentinel = '[NITRO_INFO_V1]';
|
||||
|
||||
if(raw.startsWith(sentinel))
|
||||
{
|
||||
const body = raw.substring(sentinel.length).replace(/^[\r\n]+/, '');
|
||||
simpleAlert(body, NotificationAlertType.NITRO_INFO, null, null, LocalizeText('nitro.info.title'));
|
||||
return;
|
||||
}
|
||||
|
||||
simpleAlert(raw, null, null, LocalizeText('notifications.broadcast.title'));
|
||||
});
|
||||
|
||||
useMessageEvent<AchievementNotificationMessageEvent>(AchievementNotificationMessageEvent, event =>
|
||||
|
||||
Reference in New Issue
Block a user