Skip to content

Commit

Permalink
重构
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketren committed Jun 2, 2018
1 parent b9cd75a commit 3e85994
Show file tree
Hide file tree
Showing 139 changed files with 2,102 additions and 33,922 deletions.
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.cache/
dev/
node_modules/
.idea/
dist/
12 changes: 6 additions & 6 deletions js/packages/bower/raphael/license.txt → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License
The MIT License (MIT)

Copyright (c) 2008-2010 Dmitry Baranovskiy
Copyright (c) 2018 - present RockyRen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
53 changes: 38 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,38 @@
# Mindmap Tree
一个基于Raphael.js图形库实现的思维导图

## 相关技术点
* 使用RequireJS作模块管理
* 图形绘制使用Raphael.js

## 功能介绍
* 增加节点:选择某个节点后,点击增加键可以增加节点
* 删除节点:选择某个节点后,点击删除键可以删除节点
* 拖动节点改变父子关系:拖动A节点到B节点上,可将A节点设为B节点的子节点
* 节点文本编辑:在输入框中输入文本后,点击确定即可修改节点文本

## 备注
* 该应用不用安装其他东西,使用浏览器打开index.html即可使用
# Mindmap Tree
一个基于[Raphael.js](http://dmitrybaranovskiy.github.io/raphael/)图形库实现的思维导图

## 开始
安装依赖包:

```sh
npm install
```

## 开发
```sh
npm run dev
```

启动后访问 **http://127.0.0.1:8201/index.html**

## 发布
```sh
npm run dist
```

运行上面命令后会在项目目录下生成 **dist** 目录

## 功能介绍
* 增加节点:选择某个节点后,点击增加键可以增加节点
* 删除节点:选择某个节点后,点击删除键可以删除节点
* 拖动节点改变父子关系:拖动A节点到B节点上,可将A节点设为B节点的子节点
* 节点文本编辑:在输入框中输入文本后,点击确定即可修改节点文本

## 其他
* 仅供学习使用,问题比较多,请勿直接运用到生产环境上

## License

MIT

Copyright (c) 2018 - present, RockyRen
5 changes: 0 additions & 5 deletions bootstrap/css/bootstrap.min.css

This file was deleted.

Binary file removed bootstrap/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
229 changes: 0 additions & 229 deletions bootstrap/fonts/glyphicons-halflings-regular.svg

This file was deleted.

Binary file removed bootstrap/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file removed bootstrap/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
6 changes: 0 additions & 6 deletions bootstrap/js/bootstrap.min.js

This file was deleted.

15 changes: 0 additions & 15 deletions bower.json

This file was deleted.

113 changes: 0 additions & 113 deletions css/index.css

This file was deleted.

49 changes: 0 additions & 49 deletions index.html

This file was deleted.

Loading

0 comments on commit 3e85994

Please sign in to comment.