Skip to content

Commit

Permalink
Merge pull request #19 from Quorafind/add-interval-to-check-daily-note
Browse files Browse the repository at this point in the history
chore: bump version
  • Loading branch information
Quorafind authored Nov 15, 2022
2 parents 8123508 + fbde207 commit aa66e4f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 60 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "daily-notes-editor",
"name": "Daily Notes Editor",
"version": "0.1.1",
"version": "0.1.2",
"minAppVersion": "0.15.0",
"description": "A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.",
"author": "Quorafind",
"authorUrl": "https://obsidian.md",
"isDesktopOnly": false
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "daily-notes-editor",
"version": "0.1.1",
"version": "0.1.2",
"description": "A plugin for you to edit a bunch of daily notes in one page(inline), which works similar to Roam Research's default daily note view.",
"main": "main.js",
"scripts": {
"lint": "eslint . --ext .ts",
"dev": "npm run lint && vite build --watch",
"build": "npx svelte-check && vite build --mode=production",
"bumpversion": "node version-bump.mjs && git add manifest.json versions.json"
"bumpversion": "node version-bump.mjs && git add manifest.json versions.json",
"push": "git push -u origin HEAD"
},
"keywords": [],
"author": "Quorafind",
Expand Down
1 change: 0 additions & 1 deletion src/component/DailyNote.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { TAbstractFile, TFile, WorkspaceLeaf } from "obsidian";
import { DailyNoteEditor, spawnLeafView } from "../leafView";
import { inview } from "svelte-inview";
import { onMount } from "svelte";
export let file: TAbstractFile;
export let plugin: DailyNoteViewPlugin;
Expand Down
5 changes: 3 additions & 2 deletions src/dailyNoteViewIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
WorkspaceContainer, WorkspaceItem,
WorkspaceLeaf, addIcon, TAbstractFile
} from 'obsidian';
import DailyNoteEditorView, { check } from "./component/DailyNoteEditorView.svelte";
import DailyNoteEditorView from "./component/DailyNoteEditorView.svelte";
import { around } from "monkey-around";
import { DailyNoteEditor, isDailyNoteLeaf } from "./leafView";
import "./style/index.css";
Expand Down Expand Up @@ -52,9 +52,10 @@ class DailyNoteView extends ItemView {
this.app.vault.on("delete", this.onFileDelete);
this.app.workspace.onLayoutReady(this.view.tick.bind(this));

// used for triggering when the day change
this.registerInterval(window.setInterval(async () => {
this.view.check();
}, 1000 * 60 * 60 * 24));
}, 1000 * 60 * 60));
}
}

Expand Down
53 changes: 1 addition & 52 deletions styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"0.0.4": "0.15.0",
"0.0.5": "0.15.0",
"0.0.7": "0.15.0",
"0.1.0": "0.15.0"
"0.1.0": "0.15.0",
"0.1.2": "0.15.0"
}

0 comments on commit aa66e4f

Please sign in to comment.