Skip to content

Commit 2be08aa

Browse files
committed
feat: (comment parser support for HTML, CSS, JS, XML)
1 parent e609d19 commit 2be08aa

23 files changed

+1870
-60
lines changed

.github/workflows/changelog.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
create:
7+
8+
jobs:
9+
changelog:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Semantic Release
16+
uses: cycjimmy/semantic-release-action@v2
17+
with:
18+
# You can specify specifying version range for the extra plugins if you prefer.
19+
extra_plugins: |
20+
@semantic-release/changelog
21+
@semantic-release/npm
22+
@semantic-release/git
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
# ignore app.js
2-
app.js
3-
package-lock.json
2+
node_modules

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# CHANGELOG
1+
# CHANGELOG

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# CoCreate-docs
22
A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable.
33

4+
5+
![GitHub file size in bytes](https://img.shields.io/github/size/CoCreate-app/CoCreate-docs/dist/CoCreate-docs.min.js?label=minified%20size&style=for-the-badge)
6+
![GitHub package.json version](https://img.shields.io/github/package-json/v/CoCreate-app/CoCreate-docs?style=for-the-badge)
7+
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-docs?style=for-the-badge)
8+
![GitHub labels](https://img.shields.io/github/labels/CoCreate-app/CoCreate-docs/help%20wanted?style=for-the-badge)
9+
10+
411
![CoCreate](https://cdn.cocreate.app/logo.png)
512

613
[CoCreate Docs](https://cocreate.app/documentation/CoCreate-docs)
@@ -22,12 +29,12 @@ We appreciate your continued support, thank you!
2229
<a name="announcements"></a>
2330
# Announcements
2431

25-
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-industry/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-docs/releases). You may also subscribe to email for releases and breaking changes.
32+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-docs/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-docs/releases). You may also subscribe to email for releases and breaking changes.
2633

2734
<a name="roadmap"></a>
2835
# Roadmap
2936

30-
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-industry/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-industry/pulls). We would love to hear your feedback.
37+
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-docs/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-docs/pulls). We would love to hear your feedback.
3138

3239

3340
<a name="about"></a>
@@ -42,7 +49,7 @@ CoCreate-docs is maintained and funded by CoCreate. The names and logos for CoCr
4249
<a name="contribute"></a>
4350
# How to Contribute
4451

45-
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-industry/blob/master/CONTRIBUTING.md) guide for details.
52+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-docs/blob/master/CONTRIBUTING.md) guide for details.
4653

4754
# License
48-
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-industry/blob/master/LICENSE)
55+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-docs/blob/master/LICENSE)

config.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
{
2-
"directory": "../",
2+
"directory": "./test_files/",
3+
"extensions": [
4+
"js",
5+
"css",
6+
"html"
7+
],
38
"ignores": [
49
"node_modules",
510
"vendor",
611
"bower_components",
712
"archive"
8-
]
13+
],
14+
15+
"permissions": {
16+
"apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a",
17+
"securityKey": "f26baf68-e3a9-45fc-effe-502e47116265",
18+
"organization_Id": "5de0387b12e200ea63204d6c"
19+
},
20+
21+
"socket": {
22+
"config": {
23+
"apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a",
24+
"securityKey": "f26baf68-e3a9-45fc-effe-502e47116265",
25+
"organization_Id": "5de0387b12e200ea63204d6c"
26+
},
27+
"host": "server.cocreate.app:8088"
28+
}
929
}

documentation/index.html

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>CoCreate-boilerplate Documentation | CoCreateJS </title>
8+
<link rel="icon" type="image/png" sizes="32x32" href="https://cocreate.app/images/favicon.ico">
9+
<meta name="description" content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
10+
<meta name="keywords" content="helper classes, utility classes, css framework, css library, inline style classes" />
11+
<meta name="robots" content="index,follow" />
12+
13+
<!-- CoCreate CSS -->
14+
<link rel="stylesheet" href="https://server.cocreate.app/css/CoCreate.min.css" type="text/css" />
15+
16+
<!-- Font Awesome -->
17+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" crossorigin="anonymous" />
18+
19+
<!-- Codemirror -->
20+
<link rel="stylesheet" href="https://server.cocreate.app/CoCreate-plugins/CoCreate-codemirror/src/CoCreate-codemirror.css" type="text/css" />
21+
<link rel=stylesheet href="https://codemirror.net/lib/codemirror.css" async defer>
22+
23+
<!-- Highlight.js-->
24+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/default.min.css">
25+
26+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js"></script>
27+
<script>hljs.initHighlightingOnLoad();</script>
28+
</head>
29+
30+
<body>
31+
<div data-collection="" data-document_id="" name="" id="cocreate-boilerplate" class="padding:15px">
32+
<div class="display:flex flex-wrap:wrap justify-content:space-between">
33+
<div class="display:flex align-items:center">
34+
<h2>CoCreate-boilerplate</h2>
35+
</div>
36+
<div class="display:flex align-items:center font-size:20px social_share" data-height="600" data-width="500" data-media="https://via.placeholder.com/300/09f/fff.png">
37+
<a href="https://github.com/CoCreate-app/CoCreate-boilerplate" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
38+
<a class="margin-right:15px share" data-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
39+
<a class="margin-right:15px share" data-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
40+
<a class="margin-right:15px share" data-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
41+
<a class="margin-right:15px share" data-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
42+
</div>
43+
</div>
44+
<p class="max-width:500px margin:20px_0px">A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable.</p>
45+
<div id="boilerplate-section" class="display:flex flex-wrap:wrap">
46+
<div class="flex-grow:1 min-width:300px width:50% padding:0px_10px margin:20px_0px">
47+
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Install</h2>
48+
<pre><code class="language-javascript">npm install cocreate-boilerplate</code></pre>
49+
<p class="padding:10px_0px">Or you can use cdn link:</p>
50+
<pre><code class="language-javascript">https://cdn.cocreate.app/CoCreate-boilerplate.min.js</code></pre>
51+
52+
<h2 class="border-bottom:1px_solid_lightgrey margin-top:80px padding:5px_0px">Usage</h2>
53+
<div class="">
54+
<p class="padding:10px_0px">This is boilerplate reference</p>
55+
56+
<div class="flex-grow:1 min-width:300px width:100%">
57+
<pre>
58+
<code>&lt;div&gt;&lt;/div&gt;</code>
59+
</pre>
60+
</div>
61+
<p class="padding:10px_0px">This is boilerplate reference</p>
62+
<p class="padding:10px_0px">This is boilerplate reference</p>
63+
</div>
64+
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Attributes</h2>
65+
<ul class="list-style-type:none ">
66+
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
67+
<h4><span>data-boilerplate</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
68+
<p>boilerplate-attribute</p>
69+
</li>
70+
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
71+
<h4><span>data-boilerplate</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
72+
<p>boilerplate-attribute</p>
73+
</li>
74+
</ul>
75+
</div>
76+
77+
<div class="flex-grow:1 min-width:300px width:50% padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
78+
<!-- SandBox -->
79+
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
80+
<div class="position:sticky top:0 padding:15px_0px height:100vh">
81+
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100%" id="form-sandbox">
82+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
83+
<a class="margin-right:10px" id="preview" data-show="preview" data-hide="code"><i class="far fa-eye"></i></a>
84+
<a class="margin-right:10px hidden" id="code" data-show="code" data-hide="preview"><i class="fas fa-code"></i></a>
85+
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
86+
<a target="modal" href="module_activity_datatable.html"
87+
data-pass_collection="modules"
88+
data-pass_document_id=""
89+
data-pass_fetch_value=""
90+
data-pass_prefix=""
91+
data-pass_to="render"
92+
data-modal_width="600px"
93+
data-modal_height="400px"
94+
data-modal_color="#229954"
95+
data-modal_header="false"
96+
class="margin-right:10px">
97+
<i class="fas fa-external-link-alt"></i>
98+
</a>
99+
<a class="fs-toggle margin-right:5px" target="#playground-1"><i class="fas fa-expand"></i></a>
100+
</div>
101+
102+
<div class="svRow">
103+
104+
<div class="svColumn">
105+
106+
<div class="svPanel">
107+
<div data-realtime="false"
108+
data-collection="modules"
109+
data-document_id="5eefe30952c6e94c75fb5e3f"
110+
name="html"
111+
id="7"
112+
class="codemirror min-width:300px">
113+
</div>
114+
</div>
115+
<div class="svSplitter svHorizontal"> </div>
116+
117+
<div class="svPanel">
118+
<iframe data-get_value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
119+
</div>
120+
121+
</div>
122+
</div>
123+
</div>
124+
<!-- End SandBox -->
125+
</div>
126+
</div>
127+
128+
</div>
129+
</div>
130+
<script>
131+
var config = {
132+
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
133+
securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
134+
organization_Id: '5de0387b12e200ea63204d6c'
135+
}
136+
</script>
137+
138+
<!--CoCreateJS-->
139+
<script src="https://server.cocreate.app/js/CoCreate.min.js"></script>
140+
141+
<!-- CoCreate CodeMiirror -->
142+
<script type="text/javascript" src="https://server.cocreate.app/CoCreate-plugins/CoCreate-codemirror/dist/CoCreate-codemirror.js" async></script>
143+
144+
</body>
145+
</html>

html_config.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"socket": {
3+
"config": {
4+
"apiKey": "c2b08663-06e3-440c-ef6f-13978b42883a",
5+
"securityKey": "f26baf68-e3a9-45fc-effe-502e47116265",
6+
"organization_Id": "5de0387b12e200ea63204d6c"
7+
},
8+
"host": "server.cocreate.app:8088"
9+
},
10+
11+
"sources": [
12+
{
13+
"path": "./test_files/test.html",
14+
"collection": "static_html",
15+
"document_id": "5f08bf3da588c11bf8ead4b3",
16+
"name": "html",
17+
"category": "testing",
18+
"file_name": "test.html"
19+
},
20+
{
21+
"path": "./test_files/test2.html",
22+
"collection": "static_html",
23+
"document_id": "5f08bf3da588c11bf8ead4b3",
24+
"name": "html_2",
25+
"category": "testing",
26+
"category1": "testing1",
27+
"category2": "testing3"
28+
}
29+
30+
]
31+
}

0 commit comments

Comments
 (0)