ekzyis
76d2e56393
Use slider for certainty
2023-11-20 02:57:06 +01:00
ekzyis
ce64608894
Allow creation of markets
2023-11-20 02:52:08 +01:00
ekzyis
0e587d48ca
Update MarketForm
...
* use textarea
* add end date input
* add cancel button
* add missing Content-type header
2023-11-20 00:57:52 +01:00
ekzyis
bf0e0fea69
Rename to HomeView
2023-11-20 00:38:52 +01:00
ekzyis
7718eefcf3
Update prod nginx config
2023-11-20 00:38:52 +01:00
ekzyis
28b9b61e9b
Don't show 0.000
2023-11-20 00:38:52 +01:00
ekzyis
f4c5bf6d2c
Show which shares will be bought
2023-11-20 00:38:52 +01:00
ekzyis
c4f70015d5
Only redirect on multiple polls
2023-11-20 00:38:52 +01:00
ekzyis
9b33690494
Check if invoice not found
2023-11-20 00:38:52 +01:00
ekzyis
1351439a15
Run invoice checks on startup
2023-11-20 00:38:52 +01:00
ekzyis
4b0d017b98
Add invoice description
2023-11-20 00:38:52 +01:00
ekzyis
4aaada7cb7
Add invoice view
2023-11-20 00:38:52 +01:00
ekzyis
a21756389e
Disable multi-word-component-names rule
2023-11-20 00:38:52 +01:00
ekzyis
ebdf0d1e90
Add order form
...
* add POST /api/order -> 402 Payment Required
* redirect to /invoice/:id
2023-11-20 00:38:52 +01:00
ekzyis
55afc3b097
Add /market/:id route
2023-11-20 00:38:52 +01:00
ekzyis
8d5aad5744
Create MarketForm component
2023-11-20 00:38:52 +01:00
ekzyis
0ed27167f7
Formatting
2023-11-08 03:43:17 +01:00
ekzyis
0230182ef5
Add create market form
2023-11-08 03:42:28 +01:00
ekzyis
cdeb088a13
Show market list
2023-11-08 03:01:58 +01:00
ekzyis
6cf1d4b918
Add lnurl copy button
2023-11-08 02:27:19 +01:00
ekzyis
d80b4beaaf
Align width of figure and figcaption
2023-11-08 01:57:57 +01:00
ekzyis
10702eb842
Show ... in Navbar during session initialization
2023-11-08 01:28:06 +01:00
ekzyis
cf6f83dad5
Align baseline of figlets
2023-11-08 01:20:01 +01:00
ekzyis
2d19b9702b
Move to views/
2023-11-08 01:19:52 +01:00
ekzyis
8d357e888d
Add figlet headers
...
* update CSS
* move login label between figlet and LNURL-auth text
2023-11-07 21:01:59 +01:00
ekzyis
8eda1139b3
Add my-3 to logout button
2023-11-07 20:09:38 +01:00
ekzyis
ae548a0956
Add login redirect
2023-11-07 20:09:31 +01:00
ekzyis
559936e565
Merge init and checkSession
2023-11-07 18:55:20 +01:00
ekzyis
c44346774a
Remove commented out HTTP API
2023-11-07 18:49:19 +01:00
ekzyis
f9a6a86bad
Implement login poll
2023-11-07 18:49:19 +01:00
ekzyis
0e49eb73ee
Redirect to / if session already exists
...
* also fix usage of stale isAuthenticated
2023-11-07 14:34:57 +01:00
ekzyis
d5b432a9d2
Fix session initialization skipped
2023-11-07 14:12:54 +01:00
ekzyis
5c225c1f25
Add logout button to /user
2023-11-07 14:02:25 +01:00
ekzyis
f9d12da7d3
Wait until session is initialized
2023-11-07 10:15:53 +01:00
ekzyis
57673f7b39
Fix session store sync
2023-11-07 09:48:59 +01:00
ekzyis
a641733444
Add dev nginx config
2023-11-07 09:08:56 +01:00
ekzyis
0712568273
formatting
...
VSCode configuration:
* editor.detectIndentation = false
* editor.indentSize = 2
2023-11-07 09:06:52 +01:00
ekzyis
2af23ff409
Fix @vue/cli-plugin-babel missing
2023-11-07 09:06:37 +01:00
ekzyis
4e343d49d0
implement login with vue
...
* use vue router
* use pinia
* use tailwindcss
* use vite
* transform /api/login and /api/login/callback into JSON APIs
* add Access-Control-Allow-Credentials header
* add TODO about JSON errors
2023-11-07 09:06:35 +01:00
ekzyis
d1b7786434
Add vue frontend
2023-11-04 00:33:27 +01:00
ekzyis
9a87fe7342
Rename to HandleInvoiceStatus
2023-11-03 23:43:56 +01:00
ekzyis
edfbd2cc92
Test logout
2023-11-03 23:38:23 +01:00
ekzyis
18107bdac8
Only test handler package and use -v
...
since there are only tests in the handler package so far
2023-11-03 23:00:11 +01:00
ekzyis
e2a09ccdd1
refactor: put test hooks and boilerplate into own package
2023-11-03 21:17:04 +01:00
ekzyis
7a5c2cb063
Disable test cache
2023-11-03 20:35:34 +01:00
ekzyis
fc6fb9914e
Test login + callback
2023-11-03 20:34:21 +01:00
ekzyis
c66e96bf3f
refactor: fix init and use DI
...
* fix init misuse which makes running tests impossible since tests are run inside a temporary test directory which breaks env loading
* use dependency injection pattern for server creation and global server context in route handlers
2023-11-03 20:34:21 +01:00
ekzyis
50244ee9ca
Update HTML and CSS
2023-09-14 01:15:30 +02:00
ekzyis
7558655458
refactor: Structure code into different packages
...
I have put too much code into the same files.
Also, I put everything into the same package: main.
This package is only meant for executables.
Therefore, I have refactored my code to use multiple packages. These packages also guarantee separation of concerns since Golang doesn't allow cyclic imports.
2023-09-10 23:13:08 +02:00
ekzyis
b4a8adcb9a
Fix expiry greater than maxExpiry
2023-09-09 22:52:51 +02:00