-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve function names and docs * Rename settings * Introduce new loading screen * Simplify PORT logic * Use new splash screen for loading dialogs * Remove no longer needed Wait dialog (replaced by splash window) * Small improvements to splash window * Update dev dependencies
- Loading branch information
Showing
17 changed files
with
171 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Open Data Editor</title> | ||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" /> | ||
<script> | ||
window?.opendataeditor.ensureLogs((message) => { | ||
if (message == "python") { | ||
var element = document.getElementById("python") | ||
var loader = document.getElementById("loader") | ||
element.classList.toggle('pending') | ||
element.removeChild(loader) | ||
var next = document.getElementById("requirements") | ||
next.appendChild(loader) | ||
} | ||
if (message == "requirements") { | ||
var element = document.getElementById("requirements") | ||
var loader = document.getElementById("loader") | ||
element.classList.toggle('pending') | ||
element.removeChild(loader) | ||
var next = document.getElementById("server") | ||
next.appendChild(loader) | ||
} | ||
if (message == "server") { | ||
var element = document.getElementById("server") | ||
var loader = document.getElementById("loader") | ||
element.classList.toggle('pending') | ||
element.removeChild(loader) | ||
} | ||
}) | ||
</script> | ||
<style> | ||
li { | ||
color: black; | ||
} | ||
.pending { | ||
color: grey; | ||
} | ||
.loader { | ||
border: 5px solid grey; | ||
border-bottom-color: transparent; | ||
border-radius: 50%; | ||
display: inline-block; | ||
box-sizing: border-box; | ||
animation: rotation 1s linear infinite; | ||
} | ||
@keyframes rotation { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section style="display:grid; place-items: center;"> | ||
<div> | ||
<h1 style="text-align: center;">Open Data Editor is loading</h1> | ||
<p style="text-align: center;">The first time launching Open Data Editor needs to ensure requirements are installed.</p> | ||
<ul id="logs"> | ||
<li class="pending" id="python">Ensure python is installed <span id="loader" class="loader"></span></li> | ||
<li class="pending" id="requirements">Ensure python dependencies are installed</li> | ||
<li class="pending" id="server">Ensure server is running</li> | ||
</ul> | ||
</div> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { contextBridge, ipcRenderer } from 'electron' | ||
|
||
contextBridge.exposeInMainWorld('opendataeditor', { | ||
readServerUrl: () => ipcRenderer.invoke('readServerUrl'), | ||
sendFatalError: (message: string) => ipcRenderer.invoke('sendFatalError', message), | ||
openDirectoryDialog: () => ipcRenderer.invoke('openDirectoryDialog'), | ||
ensureLogs: (callback: any) => ipcRenderer.on('ensureLogs', (_event, message: string) => callback(message)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.