Skip to content

Commit 937f58f

Browse files
committed
fix: update demos and bump dependencies
1 parent 12ad916 commit 937f58f

File tree

4 files changed

+24
-38
lines changed

4 files changed

+24
-38
lines changed

demo/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,6 @@ <h3>Auto Hidden ScrollBar</h3>
8484
</div>
8585
</div>
8686

87-
<script>
88-
var CoCreateConfig = {
89-
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
90-
organization_id: '5ff747727005da1c272740ab',
91-
host: 'ws.cocreate.app'
92-
}
93-
</script>
9487

9588
<!--<script src="../dist/CoCreate-overlay-scroll.js"></script>-->
9689
<script src="../../../CoCreateJS/dist/CoCreate.js" ></script>

docs/index.html

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,30 +141,28 @@ <h2 class="padding:5px_0px">Demo</h2>
141141
</span>
142142
</div>
143143
<div class="position:sticky top:0 padding:15px_0px height:100vh">
144-
<!-- SandBox -->
145-
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
146-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
147-
<a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
148-
<a class="margin-right:10px" id="preview" show="#code, #view" hide="#preview" hidden><i class="fas fa-code"></i></a>
149-
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
150-
</div>
151-
<div class="svRow">
152-
153-
<div class="svColumn">
154-
155-
<div class="svPanel" id="view">
156-
<textarea collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% border:none resize:none padding:5px"></textarea>
157-
</div>
158-
<div class="svSplitter svHorizontal"> </div>
159-
160-
<div class="svPanel">
161-
<iframe get-value="#demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
162-
</div>
163-
164-
</div>
165-
</div>
166-
</div>
167-
<!-- End SandBox -->
144+
<!-- SandBox -->
145+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
146+
147+
<div id="demo-code" resizable class="position:relative height:50%">
148+
<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>
149+
<div resize="bottom" class="background:lightgrey"></div>
150+
</div>
151+
152+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
153+
<div get-value="#demo" class="padding:20px"></div>
154+
</div>
155+
156+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
157+
<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>
158+
<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>
159+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
160+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
161+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
162+
</div>
163+
164+
</div>
165+
<!-- End SandBox -->
168166
</div>
169167
</div>
170168
</div>

package.json

Lines changed: 2 additions & 6 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",
@@ -59,7 +57,5 @@
5957
"webpack-cli": "^4.5.0",
6058
"webpack-log": "^3.0.1"
6159
},
62-
"dependencies": {
63-
"@cocreate/docs": "^1.4.21"
64-
}
60+
"dependencies": { "@cocreate/docs": "^1.4.22" }
6561
}

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

2120
plugins: [

0 commit comments

Comments
 (0)