Skip to content

Commit 6a2c332

Browse files
committed
fix: update demos and bump dependencies
1 parent 07a5fab commit 6a2c332

File tree

4 files changed

+25
-41
lines changed

4 files changed

+25
-41
lines changed

demo/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ <h3 style="text-align:center;">Parallax Demo</h3>
7272
<div resize="right"></div>
7373
</div>
7474

75-
<script>
76-
var CoCreateConfig = {
77-
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
78-
organization_id: '5ff747727005da1c272740ab',
79-
host: 'ws.cocreate.app'
80-
}
81-
</script>
8275

8376
<!--<script src="../dist/CoCreate-parallax.js"></script>-->
8477
<script src="../../../CoCreateJS/dist/CoCreate.js" ></script>

docs/index.html

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

package.json

Lines changed: 3 additions & 9 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",
@@ -36,9 +34,7 @@
3634
},
3735
"author": "CoCreate LLC",
3836
"license": "MIT",
39-
"bugs": {
40-
"url": "https://github.com/CoCreate-app/CoCreate-parallax/issues"
41-
},
37+
"bugs": { "url": "https://github.com/CoCreate-app/CoCreate-parallax/issues" },
4238
"homepage": "https://cocreate.app/docs/parallax",
4339
"funding": {
4440
"type": "GitHub Sponsors ❤",
@@ -59,7 +55,5 @@
5955
"webpack-cli": "^4.5.0",
6056
"webpack-log": "^3.0.1"
6157
},
62-
"dependencies": {
63-
"@cocreate/docs": "^1.4.21"
64-
}
58+
"dependencies": { "@cocreate/docs": "^1.4.22" }
6559
}

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

2120
plugins: [

0 commit comments

Comments
 (0)