Skip to content

Commit

Permalink
chore: release v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuoqiu-Yingyi committed Feb 22, 2024
1 parent 33c1eee commit 16e52ac
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 更改日志 | CHANGE LOG

## v0.2.1/2024-02-22

- [v0.2.0 <=> v0.2.1](https:///github.com/Zuoqiu-Yingyi/widget-drawio/compare/v0.2.0...v0.2.1)
- [#29](https://github.com/Zuoqiu-Yingyi/widget-drawio/issues/29) 优化资源文件加载方案 | Optimize resource file loading scheme.
- [#23](https://github.com/Zuoqiu-Yingyi/widget-drawio/issues/23) 优化资源文件加载方案 | Optimize resource file loading scheme.
- [#31](https://github.com/Zuoqiu-Yingyi/widget-drawio/issues/31) 修复自定义 URL 参数解析错误问题 | Fixed an issue where custom URL parameters were parsed incorrectly.
Expand Down
4 changes: 3 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
}

/* 获取同源的思源全局属性 */
window.siyuan.global = (() => {
window.siyuan.frame = (() => {
var frame = window.self;
switch (frame) {
case window.top:
Expand All @@ -99,6 +99,8 @@
return frame?.siyuan;
}
})();
window.siyuan.openAPI = window.siyuan.frame?.openAPI;
window.siyuan.global = window.siyuan.frame?.siyuan;
window.siyuan.config = window.siyuan.global?.config;
window.mxIsSiyuan = !!window.siyuan.global;

Expand Down
4 changes: 4 additions & 0 deletions plugins/siyuan.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ Draw.loadPlugin(async function (
});
app.actions.put('siyuanCopyFileLink', action_siyuanCopyFileLink);

// TODO: siyuanHoverPreview 鼠标悬浮预览思源链接

/* 添加菜单 */
app.menubar?.addMenu(
mxResources.get('siyuan'),
Expand All @@ -236,6 +238,8 @@ Draw.loadPlugin(async function (
menu.addSeparator(parent);
app.menus.addMenuItem(menu, 'siyuanOpenInNewTab');
app.menus.addMenuItem(menu, 'openInNewWindow');
menu.addSeparator(parent);
app.menus.addMenuItem(menu, 'siyuanHoverPreview');
},
document.querySelector('.geStatus'),
);
Expand Down
2 changes: 1 addition & 1 deletion resources/dia.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# *DO NOT DIRECTLY EDIT THIS FILE, IT IS AUTOMATICALLY GENERATED AND IT IS BASED ON:*
# https://docs.google.com/spreadsheet/ccc?key=0AmQEO36liL4FdDJLWVNMaVV2UmRKSnpXU09MYkdGbEE
siyuan=Siyuan
siyuan=SiYuan
siyuanCopyFileLink=Copy File Link
siyuanCopyFilePath=Copy File Path
siyuanImport=Import Local Drawing
Expand Down
16 changes: 15 additions & 1 deletion widget.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
"name": "drawio",
"author": "Zuoqiu-Yingyi",
"url": "https://github.com/Zuoqiu-Yingyi/widget-drawio",
"version": "0.2.0",
"version": "0.2.1",
"keywords": [
"draw",
"绘图",
"繪圖",
"graph",
"图表",
"圖表",
"diagram",
"示意图",
"示意圖",
"flow",
"流程图",
"流程圖"
],
"displayName": {
"default": "draw.io"
},
Expand Down

0 comments on commit 16e52ac

Please sign in to comment.