@cocreate/mongodb 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +3 -3
- package/.github/workflows/automated.yml +56 -43
- package/CHANGELOG.md +356 -341
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +27 -27
- package/LICENSE +21 -21
- package/README.md +81 -81
- package/demo/index.html +21 -21
- package/docs/index.html +195 -60
- package/package.json +4 -4
- package/release.config.js +21 -21
- package/src/index.js +805 -805
- package/webpack.config.js +84 -84
package/docs/index.html
CHANGED
|
@@ -1,103 +1,238 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
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-mongodb Documentation | CoCreateJS
|
|
8
|
-
<link
|
|
9
|
-
|
|
10
|
-
|
|
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-mongodb Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using data-attributes and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
11
19
|
<meta name="robots" content="index,follow" />
|
|
12
|
-
|
|
20
|
+
|
|
13
21
|
<!-- CoCreate CSS CDN -->
|
|
14
|
-
<link
|
|
15
|
-
|
|
22
|
+
<link
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
25
|
+
type="text/css" />
|
|
16
26
|
</head>
|
|
17
27
|
|
|
18
28
|
<body>
|
|
19
29
|
<div collection="" document_id="" name="" id="cocreate-mongodb">
|
|
20
|
-
<div
|
|
30
|
+
<div
|
|
31
|
+
class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
|
|
21
32
|
<div class="display:flex align-items:center">
|
|
22
33
|
<h2>CoCreate-mongodb</h2>
|
|
23
34
|
</div>
|
|
24
|
-
<div
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<a
|
|
35
|
+
<div
|
|
36
|
+
class="display:flex align-items:center font-size:20px"
|
|
37
|
+
share-height="600"
|
|
38
|
+
share-width="500"
|
|
39
|
+
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
40
|
+
<a
|
|
41
|
+
href="https://github.com/CoCreate-app/CoCreate-mongodb"
|
|
42
|
+
target="_blank"
|
|
43
|
+
class="margin-right:15px"
|
|
44
|
+
><i class="fab fa-github"></i
|
|
45
|
+
></a>
|
|
46
|
+
<a
|
|
47
|
+
class="margin-right:15px share"
|
|
48
|
+
share-network="twitter"
|
|
49
|
+
title="Share on twitter"
|
|
50
|
+
><i class="fab fa-twitter"></i
|
|
51
|
+
></a>
|
|
52
|
+
<a
|
|
53
|
+
class="margin-right:15px share"
|
|
54
|
+
share-network="facebook"
|
|
55
|
+
title="Share on Facebook"
|
|
56
|
+
><i class="fab fa-facebook"></i
|
|
57
|
+
></a>
|
|
58
|
+
<a
|
|
59
|
+
class="margin-right:15px share"
|
|
60
|
+
share-network="instagram"
|
|
61
|
+
title="Share on instagram"
|
|
62
|
+
><i class="fab fa-instagram"></i
|
|
63
|
+
></a>
|
|
64
|
+
<a
|
|
65
|
+
class="margin-right:15px share"
|
|
66
|
+
share-network="share"
|
|
67
|
+
title="Share on share"
|
|
68
|
+
><i class="fas fa-share-alt"></i
|
|
69
|
+
></a>
|
|
30
70
|
</div>
|
|
31
71
|
</div>
|
|
32
|
-
<
|
|
72
|
+
<h1 class="max-width:500px margin:20px_10px">
|
|
73
|
+
A simple HTML5, CSS and pure javascript component. Easy
|
|
74
|
+
configuration using data-attributes and highly styleable.
|
|
75
|
+
</h1>
|
|
33
76
|
<div id="mongodb-section" class="display:flex flex-wrap:wrap">
|
|
34
77
|
<div class="flex-grow:1 width:300px padding:20px_10px">
|
|
35
|
-
<h2
|
|
36
|
-
|
|
78
|
+
<h2
|
|
79
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
80
|
+
Install
|
|
81
|
+
</h2>
|
|
82
|
+
<pre
|
|
83
|
+
class="margin-top:15px"><code class="language-javascript">npm install cocreate-mongodb</code></pre>
|
|
37
84
|
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
38
85
|
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-mongodb.min.js</code></pre>
|
|
39
|
-
|
|
40
|
-
<h2
|
|
86
|
+
|
|
87
|
+
<h2
|
|
88
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
89
|
+
Usage
|
|
90
|
+
</h2>
|
|
41
91
|
<p class="padding:10px_0px">mongodb usage content</p>
|
|
42
92
|
<pre><code class="language-html"><div></div></code></pre>
|
|
43
|
-
|
|
44
|
-
<h2
|
|
45
|
-
|
|
93
|
+
|
|
94
|
+
<h2
|
|
95
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
96
|
+
Reference
|
|
97
|
+
</h2>
|
|
98
|
+
<p class="padding:10px_0px">
|
|
99
|
+
This is mongodb reference content
|
|
100
|
+
</p>
|
|
46
101
|
<pre><code class="language-javascript"><div></div></code></pre>
|
|
47
|
-
<p class="padding:10px_0px">
|
|
102
|
+
<p class="padding:10px_0px">
|
|
103
|
+
This is mongodb reference content
|
|
104
|
+
</p>
|
|
48
105
|
|
|
49
|
-
<h2
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
106
|
+
<h2
|
|
107
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
108
|
+
Attributes
|
|
109
|
+
</h2>
|
|
110
|
+
<ul class="list-style-type:none">
|
|
111
|
+
<li
|
|
112
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
113
|
+
<h4>
|
|
114
|
+
<span>mongodb</span>
|
|
115
|
+
<span class="cocreate-badge success"
|
|
116
|
+
>string</span
|
|
117
|
+
>
|
|
118
|
+
<span class="cocreate-badge warning"
|
|
119
|
+
>optional</span
|
|
120
|
+
>
|
|
121
|
+
</h4>
|
|
53
122
|
<p>mongodb-attribute</p>
|
|
54
123
|
</li>
|
|
55
|
-
<li
|
|
56
|
-
|
|
124
|
+
<li
|
|
125
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
126
|
+
<h4>
|
|
127
|
+
<span>mongodb</span>
|
|
128
|
+
<span class="cocreate-badge success"
|
|
129
|
+
>string</span
|
|
130
|
+
>
|
|
131
|
+
<span class="cocreate-badge warning"
|
|
132
|
+
>optional</span
|
|
133
|
+
>
|
|
134
|
+
</h4>
|
|
57
135
|
<p>mongodb-attribute</p>
|
|
58
136
|
</li>
|
|
59
137
|
</ul>
|
|
60
138
|
</div>
|
|
61
|
-
|
|
62
|
-
<div
|
|
139
|
+
|
|
140
|
+
<div
|
|
141
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
63
142
|
<!-- SandBox -->
|
|
64
|
-
<h2
|
|
65
|
-
|
|
143
|
+
<h2
|
|
144
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
145
|
+
Demo
|
|
146
|
+
</h2>
|
|
147
|
+
<div
|
|
148
|
+
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
66
149
|
<!-- SandBox -->
|
|
67
|
-
<div
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
150
|
+
<div
|
|
151
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
152
|
+
id="playground">
|
|
153
|
+
<div
|
|
154
|
+
id="demo-code"
|
|
155
|
+
resizable
|
|
156
|
+
class="position:relative height:50%">
|
|
157
|
+
<textarea
|
|
158
|
+
type="code"
|
|
159
|
+
lang="html"
|
|
160
|
+
collection="demos"
|
|
161
|
+
document_id=""
|
|
162
|
+
name="demo"
|
|
163
|
+
save="false"
|
|
164
|
+
id="demo"
|
|
165
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
166
|
+
<div
|
|
167
|
+
resize="bottom"
|
|
168
|
+
class="background:lightgrey"></div>
|
|
72
169
|
</div>
|
|
73
|
-
|
|
74
|
-
<div
|
|
75
|
-
|
|
170
|
+
|
|
171
|
+
<div
|
|
172
|
+
id="demo-preview"
|
|
173
|
+
class="position:relative overflow:auto background-color:white">
|
|
174
|
+
<div
|
|
175
|
+
get-value="#demo"
|
|
176
|
+
class="padding:20px"></div>
|
|
76
177
|
</div>
|
|
77
|
-
|
|
78
|
-
<div
|
|
79
|
-
|
|
80
|
-
<a
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
178
|
+
|
|
179
|
+
<div
|
|
180
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
181
|
+
<a
|
|
182
|
+
class="margin-right:10px"
|
|
183
|
+
id="eye"
|
|
184
|
+
show="#eye-slash"
|
|
185
|
+
hide="#eye, #demo-preview"
|
|
186
|
+
toggle="code-height"
|
|
187
|
+
toggle-target="#demo-code"
|
|
188
|
+
><i class="far fa-eye"></i
|
|
189
|
+
></a>
|
|
190
|
+
<a
|
|
191
|
+
class="margin-right:10px"
|
|
192
|
+
hidden
|
|
193
|
+
id="eye-slash"
|
|
194
|
+
show="#eye, #demo-preview"
|
|
195
|
+
hide="#eye-slash"
|
|
196
|
+
toggle="code-height"
|
|
197
|
+
toggle-target="#demo-code"
|
|
198
|
+
><i class="fas fa-eye-slash"></i
|
|
199
|
+
></a>
|
|
200
|
+
<a
|
|
201
|
+
class="margin-right:10px"
|
|
202
|
+
id="code"
|
|
203
|
+
show="#code-slash"
|
|
204
|
+
hide="#code, #demo-code"
|
|
205
|
+
><i class="fa fa-code"></i
|
|
206
|
+
></a>
|
|
207
|
+
<a
|
|
208
|
+
class="margin-right:10px"
|
|
209
|
+
hidden
|
|
210
|
+
id="code-slash"
|
|
211
|
+
show="#code, #demo-code"
|
|
212
|
+
hide="#code-slash"
|
|
213
|
+
><i class="fas fa-code"></i
|
|
214
|
+
></a>
|
|
215
|
+
<a
|
|
216
|
+
class="margin-right:5px"
|
|
217
|
+
fullscreen
|
|
218
|
+
target="#playground"
|
|
219
|
+
><i class="fas fa-expand"></i
|
|
220
|
+
></a>
|
|
84
221
|
</div>
|
|
85
|
-
|
|
86
222
|
</div>
|
|
87
223
|
<!-- End SandBox -->
|
|
88
|
-
|
|
224
|
+
</div>
|
|
89
225
|
</div>
|
|
90
|
-
|
|
91
|
-
</div>
|
|
226
|
+
</div>
|
|
92
227
|
</div>
|
|
93
228
|
<script>
|
|
94
229
|
var CoCreateConfig = {
|
|
95
|
-
key:
|
|
96
|
-
organization_id:
|
|
97
|
-
}
|
|
230
|
+
key: "2061acef-0451-4545-f754-60cf8160",
|
|
231
|
+
organization_id: "5ff747727005da1c272740ab",
|
|
232
|
+
};
|
|
98
233
|
</script>
|
|
99
|
-
|
|
234
|
+
|
|
100
235
|
<!--CoCreateJS-->
|
|
101
236
|
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
|
|
102
237
|
</body>
|
|
103
|
-
</html>
|
|
238
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/mongodb",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mongodb",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"webpack-log": "^3.0.1"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@cocreate/docs": "^1.7.
|
|
63
|
-
"@cocreate/hosting": "^1.10.
|
|
64
|
-
"@cocreate/utils": "^1.20.
|
|
62
|
+
"@cocreate/docs": "^1.7.13",
|
|
63
|
+
"@cocreate/hosting": "^1.10.5",
|
|
64
|
+
"@cocreate/utils": "^1.20.10",
|
|
65
65
|
"mongodb": "^4.12.1"
|
|
66
66
|
}
|
|
67
67
|
}
|
package/release.config.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
dryRun: false,
|
|
3
|
-
branches: ["master"],
|
|
4
|
-
plugins: [
|
|
5
|
-
"@semantic-release/commit-analyzer",
|
|
6
|
-
"@semantic-release/release-notes-generator",
|
|
7
|
-
[
|
|
8
|
-
"@semantic-release/changelog",
|
|
9
|
-
{
|
|
10
|
-
changelogFile: "CHANGELOG.md",
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
"@semantic-release/npm",
|
|
14
|
-
"@semantic-release/github",
|
|
15
|
-
[
|
|
16
|
-
"@semantic-release/git",
|
|
17
|
-
{
|
|
18
|
-
assets: ["CHANGELOG.md", "package.json"],
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
],
|
|
1
|
+
module.exports = {
|
|
2
|
+
dryRun: false,
|
|
3
|
+
branches: ["master"],
|
|
4
|
+
plugins: [
|
|
5
|
+
"@semantic-release/commit-analyzer",
|
|
6
|
+
"@semantic-release/release-notes-generator",
|
|
7
|
+
[
|
|
8
|
+
"@semantic-release/changelog",
|
|
9
|
+
{
|
|
10
|
+
changelogFile: "CHANGELOG.md",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
"@semantic-release/npm",
|
|
14
|
+
"@semantic-release/github",
|
|
15
|
+
[
|
|
16
|
+
"@semantic-release/git",
|
|
17
|
+
{
|
|
18
|
+
assets: ["CHANGELOG.md", "package.json"],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
],
|
|
22
22
|
};
|