memos/web/src/components
Claude 6fb7520518
feat(web): add theme-aware Mermaid diagram rendering
Update MermaidBlock component to automatically adapt to light/dark theme
changes, ensuring diagrams remain visually consistent with the app theme.

Changes:
- Add MutationObserver to watch for data-theme attribute changes
- Map app themes to Mermaid themes (default-dark → dark, others → default)
- Re-render diagrams automatically when theme switches
- Maintain proper TypeScript typing for Mermaid theme values

The component now responds instantly to theme changes, providing a seamless
user experience when switching between light and dark modes or using
"Sync with system" option.
2025-11-09 06:07:18 +00:00
..
ActivityCalendar refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
ConfirmDialog feat(web): add accessible ConfirmDialog and migrate confirmations; and Markdown-safe descriptions (#5111) 2025-10-09 00:40:08 +08:00
Inbox feat(web): enhance inbox notifications and user profile layouts 2025-11-06 08:41:30 +08:00
kit
MasonryView refactor(web): unify memo stats/filters with context-aware MainLayout 2025-11-05 08:46:52 +08:00
memo-metadata chore(web): unify Location/Attachments/Relations components (#5241) 2025-11-09 07:23:31 +08:00
MemoContent feat(web): add theme-aware Mermaid diagram rendering 2025-11-09 06:07:18 +00:00
MemoDetailSidebar chore: update component styles for consistency 2025-10-22 20:21:58 +08:00
MemoEditor chore(web): simplify command system and improve editor UX (#5242) 2025-11-09 13:09:50 +08:00
MemoExplorer refactor(web): unify memo stats/filters with context-aware MainLayout 2025-11-05 08:46:52 +08:00
MemoRelationForceGraph
PagedMemoList refactor(web): refactor MemoFilters component and add comprehensive filter support 2025-10-30 22:52:58 +08:00
Settings refactor(web): redesign Settings components (#5237) 2025-11-08 10:32:55 +08:00
StatisticsView refactor(web): use Radix Checkbox and remove memoTypeStats 2025-11-07 08:36:15 +08:00
ui fix: implement tag suggestions functionality 2025-11-08 09:15:38 +08:00
AttachmentIcon.tsx feat: generate thumbnails for images stored in S3 and generate thumbnails with a maximum size (#5179) 2025-10-23 21:29:22 +08:00
AuthFooter.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
ChangeMemberPasswordDialog.tsx
CreateAccessTokenDialog.tsx feat(web): add accessible ConfirmDialog and migrate confirmations; and Markdown-safe descriptions (#5111) 2025-10-09 00:40:08 +08:00
CreateIdentityProviderDialog.tsx fix: reset state on dialog close and improve dialog open handling 2025-09-17 21:51:46 +08:00
CreateShortcutDialog.tsx
CreateUserDialog.tsx
CreateWebhookDialog.tsx
DateTimeInput.tsx chore: use input type datetime-local instead of text (#5174) 2025-10-22 09:04:37 +08:00
Empty.tsx
LeafletMap.tsx feat: lat/long input fields (#5152) 2025-10-14 20:07:01 +08:00
LearnMore.tsx
LocaleSelect.tsx feat(web): add quick language and theme switchers to user menu 2025-10-28 22:32:25 +08:00
MemoActionMenu.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
MemoAttachment.tsx
MemoDisplaySettingMenu.tsx
MemoFilters.tsx refactor(web): refactor MemoFilters component and add comprehensive filter support 2025-10-30 22:52:58 +08:00
MemoReactionListView.tsx
MemoResource.tsx
MemoSkeleton.tsx refactor(web): improve memo component skeleton and loading states 2025-10-30 22:25:19 +08:00
MemosLogo.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
MemoView.tsx chore(web): unify Location/Attachments/Relations components (#5241) 2025-11-09 07:23:31 +08:00
MobileHeader.tsx
Navigation.tsx refactor(api): migrate inbox functionality to user notifications 2025-10-31 08:33:09 +08:00
NavigationDrawer.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
PasswordSignInForm.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
PreviewImageDialog.tsx
ReactionSelector.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
ReactionView.tsx chore: update component styles for consistency 2025-10-22 20:21:58 +08:00
RequiredBadge.tsx
SearchBar.tsx
TagTree.tsx refactor(api): remove DeleteMemoTag and RenameMemoTag endpoints 2025-10-29 23:32:47 +08:00
ThemeSelect.tsx feat(web): standardize theme system with auto sync option (#5231) 2025-11-08 00:41:21 +08:00
UpdateAccountDialog.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
UpdateCustomizedProfileDialog.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
UserAvatar.tsx
UserMenu.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
VisibilityIcon.tsx