Skip to content

Commit

Permalink
✨ feat(page-chat): add markdown rendering, message editing, and conte…
Browse files Browse the repository at this point in the history
…xt menu

- Integrate `marked` and `unsafeHTML` for markdown rendering in AI messages
- Introduce unique message IDs for tracking and editing
- Implement message editing, copying, and resending functionality via context menu
- Display AI typing indicator and add scroll-to-bottom button
- Enhance layout and styling for mobile responsiveness
- Store and retrieve chat history in localStorage
  • Loading branch information
joycexjl committed Jan 28, 2025
1 parent 3c811e0 commit 7ef1521
Show file tree
Hide file tree
Showing 4 changed files with 714 additions and 64 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ diff.txt
.devcontainer/
.github/
.vscode/
*.pub
53 changes: 53 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@
"dependencies": {
"@lit-labs/signals": "^0.1.1",
"@lit/context": "^1.1.3",
"@types/dompurify": "^3.0.5",
"@vaadin/router": "^2.0.0",
"dompurify": "^3.2.3",
"highlight.js": "^11.11.1",
"lit": "^2.7.1",
"marked": "^15.0.6",
"marked-highlight": "^2.2.1",
"pwa-helper-components": "~0.2.10",
"tslib": "^2.5.0"
},
Expand Down
Loading

0 comments on commit 7ef1521

Please sign in to comment.