Make the app an installable PWA with phone layout and Web Push
Add a generated manifest, icon set, offline page and service worker that never caches authenticated HTML, plus install and update UI. Turn the rail into a drawer below md with container-query internals, dvh and safe-area handling, and reconnect the socket after visibility/network changes. Add Web Push subscriptions, presence-aware delivery, notification settings and tests.
This commit is contained in:
@@ -42,6 +42,20 @@ export type KnownEnv = {
|
||||
* process environment.
|
||||
*/
|
||||
export const EnvDict: readonly KnownEnv[] = [
|
||||
{
|
||||
key: "VAPID_PUBLIC_KEY",
|
||||
description:
|
||||
"Web Push public key, shared with browsers that subscribe. Generated on first start when missing.",
|
||||
required: false,
|
||||
secret: false,
|
||||
},
|
||||
{
|
||||
key: "VAPID_PRIVATE_KEY",
|
||||
description:
|
||||
"Web Push private key, used to sign notifications. Generated on first start when missing; never share it.",
|
||||
required: false,
|
||||
secret: true,
|
||||
},
|
||||
{
|
||||
key: "MAIN_COMPUTER_URL",
|
||||
description: `The main computer's address, for a server running outside docker (e.g. http://localhost:8170). Empty uses the docker network.`,
|
||||
|
||||
Reference in New Issue
Block a user