Skip to content

Commit 29dfab3

Browse files
committed
fix: update demos and bump dependencies
1 parent 808a4ff commit 29dfab3

File tree

3 files changed

+29
-34
lines changed

3 files changed

+29
-34
lines changed

docs/index.html

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

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"html5-framework",
2222
"javascript-framework"
2323
],
24-
"publishConfig": {
25-
"access": "public"
26-
},
24+
"publishConfig": { "access": "public" },
2725
"scripts": {
2826
"start": "npx webpack --config webpack.config.js",
2927
"build": "NODE_ENV=production npx webpack --config webpack.config.js",
@@ -61,11 +59,11 @@
6159
"webpack-log": "^3.0.1"
6260
},
6361
"dependencies": {
64-
"@cocreate/crud-client": "^1.16.18",
65-
"@cocreate/docs": "^1.4.21",
66-
"@cocreate/element-prototype": "^1.2.7",
67-
"@cocreate/floating-label": "^1.4.50",
68-
"@cocreate/hosting": "^1.6.22",
69-
"@cocreate/observer": "^1.5.43"
62+
"@cocreate/crud-client": "^1.16.19",
63+
"@cocreate/docs": "^1.4.22",
64+
"@cocreate/element-prototype": "^1.2.8",
65+
"@cocreate/floating-label": "^1.4.51",
66+
"@cocreate/hosting": "^1.6.23",
67+
"@cocreate/observer": "^1.5.44"
7068
}
7169
}

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", "calculation"],
1717
globalObject: "this",
18-
// publicPath: 'https://server.cocreate.app/CoCreateJS/dist/'
1918
},
2019

2120
plugins: [

0 commit comments

Comments
 (0)