Serve Dock directly and add explicit navigation feedback
This commit is contained in:
1 parent
645afe3ebf
commit
84c4b3030a
77 files changed
+477
-920
No files matched your search
+2
-1
@@ -78,7 +78,8 @@ for (const file of [
|
||||
"playground/frame.html",
|
||||
"components/system.css",
|
||||
"playground/frame.js",
|
||||
"playground/gallery.js",
|
||||
"index.html",
|
||||
"components/export-system.js",
|
||||
])
|
||||
assert.ok((await readFile(file, "utf8")).length > 100);
|
||||
console.log(
|
||||
|
||||
@@ -18,11 +18,6 @@ http
|
||||
const pathname = decodeURIComponent(
|
||||
new URL(req.url, "http://localhost").pathname,
|
||||
);
|
||||
if (pathname === "/") {
|
||||
res.writeHead(302, { Location: "/playground/" });
|
||||
res.end();
|
||||
return;
|
||||
}
|
||||
const file = path.resolve(
|
||||
root,
|
||||
"." + (pathname.endsWith("/") ? pathname + "index.html" : pathname),
|
||||
|
||||
Reference in new issue
Block a user