Skip to content

Commit 1a1750d

Browse files
authored
Merge pull request #71 from uicrooks/dev
v2.6.0
2 parents ff40468 + 7473b9e commit 1a1750d

File tree

4 files changed

+49
-36
lines changed

4 files changed

+49
-36
lines changed

package-lock.json

Lines changed: 24 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "shopify-theme-lab",
33
"description": "Customizable modular development environment for blazing-fast Shopify theme creation",
44
"author": "Sergej Samsonenko <contact@sergej.codes>",
5-
"version": "2.5.3",
5+
"version": "2.6.0",
66
"license": "MIT",
77
"config": {
88
"reloader": {
@@ -45,13 +45,13 @@
4545
"babel-loader": "^8.2.2",
4646
"clean-webpack-plugin": "^3.0.0",
4747
"cross-env": "^7.0.3",
48-
"css-loader": "^5.2.1",
48+
"css-loader": "^5.2.4",
4949
"css-minimizer-webpack-plugin": "^2.0.0",
5050
"eslint": "^7.24.0",
5151
"eslint-plugin-vue": "^7.9.0",
52-
"eslint-webpack-plugin": "^2.5.3",
52+
"eslint-webpack-plugin": "^2.5.4",
5353
"file-loader": "^6.2.0",
54-
"mini-css-extract-plugin": "^1.4.1",
54+
"mini-css-extract-plugin": "^1.5.0",
5555
"npm-run-all": "^4.1.5",
5656
"postcss": "^8.2.10",
5757
"postcss-import": "^14.0.1",
@@ -66,7 +66,7 @@
6666
"url-loader": "^4.1.1",
6767
"vue-loader": "^15.9.6",
6868
"vue-template-compiler": "^2.6.12",
69-
"webpack": "^5.31.2",
69+
"webpack": "^5.34.0",
7070
"webpack-cli": "^4.6.0",
7171
"webpack-merge": "^5.7.3"
7272
}

shopify/sections/dynamic-section.liquid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{% schema %}
1212
{
1313
"name": "Dynamic section",
14-
"settings": [
14+
"settings": [
1515
{
1616
"type": "paragraph",
1717
"content": "Add custom settings for this section. [Learn more](https://shopify.dev/docs/themes/settings)"

src/main.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,23 @@ Vue.prototype.$axios = axios
8686
new Vue({
8787
el: '#app',
8888
store
89+
})
90+
91+
/**
92+
* fix: properly render vue components inside sections on user insert in the theme editor
93+
* add the 'vue' keyword to the section's wrapper classes e.g.:
94+
* {% schema %}
95+
* {
96+
* "class": "shopify-section-vue"
97+
* }
98+
* {% endschema %}
99+
*/
100+
// eslint-disable-next-line
101+
Shopify.designMode && document.addEventListener('shopify:section:load', (event) => {
102+
if (event.target.classList.value.includes('vue')) {
103+
new Vue({
104+
el: event.target,
105+
store
106+
})
107+
}
89108
})

0 commit comments

Comments
 (0)