4ddaa0d8ec
cleanup: defaultProps -> JS default params on our function components
...
React 19 drops defaultProps on function components. Converted the 9 of
ours that used it (App, Navigation, ReSendEmail, Reconnect, OAuthLoginButton,
PageHeader, Page, EditDocument, EditSubscription) to destructured default
params; App defaults userId/emailAddress in its withTracker instead (it
spreads {...props} widely). Class components keep defaultProps (still
supported). The only defaultProps warnings left are from the react-share
npm package (CreatedButton/Icon), not our code. REST smoke byte-identical.
2026-07-21 13:54:02 +02:00
12bdbe8fed
deps: i18next 10 -> 23, react-i18next 7 -> 14
...
Modernizes the whole i18n stack:
- 48 translate([], {wait:true}) / translate() HOCs -> withTranslation()
- react.wait:true -> react.useSuspense:false
- whitelist -> supportedLngs; added compatibilityJSON: 'v3' so our
natural-language keys + v3 _plural layout keep working (custom
separators ss/eth/dj preserved)
- backends: xhr -> i18next-http-backend (client), sync-fs ->
i18next-fs-backend (server); dropped i18next-localstorage-cache
(was enabled:false); languagedetector 2 -> 8
- ReSendEmail: <Interpolate> (removed in v10) -> <Trans values={{email}}/>,
dropped the removed bare t export
- saveMissing handler signature (lngs, ns, key, fallbackValue)
Silences the per-component Translate/I18n legacy-context warnings.
Browser-verified es/en switch and <Trans> interpolation on /fires;
REST smoke byte-identical.
2026-07-18 06:28:41 +02:00
vjrj
b7ebb9a28c
Better loading in FiresMap
2018-05-10 11:47:45 +02:00
vjrj
395ee855dd
Reconnect only for non authenticated
2018-05-01 17:41:50 +02:00
vjrj
ce23ae58e6
Readded reconnect
2018-04-01 16:58:08 +02:00
vjrj
8b0577b46f
Refactor Reconnect
2018-03-03 10:54:53 +01:00
vjrj
58c557ecb2
Reconnect only for anon users
2018-02-28 01:36:34 +01:00
vjrj
458627f520
Fix reconnect translation issues
2018-02-18 18:43:40 +01:00
vjrj
3bf21c8caf
Added web and email notifications. Tests. Fire page
2018-01-16 16:19:29 +01:00
vjrj
5ab88f7a39
Added connection status
2017-11-29 13:38:04 +01:00