Skip to content

Commit 6c42b88

Browse files
committed
feat: Initial Release
0 parents  commit 6c42b88

File tree

12 files changed

+872
-0
lines changed

12 files changed

+872
-0
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: CoCreate-app

.github/workflows/automation.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
create:
11+
branches:
12+
- master
13+
14+
jobs:
15+
about:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Jaid/action-sync-node-meta
22+
uses: jaid/[email protected]
23+
with:
24+
direction: overwrite-github # default is overwrite-file
25+
githubToken: ${{ secrets.GITHUB }}
26+
27+
release:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
33+
- name: Semantic Release
34+
uses: cycjimmy/semantic-release-action@v2
35+
with:
36+
# You can specify specifying version range for the extra plugins if you prefer.
37+
extra_plugins: |
38+
@semantic-release/changelog
39+
@semantic-release/npm
40+
@semantic-release/git
41+
@semantic-release/github
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Auto Changog generator
45+
46+
docs:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@v2
51+
52+
- name: update documentation
53+
uses: CoCreate-app/CoCreate-docs@master
54+
55+
cdn:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v2
60+
61+
- name: upload cdn
62+
uses: CoCreate-app/CoCreate-s3@master
63+
with:
64+
aws-key-id: ${{ secrets.AWSACCESSKEYID }}
65+
aws-access-key: ${{ secrets.AWSSECERTACCESSKEY }}
66+
source: "./dist/CoCreate-utils.min.js"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ignore
2+
node_modules

CHANGELOG.md

Whitespace-only changes.

CoCreate.config.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
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"
7+
},
8+
9+
sources: [{
10+
path: "./docs/index.html",
11+
collection: "files",
12+
document_id: "",
13+
key: "html",
14+
data:{
15+
name: "Utils Doc",
16+
}
17+
},
18+
],
19+
20+
crud: [{
21+
collection: "routes",
22+
document_id: "",
23+
data:{
24+
collection: "files",
25+
document_id: "",
26+
name: "html",
27+
domains: ["cocreate.app", "server.cocreate.app", "ws.cocreate.app"],
28+
route: "/docs/utils",
29+
}
30+
}
31+
],
32+
33+
extract: {
34+
directory: "./src/",
35+
extensions: [
36+
"js",
37+
"css",
38+
"html"
39+
],
40+
ignores: [
41+
"node_modules",
42+
"vendor",
43+
"bower_components",
44+
"archive"
45+
],
46+
}
47+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 CoCreate LLC
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# CoCreate-utils
2+
A simple utils component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API. Take it for a spin in our [playground!](https://cocreate.app/docs/utils)
3+
4+
![GitHub file size in bytes](https://img.shields.io/github/size/CoCreate-app/CoCreate-utils/dist/CoCreate-utils.min.js?label=minified%20size&style=for-the-badge)
5+
![GitHub latest release](https://img.shields.io/github/v/release/CoCreate-app/CoCreate-utils?style=for-the-badge)
6+
![GitHub](https://img.shields.io/github/license/CoCreate-app/CoCreate-utils?style=for-the-badge)
7+
![GitHub labels](https://img.shields.io/github/labels/CoCreate-app/CoCreate-utils/help%20wanted?style=for-the-badge)
8+
9+
![CoCreate](https://cdn.cocreate.app/logo.png)
10+
11+
[CoCreate Docs](https://cocreate.app/docs/utils)
12+
13+
14+
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/Realtime_Admin_CRM_and_CMS/issues) and [pull requests](https://github.com/CoCreate-app/Realtime_Admin_CRM_and_CMS/pulls) or merely upvote or comment on existing issues or pull requests.
15+
16+
We appreciate your continued support, thank you!
17+
18+
# Table of Contents
19+
20+
- [Table of Contents](#table-of-contents)
21+
- [Announcements](#announcements)
22+
- [Roadmap](#roadmap)
23+
- [How to Contribute](#how-to-contribute)
24+
- [About](#about)
25+
- [License](#license)
26+
27+
<a name="announcements"></a>
28+
# Announcements
29+
30+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-utils/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-utils/releases). You may also subscribe to email for releases and breaking changes.
31+
32+
<a name="roadmap"></a>
33+
# Roadmap
34+
35+
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-utils/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-utils/pulls). We would love to hear your feedback.
36+
37+
38+
<a name="about"></a>
39+
# About
40+
41+
CoCreate-utils is guided and supported by the CoCreate Developer Experience Team.
42+
43+
Please Email the Developer Experience Team [here](mailto:[email protected]) in case of any queries.
44+
45+
CoCreate-utils is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
46+
47+
<a name="contribute"></a>
48+
# How to Contribute
49+
50+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-utils/blob/master/CONTRIBUTING.md) guide for details.
51+
52+
# License
53+
[The MIT License (MIT)](https://github.com/CoCreate-app/CoCreate-utils/blob/master/LICENSE)
54+

docs/index.html

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
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-utils 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+
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/themes/prism.min.css" rel="stylesheet" />
24+
</head>
25+
26+
<body>
27+
<div data-collection="" data-document_id="" name="" id="cocreate-utils">
28+
<div class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
29+
<div class="display:flex align-items:center">
30+
<h2>CoCreate-utils</h2>
31+
</div>
32+
<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">
33+
<a href="https://github.com/CoCreate-app/CoCreate-utils" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
34+
<a class="margin-right:15px share" data-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
35+
<a class="margin-right:15px share" data-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
36+
<a class="margin-right:15px share" data-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
37+
<a class="margin-right:15px share" data-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
38+
</div>
39+
</div>
40+
<p class="max-width:500px margin:20px_10px">A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable.</p>
41+
<div id="utils-section" class="display:flex flex-wrap:wrap">
42+
<div class="flex-grow:1 min-width:300px width:50% padding:20px_10px">
43+
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Install</h2>
44+
<pre class="margin-top:15px"><code class="language-javascript">npm install cocreate-utils</code></pre>
45+
<p class="padding:10px_0px">Or you can use cdn link:</p>
46+
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-utils.min.js</code></pre>
47+
48+
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Usage</h2>
49+
<p class="padding:10px_0px">utils usage content</p>
50+
<pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
51+
52+
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Reference</h2>
53+
<p class="padding:10px_0px">This is utils reference content</p>
54+
<pre><code class="language-javascript">&lt;div&gt;&lt;/div&gt;</code></pre>
55+
<p class="padding:10px_0px">This is utils reference content</p>
56+
57+
<h2 class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">Attributes</h2>
58+
<ul class="list-style-type:none ">
59+
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
60+
<h4><span>data-utils</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
61+
<p>utils-attribute</p>
62+
</li>
63+
<li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
64+
<h4><span>data-utils</span> <span class="cocreate-badge success">string</span> <span class="cocreate-badge warning">optional</span></h4>
65+
<p>utils-attribute</p>
66+
</li>
67+
</ul>
68+
</div>
69+
70+
<div class="flex-grow:1 min-width:300px width:50% padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
71+
<!-- SandBox -->
72+
<h2 class="border-bottom:1px_solid_lightgrey padding:5px_0px">Demo</h2>
73+
<div class="position:sticky top:0 padding:10px_0px height:100vh">
74+
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100%" id="sandbox">
75+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
76+
<a class="margin-right:10px" id="preview" data-show="preview" data-hide="code"><i class="far fa-eye"></i></a>
77+
<a class="margin-right:10px hidden" id="code" data-show="code" data-hide="preview"><i class="fas fa-code"></i></a>
78+
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
79+
<a target="modal" href="module_activity_datatable.html"
80+
data-pass_collection="modules"
81+
data-pass_document_id=""
82+
data-pass_fetch_value=""
83+
data-pass_prefix=""
84+
data-pass_to="render"
85+
data-modal_width="600px"
86+
data-modal_height="400px"
87+
data-modal_color="#229954"
88+
data-modal_header="false"
89+
class="margin-right:10px">
90+
<i class="fas fa-external-link-alt"></i>
91+
</a>
92+
<a class="fs-toggle margin-right:5px" data-fullscreen target="#sandbox"><i class="fas fa-expand"></i></a>
93+
</div>
94+
95+
<div class="svRow">
96+
97+
<div class="svColumn">
98+
99+
<div class="svPanel">
100+
<div data-realtime="false"
101+
data-collection="modules"
102+
data-document_id="5eefe30952c6e94c75fb5e3f"
103+
name="html"
104+
id="7"
105+
class="codemirror height:100% min-width:300px">
106+
</div>
107+
</div>
108+
<div class="svSplitter svHorizontal"> </div>
109+
110+
<div class="svPanel">
111+
<iframe data-get_value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
112+
</div>
113+
114+
</div>
115+
</div>
116+
</div>
117+
<!-- End SandBox -->
118+
</div>
119+
</div>
120+
121+
</div>
122+
</div>
123+
<script>
124+
var config = {
125+
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
126+
securityKey: 'f26baf68-e3a9-45fc-effe-502e47116265',
127+
organization_Id: '5de0387b12e200ea63204d6c'
128+
}
129+
</script>
130+
131+
<!--CoCreateJS-->
132+
<script src="https://server.cocreate.app/js/CoCreate.min.js"></script>
133+
134+
<!-- CoCreate CodeMiirror -->
135+
<script type="text/javascript" src="https://server.cocreate.app/CoCreate-plugins/CoCreate-codemirror/dist/CoCreate-codemirror.js" async></script>
136+
137+
<!-- Prism -->
138+
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/prism.min.js"></script>
139+
</body>
140+
</html>

0 commit comments

Comments
 (0)