Skip to content

Commit e3bdccb

Browse files
committed
fix: update all @cocreate to use latest versions
1 parent 1f8626c commit e3bdccb

File tree

4 files changed

+9
-3227
lines changed

4 files changed

+9
-3227
lines changed

demo/index.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,9 @@ <h3 value="{{render2.collection}}"></h3>
2929
<h3 value="{{render2.data.personal_info.email}}"></h3>
3030
<div>*******************************************</div>
3131
</div>
32-
<div class="template card "
33-
data-render_array="render2.data.string_array" data-render_key="string_">
32+
<div class="template card" data-render_array="render2.data.string_array" data-render_key="string">
3433

35-
<h3 name="test"
36-
data-attribute="{{string_.--}}"
37-
class="{{string_.--}}"
38-
value="{{string_.--}}"></h3>
34+
<h3 name="test" data-attribute="{{string[]}}" class="{{string[]}}" value="{{string[]}}"></h3>
3935

4036
</div>
4137

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"html5-framework",
2121
"javascript-framework"
2222
],
23-
"publishConfig": {
24-
"access": "public"
25-
},
23+
"publishConfig": { "access": "public" },
2624
"scripts": {
2725
"start": "npx webpack --config webpack.config.js",
2826
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
@@ -36,9 +34,7 @@
3634
},
3735
"author": "CoCreate LLC",
3836
"license": "MIT",
39-
"bugs": {
40-
"url": "https://github.com/CoCreate-app/CoCreate-render/issues"
41-
},
37+
"bugs": { "url": "https://github.com/CoCreate-app/CoCreate-render/issues" },
4238
"homepage": "https://cocreate.app/docs/render",
4339
"funding": {
4440
"type": "GitHub Sponsors ❤",
@@ -60,7 +56,7 @@
6056
"webpack-log": "^3.0.1"
6157
},
6258
"dependencies": {
63-
"@cocreate/docs": "^1.0.3",
59+
"@cocreate/docs": "latest",
6460
"mini-css-extract-plugin": "^1.5.0"
6561
}
6662
}

src/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ const CoCreateRender = {
145145

146146
if(e.children.length > 0) {
147147
that.setValue(e.children, data)
148-
149-
if (e.classList.contains('template')) {
150-
that.setArray(e, data);
151-
}
152148
}
149+
if (e.classList.contains('template')) {
150+
that.setArray(e, data);
151+
}
152+
153153
});
154154
},
155155

0 commit comments

Comments
 (0)