Skip to content

Commit

Permalink
feat: remove label and update badgen
Browse files Browse the repository at this point in the history
移除 label 标注,更新项目徽章
  • Loading branch information
yanglbme committed Dec 25, 2019
1 parent b5d11db commit f193b16
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div align="center">

[![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)

</div>

Expand Down
3 changes: 2 additions & 1 deletion assets/scripts/default-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Google 拥有专门设计的系统,可以自动捕获不适当的预测结果
欢迎关注我的公众号“**Doocs开源社区**”,原创技术文章第一时间推送。
<center>
<img src="https://imgkr.cn-bj.ufileos.com/1092dc45-e817-4bb0-82b0-2b2b4826ccf2.gif" style="width: 100px;"></center>
<img src="https://imgkr.cn-bj.ufileos.com/1092dc45-e817-4bb0-82b0-2b2b4826ccf2.gif" style="width: 100px;">
</center>
`
3 changes: 0 additions & 3 deletions assets/scripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ let app = new Vue({
},
mounted() {
this.showBox = false

this.editor = CodeMirror.fromTextArea(
document.getElementById('editor'),
{
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 3 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<i class="el-icon-refresh" size="medium" @click="reset">&nbsp;</i>
</el-tooltip>
<el-form size="mini" class="ctrl" :inline=true>
<el-form-item label="字体">
<el-form-item>
<el-select v-model="currentFont" size="mini" placeholder="选择字体" clearable @change="fontChanged">
<el-option v-for="font in builtinFonts" :style="{fontFamily: font.value}" :key="font.value"
:label="font.label" :value="font.value">
Expand All @@ -68,15 +68,15 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="字号">
<el-form-item>
<el-select v-model="currentSize" size="mini" placeholder="选择段落字号" clearable @change="sizeChanged">
<el-option v-for="size in sizeOption" :key="size.value" :label="size.label" :value="size.value">
<span class="select-item-left">{{ size.label }}</span>
<span class="select-item-right">{{ size.desc }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="颜色">
<el-form-item>
<el-select v-model="currentColor" size="mini" placeholder="选择颜色" clearable @change="colorChanged">
<el-option v-for="color in colorOption" :key="color.value" :label="color.label" :value="color.value">
<span class="select-item-left">{{ color.label }}</span>
Expand Down Expand Up @@ -170,5 +170,4 @@ <h3>一款高度简洁的微信 Markdown 编辑器</h3>
<script src="assets/scripts/loading.js"></script>

</body>

</html>

0 comments on commit f193b16

Please sign in to comment.