From c2f6edfd749c0e8972819d99dc2bb8020b9399fb Mon Sep 17 00:00:00 2001 From: Pax1601 Date: Sun, 28 Jan 2024 16:37:29 +0100 Subject: [PATCH] Minor refactoring of css, fixed graphical inconsistencies --- manager/ejs/connections.ejs | 2 +- manager/ejs/instances.ejs | 250 +----------- manager/ejs/menu.ejs | 6 +- manager/ejs/passwords.ejs | 2 +- manager/ejs/result.ejs | 14 +- manager/ejs/settings.ejs | 242 +----------- manager/ejs/welcome.ejs | 2 +- manager/ejs/wizard.ejs | 32 +- manager/index.html | 2 +- manager/javascripts/dcsinstance.js | 7 +- manager/javascripts/manager.js | 8 +- manager/javascripts/preload.js | 2 +- manager/stylesheets/style.css | 614 +++++++++++++++++++++-------- 13 files changed, 515 insertions(+), 668 deletions(-) diff --git a/manager/ejs/connections.ejs b/manager/ejs/connections.ejs index d661c03b..cc8df545 100644 --- a/manager/ejs/connections.ejs +++ b/manager/ejs/connections.ejs @@ -22,7 +22,7 @@ #connections-page .error span { font-weight: 600; - font-size: 12px; + font-size: var(--small); color: var(--red); height: fit-content; } diff --git a/manager/ejs/instances.ejs b/manager/ejs/instances.ejs index d2fdbbaa..86f46e34 100644 --- a/manager/ejs/instances.ejs +++ b/manager/ejs/instances.ejs @@ -1,243 +1,14 @@ -
+
-
- +
+ View and manage installs - + The following DCS installations have been identified.
You can start an Olympus server, modify settings and uninstall below.
@@ -246,7 +17,10 @@ <% for (let i = 0; i < instances.length; i++) {%>
- <%= instances[i].name %> + <%= instances[i].name %> + + <%= instances[i].folder %> +
ACTIVE
OFFLINE
@@ -259,11 +33,11 @@
- + <%= instances[i].installed? (instances[i].error? 'Corrupted/outdated Olympus installation': 'Olympus installed'): 'Olympus not installed' %> - <%= instances[i].folder %> -
+ +
Client port
<%= instances[i].installed? instances[i].clientPort: "N/A" %>
@@ -293,7 +67,7 @@
Open in browser
Stop Olympus
-
Open logs
diff --git a/manager/ejs/menu.ejs b/manager/ejs/menu.ejs index 3454555e..5c7e444a 100644 --- a/manager/ejs/menu.ejs +++ b/manager/ejs/menu.ejs @@ -20,7 +20,7 @@ height: 110px; color: var(--offwhite); display: flex; - font-size: 18px; + font-size: var(--large); font-weight: 600; padding-left: 15px; align-items: start; @@ -36,7 +36,7 @@ } #manager-menu .option>div { - font-size: 14px; + font-size: var(--normal); font-weight: normal; } @@ -79,7 +79,7 @@
INSTALL WIZARD AND MANAGER
-
+
Using this manager, you can install Olympus, update settings, and view and manage instances
diff --git a/manager/ejs/passwords.ejs b/manager/ejs/passwords.ejs index 9d9907d6..d592a7c6 100644 --- a/manager/ejs/passwords.ejs +++ b/manager/ejs/passwords.ejs @@ -33,7 +33,7 @@ ">
-
" style="color: var(--offwhite); font-size: 14px; color: var(--lightgray);"> +
" style="color: var(--offwhite); font-size: var(--normal); color: var(--lightgray);"> Note: to keep the old passwords, click Next without editing any value.
diff --git a/manager/ejs/result.ejs b/manager/ejs/result.ejs index d13fb87f..1a7d0cf9 100644 --- a/manager/ejs/result.ejs +++ b/manager/ejs/result.ejs @@ -15,7 +15,7 @@ #result-page .result-summary .title { font-weight: bold; - font-size: 15px; + font-size: var(--big); display: flex; align-items: center; } @@ -25,7 +25,7 @@ } #result-page .result-summary .description { - font-size: 13px; + font-size: var(--normal); } #result-page .result-summary.success{ @@ -62,7 +62,7 @@ row-gap: 5px; justify-items: center; align-items: start; - font-size: 13px; + font-size: var(--normal); } #result-page .usage-instructions>div>img { @@ -91,10 +91,10 @@
See the manager log located in <%= logLocation %> for more information.
-
+
How to launch Olympus
-
+
To launch Olympus, there are shortcuts available on the desktop and in the <%= activeInstance["name"] %> folder under Saved Games.
<% if (activeInstance["installationType"] === "singleplayer") { %> @@ -113,7 +113,7 @@
-
+
Alternatively, you can run the Olympus Server instead and visit in a web browser (Google Chrome recommended) to replace the first step above.
<% } else { %> @@ -139,7 +139,7 @@
-
+
To access Olympus from this PC, you need to visit in a web browser (Google Chrome recommended) instead.
<% } %> diff --git a/manager/ejs/settings.ejs b/manager/ejs/settings.ejs index 2b964070..31e2f3fc 100644 --- a/manager/ejs/settings.ejs +++ b/manager/ejs/settings.ejs @@ -1,233 +1,18 @@ -
-
+
+
Back to menu
-
- - View and manage installs +
+ + Change settings - - The following Olympus installations have been identified.
You can modify settings and uninstall below. + + Here you can see the DCS instances on your computer that have Olympus installed.
+ You can edit settings and uninstall Olympus from this screen.
@@ -236,10 +21,13 @@ <% if (instances[i].installed) { %>
- <%= instances[i].name %> - <%= instances[i].folder %> + <%= instances[i].name %> + <%= instances[i].folder %>
-
+ + <%= instances[i].installed? (instances[i].error? 'Corrupted/outdated Olympus installation': 'Olympus installed'): 'Olympus not installed' %> + +
Client port
<%= instances[i].installed? instances[i].clientPort: "N/A" %>
@@ -253,7 +41,7 @@
<%= instances[i].installed? instances[i].backendAddress: "N/A" %>
-
Open logs
diff --git a/manager/ejs/welcome.ejs b/manager/ejs/welcome.ejs index 814fe9d9..87384c41 100644 --- a/manager/ejs/welcome.ejs +++ b/manager/ejs/welcome.ejs @@ -22,7 +22,7 @@ height: 70px; color: var(--offwhite); display: flex; - font-size: 18px; + font-size: var(--very-large); font-weight: 600; padding-left: 15px; align-items: center; diff --git a/manager/ejs/wizard.ejs b/manager/ejs/wizard.ejs index dc5a4ef8..7267bdd7 100644 --- a/manager/ejs/wizard.ejs +++ b/manager/ejs/wizard.ejs @@ -7,40 +7,34 @@ max-height: 100%; } - .buttons-footer { - display: flex; - column-gap: 10px; - justify-content: start; - } - - .instructions { + .wizard-page .instructions { display: flex; flex-direction: column; row-gap: 15px; color: var(--offwhite); } - .instructions .step { - font-size: 14px; + .wizard-page .instructions .step { + font-size: var(--normal); color: var(--lightgray); } - .instructions .description { - font-size: 14px; + .wizard-page .instructions .description { + font-size: var(--normal); color: var(--lightgray); } - .instructions .title { + .wizard-page .instructions .title { font-size: 24px; font-weight: bold; } - .content { + .wizard-page .content { overflow-x: hidden; overflow-y: scroll; } - .content > div { + .wizard-page .content > div { height: 100%; width: 100%; display: flex; @@ -50,7 +44,7 @@ justify-content: center; } - .wizard-inputs { + .wizard-page .wizard-inputs { display: flex; flex-direction: column; row-gap: 10px; @@ -60,23 +54,23 @@ width: 300px; } - .note { + .wizard-page .note { width: 100%; background-color: var(--background-note); color: var(--offwhite); border-left: 5px solid var(--offwhite); - font-size: 14px; + font-size: var(--normal); padding: 15px; font-weight: 600; } - .warning { + .wizard-page .warning { background-color: var(--background-warning); border-left: 5px solid var(--orange); }
-
+
Cancel install
diff --git a/manager/index.html b/manager/index.html index 76337237..87bb62c7 100644 --- a/manager/index.html +++ b/manager/index.html @@ -37,7 +37,7 @@
Loading, please wait...
-
+