From 56d2e34fbd8cde5ae1832dba2bfb38595f33fbd2 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Fri, 6 Oct 2023 09:52:03 +0800 Subject: [PATCH] Doc: update --- README.md | 5 +-- web/src/pages/Doc/en/cooperate/index.md | 12 ++++++- web/src/pages/Doc/en/cooperate/index.vue | 8 ++++- web/src/pages/Doc/en/introduction/index.md | 3 +- web/src/pages/Doc/en/introduction/index.vue | 33 +++++++++---------- web/src/pages/Doc/zh/cooperate/index.md | 12 ++++++- web/src/pages/Doc/zh/cooperate/index.vue | 8 ++++- web/src/pages/Doc/zh/introduction/index.md | 5 +-- web/src/pages/Doc/zh/introduction/index.vue | 35 +++++++++++---------- web/src/pages/Index/components/Block2.vue | 6 ++-- 10 files changed, 82 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 885b36af..b7120cad 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ Github:[releases](https://github.com/wanglin2/mind-map/releases)。 - [x] 支持导出为`json`、`png`、`svg`、`pdf`、`markdown`、`xmind`,支持从`json`、`xmind`、`markdown`导入 - [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条 - [x] 提供丰富的配置,满足各种场景各种使用习惯 +- [x] 支持协同编辑 # 安装 @@ -93,11 +94,11 @@ const mindMap = new MindMap({ # 请作者喝杯咖啡 -开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡哟~ +开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~ > 厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds -> 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。你的头像和名字将会出现在下面和[文档页面](https://wanglin2.github.io/mind-map/#/doc/zh/introduction/%E8%AF%B7%E4%BD%9C%E8%80%85%E5%96%9D%E6%9D%AF%E5%92%96%E5%95%A1) +> 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。

diff --git a/web/src/pages/Doc/en/cooperate/index.md b/web/src/pages/Doc/en/cooperate/index.md index bf714bba..53fd7bae 100644 --- a/web/src/pages/Doc/en/cooperate/index.md +++ b/web/src/pages/Doc/en/cooperate/index.md @@ -30,12 +30,22 @@ npm i npm link simple-mind-map ``` -2. Modify `web/src/pages/Edit/components/Edit.vue` file, To register Cooperate plugin, uncomment the line: +2. Modify `web/src/pages/Edit/components/Edit.vue` file + +To register Cooperate plugin, uncomment the line: ```js // .usePlugin(Cooperate)// Cooperate plugin ``` +Change the signaling server address to your local IP: + +```js +// cooperateTest function + +signalingList: ['ws://【your ip】:4444'] +``` + 3. To register a collaborative plugin, uncomment the line: ```bash diff --git a/web/src/pages/Doc/en/cooperate/index.vue b/web/src/pages/Doc/en/cooperate/index.vue index 912077e1..25b1c49a 100644 --- a/web/src/pages/Doc/en/cooperate/index.vue +++ b/web/src/pages/Doc/en/cooperate/index.vue @@ -25,10 +25,16 @@ npm i npm link simple-mind-map

    -
  1. Modify web/src/pages/Edit/components/Edit.vue file, To register Cooperate plugin, uncomment the line:
  2. +
  3. Modify web/src/pages/Edit/components/Edit.vue file
+

To register Cooperate plugin, uncomment the line:

// .usePlugin(Cooperate)// Cooperate plugin
 
+

Change the signaling server address to your local IP:

+
// cooperateTest function
+
+signalingList: ['ws://【your ip】:4444']
+
  1. To register a collaborative plugin, uncomment the line:
diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md index 41fb306e..cc2c8a37 100644 --- a/web/src/pages/Doc/en/introduction/index.md +++ b/web/src/pages/Doc/en/introduction/index.md @@ -18,6 +18,7 @@ - [x] Supoorts to export as `json`、`png`、`svg`、`pdf`、`markdown`、`xmind`, support import from `json`、`xmind`、`markdown` - [x] Support shortcut keys, forward and backward, correlation lines, search and replacement, small maps, watermarks, and scrollbar - [x] Provide rich configurations to meet various scenarios and usage habits +- [x] Support collaborative editing ## Repository Catalog Introduction @@ -116,7 +117,7 @@ Unsupported: `IE` browser. Open source is not easy. If this project is helpful to you, you can invite the author to have a cup of coffee~ -> Please note the 【mind map】 for transfer. Your avatar and name will appear below. +> Please note the 【mind map】 for transfer. diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue index 5e352b28..9368f1ad 100644 --- a/web/src/pages/Doc/en/introduction/index.vue +++ b/web/src/pages/Doc/en/introduction/index.vue @@ -8,16 +8,17 @@

Features

Repository Catalog Introduction

1.simple-mind-map

@@ -27,16 +28,16 @@ frameworks such as Vue and React, or without a framework.

This is an online mind map built using the simple-mind-map library and based on Vue2.x and ElementUI. Features include:

@@ -77,7 +78,7 @@ full screen, support mini map

Invite the author to a cup of coffee

Open source is not easy. If this project is helpful to you, you can invite the author to have a cup of coffee~

-

Please note the 【mind map】 for transfer. Your avatar and name will appear below.

+

Please note the 【mind map】 for transfer.

diff --git a/web/src/pages/Doc/zh/cooperate/index.md b/web/src/pages/Doc/zh/cooperate/index.md index ccee2949..86d123fd 100644 --- a/web/src/pages/Doc/zh/cooperate/index.md +++ b/web/src/pages/Doc/zh/cooperate/index.md @@ -30,12 +30,22 @@ npm i npm link simple-mind-map ``` -2. 修改`web/src/pages/Edit/components/Edit.vue`文件,注册协同插件,即取消该行注释: +2. 修改`web/src/pages/Edit/components/Edit.vue`文件 + +注册协同插件,即取消该行注释: ```js // .usePlugin(Cooperate)// 协同插件 ``` +将信令服务器地址改为你本机的ip: + +```js +// cooperateTest 函数 + +signalingList: ['ws://【你的ip】:4444'] +``` + 3. 启动demo项目的本地服务: ```bash diff --git a/web/src/pages/Doc/zh/cooperate/index.vue b/web/src/pages/Doc/zh/cooperate/index.vue index 1fdb8a5d..cc0e10c7 100644 --- a/web/src/pages/Doc/zh/cooperate/index.vue +++ b/web/src/pages/Doc/zh/cooperate/index.vue @@ -25,10 +25,16 @@ npm i npm link simple-mind-map
    -
  1. 修改web/src/pages/Edit/components/Edit.vue文件,注册协同插件,即取消该行注释:
  2. +
  3. 修改web/src/pages/Edit/components/Edit.vue文件
+

注册协同插件,即取消该行注释:

// .usePlugin(Cooperate)// 协同插件
 
+

将信令服务器地址改为你本机的ip:

+
// cooperateTest 函数
+
+signalingList: ['ws://【你的ip】:4444']
+
  1. 启动demo项目的本地服务:
diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md index a41a7b48..940f5b30 100644 --- a/web/src/pages/Doc/zh/introduction/index.md +++ b/web/src/pages/Doc/zh/introduction/index.md @@ -18,6 +18,7 @@ - [x] 支持导出为`json`、`png`、`svg`、`pdf`、`markdown`、`xmind`,支持从`json`、`xmind`、`markdown`导入 - [x] 支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条 - [x] 提供丰富的配置,满足各种场景各种使用习惯 +- [x] 支持协同编辑 ## 仓库目录介绍 @@ -105,11 +106,11 @@ ## 请作者喝杯咖啡 -开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡哟~ +开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~ > 厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds -> 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。你的头像和名字将会出现在下面。 +> 推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。 diff --git a/web/src/pages/Doc/zh/introduction/index.vue b/web/src/pages/Doc/zh/introduction/index.vue index 3da5d7d6..d3da6224 100644 --- a/web/src/pages/Doc/zh/introduction/index.vue +++ b/web/src/pages/Doc/zh/introduction/index.vue @@ -8,16 +8,17 @@

特性

仓库目录介绍

1.simple-mind-map

@@ -25,11 +26,11 @@

2.web

使用simple-mind-map库,基于vue2.xElementUI搭建的在线思维导图。特性:

提供文档页面服务。

3.dist

@@ -66,12 +67,12 @@

License

MIT

请作者喝杯咖啡

-

开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡哟~

+

开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~

厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds

-

推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。你的头像和名字将会出现在下面。

+

推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。

diff --git a/web/src/pages/Index/components/Block2.vue b/web/src/pages/Index/components/Block2.vue index f56f89af..a79b13d4 100644 --- a/web/src/pages/Index/components/Block2.vue +++ b/web/src/pages/Index/components/Block2.vue @@ -42,15 +42,15 @@ export default { dataList: [ { icon: 'iconstar', - value: 'Github star数量800+' + value: 'Github star数量1000+' }, { icon: 'iconfork', - value: 'Github fork数量150+' + value: 'Github fork数量200+' }, { icon: 'iconxiazai', - value: 'npm总下载次数15000+' + value: 'npm总下载次数20000+' }, { icon: 'iconteamwork',