manifold/web/lib/firebase
Sinclair Chen 9a11f55762
Rich content (#620)
* Add TipTap editor and renderer components

* Change market description editor to rich text

* Type description as JSON, fix string-based logic

- Delete make-predictions.tsx
- Delete feed logic that showed descriptions

* wip Fix API validation

* fix type error

* fix extension import (backend)

In firebase, typescript compiles imports into common js imports
like `const StarterKit = require("@tiptap/starter-kit")`

Even though StarterKit is exported from the cjs file, it gets imported
as undefined. But it magically works if we import *

If you're reading this in the future, consider replacing StarterKit with
the entire list of extensions.

* Stop load on fail create market, improve warning

* Refactor editor as hook / fix infinite submit bug

Move state of editor back up to parent
We have to do this later anyways to allow parent to edit

* Add images - display, paste + uploading

* add uploading state of image

* Fix placeholder, misc styling

min height, quote

* Fix appending to description

* code review fixes: rename, refactor, chop carets

* Add hint & upload button on new lines

- bump to Tailwind 3.1 for arbitrary variants

* clean up, run prettier

* rename FileButton to FileUploadButton

* add image extension as functions dependency
2022-07-13 11:58:22 -07:00
..
answers.ts More absolute imports (#156) 2022-05-09 09:04:36 -04:00
api.ts Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
bets.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
comments.ts Compute stats in Firebase instead of Vercel (#584) 2022-06-26 14:42:42 -07:00
contracts.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00
groups.ts Small groups UX changes 2022-07-06 17:24:53 -06:00
init.ts Add more linting to web package (#343) 2022-05-26 14:41:24 -07:00
liquidity.ts Liquidity withdrawal (#457) 2022-06-08 13:00:49 -05:00
manalinks.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00
notifications.ts Use react-query to cache notifications (#625) 2022-07-07 14:41:50 -06:00
stats.ts Compute stats in Firebase instead of Vercel (#584) 2022-06-26 14:42:42 -07:00
storage.ts Rich content (#620) 2022-07-13 11:58:22 -07:00
tracking.ts Remove unused imports from random files (#224) 2022-05-13 18:30:52 -07:00
txns.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
users.ts Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
utils.ts Add Firebase schema collection helpers (kind of an RFC) (#583) 2022-06-29 12:21:40 -07:00