gluworld: initial add

This commit is contained in:
CanadaHonk 2022-12-09 14:55:30 +00:00
parent 6b41f1e43b
commit f2c5e8fb23
3 changed files with 21 additions and 1 deletions

View File

@ -8,7 +8,8 @@ Minimal integrated ecosystem for making "desktop apps" from websites easily usin
- [Glugun](glugun): builds Gluon apps into releasable builds with optional bundling (soon)
### Apps
- [Glucord](glucord): minimal Discord client loading official webapp (demo/example)
- [Gluworld](gluworld): basic Hello World demo app
- [Glucord](glucord): minimal desktop Discord client loading official webapp (demo/example)
<br>

10
gluworld/index.html Normal file
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Welcome to Gluon!</title>
</head>
<body>
<h1>Welcome to Gluon!</h1>
</body>
</html>

9
gluworld/index.js Normal file
View File

@ -0,0 +1,9 @@
import * as Gluon from '../gluon/index.js';
import { fileURLToPath, pathToFileURL } from 'url';
import { join, dirname } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
Gluon.open(pathToFileURL(join(__dirname, 'index.html')).href);