Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/2007-remove-markdown #2024

Merged
merged 6 commits into from
Nov 26, 2018
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions core/build/webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 1 addition & 10 deletions src/themes/default/components/core/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
</i>
<slot name="header"/>
</header>
<div class="modal-content pt30 pb60 px65" v-if="$slots.content || staticData">
<div class="modal-content pt30 pb60 px65" v-if="$slots.content">
<slot name="content"/>
<static-content :file="staticData" v-if="staticData"/>
</div>
<slot/>
</div>
Expand All @@ -33,7 +32,6 @@
</template>

<script>
import StaticContent from 'theme/components/theme/StaticContent'
import { mapMutations } from 'vuex'
import onEscapePress from '@vue-storefront/core/mixins/onEscapePress'

Expand All @@ -44,9 +42,6 @@ export default {
isVisible: false
}
},
components: {
StaticContent
},
methods: {
onHide (name, state, params) {
return name === this.name ? this.toggle(false) : false
Expand Down Expand Up @@ -95,10 +90,6 @@ export default {
type: Number,
default: 300
},
staticData: {
type: String,
default: ''
},
width: {
type: Number,
default: 0
Expand Down
36 changes: 0 additions & 36 deletions src/themes/default/components/theme/StaticContent.vue

This file was deleted.

22 changes: 22 additions & 0 deletions src/themes/default/components/theme/blocks/Static/Example.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<div>
<p>
This website ("website") is operated by Luma Inc., which includes Luma stores, and Luma Private Sales. This privacy policy only covers information collected at this website, and does not cover any information collected offline by Luma. All Luma websites are covered by this privacy policy.
</p>
<h2>
Luma Security
</h2>
<p>
Personal information provided on the website and online credit card transactions are transmitted through a secure server. We are committed to handling your personal information with high standards of information security. We take appropriate physical, electronic, and administrative steps to maintain the security and accuracy of personally identifiable information we collect, including limiting the number of people who have physical access to our database servers, as well as employing electronic security systems and password protections that guard against unauthorized access.
</p>
<h2>
Luma Privacy Policy
</h2>
<p>
To help us achieve our goal of providing the highest quality products and services, we use information from our interactions with you and other customers, as well as from other parties. Because we respect your privacy, we have implemented procedures to ensure that your personal information is handled in a safe, secure, and responsible manner. We have posted this privacy policy in order to explain our information collection practices and the choices you have about the way information is collected and used.
</p>
<p>
As we continue to develop the Luma website and take advantage of advances in technology to improve the services we offer, this privacy policy likely will change. We therefore encourage you to refer to this policy on an ongoing basis so that you understand our current privacy policy.
</p>
</div>
</template>
35 changes: 22 additions & 13 deletions src/themes/default/pages/Static.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
<nav class="static-menu serif h4 mb35">
<ul class="m0 p0">
<li class="mb10" v-for="page in navigation" :key="page.id">
<router-link :to="localizedRoute(page.link)" class="cl-accent relative">{{ page.title }}</router-link>
<router-link :to="localizedRoute(page.link)" @click.native="setContent(page.component)" class="cl-accent relative">{{ page.title }}</router-link>
</li>
</ul>
</nav>
</div>
<div class="static-content h4 lh35 col-sm-9">
<static-content :file="$props.page"/>
<component :is="activeComponent" />
</div>
</div>
</div>
Expand All @@ -29,19 +29,21 @@
<script>
import i18n from '@vue-storefront/i18n'
import Breadcrumbs from 'theme/components/core/Breadcrumbs'
import StaticContent from 'theme/components/theme/StaticContent'
import StaticExample from 'theme/components/theme/blocks/Static/Example'

export default {
components: {
Breadcrumbs,
StaticContent
Breadcrumbs
},
metaInfo () {
return {
title: this.$route.meta.title || this.$props.title,
meta: this.$route.meta.description ? [{vmid: 'description', description: this.$route.meta.description}] : []
}
},
created () {
this.activeComponent = this.navigation.find(nav => nav.link === this.$route.path).component
},
props: {
title: {
type: String,
Expand All @@ -52,17 +54,24 @@ export default {
required: true
}
},
methods: {
setContent (component) {
this.activeComponent = component
}
},
data () {
return {
navigation: [
{ title: i18n.t('About us'), link: '/about-us' },
{ title: i18n.t('Customer service'), link: '/customer-service' },
{ title: i18n.t('Store locator'), link: '/store-locator' },
{ title: i18n.t('Delivery'), link: '/delivery' },
{ title: i18n.t('Return policy'), link: '/returns' },
{ title: i18n.t('Privacy policy'), link: '/privacy' },
{ title: i18n.t('Contact us'), link: '/contact' }
]
{ title: i18n.t('About us'), link: '/about-us', component: StaticExample },
{ title: i18n.t('Customer service'), link: '/customer-service', component: StaticExample },
{ title: i18n.t('Store locator'), link: '/store-locator', component: StaticExample },
{ title: i18n.t('Delivery'), link: '/delivery', component: StaticExample },
{ title: i18n.t('Return policy'), link: '/returns', component: StaticExample },
{ title: i18n.t('Privacy policy'), link: '/privacy', component: StaticExample },
{ title: i18n.t('Size guide'), link: '/size-guide', component: StaticExample },
{ title: i18n.t('Contact us'), link: '/contact', component: StaticExample }
],
activeComponent: null
}
}
}
Expand Down
13 changes: 0 additions & 13 deletions src/themes/default/resource/about.md

This file was deleted.

4 changes: 0 additions & 4 deletions src/themes/default/resource/contact.md

This file was deleted.

11 changes: 0 additions & 11 deletions src/themes/default/resource/lorem.md

This file was deleted.

11 changes: 0 additions & 11 deletions src/themes/default/resource/terms.md

This file was deleted.