You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/web_src/js
silverwind 655def5141
Move serviceworker to workbox and fix SSE interference (#11538) (#11547)
* 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>
5 years ago
..
components Migrate ActivityHeatmap to Vue SFC (#10953) 5 years ago
features Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
standalone Reorganize frontend files and tooling (#10168) 5 years ago
vendor Misc JS linting and naming tweaks (#10652) 5 years ago
index.js Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 5 years ago
polyfills.js fix commit view JS features, reimplement folding (#9968) 5 years ago
publicpath.js Misc JS linting and naming tweaks (#10652) 5 years ago
serviceworker.js Move serviceworker to workbox and fix SSE interference (#11538) (#11547) 5 years ago
utils.js Switch code editor to Monaco (#11366) 5 years ago