mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add basic PWA offline page
- Remove feed_icons cache because it's causing more problems that it solve. - Add basic offline mode when using the service worker. - Starting in Chrome 93, offline mode is going to be a requirement to install the PWA. https://developer.chrome.com/blog/improved-pwa-offline-detection/#enforcement-starting-chrome-93-august-2021
This commit is contained in:
parent
ae13b4e420
commit
8a812cd8ec
20 changed files with 141 additions and 14 deletions
3
ui/ui.go
3
ui/ui.go
|
@ -145,6 +145,9 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
|
|||
uiRouter.HandleFunc("/oauth2/{provider}/redirect", handler.oauth2Redirect).Name("oauth2Redirect").Methods(http.MethodGet)
|
||||
uiRouter.HandleFunc("/oauth2/{provider}/callback", handler.oauth2Callback).Name("oauth2Callback").Methods(http.MethodGet)
|
||||
|
||||
// Offline page
|
||||
uiRouter.HandleFunc("/offline", handler.showOfflinePage).Name("offline").Methods(http.MethodGet)
|
||||
|
||||
// Authentication pages.
|
||||
uiRouter.HandleFunc("/login", handler.checkLogin).Name("checkLogin").Methods(http.MethodPost)
|
||||
uiRouter.HandleFunc("/logout", handler.logout).Name("logout").Methods(http.MethodGet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue