From ea60729c0a2f69a482b89d9c118789d227119f5a Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 21 Nov 2018 12:36:20 +0800 Subject: [PATCH 01/60] add sponsors --- README.md | 5 +++++ README.zh-CN.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index e2d9c034..d0ff7d74 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,11 @@ Understanding and learning this knowledge in advance will greatly help the use o

+## Sponsors +Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen) + +

Admin Dashboard Templates made with Vue, React and Angular.

+ ## Features ``` diff --git a/README.zh-CN.md b/README.zh-CN.md index 28fc0240..55882115 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -81,6 +81,11 @@

+## Sponsors +Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen) + +

Admin Dashboard Templates made with Vue, React and Angular.

+ ## 功能 ``` From c6843f9646451fda65256441ad4434068470e351 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 26 Nov 2018 17:53:06 +0800 Subject: [PATCH 02/60] update vue-router to fixed url path for non ascii urls #1362 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d795d163..36045c4d 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "vue": "2.5.17", "vue-count-to": "1.0.13", "vue-i18n": "7.3.2", - "vue-router": "3.0.1", + "vue-router": "3.0.2", "vue-splitpane": "1.0.2", "vuedraggable": "^2.16.0", "vuex": "3.0.1", From 54dc9ddfaaa765d8245bac1005fefa9feaa9e54b Mon Sep 17 00:00:00 2001 From: Heedong Im Date: Mon, 26 Nov 2018 19:17:06 +0900 Subject: [PATCH 03/60] fix[Pagination]: apply PageSizes property to el-pagination (#1355) Apply PageSizes property to el-pagination --- src/components/Pagination/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 9698232b..8d104e84 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -5,6 +5,7 @@ :current-page.sync="currentPage" :page-size.sync="pageSize" :layout="layout" + :page-sizes="pageSizes" :total="total" v-bind="$attrs" @size-change="handleSizeChange" From b37a789f636004c23b55ce92aaa51bc21e1f9be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Wed, 28 Nov 2018 11:05:41 +0800 Subject: [PATCH 04/60] add tui.editor (#1374) --- package.json | 3 +- .../MarkdownEditor/defaultOptions.js | 31 ++++ src/components/MarkdownEditor/index.vue | 171 +++++++++--------- src/views/components-demo/markdown.vue | 63 +++++-- 4 files changed, 166 insertions(+), 102 deletions(-) create mode 100644 src/components/MarkdownEditor/defaultOptions.js diff --git a/package.json b/package.json index 36045c4d..e02be220 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,6 @@ "echarts": "4.1.0", "element-ui": "2.4.6", "file-saver": "1.3.8", - "font-awesome": "4.7.0", "js-cookie": "2.2.0", "jsonlint": "1.6.3", "jszip": "3.1.5", @@ -52,8 +51,8 @@ "nprogress": "0.2.0", "screenfull": "3.3.3", "showdown": "1.8.6", - "simplemde": "1.11.2", "sortablejs": "1.7.0", + "tui-editor": "1.2.7", "vue": "2.5.17", "vue-count-to": "1.0.13", "vue-i18n": "7.3.2", diff --git a/src/components/MarkdownEditor/defaultOptions.js b/src/components/MarkdownEditor/defaultOptions.js new file mode 100644 index 00000000..303aa13d --- /dev/null +++ b/src/components/MarkdownEditor/defaultOptions.js @@ -0,0 +1,31 @@ +// doc: https://nhnent.github.io/tui.editor/api/latest/ToastUIEditor.html#ToastUIEditor +export default { + minHeight: '200px', + previewStyle: 'vertical', + useCommandShortcut: true, + useDefaultHTMLSanitizer: true, + usageStatistics: false, + hideModeSwitch: false, + toolbarItems: [ + 'heading', + 'bold', + 'italic', + 'strike', + 'divider', + 'hr', + 'quote', + 'divider', + 'ul', + 'ol', + 'task', + 'indent', + 'outdent', + 'divider', + 'table', + 'image', + 'link', + 'divider', + 'code', + 'codeblock' + ] +} diff --git a/src/components/MarkdownEditor/index.vue b/src/components/MarkdownEditor/index.vue index 9847668a..4a6d8b0f 100644 --- a/src/components/MarkdownEditor/index.vue +++ b/src/components/MarkdownEditor/index.vue @@ -1,16 +1,18 @@