We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
webcomponents
1 parent ffce336 commit 0bfcbccCopy full SHA for 0bfcbcc
web_src/js/webcomponents/README.md
@@ -0,0 +1,19 @@
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),
10
+ so they should have their own dependencies and should be very light,
11
+ then they won't affect the page loading time too much.
12
+* If the component is not a public one, it's suggested to have its own `Gitea` or `gitea-` prefix to avoid conflicts.
13
14
+# TODO
15
16
+There are still some components that are not migrated to web components yet:
17
18
+* `<span class="js-pretty-number">`
19
+* `<time data-format>`
0 commit comments