@cocreate/file 1.0.0

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.
@@ -0,0 +1,383 @@
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-file 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 convenient chain handler allows user to chain multiple components together. When one file is complete next one will start untill all file completed." />
16
+ <meta
17
+ name="keywords"
18
+ content="helper classes, utility classes, css framework, css library, inline style classes" />
19
+ <meta name="robots" content="index,follow" />
20
+ <meta
21
+ property="og:image"
22
+ content="https://cdn.cocreate.app/docs/file.png" />
23
+
24
+ <!-- CoCreate CSS -->
25
+ <link
26
+ rel="stylesheet"
27
+ href="https://cdn.cocreate.app/latest/CoCreate.min.css"
28
+ type="text/css" />
29
+ <link
30
+ rel="stylesheet"
31
+ href="/docs/index.css"
32
+ collection="files"
33
+ document_id="60888216117c640e7596303f"
34
+ name="src"
35
+ type="text/css"
36
+ save="true" />
37
+ <link rel="manifest" href="/manifest.webmanifest" />
38
+ </head>
39
+
40
+ <body>
41
+ <nav
42
+ class="nav display:flex align-items:center left:0px background:whitesmoke padding-top:10px padding-bottom:10px"
43
+ content_id="content"
44
+ scroll="sticky-nav,hide-nav"
45
+ scroll-up="10"
46
+ scroll-down="10"
47
+ collection="files"
48
+ document_id="60395ef42b3ac232657040fd"
49
+ name="src"></nav>
50
+ <sidenav
51
+ id="menuL"
52
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
53
+ resizable
54
+ resize-target="[content_id='content']"
55
+ resize-property="margin-left"
56
+ resize-value="width">
57
+ <menu
58
+ collection="files"
59
+ document_id="603717b07de7fb350ae9fec8"
60
+ name="src"></menu>
61
+ <div resize="right"></div>
62
+ </sidenav>
63
+ <main
64
+ class="padding-top:15px padding:15px@lg@xl"
65
+ content_id="content"
66
+ id="cocreate-file">
67
+ <div
68
+ class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
69
+ <div class="display:flex align-items:center">
70
+ <h2>CoCreate-file</h2>
71
+ </div>
72
+ <div
73
+ class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
74
+ <div
75
+ class="display:flex align-items:center transition:0.3s padding-left:10px"
76
+ share-network="true"
77
+ share-text="A convenient chain handler allows user to chain multiple components together. When one file is complete next one will start untill all file completed."
78
+ share-title="CoCreate file"
79
+ share-height="600"
80
+ share-width="700"
81
+ share-media="https://cdn.cocreate.app/docs/file.png"
82
+ hover="display:block!important"
83
+ hover-target=".social-networks">
84
+ <div class="display:none social-networks">
85
+ <a
86
+ class="margin-right:15px"
87
+ share-network="twitter"
88
+ title="Share on twitter"
89
+ ><i
90
+ class="height:20px fill:#505050"
91
+ src="/assets/svg/twitter.svg"></i
92
+ ></a>
93
+ <a
94
+ class="margin-right:15px"
95
+ share-network="facebook"
96
+ title="Share on Facebook"
97
+ ><i
98
+ class="height:20px fill:#505050"
99
+ src="/assets/svg/facebook.svg"></i
100
+ ></a>
101
+ <a
102
+ class="margin-right:15px"
103
+ share-network="instagram"
104
+ title="Share on instagram"
105
+ ><i
106
+ class="height:20px fill:#505050"
107
+ src="/assets/svg/instagram.svg"></i
108
+ ></a>
109
+ </div>
110
+ <a
111
+ class="margin-right:15px"
112
+ share-network="share"
113
+ title="Share on share"
114
+ ><i
115
+ class="height:20px fill:#505050"
116
+ src="/assets/svg/share-alt.svg"></i
117
+ ></a>
118
+ </div>
119
+ <a
120
+ class="margin-right:15px"
121
+ share-network="share"
122
+ title="Share on share"
123
+ ><i
124
+ class="height:20px fill:#505050"
125
+ src="/assets/svg/share-alt.svg"></i
126
+ ></a>
127
+ </div>
128
+ <a
129
+ href="https://github.com/CoCreate-app/CoCreate-file"
130
+ target="_blank"
131
+ class=""
132
+ ><i
133
+ class="height:20px fill:#505050"
134
+ src="/assets/svg/github.svg"></i
135
+ ></a>
136
+ </div>
137
+
138
+ <h1
139
+ class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
140
+ A convenient chain handler allows user to chain multiple
141
+ CoCreate components together. When one file is complete next one
142
+ will start. The sequence goes untill all file completed.
143
+ Grounded on Vanilla javascript, easily configured using HTML5
144
+ attributes and/or JavaScript API.
145
+ </h1>
146
+ <div id="file-section" class="display:flex flex-wrap:wrap">
147
+ <div
148
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
149
+ <div
150
+ id="file-install"
151
+ class="border-bottom:1px_solid_lightgrey"
152
+ scroll
153
+ scroll-intersect="color:dodgerblue"
154
+ scroll-target="#file-install-section">
155
+ <span
156
+ class="display:flex align-items:center width:fit-content"
157
+ hover="display:block!important"
158
+ hover-target="[href='#file-install']">
159
+ <h2 class="padding:5px_0px">Install</h2>
160
+ <a
161
+ class="margin-left:10px display:none"
162
+ href="#file-install"
163
+ ><i
164
+ class="height:20px fill:#505050"
165
+ src="/assets/svg/link.svg"></i
166
+ ></a>
167
+ </span>
168
+ </div>
169
+
170
+ <pre><code class="language-bash">npm i @cocreate/file</code></pre>
171
+ <p class="padding:10px_0px line-height:1.5">
172
+ Or you can use cdn link:
173
+ </p>
174
+ <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/file/latest/CoCreate-file.min.js&lt;/script&gt;</code></pre>
175
+
176
+ <div
177
+ id="file-usage"
178
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
179
+ scroll
180
+ scroll-intersect="color:dodgerblue"
181
+ scroll-target="#file-usage-section">
182
+ <span
183
+ class="display:flex align-items:center width:fit-content"
184
+ hover="display:block!important"
185
+ hover-target="[href='#file-usage']">
186
+ <h2 class="padding:5px_0px">Usage</h2>
187
+ <a
188
+ class="margin-left:10px display:none"
189
+ href="#file-usage"
190
+ ><i
191
+ class="height:20px fill:#505050"
192
+ src="/assets/svg/link.svg"></i
193
+ ></a>
194
+ </span>
195
+ </div>
196
+ <div class="">
197
+ <p class="padding:10px_0px line-height:1.5">
198
+ This is file usage
199
+ </p>
200
+
201
+ <div class="flex-grow:1 min-width:300px width:100%">
202
+ <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
203
+ </div>
204
+ <p class="padding:10px_0px line-height:1.5">
205
+ This is file usage
206
+ </p>
207
+ <p class="padding:10px_0px line-height:1.5">
208
+ This is file usage
209
+ </p>
210
+ </div>
211
+
212
+ <div
213
+ id="file-attributes"
214
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
215
+ scroll
216
+ scroll-intersect="color:dodgerblue"
217
+ scroll-target="#file-attributes-section">
218
+ <span
219
+ class="display:flex align-items:center width:fit-content"
220
+ hover="display:block!important"
221
+ hover-target="[href='#file-attributes']">
222
+ <h2 class="padding:5px_0px">Attributes</h2>
223
+ <a
224
+ class="margin-left:10px display:none"
225
+ href="#file-attributes"
226
+ ><i
227
+ class="height:20px fill:#505050"
228
+ src="/assets/svg/link.svg"></i
229
+ ></a>
230
+ </span>
231
+ </div>
232
+
233
+ <ul class="list-style-type:none">
234
+ <li
235
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
236
+ <h4>
237
+ <span>file</span>
238
+ <span class="cocreate-badge success"
239
+ >string</span
240
+ >
241
+ <span class="cocreate-badge warning"
242
+ >optional</span
243
+ >
244
+ </h4>
245
+ <p>file-attribute</p>
246
+ </li>
247
+ <li
248
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
249
+ <h4>
250
+ <span>file</span>
251
+ <span class="cocreate-badge success"
252
+ >string</span
253
+ >
254
+ <span class="cocreate-badge warning"
255
+ >optional</span
256
+ >
257
+ </h4>
258
+ <p>file-attribute</p>
259
+ </li>
260
+ </ul>
261
+ </div>
262
+
263
+ <div
264
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
265
+ <!-- SandBox -->
266
+ <div
267
+ id="file-demo"
268
+ class="border-bottom:1px_solid_lightgrey"
269
+ scroll
270
+ scroll-intersect="color:dodgerblue"
271
+ scroll-target="#file-demo-section">
272
+ <span
273
+ class="display:flex align-items:center width:fit-content"
274
+ hover="display:block!important"
275
+ hover-target="[href='#file-demo']">
276
+ <h2 class="padding:5px_0px">Demo</h2>
277
+ <a
278
+ class="margin-left:10px display:none"
279
+ href="#file-demo"
280
+ ><i
281
+ class="height:20px fill:#505050"
282
+ src="/assets/svg/link.svg"></i
283
+ ></a>
284
+ </span>
285
+ </div>
286
+
287
+ <div
288
+ class="position:sticky top:0 padding:15px_0px height:100vh">
289
+ <!-- SandBox -->
290
+ <div
291
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
292
+ id="playground">
293
+ <div
294
+ id="demo-code"
295
+ resizable
296
+ class="position:relative height:50%">
297
+ <textarea
298
+ type="code"
299
+ lang="html"
300
+ collection="demos"
301
+ document_id=""
302
+ name="demo"
303
+ save="false"
304
+ id="demo"
305
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
306
+ <div
307
+ resize="bottom"
308
+ class="background:lightgrey"></div>
309
+ </div>
310
+
311
+ <div
312
+ id="demo-preview"
313
+ class="position:relative overflow:auto background-color:white">
314
+ <div class="demopreview padding:20px"></div>
315
+ </div>
316
+
317
+ <div
318
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
319
+ <a
320
+ class="margin-right:10px"
321
+ id="eye"
322
+ show="#eye-slash"
323
+ hide="#eye, #demo-preview"
324
+ toggle="code-height"
325
+ toggle-target="#demo-code"
326
+ ><i
327
+ class="height:18px fill:#505050"
328
+ src="/assets/svg/eye.svg"></i
329
+ ></a>
330
+ <a
331
+ class="margin-right:10px"
332
+ hidden
333
+ id="eye-slash"
334
+ show="#eye, #demo-preview"
335
+ hide="#eye-slash"
336
+ toggle="code-height"
337
+ toggle-target="#demo-code"
338
+ ><i
339
+ class="height:20px fill:#505050"
340
+ src="/assets/svg/eye-slash.svg"></i
341
+ ></a>
342
+ <a
343
+ class="margin-right:10px"
344
+ id="code"
345
+ show="#code-slash"
346
+ hide="#code, #demo-code"
347
+ ><i
348
+ class="height:20px fill:#505050"
349
+ src="/assets/svg/code.svg"></i
350
+ ></a>
351
+ <a
352
+ class="margin-right:10px"
353
+ hidden
354
+ id="code-slash"
355
+ show="#code, #demo-code"
356
+ hide="#code-slash"
357
+ ><i
358
+ class="display:flex height:18px fill:#505050"
359
+ src="/assets/svg/code.svg"></i
360
+ ></a>
361
+ <a
362
+ class="margin-right:5px"
363
+ fullscreen
364
+ fullscreen-target="#playground"></a>
365
+ </div>
366
+ </div>
367
+ <!-- End SandBox -->
368
+ </div>
369
+ </div>
370
+ </div>
371
+ <button
372
+ href="https://github.com/CoCreate-app/CoCreate-file/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
373
+ target="_blank"
374
+ class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
375
+ <i
376
+ class="height:20px fill:#505050"
377
+ src="/assets/svg/pencil-alt.svg"></i>
378
+ </button>
379
+ </main>
380
+ <script src="/apikey.js"></script>
381
+ <script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
382
+ </body>
383
+ </html>
package/package.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "@cocreate/file",
3
+ "version": "1.0.0",
4
+ "description": "This is a configurable headless file uploader that utilizes HTML5 attributes for easy customization. With this module, users can easily upload files to a server without requiring a formal UI or browser interaction. By leveraging HTML5 attributes, it's easy to customize and fine-tune the behavior of the uploader to fit specific needs. This uploader is perfect for developers looking to implement file uploads in a headless environment.",
5
+ "keywords": [
6
+ "file",
7
+ "chain-functions",
8
+ "cocreate",
9
+ "low-code-framework",
10
+ "no-code-framework",
11
+ "cocreatejs",
12
+ "cocreatejs-component",
13
+ "cocreate-framework",
14
+ "no-code",
15
+ "low-code",
16
+ "collaborative-framework",
17
+ "realtime",
18
+ "realtime-framework",
19
+ "collaboration",
20
+ "shared-editing",
21
+ "html5-framework",
22
+ "javascript-framework"
23
+ ],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "start": "npx webpack --config webpack.config.js",
29
+ "build": "NODE_ENV=production npx webpack --config webpack.config.js",
30
+ "dev": "npx webpack --config webpack.config.js --watch",
31
+ "docs": "node ./node_modules/@cocreate/docs/src/index.js"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/CoCreate-app/CoCreate-file.git"
36
+ },
37
+ "author": "CoCreate LLC",
38
+ "license": "MIT",
39
+ "bugs": {
40
+ "url": "https://github.com/CoCreate-app/CoCreate-file/issues"
41
+ },
42
+ "homepage": "https://cocreate.app/docs/file",
43
+ "funding": {
44
+ "type": "GitHub Sponsors ❤",
45
+ "url": "https://github.com/sponsors/CoCreate-app"
46
+ },
47
+ "main": "./src/index.js",
48
+ "devDependencies": {
49
+ "@babel/core": "^7.9.6",
50
+ "@babel/preset-env": "^7.9.6",
51
+ "babel-loader": "^8.1.0",
52
+ "clean-webpack-plugin": "^3.0.0",
53
+ "file-loader": "^6.2.0",
54
+ "mini-css-extract-plugin": "^1.5.0",
55
+ "style-loader": "^3.3.1",
56
+ "terser-webpack-plugin": "^5.1.1",
57
+ "webpack": "^5.24.4",
58
+ "webpack-cli": "^4.5.0",
59
+ "webpack-log": "^3.0.1"
60
+ },
61
+ "dependencies": {
62
+ "@cocreate/actions": "^1.8.18",
63
+ "@cocreate/docs": "^1.7.15",
64
+ "@cocreate/utils": "^1.21.1"
65
+ }
66
+ }
@@ -0,0 +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
+ ],
22
+ };