Signed-off-by: Anirudh Oppiliappan anirudh@tangled.org
appview/pages/repoinfo/repoinfo.go
appview/pages/repoinfo/repoinfo.go
This file has not been changed.
appview/pages/templates/fragments/dolly/logo.svg
appview/pages/templates/fragments/dolly/logo.svg
This file has not been changed.
appview/pages/templates/goodfirstissues/index.html
appview/pages/templates/goodfirstissues/index.html
This file has not been changed.
appview/pages/templates/layouts/base.html
appview/pages/templates/layouts/base.html
This patch was likely rebased, as context lines do not match.
appview/pages/templates/layouts/profilebase.html
appview/pages/templates/layouts/profilebase.html
This file has not been changed.
appview/pages/templates/repo/index.html
appview/pages/templates/repo/index.html
This file has not been changed.
appview/pages/templates/repo/issues/fragments/og.html
appview/pages/templates/repo/issues/fragments/og.html
This file has not been changed.
appview/pages/templates/repo/pulls/fragments/og.html
appview/pages/templates/repo/pulls/fragments/og.html
This file has not been changed.
appview/pages/templates/timeline/home.html
appview/pages/templates/timeline/home.html
This file has not been changed.
appview/state/router.go
appview/state/router.go
This patch was likely rebased, as context lines do not match.
+35
-12
appview/state/state.go
+35
-12
appview/state/state.go
···
208
209
robotsTxt := `User-agent: *
210
Allow: /
211
-
`
212
-
w.Write([]byte(robotsTxt))
213
-
}
214
-
215
-
func (s *State) TermsOfService(w http.ResponseWriter, r *http.Request) {
216
-
user := s.oauth.GetMultiAccountUser(r)
217
-
s.pages.TermsOfService(w, pages.TermsOfServiceParams{
218
-
219
-
220
-
221
-
robotsTxt := `User-agent: *
222
-
Allow: /
223
Disallow: /settings
224
Disallow: /notifications
225
Disallow: /login
···
278
}
279
280
// https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest
281
const manifestJson = `{
282
"name": "tangled",
···
208
209
robotsTxt := `User-agent: *
210
Allow: /
211
Disallow: /settings
212
Disallow: /notifications
213
Disallow: /login
···
266
}
267
268
// https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest
269
+
const manifestJson = `{
270
+
"name": "tangled",
271
+
"description": "tightly-knit social coding.",
272
+
"icons": [
273
+
{
274
+
"src": "/favicon.svg",
275
+
"sizes": "144x144"
276
+
}
277
+
],
278
+
"start_url": "/",
279
+
"id": "org.tangled",
280
+
281
+
"display": "standalone",
282
+
"background_color": "#111827",
283
+
"theme_color": "#111827"
284
+
}`
285
+
286
+
func (p *State) PWAManifest(w http.ResponseWriter, r *http.Request) {
287
+
w.Header().Set("Content-Type", "application/json")
288
+
w.Write([]byte(manifestJson))
289
+
}
290
+
291
+
func (s *State) TermsOfService(w http.ResponseWriter, r *http.Request) {
292
+
user := s.oauth.GetMultiAccountUser(r)
293
+
s.pages.TermsOfService(w, pages.TermsOfServiceParams{
294
+
295
+
296
+
297
+
robotsTxt := `User-agent: *
298
+
Allow: /
299
+
`
300
+
w.Write([]byte(robotsTxt))
301
+
}
302
+
303
+
// https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest
304
const manifestJson = `{
305
"name": "tangled",
History
5 rounds
2 comments
anirudh.fi
submitted
#4
1 commit
expand
collapse
appview/pages: seo improvements, sitemap, schemae and more
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
3/3 success
expand
collapse
expand 0 comments
pull request successfully merged
anirudh.fi
submitted
#3
1 commit
expand
collapse
appview/pages: seo improvements, sitemap, schemae and more
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
3/3 success
expand
collapse
expand 0 comments
anirudh.fi
submitted
#2
1 commit
expand
collapse
appview/pages: seo improvements, sitemap, schemae and more
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
3/3 success
expand
collapse
expand 0 comments
anirudh.fi
submitted
#1
1 commit
expand
collapse
appview/pages: seo improvements, sitemap, schemae and more
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
3/3 success
expand
collapse
expand 0 comments
anirudh.fi
submitted
#0
1 commit
expand
collapse
appview/pages: seo improvements, sitemap, schemae and more
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
this changeset looks good otherwise. i will look at the ancestor PRs shortly.