-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from jhk0530/main
23.08 updates
- Loading branch information
Showing
5 changed files
with
231 additions
and
273 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 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,44 +1,40 @@ | ||
<!-- Copyright (c) 2018 Dirk Schumacher, Noam Ross, Rich FitzJohn --> | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta charset="utf-8"> | ||
<title></title> | ||
<link rel="stylesheet" href="loading.css" media="all"> | ||
</head> | ||
<body> | ||
<div id="loading-spinner" class="spinner"> | ||
<div class="rect1"></div> | ||
<div class="rect2"></div> | ||
<div class="rect3"></div> | ||
<div class="rect4"></div> | ||
<div class="rect5"></div> | ||
</div> | ||
<div id="status"> | ||
|
||
</div> | ||
<script> | ||
let electron = require('electron') | ||
let failed = false | ||
electron.ipcRenderer.on('start-webserver-event', (event, message) => { | ||
// here we can inform about the loading process | ||
if (!failed && message.attempt >= 1) { | ||
let el = document.getElementById('status') | ||
el.innerHTML = ` | ||
<p>It takes longer than expected. Please wait a little more.</p> | ||
` | ||
} | ||
}) | ||
electron.ipcRenderer.on('failed', (event, _) => { | ||
let el = document.getElementById('status') | ||
el.innerHTML = ` | ||
<h1>Failure</h1> | ||
<p>We could not start the shiny application. Please report this issue to the developers of this application.</p> | ||
` | ||
document.getElementById('loading-spinner').innerHTML = '' | ||
failed = true | ||
}) | ||
</script> | ||
</body> | ||
</html> | ||
</head> | ||
<body> | ||
<div id="loading-spinner" class="spinner"> | ||
<div class="rect1"></div> | ||
<div class="rect2"></div> | ||
<div class="rect3"></div> | ||
<div class="rect4"></div> | ||
<div class="rect5"></div> | ||
</div> | ||
<div id="status"></div> | ||
<script> | ||
let electron = require('electron'); | ||
let failed = false; | ||
electron.ipcRenderer.on('start-webserver-event', (event, message) => { | ||
// here we can inform about the loading process | ||
console.log(event); | ||
console.log(message); | ||
if (!failed && message.attempt >= 1) { | ||
let el = document.getElementById('status') | ||
el.innerHTML = `<p>It takes longer than expected. Please wait a little more.</p>`; | ||
} | ||
}) | ||
electron.ipcRenderer.on('failed', (event, _) => { | ||
let el = document.getElementById('status') | ||
el.innerHTML = `<h1>Failure</h1> | ||
<p>We could not start the shiny application. Please report this issue to the developers of this application.</p>`; | ||
document.getElementById('loading-spinner').innerHTML = '' | ||
failed = true; | ||
}) | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.