Skip to content

Commit 3ac197a

Browse files
committed
fix: update demos and bump dependencies
1 parent 2b64154 commit 3ac197a

File tree

3 files changed

+27
-62
lines changed

3 files changed

+27
-62
lines changed

demo/index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
<body>
1313

1414

15-
<script>
16-
var CoCreateConfig = {
17-
apiKey: '',
18-
organization_id: '',
19-
host: ''
20-
}
21-
</script>
2215

2316
<!--<script src="https://cdn.cocreate.app/server-side-render/latest/CoCreate-server-side-render.min.js"></script>-->
2417
<script src="../../../CoCreateJS/dist/CoCreate.js"></script>

docs/index.html

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -60,53 +60,28 @@ <h4><span>server-side-render</span> <span class="cocreate-badge success">string<
6060
</div>
6161

6262
<div class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
63-
<!-- SandBox -->
64-
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
65-
<div class="position:sticky top:0 padding:10px_0px height:100vh">
66-
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100%" id="sandbox">
67-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
68-
<a class="margin-right:10px" id="preview" show="preview" hide="code"><i class="far fa-eye"></i></a>
69-
<a class="margin-right:10px hidden" id="code" show="code" hide="preview"><i class="fas fa-code"></i></a>
70-
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
71-
<a target="modal" href="module_activity_datatable.html"
72-
pass-collection="modules"
73-
pass-document_id=""
74-
pass-filter-value=""
75-
pass-prefix=""
76-
pass-to="render"
77-
modal-width="600px"
78-
modal-height="400px"
79-
modal-color="#229954"
80-
modal-header="false"
81-
class="margin-right:10px">
82-
<i class="fas fa-external-link-alt"></i>
83-
</a>
84-
<a class="fs-toggle margin-right:5px" fullscreen target="#sandbox"><i class="fas fa-expand"></i></a>
85-
</div>
86-
87-
<div class="svRow">
88-
89-
<div class="svColumn">
90-
91-
<div class="svPanel">
92-
<div realtime="false"
93-
collection="modules"
94-
document_id="5eefe30952c6e94c75fb5e3f"
95-
name="html"
96-
id="7"
97-
class="codemirror height:100% min-width:300px">
98-
</div>
99-
</div>
100-
<div class="svSplitter svHorizontal"> </div>
101-
102-
<div class="svPanel">
103-
<iframe get-value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
104-
</div>
105-
106-
</div>
107-
</div>
108-
</div>
109-
<!-- End SandBox -->
63+
<!-- SandBox -->
64+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
65+
66+
<div id="demo-code" resizable class="position:relative height:50%">
67+
<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>
68+
<div resize="bottom" class="background:lightgrey"></div>
69+
</div>
70+
71+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
72+
<div get-value="#demo" class="padding:20px"></div>
73+
</div>
74+
75+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
76+
<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>
77+
<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>
78+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
79+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
80+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
81+
</div>
82+
83+
</div>
84+
<!-- End SandBox -->
11085
</div>
11186
</div>
11287

@@ -115,12 +90,11 @@ <h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
11590
<script>
11691
var CoCreateConfig = {
11792
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
118-
securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
11993
organization_id: '5ff747727005da1c272740ab'
12094
}
12195
</script>
12296

12397
<!--CoCreateJS-->
124-
<script src="https://server.cocreate.app/js/CoCreate.min.js"></script>
98+
<script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js"></script>
12599
</body>
126100
</html>

package.json

Lines changed: 4 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",
@@ -60,9 +58,9 @@
6058
"webpack-log": "^3.0.1"
6159
},
6260
"dependencies": {
63-
"@cocreate/docs": "^1.4.21",
64-
"@cocreate/hosting": "^1.6.22",
65-
"@cocreate/utils": "^1.17.1",
61+
"@cocreate/docs": "^1.4.22",
62+
"@cocreate/hosting": "^1.6.23",
63+
"@cocreate/utils": "^1.17.2",
6664
"node-html-parser": "^6.1.4"
6765
}
6866
}

0 commit comments

Comments
 (0)