You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web
Johnny e61d594ded refactor(MemoView): improve maintainability and code organization
Complete refactoring of MemoView components for better code quality:

- Split useMemoViewState into individual hook files (useMemoActions,
  useKeyboardShortcuts, useNsfwContent, useImagePreview, useMemoCreator)
  for single responsibility principle
- Consolidate types closer to usage - move hook-specific types to
  respective files, keep only component props in shared types.ts
- Optimize context with separate static/dynamic memoization to reduce
  unnecessary re-renders
- Simplify barrel exports to only expose public API (MemoView component
  and MemoViewProps type)
- Add comprehensive JSDoc documentation to all public APIs with usage
  examples

Benefits:
- Better maintainability: each hook file has one clear purpose
- Improved performance: context optimization prevents unnecessary re-renders
- Enhanced developer experience: clear documentation and encapsulation
- Cleaner architecture: public API is minimal, internal details hidden

All automated checks pass (TypeScript compilation, linter, production build).
6 months ago
..
public chore: enhance site.webmanifest in firefox (#4828) 12 months ago
src refactor(MemoView): improve maintainability and code organization 6 months ago
.gitignore chore: update gitignore 1 year ago
biome.json chore(web): migrate from ESLint+Prettier to Biome 7 months ago
components.json feat: themes (#4824) 12 months ago
index.html chore: prevent sensitive data caching 6 months ago
package.json refactor: migrate to connect-rpc (#5338) 6 months ago
pnpm-lock.yaml refactor: migrate to connect-rpc (#5338) 6 months ago
tsconfig.json
vite.config.mts refactor(web): improve MemoContent security and maintainability 7 months ago