Skip to content

Commit

Permalink
🎉 add boilerplate electron app for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAfroOfDoom committed Oct 31, 2024
1 parent 9d732e8 commit 8f587ac
Show file tree
Hide file tree
Showing 5 changed files with 749 additions and 0 deletions.
3 changes: 3 additions & 0 deletions telemetry/README.md
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
18 changes: 18 additions & 0 deletions telemetry/index.html
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>
14 changes: 14 additions & 0 deletions telemetry/main.js
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();
});
15 changes: 15 additions & 0 deletions telemetry/package.json
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"
}
}
Loading

0 comments on commit 8f587ac

Please sign in to comment.