diff --git a/README.md b/README.md index 94ba54e6..ffcc4cdd 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,12 @@ + `Ctrl + Alt + D` 插入当前日期 + `Ctrl + Alt + T` 插入当前时间 + `Ctrl + Alt + F` 插入文件附件 + + `Ctrl + Alt + I` 插入文档链接 + `Ctrl + J` 连接行 join lines + `Ctrl + K, Ctrl + U` 转换大写 + `Ctrl + K, Ctrl + L` 转换小写 + `Ctrl + Alt + R` 在内置终端里面运行选中内容 + + `Ctrl + B + V` 粘贴 html 富文本 ## 特色功能 + 同步预览滚动,实现得较粗糙 @@ -119,6 +121,14 @@ ## 更新日志 [最新发布](https://github.com/purocean/yn/releases) +### [v1.22.0](https://github.com/purocean/yn/releases/tag/v1.22.0) 2019-05-20 +1. 增加粘贴 html 富文本功能 `Ctrl + B + V` +1. 增加插入文档快捷键 `Ctrl + Alt + I` +1. 修复 vue cli 3 打包错误 +1. 修复图片链接转义 +1. 搜索排除 node_modules +1. 上传文件目录优化 + ### [v1.21.0](https://github.com/purocean/yn/releases/tag/v1.21.0) 2019-05-03 1. 调整抓取图片到本地的逻辑 1. 优化目录树样式 diff --git a/backend/file.js b/backend/file.js index 33f85339..22930dfc 100644 --- a/backend/file.js +++ b/backend/file.js @@ -187,7 +187,7 @@ exports.search = (repo, str) => { return } - const list = fs.readdirSync(location).filter(x => !x.startsWith('.')) + const list = fs.readdirSync(location).filter(x => !x.startsWith('.') && !ignorePath.test(x)) list.forEach(x => { const p = path.join(location, x) diff --git a/frontend/package.json b/frontend/package.json index 3e28c930..53ab43e3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -24,8 +24,11 @@ "markdown-it-multimd-table": "^3.1.3", "markdown-it-task-lists": "^2.1.1", "mime-types": "^2.1.24", + "monaco-editor": "^0.13.1", "normalize.css": "^8.0.1", "socket.io-client": "^2.2.0", + "transliteration": "^2.1.3", + "turndown": "^5.0.3", "vue": "^2.6.10", "vue-bus": "^1.2.1", "vue-router": "^3.0.3", diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue index 13357dd0..f562c5ad 100644 --- a/frontend/src/components/Editor.vue +++ b/frontend/src/components/Editor.vue @@ -5,6 +5,9 @@