-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎉 add boilerplate electron app for telemetry
- Loading branch information
1 parent
9d732e8
commit 8f587ac
Showing
5 changed files
with
749 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# telemetry | ||
|
||
Electron app to visualize the Omega Flowey booth + bossfight telemetry |
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,18 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | ||
<meta | ||
http-equiv="Content-Security-Policy" | ||
content="default-src 'self'; script-src 'self'" | ||
/> | ||
<title>Hello World!</title> | ||
</head> | ||
<body> | ||
<h1>Hello World!</h1> | ||
We are using Node.js <span id="node-version"></span>, Chromium | ||
<span id="chrome-version"></span>, and Electron | ||
<span id="electron-version"></span>. | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { app, BrowserWindow } = require('electron'); | ||
|
||
const createWindow = () => { | ||
const win = new BrowserWindow({ | ||
width: 800, | ||
height: 600, | ||
}); | ||
|
||
win.loadFile('index.html'); | ||
}; | ||
|
||
app.whenReady().then(() => { | ||
createWindow(); | ||
}); |
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,15 @@ | ||
{ | ||
"name": "omegaflowey-telemetry", | ||
"version": "1.0.0", | ||
"description": "Hello World!", | ||
"packageManager": "[email protected]", | ||
"main": "main.js", | ||
"author": "TheAfroOfDoom", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "NODE_OPTIONS='--require ./.pnp.cjs' electron ." | ||
}, | ||
"devDependencies": { | ||
"electron": "33.0.2" | ||
} | ||
} |
Oops, something went wrong.