Skip to content

Commit 5d01ba8

Browse files
committed
fix: update demos and bump dependencies
1 parent 0825c10 commit 5d01ba8

File tree

7 files changed

+54
-135
lines changed

7 files changed

+54
-135
lines changed

demo/atomic-css.html

Lines changed: 23 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -721,70 +721,40 @@ <h3 class="border-bottom:1px_solid_lightgrey margin-top:15px padding:5px">cursor
721721

722722
<div class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
723723

724-
<!-- SandBox -->
725724
<div id="css-parser-demo" class="border-bottom:1px_solid_lightgrey">
726725
<span class="display:flex align-items:center" hover="display:block!important" hover-target='[href="#css-parser-demo"]'>
727726
<h2 class="padding:5px_0px">Demo</h2>
728727
<a class="margin-left:10px display:none" href="#css-parser-demo"><i class="fas fa-link"></i></a>
729728
</span>
730729
</div>
731730
<div class="position:sticky top:0 padding:15px_0px height:100vh">
732-
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100% box-shadow-300" id="form-sandbox">
733-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
734-
<a class="margin-right:10px" id="preview" show="preview" hide="code"><i class="far fa-eye"></i></a>
735-
<a class="margin-right:10px" id="code" show="code" hide="preview" hidden><i class="fas fa-code"></i></a>
736-
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
737-
<a target="modal" href="module_activity_datatable.html"
738-
pass-collection="modules"
739-
pass-document_id=""
740-
pass-filter-value=""
741-
pass-prefix=""
742-
pass_to="render"
743-
modal-width="600px"
744-
modal-height="400px"
745-
modal-color="#229954"
746-
modal-header="false"
747-
class="margin-right:10px">
748-
<i class="fas fa-external-link-alt"></i>
749-
</a>
750-
<a class="fs-toggle margin-right:5px" target="#playground-1"><i class="fas fa-expand"></i></a>
751-
</div>
752-
753-
<div class="svRow">
754-
755-
<div class="svColumn">
756-
757-
<div class="svPanel">
758-
<div realtime="false"
759-
collection="modules"
760-
document_id="5eefe30952c6e94c75fb5e3f"
761-
name="html"
762-
id="7"
763-
class="codemirror min-width:300px">
764-
</div>
765-
</div>
766-
<div class="svSplitter svHorizontal"> </div>
767-
768-
<div class="svPanel">
769-
<iframe get-value="#7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
770-
</div>
771-
772-
</div>
773-
</div>
774-
</div>
775-
<!-- End SandBox -->
731+
<!-- SandBox -->
732+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
733+
734+
<div id="demo-code" resizable class="position:relative height:50%">
735+
<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>
736+
<div resize="bottom" class="background:lightgrey"></div>
737+
</div>
738+
739+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
740+
<div get-value="#demo" class="padding:20px"></div>
741+
</div>
742+
743+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
744+
<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>
745+
<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>
746+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
747+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
748+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
749+
</div>
750+
751+
</div>
752+
<!-- End SandBox -->
776753
</div>
777754
</div>
778755
</div>
779756
</div>
780-
781-
<script>
782-
var CoCreateConfig = {
783-
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
784-
organization_id: '5ff747727005da1c272740ab'
785-
}
786-
</script>
787-
757+
788758
<!--CoCreateJS-->
789759
<!--<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>-->
790760

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/css-parser/latest/CoCreate-css-parser.min.js"></script>-->
2417
<script src="../../../CoCreateJS/dist/CoCreate.js"></script>

demo/test.1.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
1111

1212
<!-- CoCreate CSS -->
13-
<link rel="stylesheet" href="https://server.cocreate.app/CoCreateJS/dist/CoCreate.css" type="text/css" />
13+
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
1414
<!--<link rel="stylesheet" href="https://ws.cocreate.app/docs/index.css" type="text/css" save="true" collection="files" document_id="60888216117c640e7596303f" name="src" />-->
1515
<link rel="stylesheet" href="../src/index.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" parse="true" save="true" />
1616
</head>
@@ -29,18 +29,9 @@ <h1 class="color:white@dark color:yellow@light">hello how are you</h1>
2929
<a toggle="dark, light" toggle-target="[theme]" toggle-attribute="theme">Toggle Darkmode</a>
3030
</div>
3131

32-
<script>
33-
var CoCreateConfig = {
34-
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
35-
organization_id: '5ff747727005da1c272740ab',
36-
host: 'wss://ws.cocreate.app'
37-
}
3832
</script>
3933
<!--CoCreateJS-->
40-
<script src="https://server.cocreate.app/CoCreateJS/dist/CoCreate.js"></script>
41-
<!--<script src="../dist/CoCreateCSS.js"></script>-->
42-
<!--<script src="../src/save.js"></script>-->
43-
<!--<script src="https://cdn.cocreate.app/toggle/latest/CoCreate-toggle.min.js"></script>-->
34+
<script src="https://cdn.cocreate.app/1.34.3/CoCreate.min.js"></script>
4435
</body>
4536

4637
</html>

demo/test.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
<link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
1111

1212
<!-- CoCreate CSS -->
13-
<link rel="stylesheet" href="https://server.cocreate.app/CoCreateJS/dist/CoCreate.css" type="text/css" />
14-
<!--<link rel="stylesheet" href="../src/test.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" parse="true" save="true" />-->
13+
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
1514
<link rel="stylesheet" href="../test.css" collection="files" document_id="60888216117c640e7596303f" name="src" type="text/css" parse="true" save="true" />
1615
</head>
1716
<style type="text/css" media="screen">
@@ -235,18 +234,9 @@ <h1 class="text-align:center">SPREAD THE WORD!</h1>
235234
</div>
236235
</footer>
237236

238-
<script>
239-
var CoCreateConfig = {
240-
apiKey: '',
241-
organization_id: '5ff747727005da1c272740ab',
242-
host: 'server.cocreate.app'
243-
}
244-
</script>
245237
<!--CoCreateJS-->
246238
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
247-
<!-- <script src="../../CoCreateJS/dist/CoCreate.js"></script> -->
248-
<!--<script src="../src/save.js"></script>-->
249-
<!--<script src="https://cdn.cocreate.app/toggle/latest/CoCreate-toggle.min.js"></script>-->
239+
250240
</body>
251241

252242
</html>

docs/index.html

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -738,50 +738,28 @@ <h2 class="padding:5px_0px">Demo</h2>
738738
</span>
739739
</div>
740740
<div class="position:sticky top:0 padding:15px_0px height:100vh">
741-
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100% box-shadow-300" id="form-sandbox">
742-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
743-
<a class="margin-right:10px" id="preview" show="preview" hide="code"><i class="far fa-eye"></i></a>
744-
<a class="margin-right:10px" id="code" show="code" hide="preview" hidden><i class="fas fa-code"></i></a>
745-
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
746-
<a target="modal" href="module_activity_datatable.html"
747-
pass-collection="modules"
748-
pass-document_id=""
749-
pass-filter-value=""
750-
pass-prefix=""
751-
pass_to="render"
752-
modal-width="600px"
753-
modal-height="400px"
754-
modal-color="#229954"
755-
modal-header="false"
756-
class="margin-right:10px">
757-
<i class="fas fa-external-link-alt"></i>
758-
</a>
759-
<a class="margin-right:5px" fullscreen target="#playground-1"><i class="fas fa-expand"></i></a>
760-
</div>
761-
762-
<div class="svRow">
763-
764-
<div class="svColumn">
765-
766-
<div class="svPanel">
767-
<div realtime="false"
768-
collection="modules"
769-
document_id="5eefe30952c6e94c75fb5e3f"
770-
name="html"
771-
id="7"
772-
class="codemirror min-width:300px">
773-
</div>
774-
</div>
775-
<div class="svSplitter svHorizontal"> </div>
776-
777-
<div class="svPanel">
778-
<iframe get-value="#7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
779-
</div>
780-
781-
</div>
782-
</div>
783-
</div>
784-
<!-- End SandBox -->
741+
<!-- SandBox -->
742+
<div class="position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px" id="playground">
743+
744+
<div id="demo-code" resizable class="position:relative height:50%">
745+
<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>
746+
<div resize="bottom" class="background:lightgrey"></div>
747+
</div>
748+
749+
<div id="demo-preview" class="position:relative display:flex height:100% background-color:white">
750+
<div get-value="#demo" class="padding:20px"></div>
751+
</div>
752+
753+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
754+
<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>
755+
<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>
756+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
757+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
758+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
759+
</div>
760+
761+
</div>
762+
<!-- End SandBox -->
785763
</div>
786764
</div>
787765
</div>

package.json

Lines changed: 5 additions & 7 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/crud-client": "^1.16.18",
64-
"@cocreate/docs": "^1.4.21",
65-
"@cocreate/hosting": "^1.6.22",
66-
"@cocreate/observer": "^1.5.43"
61+
"@cocreate/crud-client": "^1.16.19",
62+
"@cocreate/docs": "^1.4.22",
63+
"@cocreate/hosting": "^1.6.23",
64+
"@cocreate/observer": "^1.5.44"
6765
}
6866
}

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

2120
plugins: [

0 commit comments

Comments
 (0)