Skip to content

Commit 8cb31b2

Browse files
committed
fix: update demos and bump dependencies
1 parent 0e2495c commit 8cb31b2

File tree

3 files changed

+30
-37
lines changed

3 files changed

+30
-37
lines changed

docs/index.html

+22-24
Original file line numberDiff line numberDiff line change
@@ -231,30 +231,28 @@ <h2 class="padding:5px_0px">Demo</h2>
231231
</span>
232232
</div>
233233
<div class="position:sticky top:0 padding:15px_0px height:100vh">
234-
<!-- SandBox -->
235-
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
236-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
237-
<a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
238-
<a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
239-
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
240-
</div>
241-
<div class="svRow">
242-
243-
<div class="svColumn">
244-
245-
<div class="svPanel" id="view">
246-
<textarea collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% border:none resize:none padding:5px"></textarea>
247-
</div>
248-
<div class="svSplitter svHorizontal"> </div>
249-
250-
<div class="svPanel">
251-
<iframe get-value="#demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
252-
</div>
253-
254-
</div>
255-
</div>
256-
</div>
257-
<!-- End SandBox -->
234+
<!-- SandBox -->
235+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
236+
237+
<div id="demo-code" resizable class="position:relative height:50%">
238+
<textarea type="code" lang="html" collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
239+
<div resize="bottom" class="background:lightgrey"></div>
240+
</div>
241+
242+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
243+
<div get-value="#demo" class="padding:20px"></div>
244+
</div>
245+
246+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
247+
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="far fa-eye"></i></a>
248+
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="fas fa-eye-slash"></i></a>
249+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
250+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
251+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
252+
</div>
253+
254+
</div>
255+
<!-- End SandBox -->
258256
</div>
259257
</div>
260258
</div>

package.json

+8-12
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,11 +56,11 @@
6056
"webpack-log": "^3.0.1"
6157
},
6258
"dependencies": {
63-
"@cocreate/actions": "^1.5.39",
64-
"@cocreate/api": "^1.5.26",
65-
"@cocreate/docs": "^1.4.21",
66-
"@cocreate/element-prototype": "^1.2.7",
67-
"@cocreate/observer": "^1.5.43",
68-
"@cocreate/utils": "^1.17.1"
59+
"@cocreate/actions": "^1.5.40",
60+
"@cocreate/api": "^1.5.27",
61+
"@cocreate/docs": "^1.4.22",
62+
"@cocreate/element-prototype": "^1.2.8",
63+
"@cocreate/observer": "^1.5.44",
64+
"@cocreate/utils": "^1.17.2"
6965
}
7066
}

webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
libraryExport: "default",
1616
library: ["CoCreate", "render"],
1717
globalObject: "this",
18-
// publicPath: 'https://server.cocreate.app/CoCreateJS/dist/'
1918
},
2019

2120
plugins: [

0 commit comments

Comments
 (0)