manifold/web
James Grugett 985cdd2537
🏦 Per-market loans! (#57)
* Loan backend: Add loanAmount field to Bet, manage loans up to max loan amount per market -- buy, sell, and resolve.

* Loan frontend: show your loan amount in bet panel, answer bet panel

* Resolve emails include full payout not subtracting loan

* Exclude sold bets from current loan amount

* Handle bets table for loans. Sell dialog explains how you will repay your loan.

* Floor remaining balance

* Fix layout of create answer bet info

* Clean up Sell popup UI

* Fix bug where listen query was not updating data.

* Reword loan copy

* Adjust bet panel width

* Fix loan calc on front end

* Add comment for includeMetadataChanges.

Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-03-01 21:31:48 -06:00
..
.husky Disable tsc linting 2021-12-18 15:18:58 -08:00
components 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00
hooks 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00
lib 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00
pages 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00
public Add funds menu option, and Add funds page 2022-02-28 17:32:53 -08:00
.eslintrc.js Turn off nextjs img lint rule 2021-12-10 18:18:43 -06:00
.gitignore Run a ts type checker in parallel with nextjs dev process 2021-12-19 15:26:59 -06:00
.prettierignore Run prettier 2021-12-09 15:23:21 -08:00
next-env.d.ts upgrade nextjs version 2021-12-15 23:49:38 -06:00
next.config.js Reroute /api and /api/v0 to our docs page 2022-02-21 10:50:20 -08:00
package.json Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
postcss.config.js Prettier: no semi, spaces 2, single quote, trailing comma 2021-12-02 17:49:46 -06:00
README.md Rename to Manifold Markets! (#19) 2022-01-06 12:48:30 -06:00
tailwind.config.js Clean up About page 2022-02-06 00:35:58 -08:00
tsconfig.json Change back typscript target to es5 2022-01-22 15:25:09 -06:00
yarn.lock List users on admin page (#28) 2022-01-15 22:09:15 -05:00

Manifold Markets web

Getting Started

  1. Run npm install
  2. Run npm run dev
  3. Your site will be available on http://localhost:3000

Formatting

Before committing, run npm run format to format your code.

Recommended: Use a Prettier editor integration to automatically format on save

Developer Experience TODOs

  • Automatically run prettier as code commit hook?
  • Prevent git pushing if there are Typescript errors?