Skip to content

Commit c9e22bf

Browse files
committed
Clean Tree
2 parents aa608ea + a1dd641 commit c9e22bf

File tree

9 files changed

+317
-278
lines changed

9 files changed

+317
-278
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## [1.0.12](https://github.com/CoCreate-app/CoCreate-api/compare/v1.0.11...v1.0.12) (2021-05-12)
2+
3+
4+
### Bug Fixes
5+
6+
* bug returning response ([b1790d1](https://github.com/CoCreate-app/CoCreate-api/commit/b1790d15b83e31ecb671f6fb13a151430ac28ed7))
7+
8+
## [1.0.11](https://github.com/CoCreate-app/CoCreate-api/compare/v1.0.10...v1.0.11) (2021-05-08)
9+
10+
11+
### Bug Fixes
12+
13+
* add css auto parse and save to docs. ([2154b83](https://github.com/CoCreate-app/CoCreate-api/commit/2154b832ba28b611147ddc79f966430866679400))
14+
115
## [1.0.10](https://github.com/CoCreate-app/CoCreate-api/compare/v1.0.9...v1.0.10) (2021-04-27)
216

317

dist/CoCreate-api.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<meta name="keywords" content="drag and drop, colaboration, dnd utility, drag and drop utility" />
1212
<meta name="robots" content="index,follow" />
1313
<meta property="og:image" content="https://cdn.cocreate.app/docs/api.png">
14-
14+
<!-- CoCreate CSS -->
1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="https://ws.cocreate.app/docs.css" data-collection="apples" data-document_id="6069ff5042ef8ff5175a5c8d" name="css" type="text/css" />
17+
<link rel="stylesheet" href="/docs/index.css" data-collection="files" data-document_id="60888216117c640e7596303f" name="src" type="text/css" data-save="true" />
1818
</head>
1919

2020
<body>

docs/index.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<meta name="robots" content="index,follow" />
1313
<meta property="og:image" content="https://cdn.cocreate.app/docs/api.png">
1414

15-
<!-- CoCreate CSS CDN -->
15+
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="https://ws.cocreate.app/docs.css" data-collection="apples" data-document_id="6069ff5042ef8ff5175a5c8d" name="css" type="text/css" />
17+
<link rel="stylesheet" href="/docs/index.css" data-collection="files" data-document_id="60888216117c640e7596303f" name="src" type="text/css" data-save="true" />
1818

1919
</head>
2020

@@ -32,8 +32,8 @@
3232
<h2>CoCreate-api</h2>
3333
</div>
3434
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
35-
<div class="display:flex align-items:center transition:0.3s padding-left:10px" data-share_network="true" data-share_text="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 data-attributes and/or JavaScript API"
36-
data-share_title="CoCreate API" data-share_height="600" data-share_width="700" data-share_media="https://cdn.cocreate.app/docs/api.png" data-hover="display:block!important" data-hover_target=".social-networks">
35+
<div class="display:flex align-items:center transition:0.3s padding-left:10px" data-share_network="true" data-share_text="Enter decription here" data-share_title="testing im a title" data-share_height="600" data-share_width="700" data-share_media="https://cdn.cocreate.app/docs/api.png"
36+
data-hover="display:block!important" data-hover_target=".social-networks">
3737
<div class="display:none social-networks">
3838
<a class="margin-right:15px" data-share_network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
3939
<a class="margin-right:15px" data-share_network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
@@ -44,6 +44,9 @@ <h2>CoCreate-api</h2>
4444
<a href="https://github.com/CoCreate-app/CoCreate-dnd" target="_blank" class=""><i class="fab fa-github"></i></a>
4545
</div>
4646
</div>
47+
<a href="https://github.com/CoCreate-app/CoCreate-dnd" target="_blank" class=""><i class="fab fa-github"></i></a>
48+
</div>
49+
</div>
4750
<p class="max-width:500px margin:20px_10px line-height:1.5">CoCreate-api is a simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. Thirdparty apis can be accessible using HTML5 data-attributes and/or JavaScript API. CoCreate-api includes the
4851
client component and server side for api processing.</p>
4952
<div id="api-section" class="display:flex flex-wrap:wrap">

docs/module.html

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="https://ws.cocreate.app/docs.css" data-collection="apples" data-document_id="6069ff5042ef8ff5175a5c8d" name="css" type="text/css" />
17+
<link rel="stylesheet" href="/docs/index.css" data-collection="files" data-document_id="60888216117c640e7596303f" name="src" type="text/css" data-save="true" />
1818
</head>
1919

2020
<body>
@@ -30,18 +30,8 @@
3030
<div class="display:flex align-items:center">
3131
<h2>CoCreate-api modules</h2>
3232
</div>
33-
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
34-
<div class="display:flex align-items:center transition:0.3s padding-left:10px" data-share_network="true" data-share_text="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 data-attributes and/or JavaScript API"
35-
data-share_title="CoCreate API modules" data-share_height="600" data-share_width="700" data-share_media="https://cdn.cocreate.app/docs/api.png" data-hover="display:block!important" data-hover_target=".social-networks">
36-
<div class="display:none social-networks">
37-
<a class="margin-right:15px" data-share_network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
38-
<a class="margin-right:15px" data-share_network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
39-
<a class="margin-right:15px" data-share_network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
40-
</div>
41-
<a class="margin-right:15px" data-share_network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
42-
</div>
43-
<a href="https://github.com/CoCreate-app/CoCreate-dnd" target="_blank" class=""><i class="fab fa-github"></i></a>
44-
</div>
33+
<a href="https://github.com/CoCreate-app/CoCreate-dnd" target="_blank" class=""><i class="fab fa-github"></i></a>
34+
</div>
4535
</div>
4636
<p class="max-width:500px margin:20px_10px line-height:1.5">CoCreate-api is a simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. Thirdparty apis can be accessible using HTML5 data-attributes and/or JavaScript API. CoCreate-api includes the
4737
client component and server side for api processing.</p>

docs/server.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<!-- CoCreate CSS -->
1616
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css" />
17-
<link rel="stylesheet" href="https://ws.cocreate.app/docs.css" data-collection="apples" data-document_id="6069ff5042ef8ff5175a5c8d" name="css" type="text/css" />
17+
<link rel="stylesheet" href="/docs/index.css" data-collection="files" data-document_id="60888216117c640e7596303f" name="src" type="text/css" data-save="true" />
1818
</head>
1919

2020
<body>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cocreate/api",
3-
"version": "1.0.10",
3+
"version": "1.0.12",
44
"description": "A simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. CoCreate-api includes the client component and server side for api processing. Thirdparty apis can be accessible using HTML5 data-attributes and/or JavaScript API. ",
55
"keywords": [
66
"thirdparty-api-intergration",
@@ -66,7 +66,7 @@
6666
"@cocreate/docs": "^1.0.3",
6767
"@cocreate/hosting": "^1.0.0",
6868
"@cocreate/render": "^1.0.2",
69-
"@cocreate/socket-client": "^1.0.4",
69+
"@cocreate/socket-client": "^1.0.9",
7070
"mini-css-extract-plugin": "^1.5.0"
7171
}
7272
}

src/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ var api = ( ()=> {
1616
'object': 'error',
1717
'data':error || error.response || error.response.data || error.response.body || error.message || error,
1818
};
19-
this.send_response(wsManager, socket, { type, response }, module_id);
19+
wsManager.send(socket, module_id, { type, response })
20+
//send_response(wsManager, socket, { type, response }, module_id);
2021
},
2122
getOrg : async (config, module) =>{
2223
console.log("config WS utils==== ",config)
@@ -28,13 +29,16 @@ var api = ( ()=> {
2829
})
2930
const event = "getOrg";
3031

32+
33+
console.log("Org_id => ",config["organization_id"])
34+
3135
crud.readDocument({
3236
collection: "organizations",
3337
name:"name",
3438
document_id: config["organization_id"],
3539
event,
3640
apiKey: config["apiKey"],
37-
organization_id: config["organization_id"]
41+
organization_id: '5de0387b12e200ea63204d6c'
3842
});
3943
let org_row = await crud.listenAsync(event);
4044
try{

0 commit comments

Comments
 (0)