Skip to content

Commit 38f91b4

Browse files
committed
Merge commit 'f7e1085afe620f49e7f4919874d9de4df7bbe5a7'
2 parents 4a9a38c + f7e1085 commit 38f91b4

File tree

7 files changed

+19
-22
lines changed

7 files changed

+19
-22
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# Schedule Manager
44

55
## Updates
6-
1. Support modifying the color of schedule a category (Click the circle)
6+
1. Fixed the issue of unable to jump via block ID when the version of SiYuan Note is 3.1.20 or later.
7+
2. Fixed the issue of collapsed schedule number is displayed incorrectly.
78

89
## Introduction
910
The schedule management plugin manages to-do items in the form of a calendar, and currently supports multiple views such as month, week, day, and list.

README_zh_CN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# 日程管理
44

55
## 本次更新
6-
1. 支持修改日程分类的颜色(点击表示日程分类颜色的圆点)
6+
1. 修复思源笔记更新到3.1.20之后的版本,通过块ID无法跳转的问题
7+
2. 修复折叠的日程数量显示不正确的问题
78

89
## 简介
910
日程管理插件通过日历的形式管理待办事项,目前支持月、周、日、列表多种视图。

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"naive-ui": "^2.40.1",
2525
"sass": "^1.62.1",
2626
"sass-loader": "^12.6.0",
27-
"siyuan": "0.8.5",
27+
"siyuan": "1.1.2",
2828
"ts-loader": "^9.5.0",
2929
"tslib": "2.4.0",
3030
"typescript": "^4.7.4",

plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "siyuan-plugin-schedule-manager",
33
"author": "RogerHuHu",
44
"url": "https://github.com/RogerHuHu/siyuan-plugin-schedule-manager",
5-
"version": "1.4.2",
6-
"minAppVersion": "2.10.6",
5+
"version": "1.4.3",
6+
"minAppVersion": "3.1.20",
77
"backends": ["all"],
88
"frontends": ["all"],
99
"displayName": {

pnpm-lock.yaml

Lines changed: 6 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Calendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
selectable: true, // 是否可以选中日历格
146146
selectMirror: true,
147147
selectMinDistance: 0, // 选中日历格的最小距离
148-
dayMaxEvents: true,
148+
dayMaxEvents: 2,
149149
weekends: true,
150150
navLinks: true, // 天链接
151151
slotEventOverlap: false // 相同时间段的多个日程视觉上是否允许重叠,默认true允许

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plugin, getFrontend, IModel, openTab, fetchPost, openWindow } from "siyuan";
1+
import { Plugin, getFrontend, Custom, openTab, fetchPost, openWindow } from "siyuan";
22
import { setI18n, setPlugin, getScheduleManagerLoaded, setScheduleManagerLoaded, mountScheduleManager } from "./utils/utils";
33
import { ScheduleManager } from "./ScheduleManager";
44
import EventAggregator from "./utils/EventAggregator";
@@ -13,7 +13,7 @@ export default class PluginScheduleManager extends Plugin {
1313
private isLoaded: boolean = false;
1414
private scheduleNotebookId: string = "";
1515
private scheduleDocId: string = "";
16-
private customTab: () => IModel;
16+
private customTab: () => Custom;
1717
private scheduleManager = new ScheduleManager();
1818

1919
public isMobile: boolean;
@@ -66,10 +66,10 @@ export default class PluginScheduleManager extends Plugin {
6666

6767
EventAggregator.on('openBlockFloatLayer', (p) => {
6868
this.addFloatLayer({
69-
ids: [p as string],
70-
defIds: [],
69+
refDefs: [{ refID: p as string, defIDs: [] }],
7170
x: window.innerWidth - 768 - 120,
72-
y: 32
71+
y: 32,
72+
isBacklink: false
7373
});
7474
});
7575

0 commit comments

Comments
 (0)