could use some screenshots for "rich" install but is more than fine rn and gets the job done
+1
-1
appview/pages/templates/layouts/base.html
+1
-1
appview/pages/templates/layouts/base.html
···
15
15
<link rel="preconnect" href="https://camo.tangled.sh" />
16
16
17
17
<!-- pwa manifest -->
18
-
<link rel="manifest" href="/static/pwa-manifest.json" />
18
+
<link rel="manifest" href="/pwa-manifest.json" />
19
19
20
20
<!-- preload main font -->
21
21
<link rel="preload" href="/static/fonts/InterVariable.woff2" as="font" type="font/woff2" crossorigin />
+1
-1
appview/pages/templates/user/completeSignup.html
+1
-1
appview/pages/templates/user/completeSignup.html
···
20
20
content="complete your signup for tangled"
21
21
/>
22
22
<script src="/static/htmx.min.js"></script>
23
-
<link rel="manifest" href="/static/pwa-manifest.json" />
23
+
<link rel="manifest" href="/pwa-manifest.json" />
24
24
<link
25
25
rel="stylesheet"
26
26
href="/static/tw.css?{{ cssContentHash }}"
+1
-1
appview/pages/templates/user/login.html
+1
-1
appview/pages/templates/user/login.html
···
8
8
<meta property="og:url" content="https://tangled.org/login" />
9
9
<meta property="og:description" content="login to for tangled" />
10
10
<script src="/static/htmx.min.js"></script>
11
-
<link rel="manifest" href="/static/pwa-manifest.json" />
11
+
<link rel="manifest" href="/pwa-manifest.json" />
12
12
<link rel="stylesheet" href="/static/tw.css?{{ cssContentHash }}" type="text/css" />
13
13
<title>login · tangled</title>
14
14
</head>
+1
-1
appview/pages/templates/user/signup.html
+1
-1
appview/pages/templates/user/signup.html
···
8
8
<meta property="og:url" content="https://tangled.org/signup" />
9
9
<meta property="og:description" content="sign up for tangled" />
10
10
<script src="/static/htmx.min.js"></script>
11
-
<link rel="manifest" href="/static/pwa-manifest.json" />
11
+
<link rel="manifest" href="/pwa-manifest.json" />
12
12
<link rel="stylesheet" href="/static/tw.css?{{ cssContentHash }}" type="text/css" />
13
13
<title>sign up · tangled</title>
14
14
appview/state/router.go
appview/state/router.go
This file has not been changed.
appview/state/state.go
appview/state/state.go
This file has not been changed.
History
3 rounds
3 comments
vielle.dev
submitted
#2
1 commit
expand
collapse
appview/state,appview/pages/templates: add installable pwa support for tangled
Signed-off-by: afterlifepro <vielle.dev@proton.me>
expand 2 comments
works like a charm on chrome on android, firefox does not seem to detect the favicon however (and only allows a shortcut, not "installation"), but lets merge this in anyhow!
pull request successfully merged
vielle.dev
submitted
#1
expand 0 comments
vielle.dev
submitted
#0
1 commit
expand
collapse
Add PWA installable support for tangled
/pwa-manifest.json is defined in state.go and is a plain json object
the link rel has to be added to all html heads
lgtm! thanks so much for working on this and the speedy response on discord!