From 094cb7c616c84167685c5d9850a25b6976b3c057 Mon Sep 17 00:00:00 2001 From: TreyDong <1346650911@qq.com> Date: Sun, 28 Jul 2024 21:36:48 +0800 Subject: [PATCH] Update version to 0.7.9 --- main.ts | 12 ++++++++++-- manifest.json | 4 ++-- package.json | 4 ++-- versions.json | 5 +++-- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/main.ts b/main.ts index c2f6ca4..d4bb353 100644 --- a/main.ts +++ b/main.ts @@ -83,6 +83,14 @@ export default class ObsidianSyncNotionPlugin extends Plugin { }, }); + this.addCommand({ + id: "share-folder", + name: "share-folder to notion ", + editorCallback: async (editor: Editor, view: MarkdownView) => { + this.syncFolder() + }, + }); + // This adds a settings tab so the user can configure various aspects of the plugin this.addSettingTab(new SampleSettingTab(this.app, this)); const folder = this.settings.folderPath @@ -361,7 +369,7 @@ class SampleSettingTab extends PluginSettingTab { cb.setValue(String(this.plugin.settings.timer)) .onChange(async (value) => { this.plugin.settings.timer = Number(value); - if (this.plugin.settings.timer !== undefined) { + if (this.plugin.settings.timer === undefined) { new Notice('Time must be numbers!') } await this.plugin.saveSettings(); @@ -375,7 +383,7 @@ class SampleSettingTab extends PluginSettingTab { cb.setValue(String(this.plugin.settings.later)) .onChange(async (value) => { this.plugin.settings.later = Number(value); - if (this.plugin.settings.later !== undefined) { + if (this.plugin.settings.later === undefined) { new Notice('Time must be numbers!') } await this.plugin.saveSettings(); diff --git a/manifest.json b/manifest.json index 296ff09..5d1ca0f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,10 +1,10 @@ { "id": "obsidian-to-notion", "name": "Share to Notion", - "version": "0.7.8", "minAppVersion": "0.0.1", "description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api", "author": "Easychris", "authorUrl": "https://github.com/EasyChris/obsidian-to-notion", - "isDesktopOnly": false + "isDesktopOnly": false, + "version": "0.7.9" } \ No newline at end of file diff --git a/package.json b/package.json index f464cad..16c4b41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "obsidian-to-notion", - "version": "0.7.8", "type": "module", "description": "This is a plugin for Obsidian. This plugin share obsidian md file to notion with notion api", "main": "main.js", @@ -28,5 +27,6 @@ "https-proxy-agent": "^5.0.1", "yaml": "^2.1.0", "yaml-front-matter": "^4.1.1" - } + }, + "version": "0.7.9" } \ No newline at end of file diff --git a/versions.json b/versions.json index 997bf32..a715ca9 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,5 @@ { "1.0.0": "0.9.7", - "1.0.1": "0.12.0" -} + "1.0.1": "0.12.0", + "0.7.8": "0.0.1" +} \ No newline at end of file