Commit Graph

66 Commits

Author SHA1 Message Date
Tyler Shipe b9c8dd09d5 use lodash instead of lodash-es 2021-11-30 21:46:23 -05:00
saml33 f3ea08c1c1 merge main 2021-11-04 20:17:39 +11:00
saml33 b8d34934d9 setup introjs tour 2021-10-29 23:05:55 +11:00
Tyler Shipe fc1665444f upgrade to next12, remove babel, remove emotionjs, convert emotion styles to inline 2021-10-27 16:46:31 -04:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Tyler Shipe 91427ee809 use latest client 2021-10-12 16:20:55 -04:00
dd f3fbb1af6b changed mango client package to v3.1 after place spot order2 fix 2021-10-10 11:06:57 -07:00
Maximilian Schneider 93abdab9f6 Merge remote-tracking branch 'origin/main' into max/stoploss 2021-10-05 23:02:01 +02:00
Maximilian Schneider 97bb02e593
show unsettled pnl (#46)
* display unsettled pnl more dominantly (#43)

* display perp markets that have unsettled pnl

* fix dependencies to a working version

* add back unrealized pnl vs unsettled pnl

* add todo

* settle all

* cleanup

* catch error

* fix crash in market position & refactor

* bugfixes

* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +02:00
Tyler Shipe 419f7d607c Merge branch 'ts/spot-order-2' into max/stoploss 2021-09-22 23:20:56 -04:00
saml33 9123e63344
Trade page mobile (#35)
* mobile styles for chart, position, account

* mobile styles for trade form

* trade page mobile styles

* tab layout

* fix unknown property fill-rule

* test swipeable tabs

* fix container height

* fix orderbook mobile styles

* account page mobile styles

* fix swipeable container height

* stats page mobile styles
2021-09-20 02:36:02 +02:00
Tyler Shipe f1d59d32e1 use placeSpotOrder2 and add reduce only orders for perps 2021-09-15 20:25:23 -04:00
Tyler Shipe 6630e29707 upgrade nextjs 2021-08-30 00:56:27 -04:00
Tyler Shipe e0f2398dab remove old hooks 2021-08-29 20:37:31 -04:00
Tyler Shipe 3dadee255a remove console logs, use latest client 2021-08-06 18:49:17 -04:00
Tyler Shipe f8ee52eb7f fix to show trade history even when spot open order acct doesnt exist 2021-08-06 18:35:10 -04:00
Tyler Shipe 0e54dba872 ignore fs pkg in next.js and update to latest client 2021-07-18 13:24:15 -04:00
Tyler Shipe 153bff4499 remove access token now that client is public 2021-07-14 11:07:34 -04:00
Tyler Shipe d9c367cc9e latest mango-client 2021-07-05 11:06:00 -04:00
Tyler Shipe c355f7132e add Borrows page and health ratio 2021-07-05 11:03:57 -04:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -04:00
Tyler Shipe 619295d2e0 parsed trade history for perps 2021-06-24 16:57:11 -04:00
dd 53949ded01 changed default mango group name 2021-06-23 18:00:17 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe a0d2579d70 add pat to download merps-ts 2021-06-20 17:41:41 -04:00
Tyler Shipe 99f3231d58 netlify deploy 2021-06-20 16:14:25 -04:00
Tyler Shipe d3af1ac5b1 show open orders and wire up cancel order 2021-06-18 16:46:20 -04:00
Maximilian Schneider 4d7b02e6a0 place perp order works now 2021-06-18 14:07:07 -04:00
dd 62bc1b536f Fixed minOrderSize and tickSize in TradeForm 2021-06-18 13:50:25 -04:00
Tyler Shipe fd8df42503 update packages 2021-06-17 20:44:03 -04:00
Maximilian Schneider 8aed0f0840 expose market config in store and switch between spot & perp 2021-06-17 01:38:49 -04:00
Tyler Shipe cb331fb2c7 comment out stuff in the ui so it works 2021-06-16 21:50:16 -04:00
Maximilian Schneider 3dbbe87ded
fix data issues when switching markets (#31) 2021-06-12 22:03:05 -04:00
Tyler Shipe 8171b25167 use latest mango-client version 2.1 2021-06-12 17:17:59 -04:00
Tyler Shipe 4476a2254e rebate gui hoster fees to users 2021-06-12 13:46:06 -04:00
Maximilian Schneider d4560af064 bump mango-client to 2.0.0 for consistency 2021-06-09 12:01:34 -04:00
Tyler Shipe 1afe59e4e0 update modal with sol srm info 2021-06-08 10:59:39 -04:00
Tyler Shipe a2163f7cf4 use web3.js v0.95.0 2021-05-31 16:23:48 -04:00
Ralfs eb73a8f4d5 Use another client branch 2021-05-20 22:39:14 +03:00
Maximilian Schneider 935129c45e
simulate withdraw operation so we can preview equity & coll (#10)
* show margin details in withdraw ui

Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33 806b527502
Bring alert details and notifications into the UI (#5)
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
Tyler Shipe a003f8975f bump mango client version 2021-04-29 17:48:54 -04:00
Tyler Shipe c480e2d362 bump mango-client version 2021-04-26 15:12:11 -04:00
Tyler Shipe 2d489b29c4 add Lagzda's alerts 2021-04-24 22:10:28 -04:00
Tyler Shipe 3db7ed86a5 extract borrowAndWithdraw from ui to mango-client pkg 2021-04-20 14:14:45 -04:00
Tyler Shipe 7b8035e960 Merge remote-tracking branch 'origin/table-styling' into main 2021-04-20 12:46:41 -04:00
Tyler Shipe 349966cb7e upgrade to mango-client 0.1.12 and add refresh button to account select 2021-04-20 11:46:56 -04:00
saml33 4285339e5a responsive tables and start on stats page 2021-04-21 00:19:08 +10:00
Tyler Shipe b22ac152bd Add new tooltip component 2021-04-16 14:16:31 -04:00
Tyler Shipe 92eef50f54 upgrade tailwind and next 2021-04-16 11:04:04 -04:00