mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Created client app with electronc
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
<link rel="stylesheet" href="./stylesheets/style.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600;700;800&display=swap" />
|
||||
@@ -11,7 +11,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<img class="main-icon" src="./../img/OlympusLogoFinal_4k.png"\>
|
||||
<img class="main-icon" src="../img/OlympusLogoFinal_4k.png"\>
|
||||
<div>
|
||||
<div> DCS Olympus Manager</div>
|
||||
<div class="accent-green">v{{OLYMPUS_VERSION_NUMBER}}</div>
|
||||
|
||||
1
manager/install.bat
Normal file
1
manager/install.bat
Normal file
@@ -0,0 +1 @@
|
||||
npm install --omit=dev
|
||||
@@ -83,7 +83,7 @@ class InstanceDiv {
|
||||
data["installed"] = true;
|
||||
}
|
||||
|
||||
ejs.renderFile("./instanceDiv.ejs", data, {}, (err, str) => {
|
||||
ejs.renderFile("./ejs/instanceDiv.ejs", data, {}, (err, str) => {
|
||||
this.element.innerHTML = str;
|
||||
this.element.querySelector(".add").addEventListener("click", (e) => {
|
||||
if (!e.srcElement.classList.contains("disabled"))
|
||||
@@ -1,12 +1,12 @@
|
||||
const { app, BrowserWindow } = require('electron/main')
|
||||
const path = require('node:path')
|
||||
const path = require('path')
|
||||
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 1310,
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'preload.js'),
|
||||
preload: path.join(__dirname, "javascripts", 'preload.js'),
|
||||
nodeIntegration: true, // like here
|
||||
},
|
||||
icon: "./../img/olympus.ico"
|
||||
1
manager/manager.vbs
Normal file
1
manager/manager.vbs
Normal file
@@ -0,0 +1 @@
|
||||
CreateObject("Wscript.Shell").Run "npm start", 0
|
||||
@@ -2,13 +2,14 @@
|
||||
"name": "dcsolympus_manager",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "app.js",
|
||||
"main": "manager.js",
|
||||
"scripts": {
|
||||
"start": "electron ."
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"create-windowless-app": "^11.0.0",
|
||||
"ejs": "^3.1.9",
|
||||
"electron": "^28.0.0",
|
||||
"portfinder": "^1.0.32",
|
||||
|
||||
@@ -100,7 +100,7 @@ body {
|
||||
.folder {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background-image: url("./icons/folder-open-solid.svg");
|
||||
background-image: url("../icons/folder-open-solid.svg");
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ body {
|
||||
}
|
||||
|
||||
.apply {
|
||||
background-image: url("./icons/check-solid.svg");
|
||||
background-image: url("../icons/check-solid.svg");
|
||||
background-color: #017DC1;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
@@ -176,7 +176,7 @@ body {
|
||||
}
|
||||
|
||||
.remove {
|
||||
background-image: url("./icons/trash-can-regular.svg");
|
||||
background-image: url("../icons/trash-can-regular.svg");
|
||||
}
|
||||
|
||||
.disabled {
|
||||
@@ -221,6 +221,6 @@ input.error {
|
||||
.info {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-image: url("./icons/circle-info-solid.svg");
|
||||
background-image: url("../icons/circle-info-solid.svg");
|
||||
background-position: 50% 50%;
|
||||
}
|
||||
Reference in New Issue
Block a user