From 2122fa59d70bcd423fd9c8dec013c517f24f9c72 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 10 Apr 2023 10:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- web/src/customThemes/blackGold.js | 55 ---------- web/src/customThemes/blackHumour.js | 56 ---------- web/src/customThemes/coffee.js | 53 ---------- web/src/customThemes/courseGreen.js | 53 ---------- web/src/customThemes/index.js | 36 ------- web/src/customThemes/lateNightOffice.js | 56 ---------- web/src/customThemes/redSpirit.js | 55 ---------- web/src/pages/Doc/catalogList.js | 2 +- web/src/pages/Doc/en/changelog/index.md | 4 + web/src/pages/Doc/en/changelog/index.vue | 2 + web/src/pages/Doc/en/constructor/index.md | 2 +- web/src/pages/Doc/en/constructor/index.vue | 2 +- web/src/pages/Doc/routerList.js | 77 +++++++++++++- web/src/pages/Doc/zh/changelog/index.md | 4 + web/src/pages/Doc/zh/changelog/index.vue | 2 + web/src/pages/Doc/zh/constructor/index.md | 2 +- web/src/pages/Doc/zh/constructor/index.vue | 2 +- web/src/pages/Doc/zh/course10/index.md | 114 +++++++++++++++++++++ web/src/pages/Doc/zh/course10/index.vue | 105 +++++++++++++++++++ web/src/pages/Doc/zh/course11/index.md | 3 + web/src/pages/Doc/zh/course11/index.vue | 17 +++ web/src/pages/Doc/zh/course12/index.md | 3 + web/src/pages/Doc/zh/course12/index.vue | 17 +++ web/src/pages/Doc/zh/course13/index.md | 3 + web/src/pages/Doc/zh/course13/index.vue | 17 +++ web/src/pages/Doc/zh/course14/index.md | 3 + web/src/pages/Doc/zh/course14/index.vue | 17 +++ web/src/pages/Doc/zh/course15/index.md | 3 + web/src/pages/Doc/zh/course15/index.vue | 17 +++ web/src/pages/Doc/zh/course16/index.md | 3 + web/src/pages/Doc/zh/course16/index.vue | 17 +++ web/src/pages/Doc/zh/course17/index.md | 3 + web/src/pages/Doc/zh/course17/index.vue | 17 +++ web/src/pages/Doc/zh/course18/index.md | 3 + web/src/pages/Doc/zh/course18/index.vue | 17 +++ web/src/pages/Doc/zh/course6/index.md | 44 ++++++++ web/src/pages/Doc/zh/course6/index.vue | 50 +++++++++ web/src/pages/Doc/zh/course7/index.md | 30 ++++++ web/src/pages/Doc/zh/course7/index.vue | 32 ++++++ web/src/pages/Doc/zh/course8/index.md | 20 ++++ web/src/pages/Doc/zh/course8/index.vue | 29 ++++++ web/src/pages/Doc/zh/course9/index.md | 37 +++++++ web/src/pages/Doc/zh/course9/index.vue | 40 ++++++++ web/src/pages/Edit/components/Edit.vue | 6 +- web/src/pages/Edit/components/Theme.vue | 2 +- 46 files changed, 757 insertions(+), 377 deletions(-) delete mode 100644 web/src/customThemes/blackGold.js delete mode 100644 web/src/customThemes/blackHumour.js delete mode 100644 web/src/customThemes/coffee.js delete mode 100644 web/src/customThemes/courseGreen.js delete mode 100644 web/src/customThemes/lateNightOffice.js delete mode 100644 web/src/customThemes/redSpirit.js create mode 100644 web/src/pages/Doc/zh/course10/index.md create mode 100644 web/src/pages/Doc/zh/course10/index.vue create mode 100644 web/src/pages/Doc/zh/course11/index.md create mode 100644 web/src/pages/Doc/zh/course11/index.vue create mode 100644 web/src/pages/Doc/zh/course12/index.md create mode 100644 web/src/pages/Doc/zh/course12/index.vue create mode 100644 web/src/pages/Doc/zh/course13/index.md create mode 100644 web/src/pages/Doc/zh/course13/index.vue create mode 100644 web/src/pages/Doc/zh/course14/index.md create mode 100644 web/src/pages/Doc/zh/course14/index.vue create mode 100644 web/src/pages/Doc/zh/course15/index.md create mode 100644 web/src/pages/Doc/zh/course15/index.vue create mode 100644 web/src/pages/Doc/zh/course16/index.md create mode 100644 web/src/pages/Doc/zh/course16/index.vue create mode 100644 web/src/pages/Doc/zh/course17/index.md create mode 100644 web/src/pages/Doc/zh/course17/index.vue create mode 100644 web/src/pages/Doc/zh/course18/index.md create mode 100644 web/src/pages/Doc/zh/course18/index.vue create mode 100644 web/src/pages/Doc/zh/course6/index.md create mode 100644 web/src/pages/Doc/zh/course6/index.vue create mode 100644 web/src/pages/Doc/zh/course7/index.md create mode 100644 web/src/pages/Doc/zh/course7/index.vue create mode 100644 web/src/pages/Doc/zh/course8/index.md create mode 100644 web/src/pages/Doc/zh/course8/index.vue create mode 100644 web/src/pages/Doc/zh/course9/index.md create mode 100644 web/src/pages/Doc/zh/course9/index.vue diff --git a/index.html b/index.html index 0a5d358d..68d1965e 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -一个简单的web思维导图实现
\ No newline at end of file +一个简单的web思维导图实现
\ No newline at end of file diff --git a/web/src/customThemes/blackGold.js b/web/src/customThemes/blackGold.js deleted file mode 100644 index fb468c9d..00000000 --- a/web/src/customThemes/blackGold.js +++ /dev/null @@ -1,55 +0,0 @@ -// 黑金 -export default { - // 背景颜色 - backgroundColor: 'rgb(18, 20, 20)', - // 连线的颜色 - lineColor: 'rgb(205, 186, 156)', - lineWidth: 3, - // 概要连线的粗细 - generalizationLineWidth: 3, - // 概要连线的颜色 - generalizationLineColor: 'rgb(245, 224, 191)', - // 根节点样式 - root: { - fillColor: 'rgb(255, 208, 124)', - color: 'rgb(111, 61, 6)', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: '#fff', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(66, 57, 46)', - color: 'rgb(225, 201, 158)', - borderColor: 'rgb(245, 224, 191)', - borderWidth: 2, - fontSize: 18, - active: { - borderColor: 'rgb(255, 208, 124)', - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(231, 203, 155)', - active: { - borderColor: 'rgb(255, 208, 124)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(56, 45, 34)', - borderColor: 'rgb(104, 84, 61)', - borderWidth: 2, - color: 'rgb(242, 216, 176)', - active: { - borderColor: 'rgb(255, 208, 124)' - } - } - } - \ No newline at end of file diff --git a/web/src/customThemes/blackHumour.js b/web/src/customThemes/blackHumour.js deleted file mode 100644 index c91468a6..00000000 --- a/web/src/customThemes/blackHumour.js +++ /dev/null @@ -1,56 +0,0 @@ -// 黑色幽默 -export default { - // 背景颜色 - backgroundColor: 'rgb(27, 31, 34)', - // 连线的颜色 - lineColor: 'rgb(75, 81, 78)', - lineWidth: 3, - // 概要连线的粗细 - generalizationLineWidth: 3, - // 概要连线的颜色 - generalizationLineColor: 'rgb(255, 119, 34)', - // 根节点样式 - root: { - fillColor: 'rgb(36, 179, 96)', - color: '#fff', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: 'rgb(254, 199, 13)', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(254, 199, 13)', - color: 'rgb(0, 0, 0)', - borderColor: '', - borderWidth: 0, - fontSize: 18, - active: { - borderColor: 'rgb(36, 179, 96)', - borderWidth: 3, - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(204, 204, 204)', - active: { - borderColor: 'rgb(254, 199, 13)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(27, 31, 34)', - borderColor: 'rgb(255, 119, 34)', - borderWidth: 2, - color: 'rgb(204, 204, 204)', - active: { - borderColor: 'rgb(36, 179, 96)' - } - } - } - \ No newline at end of file diff --git a/web/src/customThemes/coffee.js b/web/src/customThemes/coffee.js deleted file mode 100644 index 1011c4b1..00000000 --- a/web/src/customThemes/coffee.js +++ /dev/null @@ -1,53 +0,0 @@ -// 咖啡 -export default { - // 连线的颜色 - lineColor: 'rgb(173, 123, 91)', - lineWidth: 4, - // 概要连线的粗细 - generalizationLineWidth: 4, - // 概要连线的颜色 - generalizationLineColor: 'rgb(173, 123, 91)', - // 根节点样式 - root: { - fillColor: 'rgb(202, 117, 79)', - color: '#fff', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: 'rgb(173, 123, 91)', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(245, 231, 216)', - color: 'rgb(125, 86, 42)', - borderColor: '', - borderWidth: 0, - fontSize: 18, - active: { - borderColor: 'rgb(173, 123, 91)', - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(96, 71, 47)', - active: { - borderColor: 'rgb(173, 123, 91)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(255, 249, 239)', - borderColor: 'rgb(173, 123, 91)', - borderWidth: 2, - color: 'rgb(122, 83, 44)', - active: { - borderColor: 'rgb(202, 117, 79)' - } - } - } - \ No newline at end of file diff --git a/web/src/customThemes/courseGreen.js b/web/src/customThemes/courseGreen.js deleted file mode 100644 index 9e780d92..00000000 --- a/web/src/customThemes/courseGreen.js +++ /dev/null @@ -1,53 +0,0 @@ -// 课程绿 -export default { - // 连线的颜色 - lineColor: 'rgb(113, 195, 169)', - lineWidth: 3, - // 概要连线的粗细 - generalizationLineWidth: 3, - // 概要连线的颜色 - generalizationLineColor: 'rgb(113, 195, 169)', - // 根节点样式 - root: { - fillColor: 'rgb(16, 160, 121)', - color: '#fff', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: 'rgb(173, 91, 12)', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(240, 252, 249)', - color: 'rgb(50, 113, 96)', - borderColor: 'rgb(113, 195, 169)', - borderWidth: 2, - fontSize: 18, - active: { - borderColor: 'rgb(173, 91, 12)', - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(10, 59, 43)', - active: { - borderColor: 'rgb(173, 91, 12)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(246, 238, 211)', - borderColor: '', - borderWidth: 0, - color: 'rgb(173, 91, 12)', - active: { - borderColor: 'rgb(113, 195, 169)' - } - } - } - \ No newline at end of file diff --git a/web/src/customThemes/index.js b/web/src/customThemes/index.js index 7279ed8e..7d41263f 100644 --- a/web/src/customThemes/index.js +++ b/web/src/customThemes/index.js @@ -1,45 +1,9 @@ import simpleBlack from './simpleBlack' -import courseGreen from './courseGreen' -import coffee from './coffee' -import redSpirit from './redSpirit' -import blackHumour from './blackHumour' -import lateNightOffice from './lateNightOffice' -import blackGold from './blackGold' export default [ { name: '简约黑', value: 'simpleBlack', theme: simpleBlack - }, - { - name: '课程绿', - value: 'courseGreen', - theme: courseGreen - }, - { - name: '咖啡', - value: 'coffee', - theme: coffee - }, - { - name: '红色精神', - value: 'redSpirit', - theme: redSpirit - }, - { - name: '黑色幽默', - value: 'blackHumour', - theme: blackHumour - }, - { - name: '深夜办公室', - value: 'lateNightOffice', - theme: lateNightOffice - }, - { - name: '黑金', - value: 'blackGold', - theme: blackGold } ] \ No newline at end of file diff --git a/web/src/customThemes/lateNightOffice.js b/web/src/customThemes/lateNightOffice.js deleted file mode 100644 index c2b65af3..00000000 --- a/web/src/customThemes/lateNightOffice.js +++ /dev/null @@ -1,56 +0,0 @@ -// 深夜办公室 -export default { - // 背景颜色 - backgroundColor: 'rgb(32, 37, 49)', - // 连线的颜色 - lineColor: 'rgb(137, 167, 196)', - lineWidth: 3, - // 概要连线的粗细 - generalizationLineWidth: 3, - // 概要连线的颜色 - generalizationLineColor: 'rgb(255, 119, 34)', - // 根节点样式 - root: { - fillColor: 'rgb(23, 153, 243)', - color: 'rgb(255, 255, 255)', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: 'rgb(255, 119, 34)', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(70, 78, 94)', - color: 'rgb(209, 210, 210)', - borderColor: '', - borderWidth: 0, - fontSize: 18, - active: { - borderColor: 'rgb(255, 119, 34)', - borderWidth: 3, - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(204, 204, 204)', - active: { - borderColor: 'rgb(255, 119, 34)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(255, 119, 34)', - borderColor: '', - borderWidth: 2, - color: '#fff', - active: { - borderColor: 'rgb(23, 153, 243)' - } - } - } - \ No newline at end of file diff --git a/web/src/customThemes/redSpirit.js b/web/src/customThemes/redSpirit.js deleted file mode 100644 index 3240b4fb..00000000 --- a/web/src/customThemes/redSpirit.js +++ /dev/null @@ -1,55 +0,0 @@ -// 红色精神 -export default { - // 背景颜色 - backgroundColor: 'rgb(255, 238, 228)', - // 连线的颜色 - lineColor: 'rgb(230, 138, 131)', - lineWidth: 3, - // 概要连线的粗细 - generalizationLineWidth: 3, - // 概要连线的颜色 - generalizationLineColor: 'rgb(222, 101, 85)', - // 根节点样式 - root: { - fillColor: 'rgb(207, 44, 44)', - color: 'rgb(255, 233, 157)', - borderColor: '', - borderWidth: 0, - fontSize: 24, - active: { - borderColor: 'rgb(255, 233, 157)', - borderWidth: 3, - } - }, - // 二级节点样式 - second: { - fillColor: 'rgb(255, 255, 255)', - color: 'rgb(211, 58, 21)', - borderColor: 'rgb(222, 101, 85)', - borderWidth: 2, - fontSize: 18, - active: { - borderColor: 'rgb(255, 233, 157)', - } - }, - // 三级及以下节点样式 - node: { - fontSize: 14, - color: 'rgb(144, 71, 43)', - active: { - borderColor: 'rgb(255, 233, 157)' - } - }, - // 概要节点样式 - generalization: { - fontSize: 14, - fillColor: 'rgb(255, 247, 211)', - borderColor: 'rgb(255, 202, 162)', - borderWidth: 2, - color: 'rgb(187, 101, 69)', - active: { - borderColor: 'rgb(222, 101, 85)' - } - } - } - \ No newline at end of file diff --git a/web/src/pages/Doc/catalogList.js b/web/src/pages/Doc/catalogList.js index 5fc706e4..42779d59 100644 --- a/web/src/pages/Doc/catalogList.js +++ b/web/src/pages/Doc/catalogList.js @@ -11,7 +11,7 @@ let langList = [ } ] let StartList = ['introduction', 'start', 'translate', 'changelog'] -let CourseList = new Array(5).fill(0).map((_, index) => { +let CourseList = new Array(18).fill(0).map((_, index) => { return 'course' + (index + 1) }) let APIList = [ diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 5127e6e3..5ec7984c 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,9 @@ # Changelog +## 0.5.4 + +New: 1.Add new themes. + ## 0.5.3 Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 5e597103..c076a0d1 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,8 @@