mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-29 16:35:57 +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-fail": "Sync to notion 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.",
|
||||
},
|
||||
"zh": {
|
||||
"notion-logo": "分享到Notion",
|
||||
|
||||
3
main.ts
3
main.ts
@@ -168,7 +168,6 @@ class SampleSettingTab extends PluginSettingTab {
|
||||
.setPlaceholder("Enter your Notion API Token")
|
||||
.setValue(this.plugin.settings.notionAPI)
|
||||
.onChange(async (value) => {
|
||||
console.log("Secret: " + value);
|
||||
this.plugin.settings.notionAPI = value;
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
@@ -182,7 +181,6 @@ class SampleSettingTab extends PluginSettingTab {
|
||||
.setPlaceholder("Enter your Database ID")
|
||||
.setValue(this.plugin.settings.databaseID)
|
||||
.onChange(async (value) => {
|
||||
console.log("Secret: " + value);
|
||||
this.plugin.settings.databaseID = value;
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
@@ -196,7 +194,6 @@ class SampleSettingTab extends PluginSettingTab {
|
||||
.setPlaceholder("Enter banner pic url: ")
|
||||
.setValue(this.plugin.settings.bannerUrl)
|
||||
.onChange(async (value) => {
|
||||
console.log("Secret: " + value);
|
||||
this.plugin.settings.bannerUrl = value;
|
||||
await this.plugin.saveSettings();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user