refactor: unified EditorPanel for notes and files, SaveFileText backend
- Create EditorPanel.svelte: shared editor component for notes + files - Markdown: edit/preview/split modes via MarkdownEditor + MarkdownPreview - Plain text: monospace textarea - Header: title, mode switcher, external open button - Footer: save + close buttons, dirty indicator - Rewrite NoteEditorPanel.svelte as thin wrapper over EditorPanel - FilesTab: browser/editor modes (editor replaces file list, not appended) - Add SaveFileText Wails binding: writes text files atomically (tmp+rename) - Add WriteText to files.Service with SHA256 update - Remove separate TextFileEditor.svelte (replaced by EditorPanel) - Note context: SaveNote API, noteId/title props - File context: SaveFileText API, fileId prop - Linked .md (CheckFileAction=note) → note editor tab - Unlinked .md / text files → EditorPanel in FilesTab - Images/PDF/binary → FilePreviewModal only Co-Authored-By: OWL (Hermes Agent) <hermes@nousresearch.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -19,8 +19,8 @@
|
||||
background: #13131f;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/main-D23Sgy9Q.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-CoirOqGf.css">
|
||||
<script type="module" crossorigin src="/assets/main-B99YW--H.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-CtgLvi_n.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user