From 9ca92d0fd5f10f5dcff271194ffbd9ce4e4f2897 Mon Sep 17 00:00:00 2001 From: Filip Rakowski Date: Mon, 26 Nov 2018 11:02:08 +0100 Subject: [PATCH 1/4] feature/2007-remove-markdown --- core/build/webpack.base.config.js | 12 ------- core/package.json | 1 - package.json | 1 - src/themes/default/components/core/Modal.vue | 11 +----- .../components/theme/StaticContent.vue | 36 ------------------- .../theme/blocks/Static/Example.vue | 22 ++++++++++++ src/themes/default/pages/Static.vue | 34 +++++++++++------- src/themes/default/resource/about.md | 13 ------- src/themes/default/resource/contact.md | 4 --- src/themes/default/resource/lorem.md | 11 ------ src/themes/default/resource/terms.md | 11 ------ 11 files changed, 44 insertions(+), 112 deletions(-) delete mode 100644 src/themes/default/components/theme/StaticContent.vue create mode 100644 src/themes/default/components/theme/blocks/Static/Example.vue delete mode 100644 src/themes/default/resource/about.md delete mode 100644 src/themes/default/resource/contact.md delete mode 100644 src/themes/default/resource/lorem.md delete mode 100644 src/themes/default/resource/terms.md diff --git a/core/build/webpack.base.config.js b/core/build/webpack.base.config.js index f38bfb1e50..6ff930742b 100644 --- a/core/build/webpack.base.config.js +++ b/core/build/webpack.base.config.js @@ -179,18 +179,6 @@ module.exports = { } ] }, - { - test: /\.md$/, - use: [ - 'vue-loader', - { - loader: 'markdown-to-vue-loader', - options: { - componentWrapper: 'div' - } - } - ] - }, { test: /\.(woff|woff2|eot|ttf)(\?.*$|$)/, loader: 'url-loader?importLoaders=1&limit=10000' diff --git a/core/package.json b/core/package.json index da07b518f3..0368a5fa77 100644 --- a/core/package.json +++ b/core/package.json @@ -63,7 +63,6 @@ "inquirer": "^3.3.0", "is-windows": "^1.0.1", "jsonfile": "^4.0.0", - "markdown-to-vue-loader": "^1.0.0", "memory-fs": "^0.4.1", "mkdirp": "^0.5.1", "node-sass": "^4.9.3", diff --git a/package.json b/package.json index c8b0de3b71..a2aceddb79 100755 --- a/package.json +++ b/package.json @@ -124,7 +124,6 @@ "karma-spec-reporter": "0.0.32", "karma-webpack": "^3.0.0", "lerna": "^2.9.0", - "markdown-to-vue-loader": "^1.0.0", "mkdirp": "^0.5.1", "mocha": "^5.2.0", "node-sass": "^4.9.3", diff --git a/src/themes/default/components/core/Modal.vue b/src/themes/default/components/core/Modal.vue index e88a4d5167..70e54633ad 100644 --- a/src/themes/default/components/core/Modal.vue +++ b/src/themes/default/components/core/Modal.vue @@ -20,9 +20,8 @@ - @@ -33,7 +32,6 @@ diff --git a/src/themes/default/components/theme/blocks/Static/Example.vue b/src/themes/default/components/theme/blocks/Static/Example.vue new file mode 100644 index 0000000000..4cfe566c7e --- /dev/null +++ b/src/themes/default/components/theme/blocks/Static/Example.vue @@ -0,0 +1,22 @@ + diff --git a/src/themes/default/pages/Static.vue b/src/themes/default/pages/Static.vue index e5bb81b8a2..5d32eb8669 100644 --- a/src/themes/default/pages/Static.vue +++ b/src/themes/default/pages/Static.vue @@ -13,13 +13,13 @@
- +
@@ -29,12 +29,11 @@