summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-27 13:34:20 +0200
committerRaindropsSys <contact@minteck.org>2023-04-27 13:34:20 +0200
commite229e325e26e1a5536d566f46c535e9a3422ecda (patch)
treea74243589d0b5611d529990a7ee672e6a1869e61
parent17694a26612d251edcf1094a0dff4f4e6892acf5 (diff)
downloadchatroom-e229e325e26e1a5536d566f46c535e9a3422ecda.tar.gz
chatroom-e229e325e26e1a5536d566f46c535e9a3422ecda.tar.bz2
chatroom-e229e325e26e1a5536d566f46c535e9a3422ecda.zip
Updated client/index.html and added client/icons/diagnostics.svg (automated)
-rw-r--r--client/icons/diagnostics.svg1
-rwxr-xr-xclient/index.html32
2 files changed, 31 insertions, 2 deletions
diff --git a/client/icons/diagnostics.svg b/client/icons/diagnostics.svg
new file mode 100644
index 0000000..1a162e2
--- /dev/null
+++ b/client/icons/diagnostics.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 96 960 960" width="48"><path fill="#e0e3e2" d="M363 866q-16 0-29-9t-18-23l-97-228H48v-60h213l102 241 187-467q5-14 18-23t29-9q16 0 29 9t18 23l97 226h171v60H699L597 367 410 834q-5 14-18 23t-29 9Z"/></svg> \ No newline at end of file
diff --git a/client/index.html b/client/index.html
index 9d1211f..2b817b7 100755
--- a/client/index.html
+++ b/client/index.html
@@ -2,7 +2,7 @@
<html> <!-- 006a6c -->
<head>
<script>
- window.version = "2.0-dev.m2.2023-04-17";
+ window.version = "2.0-dev.m2.2023-04-26";
</script>
<meta charset="UTF-8">
<title>Localchat</title>
@@ -557,6 +557,29 @@
<div id="oobe-6" class="oobe-page">
<div class="oobe-icon">
+ <img src="icons/diagnostics.svg">
+ </div>
+
+ <div class="oobe-main">
+ <h1>Allow diagnostic data?</h1>
+
+ <div style="margin-top: 50px;">
+ Equestria.dev can collect diagnostic data while you use Localchat to resolve issues you are encountering and improve your experience.
+ </div>
+ </div>
+
+ <div class="oobe-buttons">
+ <div class="oobe-button-back-outer">
+ <a class="oobe-button-back" onclick="diagnostics(false);">Skip</a>
+ </div>
+ <div class="oobe-button-next-outer">
+ <a class="oobe-button-next" onclick="diagnostics(true);">I agree</a>
+ </div>
+ </div>
+ </div>
+
+ <div id="oobe-7" class="oobe-page">
+ <div class="oobe-icon">
<img src="icons/complete.svg">
</div>
@@ -594,7 +617,7 @@
</script>
<div id="chat-log"></div>
<div id="input">
- <a title="Upload a file" class="input-icon" onclick="if (window.connected) uploadFile();"><img src="icons/upload.svg"></a>
+ <a title="Upload a file" class="input-icon" onclick="nonExistent(); return; if (window.connected) uploadFile();"><img src="icons/upload.svg"></a>
<div contenteditable="true" style="font-family: inherit; font-size: 14px;" id="input-text">&nbsp;</div>
<div style="font-family: inherit; font-size: 14px; opacity: .5;" id="input-text-placeholder">Send a message</div>
</div>
@@ -604,6 +627,11 @@
const { ipcRenderer } = require('electron');
const os = require("os");
+ function diagnostics(status) {
+ localStorage.setItem("diagnostics-data", status ? "true" : "false");
+ oobePage(7);
+ }
+
window.onerror = (_1, _2, _3, _4, error) => {
localSystemMessage("An error occurred: " + error.name + ": " + error.message + "; please report this on https://bugs.equestria.dev/issues/LCHT");
console.error(error);