Add Neon and Meridian glass themes, bundled fonts, configurable recovery backup location, autosave and UI polish
This commit is contained in:
parent
aaa491424d
commit
b74cfe98ab
59 changed files with 1848 additions and 185 deletions
|
|
@ -90,8 +90,9 @@
|
|||
!!document.querySelector("#chapterList li.chapter-row.active")
|
||||
);
|
||||
|
||||
// Manual save: typing marks the chapter Unsaved; the Save button (or
|
||||
// Ctrl/Cmd+S) is required to persist. No auto-save should occur.
|
||||
// Auto-save: typing marks the chapter Unsaved, then a debounced
|
||||
// background save persists it automatically (no prompt, no manual
|
||||
// Save required). Verify the indicator ends in "Saved".
|
||||
const edSave = window.__folioEditor;
|
||||
if (edSave) {
|
||||
edSave.commands.focus("end");
|
||||
|
|
@ -99,11 +100,8 @@
|
|||
await sleep(150);
|
||||
const unsaved = document.getElementById("saveState");
|
||||
step("afterTypeUnsaved", unsaved ? unsaved.textContent : "n/a");
|
||||
const sb = document.getElementById("saveBtn");
|
||||
if (sb) {
|
||||
sb.click();
|
||||
await sleep(400);
|
||||
}
|
||||
// Wait past the autosave debounce for the chapter to self-persist.
|
||||
await sleep(1600);
|
||||
const after = document.getElementById("saveState");
|
||||
step("afterSaveState", after ? after.textContent : "n/a");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue