diff --git a/index.html b/index.html index e0178be7..8d73c924 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ 思绪思维导图
\ No newline at end of file + } \ No newline at end of file diff --git a/web/src/pages/Edit/components/Navigator.vue b/web/src/pages/Edit/components/Navigator.vue index a8252bc8..b6118776 100644 --- a/web/src/pages/Edit/components/Navigator.vue +++ b/web/src/pages/Edit/components/Navigator.vue @@ -127,7 +127,7 @@ export default { height: 220px; background-color: #fff; bottom: 80px; - right: 20px; + right: 70px; box-shadow: 0 0 16px #989898; border-radius: 4px; border: 1px solid #eee; diff --git a/web/src/pages/Edit/components/NavigatorToolbar.vue b/web/src/pages/Edit/components/NavigatorToolbar.vue index 52e4ae4f..5916e7f4 100644 --- a/web/src/pages/Edit/components/NavigatorToolbar.vue +++ b/web/src/pages/Edit/components/NavigatorToolbar.vue @@ -72,9 +72,16 @@ >
- - - + +
+ + Github + 使用文档 + 开发文档 + 官方网站 + 意见反馈 + +
@@ -116,7 +123,7 @@ export default { computed: { ...mapState(['isDark']) }, - created () { + created() { this.lang = getLang() }, methods: { @@ -143,6 +150,33 @@ export default { toggleDark() { this.setIsDark(!this.isDark) + }, + + handleCommand(command) { + let url = '' + switch (command) { + case 'github': + url = 'https://github.com/wanglin2/mind-map' + break + case 'helpDoc': + url = 'https://wanglin2.github.io/mind-map/#/help/zh/' + break + case 'devDoc': + url = 'https://wanglin2.github.io/mind-map/#/doc/zh/introduction/' + break + case 'site': + url = 'https://wanglin2.github.io/mind-map/#/index' + break + case 'issue': + url = 'https://github.com/wanglin2/mind-map/issues/new' + break + default: + break + } + const a = document.createElement('a') + a.href = url + a.target = '_blank' + a.click() } } } diff --git a/web/src/pages/Index/components/Block2.vue b/web/src/pages/Index/components/Block2.vue index 25f19690..d5bd2c8d 100644 --- a/web/src/pages/Index/components/Block2.vue +++ b/web/src/pages/Index/components/Block2.vue @@ -42,11 +42,11 @@ export default { dataList: [ { icon: 'iconstar', - value: 'Github star数量450+' + value: 'Github star数量600+' }, { icon: 'iconfork', - value: 'Github fork数量100+' + value: 'Github fork数量150+' }, { icon: 'iconxiazai', @@ -54,7 +54,7 @@ export default { }, { icon: 'iconteamwork', - value: '代码贡献者6+' + value: '代码贡献者8+' } ], functionList: [ diff --git a/web/src/pages/Index/components/Block5.vue b/web/src/pages/Index/components/Block5.vue index 90120d62..b97a34f1 100644 --- a/web/src/pages/Index/components/Block5.vue +++ b/web/src/pages/Index/components/Block5.vue @@ -2,9 +2,9 @@
-
街角小林出品
+
理想青年实验室
- 男,90后,六年+前端开发工程师,热爱前端、写作、开源。 + 专注前端、写作、开源。
@@ -52,7 +52,12 @@
更多作品
@@ -67,51 +72,63 @@ export default { linkList: [ { name: 'CodeRun', - url: 'https://github.com/wanglin2/code-run' + url: 'https://github.com/wanglin2/code-run', + desc: '一个代码在线编辑预览工具,类似codepen、jsbin、jsfiddle等' }, { name: 'TinyWhiteboard', - url: 'https://github.com/wanglin2/tiny_whiteboard' + url: 'https://github.com/wanglin2/tiny_whiteboard', + desc: '一个在线小白板,类似excalidraw' }, { name: 'Mark.js', - url: 'https://github.com/wanglin2/markjs' + url: 'https://github.com/wanglin2/markjs', + desc: '一个插件化的多边形标注库' }, { name: 'WebMapEngine', - url: 'https://github.com/wanglin2/web_map_demo' + url: 'https://github.com/wanglin2/web_map_demo', + desc: '一个简单的2D地图加载器' }, { name: 'SimpleNoviceGuide', - url: 'https://github.com/wanglin2/simple-novice-guide' + url: 'https://github.com/wanglin2/simple-novice-guide', + desc: ' 一个简洁的新手引导库' }, { name: 'CanvasEditor', - url: 'https://github.com/wanglin2/canvas-editor-demo' + url: 'https://github.com/wanglin2/canvas-editor-demo', + desc: '一个用Canvas做的富文本编辑器Demo' }, { name: 'JsonTreeView', - url: 'https://github.com/wanglin2/json-tree-view' + url: 'https://github.com/wanglin2/json-tree-view', + desc: '一个简洁的json格式化插件' }, { name: 'SimpleFlowChart', - url: 'https://github.com/wanglin2/simple-flow-chart' + url: 'https://github.com/wanglin2/simple-flow-chart', + desc: '一个用flex布局做的流程设计器' }, { name: 'VideoTimeLine', - url: 'https://github.com/wanglin2/VideoTimeLine' + url: 'https://github.com/wanglin2/VideoTimeLine', + desc: '一个基于Vue2的视频时间轴组件' }, { name: 'MarkdownEditor', - url: 'https://github.com/wanglin2/markdown_editor_sync_scroll_demo' + url: 'https://github.com/wanglin2/markdown_editor_sync_scroll_demo', + desc: '一个能精确同步滚动的Markdown编辑器' }, { name: 'AssociationLine', - url: 'https://github.com/wanglin2/AssociationLineDemo' + url: 'https://github.com/wanglin2/AssociationLineDemo', + desc: '关联线探究,如何连接流程图的两个节点' }, { name: 'HandPaintedStyle', - url: 'https://github.com/wanglin2/handPaintedStyle' + url: 'https://github.com/wanglin2/handPaintedStyle', + desc: '手绘风格图形的简单实现' } ] }