1
0
Fork 0
forgejo/web_src/js/features
silverwind 88fe7b5a72
Move serviceworker to workbox and fix SSE interference (#11538)
* Move serviceworker to workbox and fix SSE interference

Instead of statically hardcoding every frontend asset, this uses a
type-based approach to cache all js,css and manifest.json requests.

This also fixes the issue that the service worker was interfering with
EventSource because it was unconditionally handling all requests which
this new implementation doesn't.

Fixes: https://github.com/go-gitea/gitea/issues/11092
Fixes: https://github.com/go-gitea/gitea/issues/7372

* rethrow error instead of logging

* await .register

* Revert "rethrow error instead of logging"

This reverts commit 043162ba1f.

* improve comment

* remove JSRenderer

* add version-based cache invalidation

* refactor

* more refactor

* remove comment

* rename item to fit cache name

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
2020-05-21 21:45:34 -04:00
..
clipboard.js Misc JS linting and naming tweaks (#10652) 2020-03-11 21:34:54 +02:00
codeeditor.js Switch code editor to Monaco (#11366) 2020-05-14 19:06:01 +03:00
contextpopup.js Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
datetimepicker.js move jquery-datetimepicker to npm/webpack (#10713) 2020-03-17 15:08:15 -04:00
dropzone.js Misc JS linting and naming tweaks (#10652) 2020-03-11 21:34:54 +02:00
emoji.js Support unicode emojis and remove emojify.js (#11032) 2020-04-28 15:05:39 -03:00
gitgraph.js Misc JS linting and naming tweaks (#10652) 2020-03-11 21:34:54 +02:00
highlight.js Move syntax highlighting to web worker (#11017) 2020-04-13 16:02:31 +03:00
highlight.worker.js Move syntax highlighting to web worker (#11017) 2020-04-13 16:02:31 +03:00
notification.js Add EventSource support (#11235) 2020-05-07 22:49:00 +01:00
serviceworker.js Move serviceworker to workbox and fix SSE interference (#11538) 2020-05-21 21:45:34 -04:00
tribute.js Move tributejs to npm/webpack (#11497) 2020-05-20 22:00:43 -04:00
userheatmap.js Migrate ActivityHeatmap to Vue SFC (#10953) 2020-04-06 09:31:11 +08:00