From 613aed2d2b450c044f80ec330ffc91f4862c05a4 Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Thu, 25 Jan 2024 17:42:16 +0100 Subject: [PATCH] Added config page and loading bars --- manager/ejs/connections.ejs | 2 +- manager/ejs/connectionsType.ejs | 6 +- manager/ejs/folder.ejs | 2 +- manager/ejs/passwords.ejs | 2 +- manager/ejs/settings.ejs | 263 +++++++++++++++++++++++++++++ manager/ejs/type.ejs | 6 +- manager/ejs/wizard.ejs | 6 + manager/index.html | 4 +- manager/javascripts/dcsinstance.js | 118 +++++++------ manager/javascripts/filesystem.js | 2 +- manager/javascripts/manager.js | 161 ++++++++++-------- manager/javascripts/managerpage.js | 3 + manager/javascripts/preload.js | 15 +- manager/stylesheets/style.css | 19 +++ 14 files changed, 475 insertions(+), 134 deletions(-) create mode 100644 manager/ejs/settings.ejs diff --git a/manager/ejs/connections.ejs b/manager/ejs/connections.ejs index a37ff581..d661c03b 100644 --- a/manager/ejs/connections.ejs +++ b/manager/ejs/connections.ejs @@ -30,7 +30,7 @@
- Step 3 of 4 + Step <%= singleInstance? "3": "4" %> of <%= singleInstance? "4": "5" %>
Manually set Olympus port and address settings diff --git a/manager/ejs/connectionsType.ejs b/manager/ejs/connectionsType.ejs index 28d77ae4..a6a259f6 100644 --- a/manager/ejs/connectionsType.ejs +++ b/manager/ejs/connectionsType.ejs @@ -4,7 +4,7 @@
- Step 2 of 4 + Step <%= singleInstance? "2": "3" %> of <%= singleInstance? "4": "5" %>
Do you want to set port and address settings? @@ -15,10 +15,10 @@
-
+
Auto apply settings
-
+
Manually set
diff --git a/manager/ejs/folder.ejs b/manager/ejs/folder.ejs index 63bc05b2..3ee1ff31 100644 --- a/manager/ejs/folder.ejs +++ b/manager/ejs/folder.ejs @@ -4,7 +4,7 @@
- Step 1 of 4 + Step 1 of <%= singleInstance? "4": "5" %>
Which DCS instance you want to add Olympus to? diff --git a/manager/ejs/passwords.ejs b/manager/ejs/passwords.ejs index 91d0d69f..9d9907d6 100644 --- a/manager/ejs/passwords.ejs +++ b/manager/ejs/passwords.ejs @@ -4,7 +4,7 @@
- Step 4 of 4 + Step <%= singleInstance? "4": "5" %> of <%= singleInstance? "4": "5" %>
Enter your passwords for Olympus diff --git a/manager/ejs/settings.ejs b/manager/ejs/settings.ejs new file mode 100644 index 00000000..f298dc56 --- /dev/null +++ b/manager/ejs/settings.ejs @@ -0,0 +1,263 @@ + +
+
+
+ + View and manage installs + + + The following DCS installations have been identified.
You can modify settings and uninstall below. +
+
+
+
+ <% for (let i = 0; i < instances.length; i++) {%> + <% if (instances[i].installed) { %> +
+
+ <%= instances[i].name %> + <%= instances[i].folder %> +
+
+
+
Client port
+
<%= instances[i].installed? instances[i].clientPort: "N/A" %>
+
+
+
Backend port
+
<%= instances[i].installed? instances[i].backendPort: "N/A" %>
+
+
+
Backend address
+
<%= instances[i].installed? instances[i].backendAddress: "N/A" %>
+
+
+
+
+
Edit settings
+
Uninstall Olympus
+
+
+ <% } %> + <% } %> +
+
+
+
\ No newline at end of file diff --git a/manager/ejs/type.ejs b/manager/ejs/type.ejs index ee8169ad..ca654e86 100644 --- a/manager/ejs/type.ejs +++ b/manager/ejs/type.ejs @@ -4,7 +4,7 @@
- Step 1 of 4 + Step <%= singleInstance? "1": "2" %> of <%= singleInstance? "4": "5" %>
Do you want to add Olympus for singleplayer or multiplayer? @@ -15,10 +15,10 @@
-
+
Singleplayer
-
+
Multiplayer
diff --git a/manager/ejs/wizard.ejs b/manager/ejs/wizard.ejs index 24949b82..dc5a4ef8 100644 --- a/manager/ejs/wizard.ejs +++ b/manager/ejs/wizard.ejs @@ -4,6 +4,7 @@ flex-direction: column; row-gap: 30px; padding: 60px 120px; + max-height: 100%; } .buttons-footer { @@ -34,6 +35,11 @@ font-weight: bold; } + .content { + overflow-x: hidden; + overflow-y: scroll; + } + .content > div { height: 100%; width: 100%; diff --git a/manager/index.html b/manager/index.html index 1c068bd6..b3f8c34a 100644 --- a/manager/index.html +++ b/manager/index.html @@ -37,7 +37,9 @@
- Loading, please wait... +
Loading, please wait...
+
+