From f2c5e8fb2394db5470de9be050649ffbdd3dac22 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Fri, 9 Dec 2022 14:55:30 +0000 Subject: [PATCH] gluworld: initial add --- README.md | 3 ++- gluworld/index.html | 10 ++++++++++ gluworld/index.js | 9 +++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gluworld/index.html create mode 100644 gluworld/index.js diff --git a/README.md b/README.md index ca33dda..add2610 100644 --- a/README.md +++ b/README.md @@ -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)
diff --git a/gluworld/index.html b/gluworld/index.html new file mode 100644 index 0000000..3e71e95 --- /dev/null +++ b/gluworld/index.html @@ -0,0 +1,10 @@ + + + + + Welcome to Gluon! + + +

Welcome to Gluon!

+ + \ No newline at end of file diff --git a/gluworld/index.js b/gluworld/index.js new file mode 100644 index 0000000..fbb8eab --- /dev/null +++ b/gluworld/index.js @@ -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); \ No newline at end of file