forgejo-federation/public/vendor/plugins/codemirror/mode
Michael Lustfield a915a09e4f Moved vendored js/css into public/vendor and documented sources (#1484) (#2241)
* Cleaning up public/ and documenting js/css libs.

This commit mostly addresses #1484 by moving vendor'ed plugins into a
vendor/ directory and documenting their upstream source and license in
vendor/librejs.html.

This also proves gitea is using only open source js/css libraries which
helps toward reaching #1524.

* Removing unused css file.

The version of this file in use is located at:
  vendor/plugins/highlight/github.css

* Cleaned up librejs.html and added javascript header

A SafeJS function was added to templates/helper.go to allow keeping
comments inside of javascript.

A javascript comment was added in the header of templates/base/head.tmpl
to mark all non-inline source as free.

The librejs.html file was updated to meet the current librejs spec. I
have now verified that the librejs plugin detects most of the scripts
included in gitea and suspect the non-free detections are the result of
a bug in the plugin. I believe this commit is enough to meet the C0.0
requirement of #1534.

* Updating SafeJS function per lint suggestion

* Added VERSIONS file, per request
2017-08-23 16:58:05 +02:00
..
apl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
asciiarmor Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
asn.1 Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
asterisk Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
brainfuck Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
clike Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
clojure Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
cmake Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
cobol Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
coffeescript Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
commonlisp Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
crystal Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
css Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
cypher Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
d Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
dart Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
diff Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
django Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
dockerfile Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
dtd Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
dylan Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ebnf Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ecl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
eiffel Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
elm Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
erlang Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
factor Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
fcl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
forth Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
fortran Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
gas Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
gfm Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
gherkin Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
go Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
groovy Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
haml Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
handlebars Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
haskell Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
haskell-literate Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
haxe Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
htmlembedded Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
htmlmixed Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
http Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
idl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
jade Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
javascript Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
jinja2 Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
jsx Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
julia Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
livescript Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
lua Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
markdown Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mathematica Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mbox Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mirc Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mllike Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
modelica Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mscgen Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
mumps Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
nginx Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
nsis Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ntriples Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
octave Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
oz Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
pascal Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
pegjs Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
perl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
php Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
pig Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
powershell Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
properties Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
protobuf Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
puppet Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
python Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
q Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
r Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
rpm Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
rst Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ruby Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
rust Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
sas Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
sass Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
scheme Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
shell Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
sieve Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
slim Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
smalltalk Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
smarty Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
solr Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
soy Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
sparql Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
spreadsheet Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
sql Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
stex Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
stylus Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
swift Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
tcl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
textile Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
tiddlywiki Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
tiki Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
toml Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
tornado Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
troff Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ttcn Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
ttcn-cfg Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
turtle Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
twig Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
vb Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
vbscript Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
velocity Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
verilog Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
vhdl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
vue Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
webidl Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
xml Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
xquery Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
yacas Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
yaml Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
yaml-frontmatter Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
z80 Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
index.html Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00
meta.js Moved vendored js/css into public/vendor and documented sources (#1484) (#2241) 2017-08-23 16:58:05 +02:00