update readme and settingtabs

This commit is contained in:
Jiaxin Peng
2023-11-05 17:50:51 +00:00
parent 398b785e03
commit 87f1ce0146
4 changed files with 32 additions and 18 deletions

View File

@@ -3,12 +3,19 @@
所以我在[原作者](https://github.com/EasyChris/obsidian-to-notion)的基础之上,增加了匹配[NotionNext](https://github.com/tangly1024/NotionNext)模板的功能。这样可以直接在Obsidian编辑整理好之后一键发布。 所以我在[原作者](https://github.com/EasyChris/obsidian-to-notion)的基础之上,增加了匹配[NotionNext](https://github.com/tangly1024/NotionNext)模板的功能。这样可以直接在Obsidian编辑整理好之后一键发布。
## 更新说明 ## 更新说明
### 0.2.2
- 支持NotionNext 和 普通Notion 数据库的同步。
- 你可以有一个NotionNext和一个普通Notion数据库。
- 普通Notion数据库的同步方式和原作者的一样只同步`title``tags`。**如果使用普通数据库功能,你需要保证你的数据库中有`title``tags`这两个表头。必须使用小写。**
![](https://minioapi.pjx.ac.cn/img1/2023/11/712a12081d855aa60f82a7b46913ab7e.gif)
![](https://minioapi.pjx.ac.cn/img1/2023/11/9de76cecceef74c78884ddfc1c221659.gif)
### 0.2.1 ### 0.2.1
- 重构代码。 - 重构代码。
### 0.2.0 ### 0.2.0
- 从这个版本开始,重构了交互逻辑。现在当你点击左侧的按钮,会弹出可同步的数据库选项。你可以选择你想要同步的数据库,然后点击同步按钮。**但是现在仅支持同步单个数据库如果你的数据库不是NotionNext你可以不用更新。** - 从这个版本开始,重构了交互逻辑。现在当你点击左侧的按钮,会弹出可同步的数据库选项。你可以选择你想要同步的数据库,然后点击同步按钮。**但是现在仅支持同步单个数据库如果你的数据库不是NotionNext你可以不用更新。**
![](https://minioapi.pjx.ac.cn/img1/2023/11/c963e97f31a30c994e067c58443fed4f.gif)
### 0.1.10 ### 0.1.10
- 修正了设置中的中文显示。 - 修正了设置中的中文显示。

View File

@@ -5,13 +5,20 @@ Thanks to the [original author](https://github.com/EasyChris/obsidian-to-notion)
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. 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.
## Update ## Update
### 0.2.2
- Support both NotionNext and General Notion database.
- You can have one NotionNext and one General Notion database.
- General Notion database can only have `title` and `tags` columns, and `tags` columns should be the multi-selected property. **the name of the columns is case sensitive. You should use small letter.**
![](https://minioapi.pjx.ac.cn/img1/2023/11/712a12081d855aa60f82a7b46913ab7e.gif)
![](https://minioapi.pjx.ac.cn/img1/2023/11/9de76cecceef74c78884ddfc1c221659.gif)
### 0.2.1 ### 0.2.1
- Restructure the code - Restructure the code
### 0.2.0 ### 0.2.0
- From this version, the interactive logic has been rewritten. When you click the ribbon icon, it will display the sync command for all presetting NotionNext databases. You can choose the database you want to sync to. **However, only NotionNext database is supported for now.** - From this version, the interactive logic has been rewritten. When you click the ribbon icon, it will display the sync command for all presetting NotionNext databases. You can choose the database you want to sync to. **However, only NotionNext database is supported for now.**
![](https://minioapi.pjx.ac.cn/img1/2023/11/c963e97f31a30c994e067c58443fed4f.gif)
### 0.1.10 ### 0.1.10
- Fix the Chinese support in the settings. - Fix the Chinese support in the settings.
### 0.1.8 ### 0.1.8

View File

@@ -17,7 +17,7 @@ export const I18n: { [key: string]: any } = {
DatabaseIDText: "Enter your Database ID", DatabaseIDText: "Enter your Database ID",
BannerUrl: "Banner url(optional)", BannerUrl: "Banner url(optional)",
BannerUrlDesc: BannerUrlDesc:
"page banner url(optional), default is empty, if you want to show a banner, please enter the url(like:https://raw.githubusercontent.com/EasyChris/obsidian-to-notion/ae7a9ac6cf427f3ca338a409ce6967ced9506f12/doc/2.png)", "page banner url(optional), default is empty, if you want to show a banner, please enter the url(like: https://minioapi.pjx.ac.cn/img1/2023/11/b7b40a0724e93b7d7ab494bb3b8a2da8.png)",
BannerUrlText: "Enter your banner url", BannerUrlText: "Enter your banner url",
NotionUser: "Notion ID(username, optional)", NotionUser: "Notion ID(username, optional)",
NotionUserDesc: NotionUserDesc:
@@ -59,7 +59,7 @@ export const I18n: { [key: string]: any } = {
DatabaseIDText: "输入你的数据库 ID", DatabaseIDText: "输入你的数据库 ID",
BannerUrl: "封面图片地址(可选)", BannerUrl: "封面图片地址(可选)",
BannerUrlDesc: BannerUrlDesc:
"页面封面图片地址可选默认为空如果你想显示封面图片请输入图片地址例如https://raw.githubusercontent.com/EasyChris/obsidian-to-notion/ae7a9ac6cf427f3ca338a409ce6967ced9506f12/doc/2.png", "页面封面图片地址可选默认为空如果你想显示封面图片请输入图片地址例如https://minioapi.pjx.ac.cn/img1/2023/11/b7b40a0724e93b7d7ab494bb3b8a2da8.png",
BannerUrlText: "输入你的封面图片地址", BannerUrlText: "输入你的封面图片地址",
NotionUser: "Notion ID用户名可选", NotionUser: "Notion ID用户名可选",
NotionUserDesc: NotionUserDesc:

View File

@@ -40,17 +40,17 @@ export class ObsidianSettingTab extends PluginSettingTab {
containerEl.createEl('h2', {text: i18nConfig.GeneralSetting}) containerEl.createEl('h2', {text: i18nConfig.GeneralSetting})
new Setting(containerEl) // new Setting(containerEl)
.setName(i18nConfig.NotionNextVersion) // .setName(i18nConfig.NotionNextVersion)
.setDesc(i18nConfig.NotionNextVersionDesc) // .setDesc(i18nConfig.NotionNextVersionDesc)
.addToggle((toggle) => // .addToggle((toggle) =>
toggle // toggle
.setValue(this.plugin.settings.NNon) // .setValue(this.plugin.settings.NNon)
.onChange(async (value) => { // .onChange(async (value) => {
this.plugin.settings.NNon = value; // this.plugin.settings.NNon = value;
await this.plugin.saveSettings(); // await this.plugin.saveSettings();
}) // })
); // );
new Setting(containerEl) new Setting(containerEl)
.setName(i18nConfig.BannerUrl) .setName(i18nConfig.BannerUrl)
@@ -117,8 +117,8 @@ export class ObsidianSettingTab extends PluginSettingTab {
// General Database Settings // General Database Settings
containerEl.createEl('h2', {text: i18nConfig.NotionGeneralSettingHeader}); containerEl.createEl('h2', {text: i18nConfig.NotionGeneralSettingHeader});
new Setting(containerEl) // new Setting(containerEl)
.setName(i18nConfig.NotYetFinish) // .setName(i18nConfig.NotYetFinish)
// new Setting(containerEl) // new Setting(containerEl)
// .setName("Convert tags(optional)") // .setName("Convert tags(optional)")