From f193b164e2379a0f2fb8039a36d9b9e71c4c650d Mon Sep 17 00:00:00 2001 From: yanglbme Date: Wed, 25 Dec 2019 22:41:41 +0800 Subject: [PATCH] feat: remove label and update badgen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 label 标注,更新项目徽章 --- README.md | 2 +- assets/scripts/default-content.js | 3 ++- assets/scripts/editor.js | 3 --- index.html | 7 +++---- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 006d5ef..4370cc7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@
-[![github](https://badgen.net/badge/⭐/GitHub/cyan)](https://github.com/doocs/md) [![gitee](https://badgen.net/badge/⭐/Gitee/cyan)](https://gitee.com/doocs/md) [![PRs Welcome](https://badgen.net/badge/PRs/welcome/green)](http://makeapullrequest.com) [![license](https://badgen.net/github/license/doocs/md)](./LICENSE) [![release](https://img.shields.io/github/v/release/doocs/md.svg)](https://github.com/doocs/md/releases) +[![github](https://badgen.net/badge/⭐/GitHub/cyan)](https://github.com/doocs/md) [![gitee](https://badgen.net/badge/⭐/Gitee/cyan)](https://gitee.com/doocs/md) [![PRs Welcome](https://badgen.net/badge/PRs/welcome/green)](../../pulls) [![license](https://badgen.net/github/license/doocs/md)](./LICENSE) [![release](https://img.shields.io/github/v/release/doocs/md.svg)](../../releases)
diff --git a/assets/scripts/default-content.js b/assets/scripts/default-content.js index 259e1bf..836cbb2 100644 --- a/assets/scripts/default-content.js +++ b/assets/scripts/default-content.js @@ -93,6 +93,7 @@ Google 拥有专门设计的系统,可以自动捕获不适当的预测结果 欢迎关注我的公众号“**Doocs开源社区**”,原创技术文章第一时间推送。
-
+ + ` \ No newline at end of file diff --git a/assets/scripts/editor.js b/assets/scripts/editor.js index 75ad98c..a74d546 100644 --- a/assets/scripts/editor.js +++ b/assets/scripts/editor.js @@ -32,7 +32,6 @@ let app = new Vue({ }, mounted() { this.showBox = false - this.editor = CodeMirror.fromTextArea( document.getElementById('editor'), { @@ -106,7 +105,6 @@ let app = new Vue({ // 如果有编辑器内容被保存则读取,否则加载默认内容 this.loadLocalStorage(this.editor, '__editor_content', DEFAULT_CONTENT); this.loadLocalStorage(this.cssEditor, '__css_content', DEFAULT_CSS_CONTENT); - }, methods: { renderWeChat(source) { @@ -222,7 +220,6 @@ let app = new Vue({ downLink.style.display = 'none'; let blob = new Blob([this.editor.getValue(0)]); downLink.href = URL.createObjectURL(blob); - console.log(downLink); document.body.appendChild(downLink); downLink.click(); document.body.removeChild(downLink); diff --git a/index.html b/index.html index 9005b84..c6af74a 100644 --- a/index.html +++ b/index.html @@ -59,7 +59,7 @@   - + @@ -68,7 +68,7 @@ - + {{ size.label }} @@ -76,7 +76,7 @@ - + {{ color.label }} @@ -170,5 +170,4 @@ - \ No newline at end of file