Skip to content

Commit

Permalink
Update version to 0.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyDong committed Jul 28, 2024
1 parent 33bf70a commit 094cb7c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
12 changes: 10 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -28,5 +27,6 @@
"https-proxy-agent": "^5.0.1",
"yaml": "^2.1.0",
"yaml-front-matter": "^4.1.1"
}
},
"version": "0.7.9"
}
5 changes: 3 additions & 2 deletions versions.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 094cb7c

Please sign in to comment.