Add screenshot

This commit is contained in:
Neale Pickett 2023-03-11 14:01:00 -07:00
parent 740c8f5c43
commit 3e53a8198c
2 changed files with 20 additions and 6 deletions

View File

@ -6,12 +6,8 @@ including pretty icons,
and your apps will show up under the same top URL, and your apps will show up under the same top URL,
like they all work together somehow. like they all work together somehow.
There are lots of other things like this around. ![Screen Shot](docs/screenshot.png)
Probably the shiniest is called "Heimdall".
I made this one because I didn't want to run yet another database
or a PHP server
when I am perfectly happy editing a JSON file
and having my browser do all the work.
# portal.json # portal.json
@ -43,6 +39,7 @@ Some notes:
* `"target": "_blank"` will cause clicks to open in a new tab * `"target": "_blank"` will cause clicks to open in a new tab
* `"app": "stat"` makes the icon be the built-in CPU stats pie chart * `"app": "stat"` makes the icon be the built-in CPU stats pie chart
# Other uses for this # Other uses for this
Since the portal stuff is all static files, Since the portal stuff is all static files,
@ -50,3 +47,20 @@ you could just not use any of that,
and instead use this as a service to provide CPU stats. and instead use this as a service to provide CPU stats.
Just open `/stats.html` instead of `/`. Just open `/stats.html` instead of `/`.
Or write your own ECMAScript code that imports `stat.mjs`. Or write your own ECMAScript code that imports `stat.mjs`.
# Alternatives
There are lots of other things like this around.
Probably the shiniest is called "Heimdall".
I made this one because I didn't want to run yet another database
or a PHP server
when I am perfectly happy editing a JSON file
and having my browser do all the work.
Because this runs so much in the browser,
no resources are used when no users are active,
and when there are users,
it's still very light:
less than 1% CPU on my Raspberry Pi.

BIN
docs/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB