diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-02 11:24:16 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-02 11:24:16 +0900 |
| commit | d9b78a9fa440d84c6cd0c1f2a6ebb43df895ccdf (patch) | |
| tree | b7a287338bfbebf9082f800faeab6bd93b195cb3 /src/client/components/EditCardModal.tsx | |
| parent | 7ca9941982a7d7a4c126d215770ce71ad2f7f427 (diff) | |
| download | kioku-d9b78a9fa440d84c6cd0c1f2a6ebb43df895ccdf.tar.gz kioku-d9b78a9fa440d84c6cd0c1f2a6ebb43df895ccdf.tar.zst kioku-d9b78a9fa440d84c6cd0c1f2a6ebb43df895ccdf.zip | |
refactor(notes): extract card generation into shared module
Pull pure card-generation logic (template rendering and the initial FSRS
state for new cards) out of the server note repository into
src/shared/card-generator.ts so both server and client can call it. The
server's note.create / createMany now delegate the rendering work to the
shared function and only insert the resulting payload, preserving the
existing behavior. Groundwork for offline-first note CRUD on the client.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'src/client/components/EditCardModal.tsx')
0 files changed, 0 insertions, 0 deletions
