Add TODOs
This commit is contained in:
parent
2e3e4f02b4
commit
ed9d6f30c4
|
@ -2,6 +2,17 @@ package pages
|
|||
|
||||
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() {
|
||||
<html>
|
||||
@components.Head()
|
||||
|
|
|
@ -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) {
|
||||
if paid {
|
||||
<div class="font-mono neon success my-1">PAID</div>
|
||||
<!-- TODO: show timer for redirect -->
|
||||
<div
|
||||
id="poll"
|
||||
hx-get={ string(redirectUrl) }
|
||||
|
|
|
@ -29,7 +29,9 @@ templ User(user *types.User) {
|
|||
<div class="font-bold">joined</div>
|
||||
<div>{ user.CreatedAt.Format(time.DateOnly) }</div>
|
||||
<div class="font-bold">sats</div>
|
||||
<!-- TODO: implement withdrawal of sats -->
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue