[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thelounge librejs patch
From: |
Yuchen Pei |
Subject: |
Thelounge librejs patch |
Date: |
Mon, 09 Aug 2021 17:04:13 +1000 |
User-agent: |
mu4e 1.4.13; emacs 27.2 |
Hello,
As discussed on IRC, I am sending some patches for librejs
compliance of chat.emacsconf.org.
Since I have no access to any of the servers, I have placed the
weblabel table in the emacsconf wiki.
The other patch can be applied to
/usr/lib/node_modules/thelounge/client/index.html.tpl (or wherever
the index template is located) by running
patch p0 patch.txt
Let me know if there are any issues.
Best,
Yuchen
From 967976ddef021dad514b8f72dd24780ce982cf08 Mon Sep 17 00:00:00 2001
From: Yuchen Pei <me@ypei.me>
Date: Mon, 9 Aug 2021 16:54:30 +1000
Subject: [PATCH] Adding web label for thelounge
---
jslicenses.html | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
create mode 100644 jslicenses.html
diff --git a/jslicenses.html b/jslicenses.html
new file mode 100644
index 0000000..2703720
--- /dev/null
+++ b/jslicenses.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+<title>chat.emacsconf.org - JavaScript License Information</title>
+
+<style type="text/css">#jslicense-labels1 td, #jslicense-labels1 th { padding:
5px; border-style: solid; border-width: 1px;}
+#jslicense-labels1 { border-spacing: 0; border-collapse: collapse; }
+</style>
+
+</head>
+
+<body>
+
+<p>This page tells browsers with <a
href="https://www.gnu.org/software/librejs/">LibreJS</a> installed about the
licenses of JavaScript files served by <a
href="https://chat.emacsconf.org">chat.emacsconf.org</a>.</p>
+
+<div>
+<table id="jslicense-labels1">
+ <tbody>
+ <tr>
+ <td><a
href="https://chat.emacsconf.org/js/loading-error-handlers.js"></a>loading-error-handlers.js</td>
+ <td><a
href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a
href="https://github.com/thelounge/thelounge">thelounge</a></td>
+ </tr>
+ <tr>
+ <td><a
href="https://chat.emacsconf.org/js/bundle.js">bundle.js</a></td>
+ <td><a
href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a
href="https://github.com/thelounge/thelounge">thelounge</a></td>
+ </tr>
+ <tr>
+ <td><a
href="https://chat.emacsconf.org/js/bundle.vendor.js">bundle.vendor.js</a></td>
+ <td><a
href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
+ <td><a
href="https://github.com/thelounge/thelounge">thelounge</a></td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+
+</body>
+</html>
--
2.32.0
--- /usr/lib/node_modules/thelounge/client/index.html.tpl 2021-08-09
06:37:32.076102036 +0000
+++ /usr/lib/node_modules/thelounge/client/index.html.tpl 2021-08-09
06:37:32.076102036 +0000
@@ -65,5 +65,6 @@
<script src="js/loading-error-handlers.js?v=<%- cacheBust
%>"></script>
<script src="js/bundle.vendor.js?v=<%- cacheBust %>"></script>
<script src="js/bundle.js?v=<%- cacheBust %>"></script>
+ <div style="display: none"><a
href="https://libreau.org/jslicenses.html" rel="jslicense">JavaScript license
information</a></div>
</body>
</html>
--
PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0
signature.asc
Description: PGP signature
- Thelounge librejs patch,
Yuchen Pei <=