mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-30 00:48:36 +08:00
Added new lang config and remove no use clg
This commit is contained in:
@@ -4,6 +4,8 @@ export const NoticeMsg: {[key: string]:any} = {
|
|||||||
"sync-success": "Sync to notion success: \n",
|
"sync-success": "Sync to notion success: \n",
|
||||||
"sync-fail": "Sync to notion fail: \n",
|
"sync-fail": "Sync to notion fail: \n",
|
||||||
"open-notion": "Please open the file that needs to be synchronized",
|
"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.",
|
||||||
},
|
},
|
||||||
"zh": {
|
"zh": {
|
||||||
"notion-logo": "分享到Notion",
|
"notion-logo": "分享到Notion",
|
||||||
|
|||||||
3
main.ts
3
main.ts
@@ -168,7 +168,6 @@ class SampleSettingTab extends PluginSettingTab {
|
|||||||
.setPlaceholder("Enter your Notion API Token")
|
.setPlaceholder("Enter your Notion API Token")
|
||||||
.setValue(this.plugin.settings.notionAPI)
|
.setValue(this.plugin.settings.notionAPI)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
console.log("Secret: " + value);
|
|
||||||
this.plugin.settings.notionAPI = value;
|
this.plugin.settings.notionAPI = value;
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
})
|
})
|
||||||
@@ -182,7 +181,6 @@ class SampleSettingTab extends PluginSettingTab {
|
|||||||
.setPlaceholder("Enter your Database ID")
|
.setPlaceholder("Enter your Database ID")
|
||||||
.setValue(this.plugin.settings.databaseID)
|
.setValue(this.plugin.settings.databaseID)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
console.log("Secret: " + value);
|
|
||||||
this.plugin.settings.databaseID = value;
|
this.plugin.settings.databaseID = value;
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
})
|
})
|
||||||
@@ -196,7 +194,6 @@ class SampleSettingTab extends PluginSettingTab {
|
|||||||
.setPlaceholder("Enter banner pic url: ")
|
.setPlaceholder("Enter banner pic url: ")
|
||||||
.setValue(this.plugin.settings.bannerUrl)
|
.setValue(this.plugin.settings.bannerUrl)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
console.log("Secret: " + value);
|
|
||||||
this.plugin.settings.bannerUrl = value;
|
this.plugin.settings.bannerUrl = value;
|
||||||
await this.plugin.saveSettings();
|
await this.plugin.saveSettings();
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user