From 591fd3808879661885023783f1218f04d507b36c Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Sun, 21 Sep 2025 18:29:37 -0700 Subject: [PATCH] feature: forum replies feature: blurbs --- deno.json | 2 +- deno.lock | 8 +- public/api/topics/:topic_id/events/index.ts | 4 + public/api/users/index.ts | 3 + public/base.css | 5 +- public/js/smartforms.js | 10 +- public/tabs/blurbs/README.md | 2 +- public/tabs/blurbs/blurbs.html | 307 +++++++++++++++++- public/tabs/blurbs/new_blurb.html | 80 +++++ public/tabs/chat/chat.html | 342 ++++++++++++++------ public/tabs/chat/chat.js | 163 ---------- public/tabs/forum/README.md | 2 +- public/tabs/forum/forum.html | 2 + public/tabs/forum/new_post.html | 11 +- 14 files changed, 651 insertions(+), 290 deletions(-) create mode 100644 public/tabs/blurbs/new_blurb.html delete mode 100644 public/tabs/chat/chat.js diff --git a/deno.json b/deno.json index 04fc917..4bef967 100644 --- a/deno.json +++ b/deno.json @@ -31,7 +31,7 @@ } }, "imports": { - "@andyburke/fsdb": "jsr:@andyburke/fsdb@^1.0.2", + "@andyburke/fsdb": "jsr:@andyburke/fsdb@^1.0.3", "@andyburke/lurid": "jsr:@andyburke/lurid@^0.2.0", "@andyburke/serverus": "jsr:@andyburke/serverus@^0.13.0", "@da/bcrypt": "jsr:@da/bcrypt@^1.0.1", diff --git a/deno.lock b/deno.lock index 3c409a2..8ac8a98 100644 --- a/deno.lock +++ b/deno.lock @@ -1,7 +1,7 @@ { "version": "5", "specifiers": { - "jsr:@andyburke/fsdb@^1.0.2": "1.0.2", + "jsr:@andyburke/fsdb@^1.0.3": "1.0.3", "jsr:@andyburke/lurid@0.2": "0.2.0", "jsr:@andyburke/serverus@0.13": "0.13.0", "jsr:@da/bcrypt@*": "1.0.1", @@ -28,8 +28,8 @@ "npm:@types/node@*": "22.15.15" }, "jsr": { - "@andyburke/fsdb@1.0.2": { - "integrity": "f12315b63f534df0f1638828f3b7551ced9b507618f98c6c5dfbd8adf5b96d6f", + "@andyburke/fsdb@1.0.3": { + "integrity": "e80d831bf173948cb98f6687d17d098f5f44d016cf04a2d851dc1b58ee327263", "dependencies": [ "jsr:@std/cli@^1.0.20", "jsr:@std/fs@^1.0.18", @@ -130,7 +130,7 @@ }, "workspace": { "dependencies": [ - "jsr:@andyburke/fsdb@^1.0.2", + "jsr:@andyburke/fsdb@^1.0.3", "jsr:@andyburke/lurid@0.2", "jsr:@andyburke/serverus@0.13", "jsr:@da/bcrypt@^1.0.1", diff --git a/public/api/topics/:topic_id/events/index.ts b/public/api/topics/:topic_id/events/index.ts index 22db3f1..e01655a 100644 --- a/public/api/topics/:topic_id/events/index.ts +++ b/public/api/topics/:topic_id/events/index.ts @@ -181,6 +181,10 @@ export async function POST(req: Request, meta: Record): Promise + + +
- -
+
Blurbs
+ +
+ +
+
+ +
+ +
diff --git a/public/tabs/blurbs/new_blurb.html b/public/tabs/blurbs/new_blurb.html new file mode 100644 index 0000000..30f004a --- /dev/null +++ b/public/tabs/blurbs/new_blurb.html @@ -0,0 +1,80 @@ +
+ +
+ + + + + + + + + + + + + + + +
+
diff --git a/public/tabs/chat/chat.html b/public/tabs/chat/chat.html index eb70377..cf1ff7c 100644 --- a/public/tabs/chat/chat.html +++ b/public/tabs/chat/chat.html @@ -1,3 +1,176 @@ +
- +
-
- + + + -
+ +