Skip to content

Commit 36522e3

Browse files
committed
fix: update demos and bump dependencies
1 parent a53e86e commit 36522e3

File tree

4 files changed

+26
-38
lines changed

4 files changed

+26
-38
lines changed

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: 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",
@@ -57,7 +55,5 @@
5755
"webpack-cli": "^4.5.0",
5856
"webpack-log": "^3.0.1"
5957
},
60-
"dependencies": {
61-
"@cocreate/docs": "^1.4.21"
62-
}
58+
"dependencies": { "@cocreate/docs": "^1.4.22" }
6359
}

src/dashboard.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,12 @@ <h2>$500</h2>
164164
<script>
165165
var CoCreateConfig = {
166166
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
167-
organization_id: '5ff747727005da1c272740ab'
167+
organization_id: '5ff747727005da1c272740ab'
168168
}
169169
</script>
170170

171171
<!-- CoCreateJS -->
172-
<script src="https://server.cocreate.app/CoCreateJS/dist/CoCreate.js" ></script>
173-
<!-- CoCreate Isotope -->
174-
<script src="https://server.cocreate.app/CoCreate-plugins/CoCreate-isotope/src/CoCreate-isotope.js"></script>
175-
176-
<!-- CoCreate Interact -->
177-
<!--<script src="https://server.cocreate.app/CoCreate-plugins/CoCreate-interact/src/CoCreate-interact.js"></script>-->
172+
<script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js" ></script>
178173

179174
</body>
180175
</html>

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

2120
plugins: [

0 commit comments

Comments
 (0)