You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Pull Request implements the first iteration of the visual word
editor for adding new or modifying existing words in the dictionary.
### Changes Made
- Added a new page/route `/editor`
- Added a `word-editor` island with react integration and integrated
this island on the `editor` page with a `client:load` directive
- Added a new map store `$wordEditor` to `stores/dictionary`
- Implemented a custom hook `useWordEditor` which serves as a wrapper to
perform `get` and `set` operation on the `$wordEditor` store
- Implement 2 component to the `word-editor` island integrate within the
main island default exported component
- `Editor` - the entry field component for editing word entry to the
dictionary, it implements the `title` field of input type `text` and a
`content` field of `textarea` which receives (Markdown) text content
- `Preview` - the preview UI that mimics the view of word as it's going
to look on the dictionary live view;
- this component also integrate another `DummyPreviewNavbar` component
to enhance the live preview idea
- it also implements the `Markdown` component from `react-markdown` node
module integration to parse of the Markdown content received from the
`Editor`'s `content` to `html`.
- this component also uses the `prose` utility class name from
`@tailwind/typography` plug-in to style the parsed `html` content
enhance the preview idea.
- Implemented the `DummyPreviewNavbar` component in within the
`word-editor` island for integration in the `Preview` component
- Implement a stateless/non-functional `Publish` button on `editor` page
- Extracted `nav` element on `layout/base` to standalone `Navbar`
component
📖
### Screencast/Screenshot
[screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.03.28-16_14_26.webm](https://github.com/babblebey/jargons.dev/assets/25631971/173501ae-a77e-4b8a-8b45-c65df20da351)
### Note
- Added new node module: `react-markdown`
0 commit comments