Skip to content

Commit 4426596

Browse files
committed
fix: update demos and bump dependencies
1 parent 03c2116 commit 4426596

File tree

3 files changed

+27
-32
lines changed

3 files changed

+27
-32
lines changed

docs/index.html

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -106,30 +106,28 @@ <h2 class="padding:5px_0px">Demo</h2>
106106
</span>
107107
</div>
108108
<div class="position:sticky top:0 padding:15px_0px height:100vh">
109-
<!-- SandBox -->
110-
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
111-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
112-
<a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
113-
<a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
114-
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
115-
</div>
116-
<div class="svRow">
117-
118-
<div class="svColumn">
119-
120-
<div class="svPanel" id="view">
121-
<textarea collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% border:none resize:none padding:5px"></textarea>
122-
</div>
123-
<div class="svSplitter svHorizontal"> </div>
124-
125-
<div class="svPanel">
126-
<iframe get-value="#demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
127-
</div>
128-
129-
</div>
130-
</div>
131-
</div>
132-
<!-- End SandBox -->
109+
<!-- SandBox -->
110+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
111+
112+
<div id="demo-code" resizable class="position:relative height:50%">
113+
<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>
114+
<div resize="bottom" class="background:lightgrey"></div>
115+
</div>
116+
117+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
118+
<div get-value="#demo" class="padding:20px"></div>
119+
</div>
120+
121+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
122+
<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>
123+
<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>
124+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
125+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
126+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
127+
</div>
128+
129+
</div>
130+
<!-- End SandBox -->
133131
</div>
134132
</div>
135133

package.json

Lines changed: 5 additions & 7 deletions
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",
@@ -60,9 +58,9 @@
6058
"webpack-log": "^3.0.1"
6159
},
6260
"dependencies": {
63-
"@cocreate/actions": "^1.5.39",
64-
"@cocreate/docs": "^1.4.21",
65-
"@cocreate/observer": "^1.5.43",
66-
"@cocreate/utils": "^1.17.1"
61+
"@cocreate/actions": "^1.5.40",
62+
"@cocreate/docs": "^1.4.22",
63+
"@cocreate/observer": "^1.5.44",
64+
"@cocreate/utils": "^1.17.2"
6765
}
6866
}

webpack.config.js

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

2120
plugins: [

0 commit comments

Comments
 (0)