manifold/web/package.json
Austin Chen 8cedf93901
Implement quick betting: directly from the market card (#291)
* Play with using 3 icons for 1-click usage

* Align bet icons with the percentages

* Hide liquidity injection star, for now

* Fix Free Response card layouts

* Use triangles instead of planes

* Set correct hover states the arrows

* Fix down triangle & padding

* Default large nums to 2 sigfigs

* Clean up hover areas

* Fix bet width, remove "chance/expected"

* Show "M$20" on hover, hide arrows when closed

* Improve click targets

* FR: "MULTI" => "MANY", single => "TOP"

* Install react-hot-toaster

* Implement quick betting on binary questions

* Handle different kinds of markets

* Extract out QuickBet into its own component

* Minor tweaks

* Visually separate out quick bet pane

* Hide quick bet for FR markets with no answers

* Fill in which bets the user has already placed

* Animate movements, fix binary direction

* Hover arrows are now always gray

* Pull out code into quick-bet.tsx

* Minor comments

* Fix import

ts-ignore is scary

* Fixes from James's feedback

* Hide text only on quickbet
2022-05-23 23:44:16 -07:00

62 lines
2.1 KiB
JSON

{
"name": "web",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "concurrently -n NEXT,TS -c magenta,cyan \"next dev -p 3000\" \"yarn ts --watch\"",
"devdev": "NEXT_PUBLIC_FIREBASE_ENV=DEV concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=DEV next dev -p 3000\" \"FIREBASE_ENV=DEV yarn ts --watch\" # see https://github.com/vercel/next.js/discussions/33634",
"dev:dev": "yarn devdev",
"dev:the": "NEXT_PUBLIC_FIREBASE_ENV=THEOREMONE concurrently -n NEXT,TS -c magenta,cyan \"FIREBASE_ENV=THEOREMONE next dev -p 3000\" \"FIREBASE_ENV=THEOREMONE yarn ts --watch\"",
"dev:emulate": "NEXT_PUBLIC_FIREBASE_EMULATE=TRUE yarn devdev",
"ts": "tsc --noEmit --incremental --preserveWatchOutput --pretty",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "npx prettier --write .",
"postbuild": "next-sitemap"
},
"dependencies": {
"@headlessui/react": "1.6.1",
"@heroicons/react": "1.0.5",
"@nivo/core": "0.74.0",
"@nivo/line": "0.74.0",
"algoliasearch": "4.13.0",
"clsx": "1.1.1",
"cors": "2.8.5",
"daisyui": "1.16.4",
"dayjs": "1.10.7",
"firebase": "9.6.0",
"gridjs": "5.0.2",
"gridjs-react": "5.0.2",
"lodash": "4.17.21",
"next": "12.1.2",
"node-fetch": "3.2.4",
"react": "17.0.2",
"react-confetti": "6.0.1",
"react-dom": "17.0.2",
"react-expanding-textarea": "2.3.5",
"react-hot-toast": "^2.2.0",
"react-instantsearch-hooks-web": "6.24.1"
},
"devDependencies": {
"@tailwindcss/forms": "0.4.0",
"@tailwindcss/line-clamp": "^0.3.1",
"@tailwindcss/typography": "^0.5.1",
"@types/lodash": "4.14.178",
"@types/node": "16.11.11",
"@types/react": "17.0.43",
"autoprefixer": "10.2.6",
"concurrently": "6.5.1",
"critters": "0.0.16",
"eslint-config-next": "12.1.6",
"next-sitemap": "^2.5.14",
"postcss": "8.3.5",
"prettier-plugin-tailwindcss": "^0.1.5",
"tailwindcss": "3.0.1",
"tsc-files": "1.1.3"
},
"lint-staged": {
"*.{ts,tsx}": "tsc-files --noEmit --incremental false"
}
}