code.gitea.io/gitea@v1.22.3/web_src/js/webcomponents/README.md (about) 1 # Web Components 2 3 This `webcomponents` directory contains the source code for the web components used in the Gitea Web UI. 4 5 https://developer.mozilla.org/en-US/docs/Web/Web_Components 6 7 # Guidelines 8 9 * These components are loaded in `<head>` (before DOM body) in a separate entry point, they need to be lightweight to not affect the page loading time too much. 10 * Do not import `svg.js` into a web component because that file is currently not tree-shakeable, import svg files individually insteat. 11 * All our components must be added to `webpack.config.js` so they work correctly in Vue.