Commit Graph

279 Commits

Author SHA1 Message Date
ekzyis 975072145e Download htmx v2.0.0 2024-07-09 16:16:51 +02:00
ekzyis f280898582 Fix tests 2024-07-09 12:33:56 +02:00
ekzyis 5b8cd27536 Fix init.sql path in docker-compose.yml 2024-07-09 12:33:51 +02:00
ekzyis 5f0ddbcbd7 Formatting with blank lines 2024-07-09 12:32:22 +02:00
ekzyis ae4223512c rm -r vue/ 2024-07-09 12:21:01 +02:00
ekzyis d40cd1b8d9 Add x-margin to market description 2023-12-04 06:21:23 +01:00
ekzyis a54152a2b0 Update /about 2023-12-04 05:24:49 +01:00
ekzyis 2f2c51c57f Add MIT license 2023-12-04 05:03:24 +01:00
ekzyis 4a8981400d Fix market_id column nullable 2023-12-04 04:56:01 +01:00
ekzyis 5969b23a31 Fix undefined CTE execution order
"""
The sub-statements in WITH are executed concurrently with each other and with the main query.
Therefore, when using data-modifying statements in WITH, the order in which the specified updates actually happen is unpredictable.
"""
-- https://www.postgresql.org/docs/14/queries-with.html

Also see https://stackoverflow.com/questions/47622827/cte-execution-order
2023-12-04 04:45:27 +01:00
ekzyis 0ea0cecfc3 Show market outcome 2023-12-04 02:36:09 +01:00
ekzyis 79e2cbefdc Redirect to market orders 2023-12-04 01:54:36 +01:00
ekzyis fe5feccfee Implement market settlement 2023-12-04 01:36:59 +01:00
ekzyis 6088d8aa10 Disable withdrawal if user has no sats 2023-12-03 09:54:11 +01:00
ekzyis 51e204b64a Add frontend for market settlement 2023-12-03 08:51:40 +01:00
ekzyis c9bce83891 Remove unnecessary CSS class 2023-12-03 07:32:23 +01:00
ekzyis 938bff20e6 Add pubkey column to market table 2023-12-03 07:22:13 +01:00
ekzyis 6ab8e975fb Fix CSS on /about for large screens 2023-12-03 07:14:04 +01:00
ekzyis ceefec61cd Fix sell order not increasing user balance on match 2023-12-03 07:01:08 +01:00
ekzyis c7ae559777 Implement withdrawal 2023-12-03 06:21:57 +01:00
ekzyis 2af9ac29df Consistent uppercase POST 2023-12-03 04:42:29 +01:00
ekzyis f291a14630 Fix order form sell checkbox CSS 2023-12-03 04:22:18 +01:00
ekzyis 822c9d04c7 Add /about 2023-12-03 04:16:12 +01:00
ekzyis e0e745a319 Refresh session after order cancelation 2023-12-03 03:18:24 +01:00
ekzyis 3f22f12707 Fix unpaid orders shown 2023-12-03 03:10:00 +01:00
ekzyis adc3c8bfe1 Fix stale login redirect 2023-12-03 02:55:27 +01:00
ekzyis 59f7269930 User feedback on order cancelation 2023-12-03 02:47:15 +01:00
ekzyis 3b7b9e5134 Fix alignment of labels in order form 2023-12-03 02:44:00 +01:00
ekzyis 305e248310 Fix wrong share balance if sell order canceled 2023-12-03 02:41:03 +01:00
ekzyis 3396bd4ccf Fix browser warnings regarding form 2023-12-03 02:30:50 +01:00
ekzyis 54b8aa8057 Update order form 2023-12-03 02:28:36 +01:00
ekzyis ce95a2111b Update matchmaking 2023-12-03 02:03:48 +01:00
ekzyis 0be35c5cf5 Add TODO 2023-12-03 02:01:27 +01:00
ekzyis ac3008ec74 Show canceled orders to user 2023-12-03 00:33:10 +01:00
ekzyis 6171bfebde Improve invoice status
* show if invoice expired
* refactor style if invoice not found
2023-12-03 00:27:22 +01:00
ekzyis 530f87304b Show sat balance in order form 2023-12-02 23:42:10 +01:00
ekzyis 555e8f0767 Remove unnecessary comments 2023-12-02 23:41:39 +01:00
ekzyis f6d04f021c Fix order creation not setting invoice_id 2023-12-02 23:41:32 +01:00
ekzyis 28546962f3 Add msats to session 2023-12-02 23:30:48 +01:00
ekzyis 49cacb266c Order cancelation 2023-12-02 23:22:14 +01:00
ekzyis 3979bbd86f Fix formatting 2023-12-02 21:59:29 +01:00
ekzyis 7a913d0f27 Use PENDING for unpaid invoices 2023-12-02 21:47:20 +01:00
ekzyis c885efe034 Invoice status styling 2023-12-02 21:45:06 +01:00
ekzyis e0c1085145 Show invoice status immediately 2023-12-02 21:38:59 +01:00
ekzyis 26fb7b3178 Remove unused table matches 2023-12-02 21:11:25 +01:00
ekzyis 38318688b9 Fix user balance query 2023-12-02 02:56:58 +01:00
ekzyis 4d27aca6e5 Show success to user 2023-12-02 02:56:04 +01:00
ekzyis c92557cd2a Fix timestamp of sell orders
For some reason, I had to put o.invoice_id at the end of the select list. Else, sell orders would receive wrong/empty data.
2023-12-02 02:56:04 +01:00
ekzyis 16e6efe6c2 Fix unpaid market orders shown 2023-12-02 02:45:37 +01:00
ekzyis 7fc63f44cd Fix order match link 2023-12-02 02:27:44 +01:00