logseq import plugin
This commit is contained in:
1 parent
3ae84ccdd7
commit
5af49655d6
11 files changed
+301
-193
No files matched your search
@@ -171,6 +171,14 @@ hyprcrd plugin system
|
||||
│ │ ├── Welcome view: shown when accounts.length === 0, "configure accounts" → openTab('email')
|
||||
│ │ ├── Header button "mail" injected via JS into #main-header right group, before #add-btn
|
||||
│ │ └── Card extraction: POST /api/cards with #email tag, calls window._reloadAll()
|
||||
│ ├── logseq-import/ (~200 lines)
|
||||
│ │ ├── Backend: reads ZIP, copies assets → uploads/, imports journals + pages
|
||||
│ │ ├── Route: POST /api/import-logseq (multipart form, file field)
|
||||
│ │ ├── Creates "import" bucket if missing; journals → blue, pages → violet
|
||||
│ │ ├── Strips Logseq bullet prefixes and `key:: value` property lines
|
||||
│ │ ├── Rewrites asset refs via filename → random-hex map
|
||||
│ │ └── Frontend injects button + file input into footer before #settings-btn,
|
||||
│ │ posts to /api/import-logseq, calls window._reloadAll() on success
|
||||
│ └── slideshow/ (~500 lines)
|
||||
│ ├── No backend — data stored as ```slide-image fenced block in card body
|
||||
│ ├── Slideshow = parent card (start slide) + children (in position order)
|
||||
|
||||
Reference in new issue
Block a user