mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
Compare commits
6 Commits
2a2cf510b5
...
e33f22057c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e33f22057c | ||
|
|
67d2175ce9 | ||
|
|
8a3283f1ea | ||
|
|
2fb47fc186 | ||
|
|
4530c9a40c | ||
|
|
9004b724e7 |
@ -1306,8 +1306,8 @@
|
|||||||
"zpetne_odkazy": {
|
"zpetne_odkazy": {
|
||||||
"relation": "relazione",
|
"relation": "relazione",
|
||||||
"backlink_one": "{{count}} Backlink",
|
"backlink_one": "{{count}} Backlink",
|
||||||
"backlink_many": "",
|
"backlink_many": "{{count}} Backlinks",
|
||||||
"backlink_other": "{{count}} Backlink"
|
"backlink_other": "{{count}} Backlinks"
|
||||||
},
|
},
|
||||||
"mobile_detail_menu": {
|
"mobile_detail_menu": {
|
||||||
"insert_child_note": "Inserisci nota secondaria",
|
"insert_child_note": "Inserisci nota secondaria",
|
||||||
@ -1801,8 +1801,8 @@
|
|||||||
"relation-map": "Mappa delle relazioni",
|
"relation-map": "Mappa delle relazioni",
|
||||||
"note-map": "Nota Mappa",
|
"note-map": "Nota Mappa",
|
||||||
"render-note": "Nota di rendering",
|
"render-note": "Nota di rendering",
|
||||||
"book": "Collezione",
|
"book": "Raccolta",
|
||||||
"mermaid-diagram": "Diagramma della sirena",
|
"mermaid-diagram": "Diagramma Mermaid",
|
||||||
"canvas": "Tela",
|
"canvas": "Tela",
|
||||||
"web-view": "Visualizzazione Web",
|
"web-view": "Visualizzazione Web",
|
||||||
"mind-map": "Mappa mentale",
|
"mind-map": "Mappa mentale",
|
||||||
@ -1967,7 +1967,8 @@
|
|||||||
"open_note_in_new_tab": "Apri la nota in una nuova scheda",
|
"open_note_in_new_tab": "Apri la nota in una nuova scheda",
|
||||||
"open_note_in_new_split": "Apri nota in una nuova divisione",
|
"open_note_in_new_split": "Apri nota in una nuova divisione",
|
||||||
"open_note_in_new_window": "Apri la nota in una nuova finestra",
|
"open_note_in_new_window": "Apri la nota in una nuova finestra",
|
||||||
"open_note_in_popup": "Modifica rapida"
|
"open_note_in_popup": "Modifica rapida",
|
||||||
|
"open_note_in_other_split": "Apri nota nell'altra divisione"
|
||||||
},
|
},
|
||||||
"help-button": {
|
"help-button": {
|
||||||
"title": "Apri la pagina di aiuto pertinente"
|
"title": "Apri la pagina di aiuto pertinente"
|
||||||
|
|||||||
@ -1158,7 +1158,8 @@
|
|||||||
"open_note_in_popup": "クイック編集",
|
"open_note_in_popup": "クイック編集",
|
||||||
"open_note_in_new_tab": "新しいタブでノートを開く",
|
"open_note_in_new_tab": "新しいタブでノートを開く",
|
||||||
"open_note_in_new_split": "新しく分割してノートを開く",
|
"open_note_in_new_split": "新しく分割してノートを開く",
|
||||||
"open_note_in_new_window": "新しいウィンドウでノートを開く"
|
"open_note_in_new_window": "新しいウィンドウでノートを開く",
|
||||||
|
"open_note_in_other_split": "他の分割画面でノートを開く"
|
||||||
},
|
},
|
||||||
"note_tooltip": {
|
"note_tooltip": {
|
||||||
"quick-edit": "クイック編集",
|
"quick-edit": "クイック編集",
|
||||||
|
|||||||
@ -165,9 +165,20 @@ export function CodeEditor({ parentComponent, ntxId, containerRef: externalConta
|
|||||||
useTriliumEvent("executeWithCodeEditor", async ({ resolve, ntxId: eventNtxId }) => {
|
useTriliumEvent("executeWithCodeEditor", async ({ resolve, ntxId: eventNtxId }) => {
|
||||||
if (eventNtxId !== ntxId) return;
|
if (eventNtxId !== ntxId) return;
|
||||||
await initialized.current.promise();
|
await initialized.current.promise();
|
||||||
|
if (!codeEditorRef.current) return;
|
||||||
resolve(codeEditorRef.current!);
|
resolve(codeEditorRef.current!);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
useTriliumEvent("noteContextRemoved", async ({ ntxIds: eventNtxIds }) => {
|
||||||
|
if (!ntxId || !eventNtxIds.includes(ntxId)) return;
|
||||||
|
|
||||||
|
const cm = codeEditorRef.current;
|
||||||
|
if (cm) {
|
||||||
|
cm.destroy();
|
||||||
|
codeEditorRef.current = null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
useTriliumEvent("executeWithContentElement", async ({ resolve, ntxId: eventNtxId}) => {
|
useTriliumEvent("executeWithContentElement", async ({ resolve, ntxId: eventNtxId}) => {
|
||||||
if (eventNtxId !== ntxId) return;
|
if (eventNtxId !== ntxId) return;
|
||||||
await initialized.current.promise();
|
await initialized.current.promise();
|
||||||
|
|||||||
@ -188,6 +188,16 @@ export default function EditableText({ note, parentComponent, ntxId, noteContext
|
|||||||
resolve(editor);
|
resolve(editor);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
useTriliumEvent("noteContextRemoved", async ({ ntxIds: eventNtxIds }) => {
|
||||||
|
if (!ntxId || !eventNtxIds.includes(ntxId)) return;
|
||||||
|
|
||||||
|
const watchdog = watchdogRef.current;
|
||||||
|
if (!watchdog) return;
|
||||||
|
|
||||||
|
await watchdog.destroy();
|
||||||
|
watchdogRef.current = null;
|
||||||
|
});
|
||||||
|
|
||||||
async function waitForEditor() {
|
async function waitForEditor() {
|
||||||
await initialized.current;
|
await initialized.current;
|
||||||
const editor = watchdogRef.current?.editor;
|
const editor = watchdogRef.current?.editor;
|
||||||
|
|||||||
@ -51,6 +51,15 @@ export default function ReadOnlyText({ note, noteContext, ntxId }: TypeWidgetPro
|
|||||||
resolve($(contentRef.current));
|
resolve($(contentRef.current));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
useTriliumEvent("noteContextRemoved", ({ ntxIds: eventNtxIds }) => {
|
||||||
|
if (!ntxId || !eventNtxIds.includes(ntxId)) return;
|
||||||
|
|
||||||
|
if (contentRef.current) {
|
||||||
|
contentRef.current.innerHTML = "";
|
||||||
|
}
|
||||||
|
contentRef.current = null;
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<RawHtmlBlock
|
<RawHtmlBlock
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user