manifold/functions/src
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
..
email-templates Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
scripts Fix backup DB job to actually backup most things, refactor (#605) 2022-07-02 13:27:06 -07:00
add-liquidity.ts Don't run share redemption after adding liquidity (#631) 2022-07-12 12:36:31 -07:00
analytics.ts Clean up unclean user names (#543) 2022-06-18 14:31:39 -07:00
api.ts Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
backup-db.ts Fix backup DB job to actually backup most things, refactor (#605) 2022-07-02 13:27:06 -07:00
cancel-bet.ts "limit bet" => "limit order" 2022-07-12 16:46:03 -05:00
change-user-info.ts Migrate changeUserInfo function to v2 (#626) 2022-07-08 15:00:03 -07:00
claim-manalink.ts Migrate claimManalink function to v2 (#628) 2022-07-08 15:28:04 -07:00
create-answer.ts Migrate createAnswer function to v2 (#634) 2022-07-09 00:26:56 -07:00
create-contract.ts Rich content (#620) 2022-07-13 11:58:22 -07:00
create-group.ts Finalize v2 resolvemarket migration (#598) 2022-06-29 16:47:06 -07:00
create-notification.ts Add sourceContractId to bet_fill notification 2022-07-10 13:45:32 -05:00
create-user.ts Migrate createUser function to v2 (#633) 2022-07-10 14:02:32 -07:00
emails.ts Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
get-daily-bonuses.ts Show tip notifications (#623) 2022-07-06 13:30:51 -06:00
get-feed-data.ts Make feed updating do much less work (#455) 2022-06-09 15:13:06 -07:00
health.ts Finalize v2 resolvemarket migration (#598) 2022-06-29 16:47:06 -07:00
index.ts Migrate createUser function to v2 (#633) 2022-07-10 14:02:32 -07:00
market-close-notifications.ts Notifications for liquidity proiders/provisions (#478) 2022-06-10 16:48:28 -06:00
on-create-answer.ts Speed up notification loading by prepopulating relevant info (#453) 2022-06-08 08:43:24 -06:00
on-create-bet.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
on-create-comment-on-contract.ts Bold groups with recent chat activity (#621) 2022-07-05 17:18:37 -06:00
on-create-comment-on-group.ts Bold groups with recent chat activity (#621) 2022-07-05 17:18:37 -06:00
on-create-contract.ts Rich content (#620) 2022-07-13 11:58:22 -07:00
on-create-group.ts Groups (#510) 2022-06-22 11:35:50 -05:00
on-create-liquidity-provision.ts Ignore manifold as lp for now 2022-06-10 17:23:17 -06:00
on-create-txn.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
on-follow-user.ts Create Top Followed Users leaderboard (#531) 2022-06-22 11:05:54 -05:00
on-unfollow-user.ts Create Top Followed Users leaderboard (#531) 2022-06-22 11:05:54 -05:00
on-update-contract.ts PseudoNumeric markets store resolveValue in resolved notification and render it 2022-07-10 14:52:31 -05:00
on-update-group.ts Bold groups with recent chat activity (#621) 2022-07-05 17:18:37 -06:00
on-update-user.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
on-view.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
place-bet.ts Redeem shares of makers after matching with limit bets 2022-07-13 12:51:19 -05:00
redeem-shares.ts Don't accidentally make meaningless zero bets (#619) 2022-07-05 14:01:57 -07:00
resolve-market.ts Pseudo numeric market (#609) 2022-07-02 14:37:59 -05:00
sell-bet.ts Use getAll Firestore technology to improve some code (#612) 2022-07-02 16:24:03 -07:00
sell-shares.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
send-email.ts Switch to Google Secret Manager for function secrets (#418) 2022-06-04 14:39:25 -07:00
stripe.ts Migrate stripeWebhook and createCheckoutSession to v2 (#636) 2022-07-09 13:43:18 -07:00
transact.ts Migrate transact function to v2 (#635) 2022-07-09 13:54:15 -07:00
unsubscribe.ts Migrate unsubscribe function to v2 (#637) 2022-07-10 13:46:00 -07:00
update-metrics.ts Daily/Weekly/Monthly Leaderboards by Fede (#557) 2022-06-22 15:29:40 -05:00
update-stats.ts Compute stats in Firebase instead of Vercel (#584) 2022-06-26 14:42:42 -07:00
utils.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
withdraw-liquidity.ts return creator liquidity after resolution 2022-07-09 13:53:50 -04:00