Merge remote-tracking branch 'origin/staging-2.19.x' into staging

This commit is contained in:
Andrey Antukh 2026-11-13 08:33:01 +01:00
commit 7dcc0fde7a
8 changed files with 22 additions and 8 deletions

View File

@ -56,7 +56,7 @@ Penpot uses anonymous telemetries from the self-hosted instances to improve the
Consider sharing these anonymous telemetries enabling the corresponding flag:
```bash
PENPOT_FLAGS: [...] enable-telemetries
PENPOT_FLAGS: [...] enable-telemetry
```
## Registration and authentication

View File

@ -72,7 +72,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -115,7 +115,9 @@ export class AppComponent {
#messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
#initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
selection = toSignal(

View File

@ -44,7 +44,9 @@ export class AppComponent {
);
public initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
public theme = toSignal(

View File

@ -69,7 +69,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -44,7 +44,9 @@ export class AppComponent {
);
public initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
public theme = toSignal(

View File

@ -38,7 +38,9 @@ export class AppComponent {
}
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(

View File

@ -40,7 +40,9 @@ export class AppComponent {
messages$ = fromEvent<MessageEvent<PluginMessageEvent>>(window, 'message');
initialTheme$ = of(
new URLSearchParams(window.location.search).get('theme'),
// The theme arrives in the query string or in the query part of the hash.
new URLSearchParams(window.location.search).get('theme') ??
new URLSearchParams(window.location.hash.split('?')[1]).get('theme'),
).pipe(filter((theme) => !!theme));
theme = toSignal(