Fix issues related to importing Zotero (#12313)

* Fix import Zotero not recognized as asset

* Fix the inconsistency between imported Zotero label and actual filename

* Import support for zotero linked file like using zotfile

* Fix zotero highlighting block error after importing from file

* compatible with old configuration

* fix zotero picture highlight block does not consider as asset after importing

* Reconstructed to meet bb requirements

* empty datascript to avoid Conflicting upsert error after importing file to db graph

* use external-file-name instead of adding new property

* fix zotero link file can't open in asset page

* compatible with commit 33db791

* compatible with windows path & support zotero path can be relative for ci testing

* add zotero importing test

* remove prn log

* remove useless line

* Revert commit 45ebb9e

Future imports will be performed in the worker, will no longer encounter these issues

* refactor: update today page check to use async block retrieval

* Revert "refactor: update today page check to use async block retrieval"

This reverts commit 6750333df1.
This commit is contained in:
megayu
2026-02-11 17:43:04 +08:00
committed by GitHub
parent f818ba0e59
commit 40c9c86129
17 changed files with 436 additions and 87 deletions

View File

@@ -0,0 +1,53 @@
{:highlights [{:id #uuid "697874ba-26e9-4e8a-a55d-0639d337dcc6",
:page 6,
:position {:bounding {:x1 67.03125,
:y1 344.90625,
:x2 612.7423095703125,
:y2 379.3333740234375,
:width 702,
:height 993.418487394958},
:rects ({:x1 67.03125,
:y1 344.90625,
:x2 612.7423095703125,
:y2 364.2396240234375,
:width 702,
:height 993.418487394958}
{:x1 67.03125,
:y1 360,
:x2 238.0740203857422,
:y2 379.3333740234375,
:width 702,
:height 993.418487394958}),
:page 6},
:content {:text "EXPLAIN is a really nice command that gives you lots of information but it's often easy to not know what to do with all this"},
:properties {:color "yellow"}}
{:id #uuid "69787518-9eb8-4fd0-ad3b-b394e28bb547",
:page 8,
:position {:bounding {:x1 84,
:y1 163,
:x2 637,
:y2 327,
:width 702,
:height 993.418487394958},
:rects (),
:page 8},
:content {:text "[:span]", :image 1769501975346},
:properties {:color "green"}}
{:id #uuid "69787540-7a52-40af-a70a-cedd315934cf",
:page 42,
:position {:bounding {:x1 119.05208587646484,
:y1 95.67709350585938,
:x2 243.25509643554688,
:y2 133.01040649414062,
:width 702,
:height 993.418487394958},
:rects ({:x1 119.05208587646484,
:y1 95.67709350585938,
:x2 243.25509643554688,
:y2 133.01040649414062,
:width 702,
:height 993.418487394958}),
:page 42},
:content {:text "Conclusion"},
:properties {:color "blue"}}],
:extra {:page 8}}