hensei-web/utils
Justin Edmund 15a32d56bb
Rich text editor and support for tagging objects (#340)
* Preliminary work around making an Element type

* Disabled Youtube code for now

* Clean description with DOMPurify

* Update GranblueElement with slug

* Add new api endpoint for searching all resources

* Add new variables and themes

* Remove fixed height on html tag for now

* Update README.md

We renamed the folders for character images from `chara-` to `character-`

* Add no results string

* Add tiptap and associated packages

* Update .gitignore

* Update components that use character images

* Add Editor component

This commit adds the bulk of the code for our new rich-text editor. The Editor component will be used to edit and display rich text via Tiptap.

* Add mention components

This adds the code required for us to mention objects in rich text fields like team descriptions.

The mentionSuggestion util fetches data from the server and serves it to MentionList for the user to select, then inserts it into the Editor as a token.

* Implements Editor in edit team and team footer

This implements the Editor component in EditPartyModal and PartyFooter. In PartyFooter, it is read-only.

* Remove min-width on tokens

* Add rudimentary conversion for old descriptions

Old descriptions just translate as a blob of text, so we try to insert some paragraphs and newlines to keep things presentable and lessen the load if users decide to update

* Add support for displaying jobs in MentionList

* Handle numbers and value=0 better

* Keep description reactive

This shouldn't work? The snapshot should be the reactive one? I don't fucking know

* Send locale to api with search query

* Delete getLocale.tsx

We didn't actually use this

* Fix build errors
2023-07-05 21:19:34 -07:00
..
accountState.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
api.tsx Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
appState.tsx Add server unavailable message (#330) 2023-06-22 01:50:31 -07:00
capitalizeFirstLetter.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
changeLanguage.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
defaultFilters.tsx Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
elementalizeAetherialMastery.tsx Bug fixes and content updates (#270) 2023-03-17 01:35:49 -07:00
elementEmoji.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
elements.tsx Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
emptyStates.tsx Deploy hotfix for World Series bug (#294) 2023-04-01 12:22:31 -07:00
enums.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
extractFilters.tsx June 2023 Update (#316) 2023-06-19 03:54:03 -07:00
fetchLatestVersion.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
generateTitle.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
getElementForParty.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
groupWeaponKeys.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
jobsWithAccessories.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
localId.tsx Migrate to CSS modules (#335) (#336) 2023-07-04 00:43:49 -07:00
mapWeaponSeries.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
mentionSuggestions.tsx Rich text editor and support for tagging objects (#340) 2023-07-05 21:19:34 -07:00
pictureData.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
reportError.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
retrieveCookies.tsx Different approach to getting locale cookie 2023-01-03 23:19:13 -08:00
stateValues.tsx February 2023 Update (#158) 2023-02-04 23:46:24 -08:00
timeAgo.tsx Fix division by 0 2022-12-27 10:40:09 -08:00
useDidMountEffect.tsx Remove trailing semicolons 2022-12-05 17:54:46 -08:00
userToken.tsx Bug fixes and content updates (#270) 2023-03-17 01:35:49 -07:00
youtube.tsx I'm double dumb 2022-12-26 09:53:25 -08:00