From f20748744a10d1b53443a72d3a01ee5c0fae2259 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 14 Aug 2023 09:27:59 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Demo=EF=BC=9A=E5=8F=B3=E4=B8=8B=E8=A7=92?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B7=B3=E8=BD=AC=E7=9B=B8=E5=85=B3=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Edit/components/NavigatorToolbar.vue | 42 +++++++++++++++++-- 1 file changed, 38 insertions(+), 4 deletions(-) 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() } } } From 393410757ba400c1456e67630acd6b62a2648238 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 14 Aug 2023 09:29:11 +0800 Subject: [PATCH 2/4] =?UTF-8?q?Demo=EF=BC=9A=E8=B0=83=E6=95=B4=E5=B0=8F?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=BD=8D=E7=BD=AE=EF=BC=8C=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E8=A2=AB=E4=BE=A7=E8=BE=B9=E6=8C=89=E9=92=AE=E9=81=AE=E6=8C=A1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Edit/components/Navigator.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From ec83976818bad3833e53d802c61bf6b132744111 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 14 Aug 2023 09:36:10 +0800 Subject: [PATCH 3/4] =?UTF-8?q?Doc=EF=BC=9A=E8=B0=83=E6=95=B4=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/Index/components/Block2.vue | 6 +-- web/src/pages/Index/components/Block5.vue | 47 +++++++++++++++-------- 2 files changed, 35 insertions(+), 18 deletions(-) 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: '手绘风格图形的简单实现' } ] } From edc63b12933d97ee68c9787d77a870ea4d466a14 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 14 Aug 2023 09:38:49 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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