-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5645 from vuestorefront/docs-next
docs-next to next
- Loading branch information
Showing
28 changed files
with
2,212 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
packages/core/docs/.vuepress/components/IntegrationList.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<template> | ||
<div> | ||
<multiselect v-if="filterable" v-model="selected" deselect-label="Can't remove this value" track-by="name" label="name" placeholder="Select your eCommerce platform" :options="options" :searchable="false" :allow-empty="false"> | ||
<template slot="singleLabel" slot-scope="{ option }"> {{ option.name }}</template> | ||
</multiselect> | ||
<div class="list"> | ||
<slot /> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Multiselect from 'vue-multiselect' | ||
export default { | ||
props: ['filterable'], | ||
components: { | ||
Multiselect | ||
}, | ||
watch: { | ||
selected: function (val, oldVal) { | ||
this.filter() | ||
} | ||
}, | ||
methods: { | ||
filter () { | ||
this.$children | ||
.filter(component => component.$options._componentTag === 'IntegrationTile') | ||
.forEach(integration => { | ||
if (this.selected.value === 'all') { | ||
integration.isVisible = true; | ||
return; | ||
} | ||
// empty list means compatibility with everything | ||
if (integration.compatibility.length === 0) { | ||
integration.isVisible = true; | ||
return; | ||
} | ||
const isCompatible = integration.compatibility.some(platform => platform === this.selected.value) | ||
integration.isVisible = isCompatible | ||
}) | ||
} | ||
}, | ||
data () { | ||
return { | ||
selected: null, | ||
options: [ | ||
{ name: 'Show all integrations', value: 'all' }, | ||
{ name: 'Commercetools', value: 'commercetools' } | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style> | ||
|
||
<style scoped> | ||
.list { | ||
display: flex; | ||
justify-content: space-between; | ||
align-content: space-evenly; | ||
flex-wrap: wrap; | ||
} | ||
.multiselect { | ||
margin-bottom: 20px; | ||
} | ||
</style> |
91 changes: 91 additions & 0 deletions
91
packages/core/docs/.vuepress/components/IntegrationTile.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<template> | ||
<component :is="link ? 'a' : 'div'" class="tile" v-show="isVisible" :class="{ wip: isWip }" :href="link"> | ||
<div class="image"> | ||
<img :src="image" /> | ||
<span class="badge info" v-if="isEnterprise">Enterprise</span> | ||
<span class="badge wip" v-if="isWip">Work in prorgess</span> | ||
<span class="badge beta" v-if="isBeta">Beta</span> | ||
</div> | ||
</component> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'IntegrationTile', | ||
props: [ | ||
'name', | ||
'link', | ||
'category', | ||
'image', | ||
'isWip', | ||
'isBeta', | ||
'isEnterprise', | ||
'compatibility' | ||
], | ||
data () { | ||
return { | ||
isVisible: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
|
||
<style scoped> | ||
.tile { | ||
display: inline-flex; | ||
width: 230px; | ||
height: 230px; | ||
flex-direction: row; | ||
position: relative; | ||
margin: 10px 0; | ||
} | ||
.tile.wip img { | ||
opacity: 0.5 | ||
} | ||
.image { | ||
width: 230px; | ||
height: 230px; | ||
justify-content: center; | ||
display: flex; | ||
align-items: center; | ||
box-shadow: 0 0 23px -16px rgba(0,0,0,0.6); | ||
padding: 20px; | ||
box-sizing: border-box; | ||
position: absolute; | ||
} | ||
.image:hover { | ||
box-shadow: 0 0 23px -16px rgba(0,0,0,1); | ||
transition: 0.3s box-shadow; | ||
} | ||
.badge { | ||
position: absolute; | ||
font-size: 14px; | ||
height: 18px; | ||
line-height: 18px; | ||
border-radius: 3px; | ||
padding: 0 6px; | ||
color: #fff; | ||
top: 8px; | ||
left:8px; | ||
} | ||
.badge.beta { | ||
background: orange; | ||
} | ||
.badge.wip { | ||
background: darkgray; | ||
} | ||
@media (max-width: 719px) { | ||
.tile { | ||
width: 50%; | ||
height: 150px; | ||
} | ||
.image { | ||
width: 150px; | ||
height: 150px; | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,23 @@ | ||
|
||
.site-name { | ||
display: none !important; | ||
} | ||
|
||
.badge { | ||
margin-top: 4px; | ||
} | ||
background-color: #22c34b; | ||
} | ||
|
||
.badge.info { | ||
background-color: #22c34b !important; | ||
} | ||
|
||
.multiselect__tag { | ||
background: #22c34b !important; | ||
} | ||
|
||
.custom-block.tip { | ||
border-color: #22c34b; | ||
background-color: #f0f7f2; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$accentColor = #22c34b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.