67 Commits

Author SHA1 Message Date
71107a7432 Refresh orders 2022-01-08 17:23:13 -08:00
cf2422f924 Small fixes 2022-01-08 12:14:19 -08:00
476fcf1d6f Add trade escrow box 2022-01-08 09:19:30 -08:00
3a8e172a73 Add maker waiting room 2022-01-08 07:34:09 -08:00
5fb776aca7 Add TradeBox and QR client side generation 2022-01-08 05:08:03 -08:00
7b6b486552 updated env-sample 2022-01-07 16:29:04 -08:00
eb9042eaa4 Add Non-KYC Bitcoin price historical records 2022-01-07 14:46:30 -08:00
b472b4928c More logics, bug hunt 2022-01-07 11:22:07 -08:00
9ab52853d5 Work on more logics. Rough draft finished 2022-01-07 10:22:52 -08:00
8a55383761 Add more api logics
The workflow is actually more complex than I though. In fact the whole scope of the project greatly surpass my expectation of "weekend project".  Want to lay down something functional even if buggy and ugly, I'm a bad coder but this will work out!
2022-01-07 03:31:33 -08:00
6a1a906bea Cosmetic 2022-01-06 15:33:55 -08:00
31b19ce18c Work on order cancel 2022-01-06 14:39:59 -08:00
c0d6236dbb Maker and taker bonds OK 2022-01-06 13:36:22 -08:00
34e05465c2 Add more logics bareframes 2022-01-06 12:33:40 -08:00
a1771ae5ea Add environmental variables to .env 2022-01-06 08:54:37 -08:00
805b12de65 Add preliminary pricing for t0 and maker bond. Add reverse on_delete Cascade Orders -> Htlcs 2022-01-06 08:20:04 -08:00
5505476ea4 Add logics for Invoice update/creation and maker_hodl_invoice 2022-01-06 05:55:47 -08:00
46c129bf80 Add logics module 2022-01-06 04:32:17 -08:00
5640b11e6f Handle empty books 2022-01-05 05:39:58 -08:00
bd1601d59f Bug fix, order status now as message, HTLCs relationals working 2022-01-05 04:18:54 -08:00
7d4cd868b0 Work on admin panel relationals 2022-01-05 03:20:08 -08:00
635420c9dd Add HTLC model and placeholder functions 2022-01-05 02:30:38 -08:00
ed3605cca6 Rework minor ui and bugs 2022-01-04 18:03:03 -08:00
369d9e52a7 Fix bug CSRF token! 2022-01-04 16:23:52 -08:00
9ade961e0f Work on update order endpoint and taker requests 2022-01-04 16:13:08 -08:00
4d9a5023e0 Fix bugs, cards now link to order 2022-01-04 08:27:15 -08:00
78886c8c9c Rework admin pannel and extended users 2022-01-04 07:58:10 -08:00
30dfd09f58 fix minor things, add mui style libs, figured CSRF problems some bugs left 2022-01-04 07:00:34 -08:00
5b712b0765 Extend user model with profiles and set up admin panel 2022-01-04 05:47:37 -08:00
0823febf73 Add order expiry time and rework book page 2022-01-04 02:21:45 -08:00
a358a89e24 Add back button 2022-01-03 15:05:19 -08:00
bb0d2d46f2 Remove unused front end function 2022-01-03 14:58:05 -08:00
332aeeb5f8 Redesign and refactor makerPage 2022-01-03 14:56:23 -08:00
44d95e768c Create simple book order page with cards and plaintext 2022-01-03 14:52:46 -08:00
7701f01936 Rework components. Initialize book component. 2022-01-03 11:15:13 -08:00
e06be9b22f Bug fix for ghost avatar images after user deletion 2022-01-03 11:13:39 -08:00
87fdaffa24 Bug fix for book queries with no matches 2022-01-03 06:39:59 -08:00
e9bcd23347 Add BookView endpoint and refactor pages 2022-01-03 06:27:25 -08:00
afd90f8fbf Improve content and handling on OrderPage 2022-01-03 04:11:33 -08:00
d037506138 Handle auth and welcome back for existing users 2022-01-03 01:06:51 -08:00
80e0ca46fb add login/logout, validates 1 order max, delete method for user 2022-01-02 17:38:48 -08:00
225c142cd9 Style avatar css 2022-01-02 14:50:49 -08:00
928d0b4796 Fix git merge conflict due to ammending pushed commit 2022-01-02 14:34:25 -08:00
790e96cc1b Improve user generator UX. Still a bit buggy. 2022-01-02 14:31:19 -08:00
d7979086ed Improve user generator UX. Still a bit buggy. 2022-01-02 13:41:22 -08:00
f4644836d3 Connect UserGenPage to API. Base 32 string seems to pass quality checks, shorter do not. 2022-01-02 10:27:40 -08:00
fb9fb88ab7 Implement user generator page frontend with client-side token generation
Uses crypto.getRandomValue() that at least should provide cryptographically strong random
2022-01-02 10:05:20 -08:00
354e7fc5c7 Create user generation API
Endpoint request contains a token. Server checks whether it has enough entropy to be secure (at least 128 bits and >0.7 shannon heterogeneity). Server hashes the token (once as of now) and derives nickname and robohash avatar (goes into static/assets/avatars). Nickname is limited to only adjectives, nouns and 3 digits, restricted to 18 characters long max. The corpus of nicknames is 20 billion big (maybe not enough? nick collision chance can happen, but server will just reply with 400 unless the token matches perfectly too)
2022-01-02 09:15:09 -08:00
f0ac03e519 Add nick generator and robohash avatar generator 2022-01-02 07:19:49 -08:00
6d6072777b Merge branch 'order-details-page' of github.com:Reckless-Satoshi/robosats into order-details-page 2022-01-02 05:39:16 -08:00