mirror of https://github.com/usememos/memos.git
- Extract shared logic into useSuggestions custom hook - Create SuggestionsPopup component for consistent rendering - Standardize filtering logic between both components - Remove code duplication and improve maintainability - Reduce component complexity from ~130 lines to ~55 lines each - Replace Fuse.js with simpler string filtering for consistency - Add proper TypeScript interfaces and documentation The refactoring maintains all existing functionality while making the codebase more maintainable and consistent. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| .prettierrc.js | ||
| MARKDOWN_STYLE_GUIDE.md | ||
| README.md | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| vite.config.mts | ||