Skip to content

Commit

Permalink
Merge pull request #13 from RyoJerryYu/add-referencing-with-obsidian-…
Browse files Browse the repository at this point in the history
…lifeos

Add referencing with obsidian lifeos
  • Loading branch information
RyoJerryYu authored Jun 6, 2024
2 parents c8fe676 + 8953510 commit 67b5190
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@
| Memos API URL | Memos API的URL。 | `http://localhost:5230` |
| Memos API Token | Memos API的令牌。你可以在 Memos 页面 -> 设置 -> 我的账户 界面上创建一个。 | |

# 特别鸣谢

[obsidian-lifeos](https://github.com/quanru/obsidian-lifeos)中的代码有很多有价值的参考,为这个项目早期阶段的快速开发提供了宝贵的帮助。非常感谢!
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ Useful when you want to sync memos for a specific day.
| Memos API URL | The URL of the Memos API. | `http://localhost:5230` |
| Memos API Token | The token for the Memos API. You can create one on Memos UI -> Settings -> My Account | |

# Special thanks

The code in [obsidian-lifeos](https://github.com/quanru/obsidian-lifeos) provides a lot of reference value in the early stages of this project. Thanks very much!
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "memos-sync",
"name": "Memos Sync",
"version": "0.3.4",
"version": "0.4.0",
"minAppVersion": "1.5.12",
"description": "Syncing memos from a [Memos](https://github.com/usememos/memos) server to your daily note. Fully compatible with official Daily Notes plugin, Calendar plugin and Periodic Notes plugin.",
"author": "RyoJerryYu",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-memos-sync",
"version": "0.3.4",
"version": "0.4.0",
"description": "Syncing Memos to Obsidian daily note.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/services/DailyMemos/DailyMemos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class DailyMemos {

this.memosFactory = new MemosAbstractFactory(this.settings);

this.localKey = `periodic-para-daily-record-last-time-${this.settings.memosAPIToken}`;
this.localKey = `obsidian-memos-sync-last-time-${this.settings.memosAPIToken}`;
const lastTime = window.localStorage.getItem(this.localKey) || "";
this.memosPaginator = this.memosFactory.createMemosPaginator(lastTime);
this.memosResourceFetcher = this.memosFactory.createResourceFetcher();
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"0.3.1": "0.15.0",
"0.3.2": "0.15.0",
"0.3.3": "0.15.0",
"0.3.4": "1.5.12"
"0.3.4": "1.5.12",
"0.4.0": "1.5.12"
}

0 comments on commit 67b5190

Please sign in to comment.