add: forum posts ui

This commit is contained in:
trisua 2025-08-03 23:24:57 -04:00
parent ef029c59b3
commit 2be87c397d
90 changed files with 1459 additions and 1299 deletions

View file

@ -16,29 +16,29 @@
(template
("id" "loading_skeleton")
(div
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
("ui_ident" "loading_skel")
(div
("class" "card lowered green flex items-center gap-2")
("class" "card lowered green flex items_center gap_2")
(div ("class" "loader") (icon (text "loader-circle")))
(span (str (text "general:label.loading"))))
(div
("class" "card secondary flex gap-2")
("class" "card secondary flex gap_2")
(div ("class" "skel avatar"))
(div
("class" "flex flex-col gap-2 w-full")
("class" "flex flex_col gap_2 w_full")
(div ("class" "skel") ("style" "width: 25%; height: 25px;"))
(div ("class" "skel") ("style" "width: 100%; height: 150px"))))))
(template
("id" "carp_canvas")
(div
("class" "flex flex-col gap-2")
("class" "flex flex_col gap_2")
(div ("ui_ident" "canvas_loc"))
(div
("class" "flex justify-between gap-2")
("class" "flex justify_between gap_2")
(div
("class" "flex gap-2")
("class" "flex gap_2")
(input
("type" "color")
("style" "width: 5rem")
@ -53,7 +53,7 @@
("ui_ident" "stroke_range")))
(div
("class" "flex gap-2")
("class" "flex gap_2")
(button
("title" "Undo")
("ui_ident" "undo")
@ -138,7 +138,7 @@
(dialog
("id" "link_filter")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
; warning stuff
(p (text "Pressing continue will bring you to the following URL:"))
@ -147,7 +147,7 @@
(hr ("class" "margin"))
(div
("class" "flex gap-2")
("class" "flex gap_2")
(a
("class" "button primary")
@ -168,29 +168,29 @@
(dialog
("id" "littleweb")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
(a
("class" "button w-full lowered justify-start")
("class" "button w_full lowered justify-start")
("href" "/net")
(icon (text "globe"))
(str (text "littleweb:label.browser")))
(a
("class" "button w-full lowered justify-start")
("class" "button w_full lowered justify-start")
("href" "/services")
(icon (text "panel-top"))
(str (text "littleweb:label.my_services")))
(a
("class" "button w-full lowered justify-start")
("class" "button w_full lowered justify-start")
("href" "/domains")
(icon (text "panel-top"))
(str (text "littleweb:label.my_domains")))
(hr ("class" "margin"))
(div
("class" "flex gap-2 justify-between")
("class" "flex gap_2 justify_between")
(div null?)
(button
("class" "lowered red")
@ -202,18 +202,18 @@
(dialog
("id" "web_api_prompt")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
(form
("class" "flex gap-2 flex-col")
("class" "flex gap_2 flex_col")
("onsubmit" "event.preventDefault()")
(label ("for" "prompt") ("id" "web_api_prompt:msg"))
(input ("id" "prompt") ("name" "prompt"))
(div
("class" "flex justify-between")
("class" "flex justify_between")
(div null?)
(div
("class" "flex gap-2")
("class" "flex gap_2")
(button
("class" "primary bold circle")
("onclick", "globalThis.web_api_prompt_submit(document.getElementById('prompt').value); document.getElementById('prompt').value = ''")
@ -231,18 +231,18 @@
(dialog
("id" "web_api_prompt_long")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
(form
("class" "flex gap-2 flex-col")
("class" "flex gap_2 flex_col")
("onsubmit" "event.preventDefault()")
(label ("for" "prompt_long") ("id" "web_api_prompt_long:msg"))
(input ("id" "prompt_long") ("name" "prompt_long"))
(div
("class" "flex justify-between")
("class" "flex justify_between")
(div null?)
(div
("class" "flex gap-2")
("class" "flex gap_2")
(button
("class" "primary bold circle")
("onclick", "globalThis.web_api_prompt_long_submit(document.getElementById('prompt_long').value); document.getElementById('prompt_long').value = ''")
@ -260,17 +260,17 @@
(dialog
("id" "web_api_confirm")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
(form
("class" "flex gap-2 flex-col")
("class" "flex gap_2 flex_col")
("onsubmit" "event.preventDefault()")
(span ("id" "web_api_confirm:msg"))
(div
("class" "flex justify-between")
("class" "flex justify_between")
(div null?)
(div
("class" "flex gap-2")
("class" "flex gap_2")
(button
("class" "primary bold circle")
("onclick", "globalThis.web_api_confirm_submit(true)")
@ -304,14 +304,14 @@
(dialog
("id" "tokens_dialog")
(div
("class" "inner flex flex-col gap-2")
("class" "inner flex flex_col gap_2")
(form
("class" "flex gap-2 flex-col")
("class" "flex gap_2 flex_col")
("onsubmit" "event.preventDefault()")
(div ("id" "tokens") ("style" "display: contents"))
(div
("class" "flex justify-between")
("class" "flex justify_between")
(a
("href" "/auth/login")
("class" "button")