Mache große IMAP-Fächer, die Paperless-Suche und die interne Markdown-Notiz über die gemeinsamen Schnittstellen benutzbar.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c3a07cee64
commit
7e39fbb2bd
29 files changed
+6053
-320
No files matched your search
@@ -5,7 +5,7 @@ import { api, fetchExternal, fetchFile } from "../api.js";
|
||||
import { moduleFor } from "../sources/registry-core.js";
|
||||
import { contentSourceSymbol, contentSymbol, symbolUrl } from "../content-symbol.mjs";
|
||||
import { bezugCount, counterpartLabel, directionSymbol } from "../list-meta.mjs";
|
||||
import { MarkdownView } from "../markdown.jsx";
|
||||
import { NoteEditor } from "../notes.jsx";
|
||||
import { NavIcon } from "./icons.jsx";
|
||||
import { Modal } from "./Modal.jsx";
|
||||
import { ErrorNote } from "./widgets.jsx";
|
||||
@@ -531,18 +531,8 @@ export function DirectionChoice({ value, disabled, onChange, compact = false, la
|
||||
);
|
||||
}
|
||||
|
||||
export function MarkdownEditor({ value, onChange, disabled, rows = 12 }) {
|
||||
return (
|
||||
<div className="markdown-editor">
|
||||
<label>
|
||||
Markdown
|
||||
<textarea rows={rows} value={value} disabled={disabled} onChange={(event) => onChange(event.target.value)} />
|
||||
</label>
|
||||
<div className="markdown-editor__preview" aria-label="Gerenderte Notiz">
|
||||
{value.trim() ? <MarkdownView text={value} /> : <p className="muted">Die Vorschau erscheint hier.</p>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
export function MarkdownEditor({ value, onChange, disabled }) {
|
||||
return <NoteEditor value={value} onChange={onChange} disabled={disabled} />;
|
||||
}
|
||||
|
||||
function blurb(element) {
|
||||
|
||||
Reference in new issue
Block a user