From 558fbd0d092dac34d6fa85c95c30fcb01957a294 Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Wed, 22 Jun 2022 23:29:40 +0800 Subject: [PATCH] add: auto sync note to markdown files resolve: #45 --- addon/chrome/content/export.xul | 8 +- addon/chrome/content/sync.xul | 26 ++++ addon/chrome/locale/en-US/overlay.dtd | 8 + addon/chrome/locale/zh-CN/overlay.dtd | 8 + src/Better Note Markdown.js | 9 +- src/addon.ts | 3 + src/events.ts | 38 ++++- src/export.ts | 76 ++++++--- src/knowledge.ts | 67 +++++++- src/sync.ts | 214 ++++++++++++++++++++++++++ typing/addon.d.ts | 3 +- typing/global.d.ts | 2 + 12 files changed, 430 insertions(+), 32 deletions(-) create mode 100644 addon/chrome/content/sync.xul create mode 100644 src/sync.ts diff --git a/addon/chrome/content/export.xul b/addon/chrome/content/export.xul index 6807a94..1de4dad 100644 --- a/addon/chrome/content/export.xul +++ b/addon/chrome/content/export.xul @@ -18,7 +18,7 @@ - + @@ -31,13 +31,17 @@ - + + + + diff --git a/addon/chrome/content/sync.xul b/addon/chrome/content/sync.xul new file mode 100644 index 0000000..1e66191 --- /dev/null +++ b/addon/chrome/content/sync.xul @@ -0,0 +1,26 @@ + + + + + + + + %ZoteroDTD; + + %knowledgeDTD; +]> + + +