From 5ccd403085124183003e6073d62031565805ca33 Mon Sep 17 00:00:00 2001
From: Sascha Moser <28950736+xopez@users.noreply.github.com>
Date: Mon, 1 Feb 2021 19:43:45 +0100
Subject: [PATCH 1/3] Correct Version Comment
Just correcting the comment
---
src/private/templates/body.latte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/private/templates/body.latte b/src/private/templates/body.latte
index d6634e3..bb9ac34 100644
--- a/src/private/templates/body.latte
+++ b/src/private/templates/body.latte
@@ -20,7 +20,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
{$tplutils::includeStylesheet("{cdnjs}/twitter-bootstrap/4.6.0/css/bootstrap.min.css", "sha256-T/zFmO5s/0aSwc6ics2KLxlfbewyRz6UNw1s3Ppf5gE=")}
-
+
{$tplutils::includeStylesheet("{cdnjs}/font-awesome/5.15.2/css/all.min.css", "sha256-0fuNgzfNIlaClbDtmYyFxY8LTNCDrwsNshywr4AALy0=")}
From 70d2c7f87098975164d9c03794bfc612cc4b5bfe Mon Sep 17 00:00:00 2001
From: Sascha Moser <28950736+xopez@users.noreply.github.com>
Date: Fri, 5 Feb 2021 22:31:37 +0100
Subject: [PATCH 2/3] Use minified day.js locale files
---
src/private/templates/body.latte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/private/templates/body.latte b/src/private/templates/body.latte
index bb9ac34..22c1fe4 100644
--- a/src/private/templates/body.latte
+++ b/src/private/templates/body.latte
@@ -191,7 +191,7 @@ $navActiveIndex = isset($navActiveIndex) ? (int) $navActiveIndex : 0;
{var $dayjslang = __get("DAYJS_LANG", [], true)}
{if $dayjslang !== null && $dayjslang !== "en"}
- {$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.js")}
+ {$tplutils::includeScript("{cdnjs}/dayjs/1.10.4/locale/$dayjslang.min.js")}
From c0b32f5992d027eef16294568557d26a28a1eb89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Niesner?=
Date: Wed, 24 Mar 2021 18:06:05 +0100
Subject: [PATCH 3/3] Convert to string before replace (#186)
This fixes this error text.replace is not a function
When somebody has this nickname 1234567890 it thorws error in the server viewer.
---
src/js/script.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/js/script.js b/src/js/script.js
index f8ed73f..bafa763 100644
--- a/src/js/script.js
+++ b/src/js/script.js
@@ -124,7 +124,7 @@ function escapeHtml(text) {
"'": '''
};
- return text.replace(/[&<>"']/g, function(m) { return map[m]; });
+ return text.toString().replace(/[&<>"']/g, function(m) { return map[m]; });
}
function updateTooltip(el, text) {