summaryrefslogtreecommitdiff
path: root/client/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'client/index.html')
-rwxr-xr-xclient/index.html69
1 files changed, 49 insertions, 20 deletions
diff --git a/client/index.html b/client/index.html
index 9e90c31..177fc15 100755
--- a/client/index.html
+++ b/client/index.html
@@ -2,17 +2,28 @@
<html> <!-- 006a6c -->
<head>
<script>
- //window.version = "2.3";
- window.version = "2.4-beta.2023-05-01";
+ //window.version = "2.4";
+ window.version = "2.5-beta.2023-05-06";
window.betaVersion = true;
window.changeLog = `
Thanks for using Localchat. You are currently running Localchat version %1, below are all the changes in that version compared to the previous version.
-Localchat Client 2.4 Beta:
- - Added experimental localization support
- - Added experimental Linux support
+Localchat Client 2.5 Beta:
+ - Localization coverage is now complete
+ - Added Spanish and German translations
+ - Added a "New" badge next to the language selector
+ - Fixed translations not loading in some cases
+ - Fixed being able to drag title bar icons on Linux
Here is what changed in the previous versions:
+ * Localchat Client 2.4:
+ - Added experimental localization support (only on beta)
+ - Added Linux support, without content protection
+ - Ctrl+Alt+C (or Cmd+Opt+C) now minimises the window
+ - Fixed the taskbar icon on Windows
+ - Fixed being able to insert images the wrong way
+ - Fixed unexpected scrolling through the timeline
+
* Localchat Client 2.3:
- Added the /channel command
- The version number now appears on the OOBE
@@ -59,7 +70,6 @@ Here is what changed in the previous versions:
<meta charset="UTF-8">
<title>Localchat</title>
<script src="../shared/crypt.js"></script>
- <script src="./i18n.js"></script>
<script src="commands.js"></script>
<script type="text/javascript" src="lib/purify.min.js"></script>
<script src="lib/marked.min.js"></script>
@@ -72,6 +82,21 @@ Here is what changed in the previous versions:
width: 100%;
}
+ #title-bar {
+ pointer-events: none;
+ }
+
+ #oobe-language-badge {
+ font-size: 14px;
+ position: absolute;
+ margin-top: -32px;
+ right: 55px;
+ padding: 5px 10px;
+ border-radius: 999px;
+ background: #3f4949;
+ color: #e0e3e2;
+ }
+
.message-file .message-text {
background-color: #3f4949;
color: #bec8c8;
@@ -539,6 +564,11 @@ Here is what changed in the previous versions:
color: #ede0de;
}
+ .oobe-beta #oobe-language-badge {
+ background: #534341;
+ color: #ede0de;
+ }
+
.oobe-beta .oobe-textbox {
background-color: #534341 !important;
color: #d8c2be !important;
@@ -609,9 +639,12 @@ Here is what changed in the previous versions:
<div style="margin-top: 50px;">
<div id="oobe-i18n-beta">
<select class="oobe-dropdown oobe-item-first" id="oobe-dropdown-language" onchange="changeLanguageOOBE();">
- <option value="en-US">English (United States)</option>
- <option value="fr-FR">français (France) [BETA]</option>
+ <option value="en-US">English</option>
+ <option value="fr-FR">français [BETA]</option>
+ <option value="es-ES">Español [BETA]</option>
+ <option value="de-DE">Deutsch [BETA]</option>
</select>
+ <div id="oobe-language-badge">New</div>
<img src="icons/language.svg" class="oobe-dropdown-icon oobe-beta-icon">
<a class="oobe-action" onclick="require('electron').ipcRenderer.send('devmode');" data-i18n-text="oobe/developer"></a>
@@ -871,7 +904,12 @@ Here is what changed in the previous versions:
const { ipcRenderer } = require('electron');
const os = require("os");
- document.getElementById("chat-log").ondrop = document.getElementById("input").ondrop = document.getElementById("title-bar").ondrop = (event) => {
+ document.getElementById("input").ondrop = (event) => {
+ event.preventDefault();
+ }
+
+ document.getElementById("chat-log").ondrop = document.getElementById("title-bar").ondrop = (event) => {
+ event.preventDefault();
if (!window.connected) return;
let foundFile = null;
@@ -966,7 +1004,7 @@ Here is what changed in the previous versions:
let willScroll = false;
let el = document.getElementById("chat-log");
- if (el.scrollTop !== el.scrollHeight) {
+ if (Math.abs(el.scrollTop - (el.scrollHeight - el.clientHeight)) < 200) {
willScroll = true;
} else if (!document.hasFocus()) {
willScroll = true;
@@ -1519,16 +1557,7 @@ Here is what changed in the previous versions:
displayMessages();
}
-
- ipcRenderer.send("ready");
-
- if (localStorage.getItem("oobe-" + version) === "1") {
- ipcRenderer.send("past-oobe");
- document.getElementById("oobe").style.display = "none";
- connect();
- } else {
- document.getElementById("oobe-dropdown-language").value = localStorage.getItem("language") ?? "en-US";
- }
</script>
+ <script src="./i18n.js"></script>
</body>
</html> \ No newline at end of file