Added new lang config and remove no use clg

This commit is contained in:
chris
2022-05-25 15:21:29 +08:00
parent cf3129b90b
commit 595935ffae
2 changed files with 2 additions and 3 deletions

View File

@@ -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",

View File

@@ -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();
})