From 7e1dad6922a967eafddac750a4b60ff6768292d8 Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Thu, 21 Sep 2023 12:00:21 +0200 Subject: [PATCH 1/9] :bug: Fix broken join dialog --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 09c567b..aa9a0d4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -148,7 +148,7 @@ app.whenReady().then(() => { if ("${autoLogin}" === "true") { ui.join._onSubmit(fakeEvent); } else { - document.getElementById("join-game").addEventListener("click", () => { + document.querySelector(".form-footer button[name=join]").addEventListener("click", () => { ui.join._onSubmit(fakeEvent); }); } From 42ab44ece973309aeaf751c5d34838f76d156782 Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Wed, 27 Sep 2023 15:33:03 +0200 Subject: [PATCH 2/9] :sparkles: Add multiple window support Add multiple window support Fix Cache Path not working Add Button to show local data for use in config.json --- README.md | 9 +++ index.html | 25 ++++++ src/main.ts | 199 ++++++++++++++++++++++++++++-------------------- src/preload.ts | 94 ++++++++++++----------- src/renderer.ts | 12 +-- src/style.css | 15 ++++ src/types.d.ts | 18 ++++- 7 files changed, 234 insertions(+), 138 deletions(-) diff --git a/README.md b/README.md index 0e845b0..6b2c937 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # fvtt-player-client wiki https://wiki.theripper93.com/free/vtt-desktop-client + +## Getting data from `localStorage` to put into `config.json` + +```js +JSON.stringify({ + ...JSON.parse(window.localStorage.getItem("appConfig") || "{}"), + games: JSON.parse(window.localStorage.getItem("gameList") || "[]") +}) +``` \ No newline at end of file diff --git a/index.html b/index.html index 8123296..a84ef35 100644 --- a/index.html +++ b/index.html @@ -23,11 +23,16 @@ document.querySelector('.help').classList.toggle('hidden2'); } + function toggleExportConfig() { + document.querySelector('.config-export').classList.toggle('hidden2'); + } +
+
@@ -101,6 +106,26 @@
+ +
+

Put this in your config.json file to include it installation-wide:

+
+ + + +