mirror of https://github.com/usememos/memos.git
Merge the SharedMemo page into MemoDetail so both /memos/:uid and /memos/shares/:token routes use the same component. MemoDetail now detects share mode via route params, fetches the memo with useSharedMemo, silences error redirects, and rewrites attachment URLs with the share token. The full detail experience (comments, sidebar, parent link) is available on shared links. - Delete web/src/pages/SharedMemo.tsx - Update MemoDetail to handle both direct and share-token fetching - Move withShareAttachmentLinks helper to useMemoShareQueries - Fix isInMemoDetailPage check for /memos/shares/ routes - Update router to render MemoDetail on the share route |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| helpers | ||
| hooks | ||
| layouts | ||
| lib | ||
| locales | ||
| pages | ||
| router | ||
| themes | ||
| types | ||
| utils | ||
| App.tsx | ||
| auth-state.ts | ||
| connect.ts | ||
| i18n.ts | ||
| index.css | ||
| main.tsx | ||