summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr4
-rw-r--r--src/invidious/views/licenses.ecr153
-rw-r--r--src/invidious/views/template.ecr1
3 files changed, 158 insertions, 0 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index f267d7c1..04a7d264 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -188,6 +188,10 @@ get "/" do |env|
templated "index"
end
+get "/licenses" do |env|
+ rendered "licenses"
+end
+
# Videos
get "/:id" do |env|
diff --git a/src/invidious/views/licenses.ecr b/src/invidious/views/licenses.ecr
new file mode 100644
index 00000000..b79487f6
--- /dev/null
+++ b/src/invidious/views/licenses.ecr
@@ -0,0 +1,153 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+</head>
+
+<body>
+ <h1>JavaScript license information</h1>
+ <table id="jslicense-labels1">
+ <tr>
+ <td>
+ <a href="/js/dash.mediaplayer.min.js">dash.mediaplayer.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://directory.fsf.org/wiki/License:BSD_3Clause">Modified-BSD</a>
+ </td>
+
+ <td>
+ <a href="/js/dash.mediaplayer.debug.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/silvermine-videojs-quality-selector.min.js">silvermine-videojs-quality-selector.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.jclark.com/xml/copying.txt">Expat</a>
+ </td>
+
+ <td>
+ <a href="/js/silvermine-videojs-quality-selector.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/video.min.js">video.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
+ </td>
+
+ <td>
+ <a href="/js/video.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs-contrib-quality-levels.min.js">videojs-contrib-quality-levels.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs-contrib-quality-levels.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs-dash.min.js">videojs-dash.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs-dash.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs-http-streaming.min.js">videojs-http-streaming.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs-http-streaming.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs-markers.min.js">videojs-markers.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.jclark.com/xml/copying.txt">Expat</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs-markers.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs-share.min.js">videojs-share.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.jclark.com/xml/copying.txt">Expat</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs-share.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/videojs.hotkeys.min.js">videojs.hotkeys.min.js</a>
+ </td>
+
+ <td>
+ <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a>
+ </td>
+
+ <td>
+ <a href="/js/videojs.hotkeys.js">source</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="/js/watch.js">watch.js</a>
+ </td>
+
+ <td>
+ <a href="https://www.gnu.org/licenses/agpl-3.0.html">GNU-AGPL-3.0-or-later</a>
+ </td>
+
+ <td>
+ <a href="/js/watch.js">source</a>
+ </td>
+ </tr>
+ </table>
+</body>
+</html> \ No newline at end of file
diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr
index a6191d36..748a691f 100644
--- a/src/invidious/views/template.ecr
+++ b/src/invidious/views/template.ecr
@@ -92,6 +92,7 @@
</p>
<p>BTC: 356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</p>
<p>BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</p>
+ <p>View <a rel="jslicense" href="/licenses">JavaScript license information</a>.</p>
</div>
</div>
<div class="pure-u-1 pure-u-md-2-24"></div>