[PR #4730] [MERGED] Create Progressive Web App #17480

Closed
opened 2025-11-02 13:36:37 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4730
Author: @SohnyBohny
Created: 8/16/2018
Status: Merged
Merged: 11/27/2018
Merged by: @techknowlogick

Base: masterHead: create_pwa


📝 Commits (10+)

  • a8df308 Create manifest and serviceworker
  • cd9dee2 Create templates and add AppSubUrl
  • 120ed02 Add JSRenderer
  • 928622e fix ctx type
  • 141fa12 Add JSRenderer to static.go
  • 6a89184 Merge branch 'master' into create_pwa
  • b7548db Complete adding {{AppSubUrl}}
  • d4ccf69 Add more fonts to urlsToCache
  • 99bdcc9 Add 512px and 192px icons
  • 7585872 Merge branch 'master' into create_pwa

📊 Changes

9 files changed (+152 additions, -0 deletions)

View changed files

📝 Makefile (+2 -0)
📝 modules/templates/dynamic.go (+12 -0)
📝 modules/templates/static.go (+9 -0)
public/img/gitea-192.png (+0 -0)
public/img/gitea-512.png (+0 -0)
📝 routers/routes/routes.go (+9 -0)
📝 templates/base/head.tmpl (+17 -0)
templates/pwa/manifest_json.tmpl (+31 -0)
templates/pwa/serviceworker_js.tmpl (+72 -0)

📄 Description

Create a PWA by adding a app manifest and a service worker
This will allow users (especially on Android) to add the gitea website to the home-screen and use it like a native app.

Being served over https a service worker will cache all static content which will cause faster page loading and a better user experience.


TODOs:

  • Add 192x192 and 512x512 icons to the manifest.json
  • Complete list of static content in serviceworker.js
  • (Reorder head.tmpl)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4730 **Author:** [@SohnyBohny](https://github.com/SohnyBohny) **Created:** 8/16/2018 **Status:** ✅ Merged **Merged:** 11/27/2018 **Merged by:** [@techknowlogick](https://github.com/techknowlogick) **Base:** `master` ← **Head:** `create_pwa` --- ### 📝 Commits (10+) - [`a8df308`](https://github.com/go-gitea/gitea/commit/a8df308a2273114a0d83721018a3b682d67f79b0) Create manifest and serviceworker - [`cd9dee2`](https://github.com/go-gitea/gitea/commit/cd9dee241510303358d7d4fe4912b48bfe921be6) Create templates and add AppSubUrl - [`120ed02`](https://github.com/go-gitea/gitea/commit/120ed02ca4f3e0bd06f466ea9a528296c15f2bc0) Add JSRenderer - [`928622e`](https://github.com/go-gitea/gitea/commit/928622eee2fe5ef1755cca5ca247bf38459d985f) fix ctx type - [`141fa12`](https://github.com/go-gitea/gitea/commit/141fa12fe80128344b7aba83b4315c16f1314398) Add JSRenderer to static.go - [`6a89184`](https://github.com/go-gitea/gitea/commit/6a89184c0214ffd4a786cff84215eb12216c163e) Merge branch 'master' into create_pwa - [`b7548db`](https://github.com/go-gitea/gitea/commit/b7548dbb650f04fed935eb755b5c1aa9c57b195a) Complete adding {{AppSubUrl}} - [`d4ccf69`](https://github.com/go-gitea/gitea/commit/d4ccf690725ffc410425f046ec43482cda8b53da) Add more fonts to urlsToCache - [`99bdcc9`](https://github.com/go-gitea/gitea/commit/99bdcc9985ada10a3530d2278abfcc67d2acfd78) Add 512px and 192px icons - [`7585872`](https://github.com/go-gitea/gitea/commit/7585872110713827516b6be26f04b878a3f6af29) Merge branch 'master' into create_pwa ### 📊 Changes **9 files changed** (+152 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+2 -0) 📝 `modules/templates/dynamic.go` (+12 -0) 📝 `modules/templates/static.go` (+9 -0) ➕ `public/img/gitea-192.png` (+0 -0) ➕ `public/img/gitea-512.png` (+0 -0) 📝 `routers/routes/routes.go` (+9 -0) 📝 `templates/base/head.tmpl` (+17 -0) ➕ `templates/pwa/manifest_json.tmpl` (+31 -0) ➕ `templates/pwa/serviceworker_js.tmpl` (+72 -0) </details> ### 📄 Description Create a [PWA](https://developers.google.com/web/progressive-web-apps/) by adding a [app manifest](https://developers.google.com/web/fundamentals/web-app-manifest/) and a [service worker](https://developers.google.com/web/fundamentals/primers/service-workers/) This will allow users (especially on Android) to add the gitea website to the home-screen and use it like a native app. Being served over https a service worker will cache all static content which will cause faster page loading and a better user experience. --- TODOs: - [x] Add 192x192 and 512x512 icons to the manifest.json - [x] Complete list of static content in serviceworker.js - [ ] (Reorder head.tmpl) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:36:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17480