sepehr 8d95f34fcc fix: Add debounced Undo/Redo system to avoid character-by-character history
- Add debounced state updates for title and content (500ms delay)
- Immediate UI updates with delayed history saving
- Prevent one-letter-per-undo issue
- Add cleanup for debounce timers on unmount
2026-01-04 14:28:11 +01:00

19 lines
566 B
JavaScript

// src/adapter/deno/ssg.ts
import { toSSG as baseToSSG } from "../../helper/ssg/index.js";
var denoFileSystemModule = {
writeFile: async (path, data) => {
const uint8Data = typeof data === "string" ? new TextEncoder().encode(data) : new Uint8Array(data);
await Deno.writeFile(path, uint8Data);
},
mkdir: async (path, options) => {
return Deno.mkdir(path, { recursive: options?.recursive ?? false });
}
};
var toSSG = async (app, options) => {
return baseToSSG(app, denoFileSystemModule, options);
};
export {
denoFileSystemModule,
toSSG
};