Add automatic JS license generation (#11810)
* Add automatic JS license generation Removed librejs file and replaced it with a plaintext file that is built from all JS dependencies that are included in the webpack build. It does not cover the few remaining statically vendored files and fomantic is added manually because it's not yet in the webpack build process. Fixes: https://github.com/go-gitea/gitea/issues/11630 * fix lint * remove jslicense, we're not librejs compatible any more * remove license.txt test as it depens on absent files * small optimization * trailing comma * localize and capitalize the word 'licenses' * reduce text to just 'Licenses' Co-authored-by: Lauris BH <lauris@nix.lv>tokarchuk/v1.17
parent
2b573f49cf
commit
bc4f7ba69b
@ -1,126 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html lang="en"> |
|
||||||
<head> |
|
||||||
<meta charset="UTF-8"> |
|
||||||
<title>JavaScript and plugin license information</title> |
|
||||||
</head> |
|
||||||
<body> |
|
||||||
<table id="jslicense-labels1"> |
|
||||||
<thead> |
|
||||||
<tr><th>Script</th><th>License</th><th>Source</th></tr> |
|
||||||
</thead> |
|
||||||
<tbody> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/index.js">jquery.are-you-sure.js</a></td> |
|
||||||
<td><a href="http://www.freebsd.org/copyright/freebsd-license.html">Expat</a></td> |
|
||||||
<td><a href="https://github.com/codedance/jquery.AreYouSure/archive/1.9.0.tar.gz">jquery.areyousure-1.9.0.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/jquery.js">jQuery</a></td> |
|
||||||
<td><a href="https://jquery.org/license/">MIT</a></td> |
|
||||||
<td><a href="https://code.jquery.com/jquery-3.5.0.min.js">jquery-3.5.0.min.js</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../fomantic/semantic.min.js">semantic.min.js</a></td> |
|
||||||
<td><a href="https://github.com/fomantic/Fomantic-UI/blob/master/LICENSE.md">Expat</a></td> |
|
||||||
<td><a href="https://github.com/fomantic/Fomantic-UI/archive/2.8.2.tar.gz">Fomantic-UI-2.8.2.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/index.js">semantic.dropdown</a></td> |
|
||||||
<td><a href="https://semantic-ui.mit-license.org/">Expat</a></td> |
|
||||||
<td><a href="https://github.com/go-gitea/gitea/tree/master/web_src/vendor/semantic.dropdown">semantic.dropdown.custom.js</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/index.js">index.js</a></td> |
|
||||||
<td><a href="https://github.com/go-gitea/gitea/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/go-gitea/gitea/tree/master/web_src/js">*.js</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/clipboard.js">clipboard.js</a></td> |
|
||||||
<td><a href="http://www.freebsd.org/copyright/freebsd-license.html">Expat</a></td> |
|
||||||
<td><a href="https://github.com/zenorocha/clipboard.js/archive/v2.0.4.tar.gz">clipboard-2.0.4.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/gitgraph.js">gitgraph.js</a></td> |
|
||||||
<td><a href="https://github.com/bluef/gitgraph.js/blob/master/LICENSE">BSD 3-Clause</a></td> |
|
||||||
<td><a href="https://github.com/bluef/gitgraph.js">gitgraph.js-latest</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/index.js">vue</a></td> |
|
||||||
<td><a href="https://github.com/vuejs/vue/blob/dev/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/vuejs/vue/archive/v2.6.11.tar.gz">vue.js-v2.6.11.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/dropzone.js">dropzone.js</a></td> |
|
||||||
<td><a href="https://github.com/enyo/dropzone/blob/master/LICENSE">MIT</a></td> |
|
||||||
<td><a href="https://github.com/enyo/dropzone/archive/master.tar.gz">dropzone-master.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/highlight.js">highlight.js</a></td> |
|
||||||
<td><a href="https://github.com/highlightjs/highlight.js/blob/master/LICENSE">BSD 3-Clause</a></td> |
|
||||||
<td><a href="https://github.com/highlightjs/highlight.js/archive/9.18.0.tar.gz">highlight.js.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/jquery.minicolors/jquery.minicolors.min.js">jquery.minicolors.min.js</a></td> |
|
||||||
<td><a href="https://github.com/claviska/jquery-minicolors/blob/master/LICENSE.md">Expat</a></td> |
|
||||||
<td><a href="https://github.com/claviska/jquery-minicolors/archive/2.2.3.tar.gz">jquery.minicolors-2.2.3.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/codemirror/addon/mode/loadmode.js">loadmode.js</a></td> |
|
||||||
<td><a href="https://github.com/codemirror/CodeMirror/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/codemirror/CodeMirror/archive/5.49.0.tar.gz">codemirror-5.49.0.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/codemirror/mode/meta.js">meta.js</a></td> |
|
||||||
<td><a href="https://github.com/codemirror/CodeMirror/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/codemirror/CodeMirror/archive/5.49.0.tar.gz">codemirror-5.49.0.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/simplemde/simplemde.min.js">simplemde.min.js</a></td> |
|
||||||
<td><a href="https://github.com/sparksuite/simplemde-markdown-editor/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/NextStepWebs/simplemde-markdown-editor/archive/1.10.1.tar.gz">simplemde-markdown-editor-1.10.1.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/pdfjs/">pdf.js</a></td> |
|
||||||
<td><a href="https://github.com/mozilla/pdf.js/blob/master/LICENSE">Apache-2.0-only</a></td> |
|
||||||
<td><a href="https://github.com/mozilla/pdf.js/archive/v2.1.266.tar.gz">pdf.js-v2.1.266.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./plugins/u2f/">u2f-api</a></td> |
|
||||||
<td><a href="https://github.com/go-gitea/u2f-api/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/go-gitea/u2f-api/archive/v1.0.8.zip">u2f-api-1.0.8.zip</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./assets/font-awesome/fonts/">font-awesome - fonts</a></td> |
|
||||||
<td><a href="http://fontawesome.io/license/">OFL</a></td> |
|
||||||
<td><a href="http://fontawesome.io/assets/font-awesome-4.6.0.zip">font-awesome-4.6.0.zip</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./assets/roboto-fonts/">roboto-fonts</a></td> |
|
||||||
<td><a href="https://github.com/google/roboto/blob/master/LICENSE">Apache-2.0</a></td> |
|
||||||
<td><a href="https://google-webfonts-helper.herokuapp.com/api/fonts/roboto?download=zip&subsets=latin-ext,cyrillic-ext,latin,greek,vietnamese,cyrillic,greek-ext&variants=700,regular,italic,700italic">roboto-v20-latin-ext_cyrillic-ext_latin_greek_vietnamese_cyrillic_greek-ext.zip</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./assets/font-awesome/css/">font-awesome - code</a></td> |
|
||||||
<td><a href="http://fontawesome.io/license/">Expat</a></td> |
|
||||||
<td><a href="http://fontawesome.io/assets/font-awesome-4.6.0.zip">font-awesome-4.6.0.zip</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./assets/octicons/">octicons</a></td> |
|
||||||
<td><a href="https://github.com/primer/octicons/blob/master/LICENSE">Expat</a></td> |
|
||||||
<td><a href="https://github.com/primer/octicons/archive/v4.3.0.tar.gz">octicons-v4.3.0.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="./assets/swagger-ui/">swagger-ui</a></td> |
|
||||||
<td><a href="https://github.com/swagger-api/swagger-ui/blob/master/LICENSE">Apache-2.0</a></td> |
|
||||||
<td><a href="https://github.com/swagger-api/swagger-ui/archive/v3.22.1.tar.gz">swagger-ui-v3.22.1.tar.gz</a></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td><a href="../js/index.js">vue-calendar-heatmap</a></td> |
|
||||||
<td><a href="https://github.com/WildCodeSchool/vue-calendar-heatmap/blob/master/README.md">MIT</a></td> |
|
||||||
<td><a href="https://github.com/WildCodeSchool/vue-calendar-heatmap/archive/master.zip">master.zip</a></td> |
|
||||||
</tr> |
|
||||||
</tbody> |
|
||||||
</table> |
|
||||||
</body> |
|
||||||
</html> |
|
Loading…
Reference in new issue