Add TODOs

This commit is contained in:
ekzyis 2024-09-09 00:35:01 +02:00
parent 2e3e4f02b4
commit ed9d6f30c4
3 changed files with 14 additions and 0 deletions

View File

@ -2,6 +2,17 @@ package pages
import "git.ekzyis.com/ekzyis/delphi.market/server/router/pages/components" import "git.ekzyis.com/ekzyis/delphi.market/server/router/pages/components"
/**
* TODO: explain how delphi.market works:
* - how to create a market
* - why you need to pay for a market
* - how the outcome of a market is determined (oracle model)
* - how (avg) price is calculated (LMSR)
* - what shares are and how much they are worth
* - risks: censorship, custodial model etc.
* - future plans
*/
templ About() { templ About() {
<html> <html>
@components.Head() @components.Head()

View File

@ -25,6 +25,7 @@ templ Invoice(hash string, bolt11 string, msats int, expiresIn int, paid bool, r
templ InvoiceStatus(hash string, expiresIn int, paid bool, redirectUrl templ.SafeURL) { templ InvoiceStatus(hash string, expiresIn int, paid bool, redirectUrl templ.SafeURL) {
if paid { if paid {
<div class="font-mono neon success my-1">PAID</div> <div class="font-mono neon success my-1">PAID</div>
<!-- TODO: show timer for redirect -->
<div <div
id="poll" id="poll"
hx-get={ string(redirectUrl) } hx-get={ string(redirectUrl) }

View File

@ -29,7 +29,9 @@ templ User(user *types.User) {
<div class="font-bold">joined</div> <div class="font-bold">joined</div>
<div>{ user.CreatedAt.Format(time.DateOnly) }</div> <div>{ user.CreatedAt.Format(time.DateOnly) }</div>
<div class="font-bold">sats</div> <div class="font-bold">sats</div>
<!-- TODO: implement withdrawal of sats -->
<div>{ strconv.Itoa(int(user.Msats) / 1000) }</div> <div>{ strconv.Itoa(int(user.Msats) / 1000) }</div>
<!-- TODO: add WebLN and NWC for send+recv -->
<button hx-post="/logout" class="col-span-2">logout</button> <button hx-post="/logout" class="col-span-2">logout</button>
</div> </div>
</div> </div>