Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Apr 2, 2024
2 parents c0e0f0c + a36b908 commit 7683944
Show file tree
Hide file tree
Showing 55 changed files with 567 additions and 144 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,8 @@ const mindMap = new MindMap({
<img src="./web/src/assets/avatar/L.jpg" style="width: 50px;height: 50px;" />
<span>L</span>
</span>
<span>
<img src="./web/src/assets/avatar/default.png" style="width: 50px;height: 50px;" />
<span>sunniberg</span>
</span>
</p>
2 changes: 1 addition & 1 deletion dist/css/app.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/css/chunk-bac9f554.css → dist/css/chunk-276b078e.css

Large diffs are not rendered by default.

Binary file modified dist/fonts/iconfont.ttf
Binary file not shown.
Binary file modified dist/fonts/iconfont.woff
Binary file not shown.
Binary file modified dist/fonts/iconfont.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/js/app.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/js/chunk-bac9f554.js → dist/js/chunk-276b078e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/chunk-2d0a4b03.js

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

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0c0a44.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0d9fbc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0dad5f.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0e9802.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0f026c.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d208ffa.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d216004.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d216037.js

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

2 changes: 1 addition & 1 deletion dist/js/chunk-4c82605f.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-5ecd9693.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><link rel="icon" href="dist/logo.ico"><title>思绪思维导图</title><script>// 自定义静态资源的路径
window.externalPublicPath = './dist/'
// 接管应用
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?265c9df28df3bfd4566f" rel="stylesheet"><link href="dist/css/app.css?265c9df28df3bfd4566f" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?ac10265d54028b4359f6" rel="stylesheet"><link href="dist/css/app.css?ac10265d54028b4359f6" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
Expand Down Expand Up @@ -66,4 +66,4 @@
// 可以通过window.$bus.$on()来监听应用的一些事件
// 实例化页面
window.initApp()
}</script><script src="dist/js/chunk-vendors.js?265c9df28df3bfd4566f"></script><script src="dist/js/app.js?265c9df28df3bfd4566f"></script></body></html>
}</script><script src="dist/js/chunk-vendors.js?ac10265d54028b4359f6"></script><script src="dist/js/app.js?ac10265d54028b4359f6"></script></body></html>
2 changes: 1 addition & 1 deletion simple-mind-map/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ MindMap.iconList = icons.nodeIconList
MindMap.constants = constants
MindMap.themes = themes
MindMap.defaultTheme = defaultTheme
MindMap.version = '0.9.9-fix.2'
MindMap.version = '0.9.10'

MindMap.usePlugin(MiniMap)
.usePlugin(Watermark)
Expand Down
2 changes: 1 addition & 1 deletion simple-mind-map/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.9.9-fix.2",
"version": "0.9.10",
"description": "一个简单的web在线思维导图",
"authors": [
{
Expand Down
4 changes: 3 additions & 1 deletion simple-mind-map/src/constants/constant.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ export const nodeDataNoStylePropList = [
'associativeLineTargets',
'associativeLineTargetControlOffsets',
'associativeLinePoint',
'associativeLineText'
'associativeLineText',
'attachmentUrl',
'attachmentName'
]

// 数据缓存
Expand Down
2 changes: 1 addition & 1 deletion simple-mind-map/src/core/render/Render.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class Render {
})
// 一键整理布局
this.mindMap.keyCommand.addShortcut('Control+l', () => {
this.mindMap.execCommand('RESET_LAYOUT', this.resetLayout)
this.mindMap.execCommand('RESET_LAYOUT')
})
// 上移节点
this.mindMap.keyCommand.addShortcut('Control+Up', () => {
Expand Down
5 changes: 1 addition & 4 deletions simple-mind-map/src/plugins/MiniMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ class MiniMap {

return {
getImgUrl: async callback => {
const blob = new Blob([svgStr], {
type: 'image/svg+xml'
})
const res = await readBlob(blob)
const res = await this.mindMap.doExport.fixSvgStrAndToBlob(svgStr)
callback(res)
},
svgHTML: svgStr, // 小地图html
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thoughts",
"version": "0.9.9",
"version": "0.9.10",
"private": true,
"description": "一个简洁的思维导图",
"author": "街角小林<1013335014@qq.com>",
Expand Down
6 changes: 4 additions & 2 deletions web/src/lang/en_us.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ export default {
tip: 'Tip',
yes: 'Yes',
no: 'No',
exportError: 'Export failed'
exportError: 'Export failed',
dragTip: 'Release here to import the file'
},
mouseAction: {
tip1:
Expand Down Expand Up @@ -337,6 +338,7 @@ export default {
},
attachment: {
deleteAttachment: 'Delete attachment',
openFileInDir: 'Show in dir'
openFileInDir: 'Show in dir',
tip: 'The attachment function is only available on the client side'
}
}
6 changes: 4 additions & 2 deletions web/src/lang/zh_cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ export default {
tip: '提示',
yes: '是',
no: '否',
exportError: '导出失败'
exportError: '导出失败',
dragTip: '在此释放以导入该文件'
},
mouseAction: {
tip1: '当前:左键拖动画布,右键框选节点',
Expand Down Expand Up @@ -331,6 +332,7 @@ export default {
},
attachment: {
deleteAttachment: '删除附件',
openFileInDir: '在目录中显示'
openFileInDir: '在目录中显示',
tip: '附件功能仅在客户端可用'
}
}
2 changes: 1 addition & 1 deletion web/src/pages/Doc/catalogList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let langList = [
}
]
let StartList = ['introduction', 'start', 'deploy', 'client', 'translate', 'changelog']
let CourseList = new Array(26).fill(0).map((_, index) => {
let CourseList = new Array(27).fill(0).map((_, index) => {
return 'course' + (index + 1)
})
let APIList = [
Expand Down
22 changes: 22 additions & 0 deletions web/src/pages/Doc/en/changelog/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 0.9.10

Fix:

> 1.Fix the issue of all replace operation error during search;
>
> 2.Fix the issue of rendering the mini map with entity characters that are not supported by SVG in node text;
New:

> 1.Add an event translate when moving the canvas;
>
> 2.Node content supports setting attachments;
Demo:

> 1.Support dragging and dropping files onto the page for import;
Client:

> 1.Nodes support adding attachments;
## 0.9.9-fix.2

Fix:
Expand Down
19 changes: 19 additions & 0 deletions web/src/pages/Doc/en/changelog/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
<template>
<div>
<h1>Changelog</h1>
<h2>0.9.10</h2>
<p>Fix:</p>
<blockquote>
<p>1.Fix the issue of all replace operation error during search;</p>
<p>2.Fix the issue of rendering the mini map with entity characters that are not supported by SVG in node text;</p>
</blockquote>
<p>New:</p>
<blockquote>
<p>1.Add an event translate when moving the canvas;</p>
<p>2.Node content supports setting attachments;</p>
</blockquote>
<p>Demo:</p>
<blockquote>
<p>1.Support dragging and dropping files onto the page for import;</p>
</blockquote>
<p>Client:</p>
<blockquote>
<p>1.Nodes support adding attachments;</p>
</blockquote>
<h2>0.9.9-fix.2</h2>
<p>Fix:</p>
<blockquote>
Expand Down
4 changes: 3 additions & 1 deletion web/src/pages/Doc/en/constructor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ Listen to an event. Event list:
| expand_btn_click | Node expand or collapse event | this (node instance) |
| before_show_text_edit | Event before node text edit box opens | |
| hide_text_edit | Node text edit box close event | textEditNode (text edit box DOM node), activeNodeList (current list of active nodes) |
| scale | Zoom event | scale (zoom ratio) |
| scale | Canvas zoom event | scale (zoom ratio) |
| translate(v0.9.10+) | Canvas movement event | x(translate x)、y(translate y) |
| node_img_dblclick(v0.2.15+) | Node image double-click event | this (node instance), e (event object) |
| node_img_mouseenter(v0.6.5+) | Node image mouseenter event | this(node instance)、imgNode(img node)、e(event object) |
| node_img_mouseleave(v0.6.5+) | Node image mouseleave event | this(node instance)、imgNode(img node)、e(event object) |
Expand Down Expand Up @@ -581,6 +582,7 @@ redo. All commands are as follows:
| SET_NODE_ICON | Set Node Icon | node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the [icons.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js) file, icon name is type_name, such as ['priority_1']) |
| SET_NODE_HYPERLINK | Set Node Hyperlink | node (node to set), link (hyperlink address), title (hyperlink name, optional) |
| SET_NODE_NOTE | Set Node Note | node (node to set), note (note text) |
| SET_NODE_ATTACHMENT(v0.9.10+) | Set node attachment | node(node to set)、url(attachment url)、name(attachment name, optional) |
| SET_NODE_TAG | Set Node Tag | node (node to set), tag (string array, built-in color information can be obtained in [constant.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js)) |
| INSERT_AFTER (v0.1.5+) | Move Node to After Another Node | node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node) |
| INSERT_BEFORE (v0.1.5+) | Move Node to Before Another Node | node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node) |
Expand Down
Loading

0 comments on commit 7683944

Please sign in to comment.