manifold/web/components
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
..
analytics Show x value in numeric graph's tooltip 2022-05-22 17:48:02 -05:00
answers answer bet panel: scroll up on ios 2022-07-12 17:47:48 -05:00
charity Comment tips (attempt 2) (#539) 2022-06-17 22:28:16 -05:00
contract Rich content (#620) 2022-07-13 11:58:22 -07:00
feed Rich content (#620) 2022-07-13 11:58:22 -07:00
groups Revert "Revert "Disable enter to submit on mobile group chat"" 2022-07-13 09:08:32 -06:00
layout Analyze tab usage 2022-07-07 15:24:13 -06:00
nav Show group scrollbars only when needed 2022-07-13 07:57:51 -06:00
portfolio Change portfolio graph option labels 2022-07-10 18:26:06 -05:00
widgets Group leaderboards show members only by default 2022-06-24 18:38:39 -05:00
add-funds-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
advanced-panel.tsx Replace some uses of any with more specific types (#344) 2022-05-26 15:22:44 -07:00
alert-box.tsx alert box component 2022-06-13 21:08:56 -05:00
amount-input.tsx Add more linting to web package (#343) 2022-05-26 14:41:24 -07:00
avatar.tsx Show tip notifications (#623) 2022-07-06 13:30:51 -06:00
bet-panel.tsx Show all limit orders in a tab 2022-07-13 12:15:00 -05:00
bet-row.tsx bet row: default to YES 2022-07-13 11:20:29 -05:00
bets-list.tsx fix bet summary selling 2022-07-13 13:20:53 -05:00
bucket-input.tsx 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
checkbox.tsx Fix line endings 2022-06-05 18:57:49 -07:00
choices-toggle-group.tsx Revert "Revert "Turn on no unused variables linting, kill dead code (#484)"" 2022-06-12 21:42:41 -07:00
client-render.tsx Add more linting to web package (#343) 2022-05-26 14:41:24 -07:00
comments-list.tsx Load contracts at UserPage top level instead of in BetsList 2022-07-10 19:19:35 -05:00
confirmation-button.tsx Groups (#510) 2022-06-22 11:35:50 -05:00
contract-search.tsx Revert "expand search bar when typing on mobile" 2022-07-09 22:04:50 -04:00
copy-contract-button.tsx When duplicating, add the original link in description 2022-07-06 10:39:19 -07:00
copy-link-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
create-question-button.tsx Unused vars 2022-07-07 07:05:12 -06:00
datetime-tooltip.tsx Add more linting to web package (#343) 2022-05-26 14:41:24 -07:00
editor.tsx Rich content (#620) 2022-07-13 11:58:22 -07:00
file-upload-button.tsx Rich content (#620) 2022-07-13 11:58:22 -07:00
filter-select-users.tsx also filter by username when adding people 2022-07-05 14:34:16 -07:00
follow-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
follow-list.tsx Don't show follow button for yourself 2022-06-08 14:22:10 -05:00
following-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
info-tooltip.tsx Switch to outlined icon 2022-01-16 02:14:21 -05:00
join-spans.tsx Replace some uses of any with more specific types (#344) 2022-05-26 15:22:44 -07:00
landing-page-panel.tsx track landing page 2022-06-15 21:42:11 -05:00
leaderboard.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
limit-bets.tsx Show all limit orders in a tab 2022-07-13 12:15:00 -05:00
linkify.tsx Add more linting to web package (#343) 2022-05-26 14:41:24 -07:00
liquidity-panel.tsx Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
loading-indicator.tsx Show loading indicator on comment submit 2022-05-18 10:08:42 -06:00
manalink-card.tsx Manalink: Send mana to anyone via link (#114) 2022-06-23 01:07:52 -07:00
new-contract-badge.tsx Show "New" badge on contract cards too 2022-04-20 23:03:16 -07:00
notifications-icon.tsx Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
number-input.tsx Replace some uses of any with more specific types (#344) 2022-05-26 15:22:44 -07:00
numeric-bet-panel.tsx Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
numeric-resolution-panel.tsx Don't "warm up" resolveMarket anymore (#638) 2022-07-12 12:36:10 -07:00
outcome-label.tsx PseudoNumeric markets store resolveValue in resolved notification and render it 2022-07-10 14:52:31 -05:00
page.tsx Remove top Pagepadding on small screens 2022-07-11 19:07:37 -05:00
pagination.tsx Refactor notifications to use Pagination component 2022-07-10 18:50:59 -05:00
probability-input.tsx 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
probability-selector.tsx Revert "bound initial probability to [0.1, 0.9]" 2022-04-30 13:05:43 -04:00
referrals-button.tsx Display refered by publicly 2022-07-04 09:18:01 -06:00
relative-timestamp.tsx More absolute imports (#156) 2022-05-09 09:04:36 -04:00
resolution-panel.tsx Don't "warm up" resolveMarket anymore (#638) 2022-07-12 12:36:10 -07:00
sell-button.tsx Pseudo numeric market (#609) 2022-07-02 14:37:59 -05:00
sell-modal.tsx Pseudo numeric market (#609) 2022-07-02 14:37:59 -05:00
sell-row.tsx 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
SEO.tsx Replace some uses of any with more specific types (#344) 2022-05-26 15:22:44 -07:00
share-embed-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
share-icon-button.tsx Referrals (#592) 2022-07-01 07:47:19 -06:00
share-market.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
sign-up-prompt.tsx sign in, sign up button styling 2022-06-15 16:58:52 -05:00
site-link.tsx Replace some uses of any with more specific types (#344) 2022-05-26 15:22:44 -07:00
tags-input.tsx Groups (#510) 2022-06-22 11:35:50 -05:00
tags-list.tsx exclude certain categories for new users 2022-06-21 10:01:51 -05:00
text-button.tsx Extract TextButton component with blue underline. 2022-06-08 14:23:10 -05:00
tipper.tsx Refactor some backend-related stuff (#639) 2022-07-10 15:03:15 -07:00
title.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
toast-clipboard.tsx Enable url linking to comments and a copy to clipboard function [wip] (#239) 2022-05-17 09:55:26 -06:00
tooltip.tsx Comment tips (attempt 2) (#539) 2022-06-17 22:28:16 -05:00
tweet-button.tsx Tracking (#511) 2022-06-15 16:34:34 -05:00
use-save-binary-shares.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
user-page.tsx Use hook to fetch user bets 2022-07-10 22:28:04 -05:00
yes-no-selector.tsx Simplify bet buttons (#644) 2022-07-12 17:34:10 -05:00