You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a4c5f05
Browse filesBrowse the repository at this point in the historyBrowse files
|`site.status.updated`|`{ offline, switched, opensAt, changedById }`| An admin switches the site off or on, or edits its message, in the **Site status** card on **AdminCP → Debug Panel**|
749
+
750
+
<Accordions>
751
+
<Accordiontitle="site.status.updated">
752
+
753
+
Emitted by `PUT /admin/site/status`. A save that only edits the offline
754
+
message fires it too, with `switched: false`. See
755
+
[Site offline mode](/docs/dev/site-offline-mode).
756
+
757
+
<TypeTable
758
+
type={{
759
+
offline: {
760
+
description: 'Whether the site is offline after this save.',
761
+
type: 'boolean',
762
+
},
763
+
switched: {
764
+
description: 'Whether this save flipped `offline`.',
765
+
type: 'boolean',
766
+
},
767
+
opensAt: {
768
+
description: 'The planned opening time as an ISO string, or `null` without a countdown.',
769
+
type: 'string | null',
770
+
},
771
+
changedById: {
772
+
description: 'Id of the admin who saved it.',
773
+
type: 'number | null',
774
+
},
775
+
}}
776
+
/>
777
+
778
+
**A listener would** post "We're back!" to a chat webhook when
779
+
`switched && !offline`.
780
+
781
+
</Accordion>
782
+
</Accordions>
783
+
740
784
## Page layout events
741
785
742
786
One name, exported from `@vitnode/api/events/pages` as
0 commit comments