add multi-page notepad and memos toolbox tool
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 16s
This commit is contained in:
parent
fcabbe8029
commit
6125336338
33 changed files with 3787 additions and 138 deletions
|
|
@ -4,12 +4,14 @@ import {
|
|||
exportChecklistText,
|
||||
exportCountersText,
|
||||
exportLinksText,
|
||||
exportMemosText,
|
||||
exportNotepadText,
|
||||
exportTableTsv,
|
||||
importCalculatorText,
|
||||
importChecklistText,
|
||||
importCountersText,
|
||||
importLinksText,
|
||||
importMemosText,
|
||||
importNotepadText,
|
||||
importTableTsv
|
||||
} from "./textImport/basic.js";
|
||||
|
|
@ -24,10 +26,15 @@ export { parseColonImportLines };
|
|||
|
||||
const TEXT_EXCHANGE_HANDLERS = {
|
||||
notepad: {
|
||||
hasContent: (data) => Boolean(data?.text || data?.html || data?.drawings?.strokes?.length),
|
||||
hasContent: (data) => Boolean(data?.pages?.some((page) => page.text || page.html || page.drawings?.strokes?.length) || data?.text || data?.html || data?.drawings?.strokes?.length),
|
||||
exportText: exportNotepadText,
|
||||
importText: importNotepadText
|
||||
},
|
||||
memos: {
|
||||
hasContent: (data) => Boolean(data?.items?.length),
|
||||
exportText: exportMemosText,
|
||||
importText: importMemosText
|
||||
},
|
||||
checklist: {
|
||||
hasContent: (data) => Boolean(data?.sections?.some((section) => section.items?.length)),
|
||||
exportText: exportChecklistText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue