From 595935ffae41f389f0958d51be368285ea58ad0e Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 25 May 2022 15:21:29 +0800 Subject: [PATCH] Added new lang config and remove no use clg --- Message.ts | 2 ++ main.ts | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Message.ts b/Message.ts index 1154f2c..4bb7791 100644 --- a/Message.ts +++ b/Message.ts @@ -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", diff --git a/main.ts b/main.ts index d00cacf..fff46fd 100644 --- a/main.ts +++ b/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(); })