From d8c8e786254bb07f8751f8a5109c0f785093e930 Mon Sep 17 00:00:00 2001 From: Jiaxin Peng Date: Wed, 9 Aug 2023 22:04:47 +0100 Subject: [PATCH] Update version to --- Message.ts | 14 +++++++------- README-zh.md | 2 ++ README.md | 8 +++++--- icon.ts | 3 ++- package.json | 2 +- yarn.lock | 8 ++++---- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/Message.ts b/Message.ts index b9b1514..2df2f22 100644 --- a/Message.ts +++ b/Message.ts @@ -1,17 +1,17 @@ export const NoticeMsg: {[key: string]:any} = { "en": { - "notion-logo": "Share to notion", - "sync-success": "Sync to notion success: \n", - "sync-fail": "Sync to notion fail: \n", + "notion-logo": "Share to NotionNext", + "sync-success": "Sync to NotionNext success: \n", + "sync-fail": "Sync to NotionNext fail: \n", "open-notion": "Please open the file that needs to be synchronized", "config-secrets-notion-api": "Please set up the notion API in the settings tab.", "config-secrets-database-id": "Please set up the database id in the settings tab.", "set-tags-fail": "Set tags fail,please check the frontmatter of the file or close the tag switch in the settings tab.", }, "zh": { - "notion-logo": "分享到Notion", - "sync-success": "同步到Notion成功:\n", - "sync-fail": "同步到Notion失败: \n", + "notion-logo": "分享到NotionNext", + "sync-success": "同步到NotionNext成功:\n", + "sync-fail": "同步到NotionNext失败: \n", "open-file": "请打开需要同步的文件", "set-tags-fail": "设置标签失败,请检查文件的frontmatter,或者在插件设置中关闭设置tags开关", }, @@ -20,4 +20,4 @@ export const NoticeMsg: {[key: string]:any} = { export const NoticeMConfig = (lang:any) :any => { return NoticeMsg[lang] -} \ No newline at end of file +} diff --git a/README-zh.md b/README-zh.md index b98c25e..0895239 100644 --- a/README-zh.md +++ b/README-zh.md @@ -65,6 +65,8 @@ Contents Below --- **以下为原README.md** +非常感谢原作者的开发,我只是在原作者的基础之上进行了修改,增加了一些功能。如果你觉得这个插件对你有帮助,可以给[原作者](https://github.com/EasyChris/obsidian-to-notion)一个star。 + # Obsidian to Notion [![](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml/badge.svg)](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml) [![Release Obsidian plugin](https://github.com/Easychris/obsidian-to-notion/actions/workflows/release.yml/badge.svg)](https://github.com/Easychris/obsidian-to-notion/actions/workflows/release.yml) diff --git a/README.md b/README.md index c51128d..120532f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Obsidian to NotionNext +# Obsidian to NotionNext +[中文文档](README-zh.md) Thanks to the [original author](https://github.com/EasyChris/obsidian-to-notion) for developing such a useful plugin that can synchronize Obsidian to Notion. However, the original repository can only sync Name and Tags information. For those like me who use [NotionNext](https://github.com/tangly1024/NotionNext) to set up their website, this presents some limitations. Every time I import, I need to make a lot of modifications. Thus, based on the [original author's work](https://github.com/EasyChris/obsidian-to-notion), I've added a feature to match the [NotionNext](https://github.com/tangly1024/NotionNext) template. This way, you can edit directly in Obsidian and publish with a single click after organizing. @@ -56,13 +57,14 @@ tags: Contents Below ``` Usage of the template is as follows: -![](https://img.jxpeng.dev/2023/08/5ba5e7aeb86650c060c620786371717c.mp4) +![](https://img.jxpeng.dev/2023/08/189384bf03c562030f4828343e1b7a6c.gif) **Plugin preview is shown below** -![](https://img.jxpeng.dev/2023/08/7edefe36899b7431a65db891f429a137.mp4) +![](https://img.jxpeng.dev/2023/08/6063dd06eea4ee6939b5058dd129a698.gif) --- **Original README.md** +Many Thanks for the original author's work. I've only made some changes to the original author's work. If you find this plugin useful, please give the [original author](https://github.com/EasyChris/obsidian-to-notion) a star. # Obsidian to Notion [![](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml/badge.svg)](https://github.com/Easychris/obsidian-to-notion/actions/workflows/CI.yml) diff --git a/icon.ts b/icon.ts index d8db85c..63a4ee3 100644 --- a/icon.ts +++ b/icon.ts @@ -2,7 +2,8 @@ import { addIcon } from 'obsidian'; const icons: Record = { 'notion-logo': ` - + + ` }; diff --git a/package.json b/package.json index cd9d184..79d4e71 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@tryfabric/martian": "^1.2.0", "https-proxy-agent": "^5.0.1", - "yaml": "^2.1.0", + "yaml": "^2.2.2", "yaml-front-matter": "^4.1.1" } } \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index a9313fb..de84376 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1008,10 +1008,10 @@ yaml-front-matter@^4.1.1: commander "^6.2.0" js-yaml "^3.14.1" -yaml@^2.1.0: - version "2.1.0" - resolved "https://registry.npmmirror.com/yaml/-/yaml-2.1.0.tgz" - integrity sha512-OuAINfTsoJrY5H7CBWnKZhX6nZciXBydrMtTHr1dC4nP40X5jyTIVlogZHxSlVZM8zSgXRfgZGsaHF4+pV+JRw== +yaml@^2.2.2: + version "2.3.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" + integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== zwitch@^1.0.0: version "1.0.5"