Skip to content

Commit db83212

Browse files
committed
docs: add auto css parser and saver
1 parent 3ed6672 commit db83212

14 files changed

Lines changed: 3732 additions & 3958 deletions

CoCreate.config.js

Lines changed: 65 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,73 @@
11
module.exports = {
2-
config: {
3-
apiKey: "c2b08663-06e3-440c-ef6f-13978b42883a",
4-
securityKey: "f26baf68-e3a9-45fc-effe-502e47116265",
5-
organization_Id: "5de0387b12e200ea63204d6c",
6-
host: "server.cocreate.app:8088"
2+
"config": {
3+
"apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a",
4+
"securityKey": "f26baf68-e3a9-45fc-effe-502e47116265",
5+
"organization_Id": "5de0387b12e200ea63204d6c",
6+
"host": "server.cocreate.app:8088"
77
},
8-
9-
sources: [
10-
// {
11-
// entry: "./docs/index.html",
12-
// collection: "website-pages",
13-
// document_id: "5fcd7624a1e91e001085a053",
14-
// key: "src",
15-
// data:{
16-
// name: "CoCreateJS Doc",
17-
// domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
18-
// path: "/docs",
19-
// }
20-
// },
21-
// {
22-
// entry: "./docs/introduction.html",
23-
// collection: "files",
24-
// document_id: "60888216117c640e7596303f",
25-
// key: "src",
26-
// data:{
27-
// name: "CoCreateJS Intro Doc",
28-
// domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
29-
// path: "/docs/intro",
30-
// }
31-
// },
32-
// {
33-
// entry: "./docs/elements.html",
34-
// collection: "files",
35-
// document_id: "6084db6968177d4c2f556fd7",
36-
// key: "html",
37-
// data:{
38-
// name: "CoCreateJS Elements Doc",
39-
// domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
40-
// path: "/docs/elements",
41-
// }
42-
// },
43-
// {
44-
// entry: "./docs/CoCreateJS-objects.html",
45-
// collection: "files",
46-
// document_id: "60888216117c640e75963040",
47-
// key: "src",
48-
// data:{
49-
// name: "CoCreateJS Objects Doc",
50-
// domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
51-
// path: "/docs/cocreatejs-objects",
52-
// }
53-
// },
8+
"sources": [
549
{
55-
entry: "./docs/menu.html",
56-
collection: "components",
57-
document_id: "603717b07de7fb350ae9fec8",
58-
key: "html",
59-
data:{
60-
name: "CoCreateJS Doc Menu",
10+
"entry": "./docs/index.html",
11+
"collection": "files",
12+
"document_id": "60907b078bc9a6631d1d0ac4",
13+
"key": "src",
14+
"data": {
15+
"name": "CoCreateJS Doc",
16+
"domains": [
17+
"cocreate.app",
18+
"server.cocreate.app",
19+
"ws.cocreate.app"
20+
],
21+
"path": "/docs"
6122
}
6223
},
6324
{
64-
entry: "./docs/navbar.html",
65-
collection: "components",
66-
document_id: "60395ef42b3ac232657040fd",
67-
key: "html",
68-
data:{
69-
name: "CoCreateJS Doc Navbar",
25+
"entry": "./docs/elements.html",
26+
"collection": "files",
27+
"document_id": "60907f898bc9a6631d1d0ad8",
28+
"key": "src",
29+
"data": {
30+
"name": "CoCreateJS Elements Doc",
31+
"domains": [
32+
"cocreate.app",
33+
"server.cocreate.app",
34+
"ws.cocreate.app"
35+
],
36+
"path": "/docs/elements"
7037
}
7138
},
72-
],
73-
74-
75-
extract: {
76-
directory: "./src/",
77-
extensions: [
78-
"js",
79-
"css",
80-
"html"
81-
],
82-
ignores: [
83-
"node_modules",
84-
"vendor",
85-
"bower_components",
86-
"archive"
87-
],
88-
}
89-
}
39+
{
40+
"entry": "./docs/objects.html",
41+
"collection": "files",
42+
"document_id": "60888216117c640e75963040",
43+
"key": "src",
44+
"data": {
45+
"name": "CoCreateJS Objects Doc",
46+
"domains": [
47+
"cocreate.app",
48+
"server.cocreate.app",
49+
"ws.cocreate.app"
50+
],
51+
"path": "/docs/objects"
52+
}
53+
},
54+
{
55+
"entry": "./docs/components/menu.html",
56+
"collection": "components",
57+
"document_id": "603717b07de7fb350ae9fec8",
58+
"key": "html",
59+
"data": {
60+
"name": "CoCreateJS Doc Menu"
61+
}
62+
},
63+
{
64+
"entry": "./docs/components/navbar.html",
65+
"collection": "components",
66+
"document_id": "60395ef42b3ac232657040fd",
67+
"key": "html",
68+
"data": {
69+
"name": "CoCreateJS Doc Navbar"
70+
}
71+
}
72+
]
73+
}

demo/index.1.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ <h1 data-collection="module_activities" placeholder="html" name='name' data-docu
2121
<!-- data-collection="module_activities"-->
2222
<!-- data-document_id="5e9531b3a762440eed55c2ed" -->
2323
<!-- name="selectField0"-->
24-
<!-- data-limit_selectable="3"-->
24+
<!-- data-limit_option="3"-->
2525
<!-- placeholder="Single Document" active>-->
2626

27-
<!-- <input class="template-search" placeholder="Search" data-template_id="selectable0">-->
27+
<!-- <input class="template-search" placeholder="Search" data-template_id="option0">-->
2828

2929
<!-- <ul data-fetch_collection="users" -->
30-
<!-- data-template_id="selectable0" -->
31-
<!-- class="selectable--list cocreate-scroll">-->
32-
<!--<li class="selectable template" data-template_id="selectable0" value='{{data._id}}' data-document_id="{{data._id}}" data-render_array="data">-->
30+
<!-- data-template_id="option0" -->
31+
<!-- class="options overflow:overlay">-->
32+
<!--<li class="option template" data-template_id="option0" value='{{data._id}}' data-document_id="{{data._id}}" data-render_array="data">-->
3333
<!-- <h3 name="name" value="{{data.name}}">No Name</h3>-->
3434
<!-- <h5 name="_id" value="{{data._id}}"></h5>-->
3535
<!--</li>-->

demo/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ <h1 data-collection="module_activities" placeholder="html" name='name' data-docu
2121
data-collection="module_activities"
2222
data-document_id="5e9531b3a762440eed55c2ed"
2323
name="selectField0"
24-
data-limit_selectable="3"
24+
data-limit_option="3"
2525
placeholder="Single Document" active>
2626

27-
<input class="template-search" placeholder="Search" data-template_id="selectable0">
27+
<input class="template-search" placeholder="Search" data-template_id="option0">
2828

2929
<ul data-fetch_collection="users"
30-
data-template_id="selectable0"
31-
class="selectable--list cocreate-scroll">
32-
<li class="selectable template" data-template_id="selectable0" value='{{data._id}}' data-document_id="{{data._id}}" data-render_array="data">
30+
data-template_id="option0"
31+
class="options overflow:overlay">
32+
<li class="option template" data-template_id="option0" value='{{data._id}}' data-document_id="{{data._id}}" data-render_array="data">
3333
<h3 name="name" value="{{data.name}}">No Name</h3>
3434
<h5 name="_id" value="{{data._id}}"></h5>
3535
</li>

0 commit comments

Comments
 (0)