Started building generation functionality, added useful haddock-style comments for several functions

This commit is contained in:
2022-07-22 12:27:35 -05:00
parent 10e3724a1a
commit b1a4251d95
11 changed files with 1703 additions and 34 deletions

View File

@ -1,5 +1,6 @@
$doctype 5
<html>
<head>
<title>Purr
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -7,24 +8,28 @@ $doctype 5
<link rel="stylesheet" href="/style.css">
<body>
<div #logo .logo>
<img src="/purrlogo.png">
<div #content .content>
<div #title .title>
<h1>
<a #titleLink .titleLink href="/">Purr
<div #pwUtils .pwUtils>
$# Below needs to be replaced with an HTMX onload request to /pw/#{link} to DRY
<div #requestedPw .requestedPw>
$maybe pw <- password
<p>Here's the secret for <a href="/pw/#{link}">/pw/#{link}</a>:
<h2 .pwResult>#{pw}
$nothing
$if (link == "/")
<p .emptyReq>
$else
<p>No secret available at <a href="/pw/#{link}">/pw/#{link}</a>
$# Above needs to be replaced with an HTMX onload request to /pw/#{link} to DRY
$if (link == "/")
<div #requestedPw .requestedPw>
<p .emptyReq>
$else
<div #requestedPw .requestedPw
hx-trigger="load"
hx-post="/pw"
hx-target="#requestedPw"
hx-swap="outerHTML"
*{hsUserLink}
>
Loading... <img class="htmx-indicator" src="/loading.svg" />
<div #shareNew .shareNew>
<p>

View File

@ -1,6 +1,6 @@
<div #requestedPw .requestedPw>
$maybe pw <- password
<p>Here's the secret for <a href="/pw/#{link}">/pw/#{link}</a>:
<p>Here's the secret found at <a href="/pw/#{link}">/pw/#{link}</a>:
<h2 .pwResult>#{pw}
$nothing
<p>No secret available at <a href="/pw/#{link}">/pw/#{link}</a>
<p>No secret found at <a href="/pw/#{link}">/pw/#{link}</a>