Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Placeholder for REST API and Web UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Mar 24, 2023
1 parent 49b594b commit a649c2b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libs/picocss/pico.css

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {RedditAuth} from "./redditAuth.js";
import {Monalisa} from "./monalisa.js";
import webUiBody from "../web/index.htm";
import webUiCss from "../web/index.css";
import picoCss from "../../libs/picocss/pico.css";
import webUiJs from "../web/web.txt";

const svc = {
Expand Down Expand Up @@ -144,6 +145,14 @@ let main = async function (args) {
});
break;
};
case "/pico.css": {
return new Response(picoCss, {
"headers": {
"Content-Type": "text/css"
}
});
break;
};
case "/index.css": {
return new Response(webUiCss, {
"headers": {
Expand All @@ -155,7 +164,7 @@ let main = async function (args) {
case "/index.js": {
return new Response(webUiJs, {
"headers": {
"Content-Type": "text/css"
"Content-Type": "text/javascript"
}
});
break;
Expand Down
1 change: 1 addition & 0 deletions src/web/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/web/index.htm
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="utf-8"/><title>Painted Palette Web UI</title><link rel="stylesheet" href="./index.css"><script src="./index.js"></script></head><body></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><title>Painted Palette Web UI</title><link rel="stylesheet" href="./pico.css"><link rel="stylesheet" href="./index.css"><script src="./index.js"></script></head><body><div class="container-fluid"><nav><ul><li><b>Dashboard</b></li></ul><ul><li><a href="#a" role="button">Accounts</a></li><li><a href="#s">Stats</a></li><li><a href="#c">Config</a></li></ul></nav><div id="tab-containers"></div></div></body></html>

0 comments on commit a649c2b

Please sign in to comment.