|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en">
|
3 |
| - <head> |
4 |
| - <title>file | CoCreateJS</title> |
| 3 | + <head> |
| 4 | + <title>file | CoCreateJS</title> |
5 | 5 |
|
6 |
| - <!-- CoCreate Favicon --> |
7 |
| - <link |
8 |
| - rel="icon" |
9 |
| - type="image/png" |
10 |
| - sizes="32x32" |
11 |
| - href="../assets/favicon.ico" /> |
12 |
| - <link rel="manifest" href="/manifest.webmanifest" /> |
13 |
| - </head> |
14 |
| - <body> |
15 |
| - <form> |
16 |
| - <input type="file" import /> |
17 |
| - <button actions="import">import</button> |
18 |
| - </form> |
| 6 | + <!-- CoCreate Favicon --> |
| 7 | + <link |
| 8 | + rel="icon" |
| 9 | + type="image/png" |
| 10 | + sizes="32x32" |
| 11 | + href="../assets/favicon.ico" /> |
| 12 | + <link rel="manifest" href="/manifest.webmanifest" /> |
| 13 | + </head> |
| 14 | + <body> |
| 15 | + <form> |
| 16 | + <input type="file" import /> |
| 17 | + <button actions="import">import</button> |
| 18 | + </form> |
19 | 19 |
|
20 |
| - <form> |
21 |
| - <input type="file" path="/assets/test" /> |
22 |
| - <button actions="upload">upload</button> |
23 |
| - </form> |
| 20 | + <form> |
| 21 | + <input type="file" path="/assets/test" /> |
| 22 | + <button actions="upload">upload</button> |
| 23 | + </form> |
24 | 24 |
|
25 |
| - <form> |
26 |
| - <input type="file" multiple /> |
27 |
| - <button actions="upload">upload</button> |
28 |
| - </form> |
| 25 | + <form> |
| 26 | + <input type="file" multiple /> |
| 27 | + <button actions="upload">upload</button> |
| 28 | + </form> |
29 | 29 |
|
30 |
| - <form> |
31 |
| - <input type="file" directory /> |
32 |
| - <button actions="upload">upload</button> |
33 |
| - </form> |
| 30 | + <form> |
| 31 | + <input type="file" directory /> |
| 32 | + <button actions="upload">upload</button> |
| 33 | + </form> |
34 | 34 |
|
35 |
| - <div |
36 |
| - type="file" |
37 |
| - array="test" |
38 |
| - object="" |
39 |
| - key="image" |
40 |
| - accept="image/*" |
41 |
| - placeholder="Upload Image or Video Thumbnail" |
42 |
| - class="floating-label min-height:40px active" |
43 |
| - render-selector="[template]" |
44 |
| - active> |
45 |
| - <div template> |
46 |
| - <img src="{{image.src}}" alt="image" width="100%" /> |
47 |
| - </div> |
48 |
| - </div> |
| 35 | + <div |
| 36 | + type="file" |
| 37 | + array="test" |
| 38 | + object="" |
| 39 | + key="image" |
| 40 | + accept="image/*" |
| 41 | + placeholder="Upload Image or Video Thumbnail" |
| 42 | + class="floating-label min-height:40px active" |
| 43 | + render-selector="[template]" |
| 44 | + active> |
| 45 | + <div template> |
| 46 | + <img src="{{image.src}}" alt="image" width="100%" /> |
| 47 | + </div> |
| 48 | + </div> |
49 | 49 |
|
50 |
| - <form> |
51 |
| - <input |
52 |
| - type="file" |
53 |
| - directory |
54 |
| - realtime="false" |
55 |
| - render-selector="document; [template]" /> |
| 50 | + <form> |
| 51 | + <input |
| 52 | + type="file" |
| 53 | + directory |
| 54 | + realtime="false" |
| 55 | + render-document="[template]" /> |
56 | 56 |
|
57 |
| - <button actions="saveLocally">saveLocally</button> |
58 |
| - </form> |
| 57 | + <button actions="saveLocally">saveLocally</button> |
| 58 | + </form> |
59 | 59 |
|
60 |
| - <div template file_id="{{id}}"> |
61 |
| - <button actions="createFile" value="tesing.js">createFile</button> |
62 |
| - <button actions="deleteFile">deleteFile</button> |
63 |
| - <button actions="createDirectory">createDirectory</button> |
64 |
| - <button actions="deleteDirectory">deleteDirectory</button> |
| 60 | + <div template file_id="{{id}}"> |
| 61 | + <button actions="createFile" value="tesing.js">createFile</button> |
| 62 | + <button actions="deleteFile">deleteFile</button> |
| 63 | + <button actions="createDirectory">createDirectory</button> |
| 64 | + <button actions="deleteDirectory">deleteDirectory</button> |
65 | 65 |
|
66 |
| - <input file="name" value="{{name}}" /> |
67 |
| - <input file="directory" value="{{directory}}" /> |
68 |
| - <input file="content-type" value="{{content-type}}" /> |
69 |
| - <textarea file="src" value-type="string">{{src}}</textarea> |
70 |
| - <div>id: {{id}}</div> |
71 |
| - </div> |
| 66 | + <input file="name" value="{{name}}" /> |
| 67 | + <input file="directory" value="{{directory}}" /> |
| 68 | + <input file="content-type" value="{{content-type}}" /> |
| 69 | + <textarea file="src" value-type="string">{{src}}</textarea> |
| 70 | + <div>id: {{id}}</div> |
| 71 | + </div> |
72 | 72 |
|
73 |
| - <form> |
74 |
| - <button actions="export" array="files">export</button> |
75 |
| - </form> |
| 73 | + <form> |
| 74 | + <button actions="export" array="files">export</button> |
| 75 | + </form> |
76 | 76 |
|
77 |
| - <!-- <script src="../dist/CoCreate-file.js"></script> --> |
78 |
| - <script src="../../../CoCreateJS/dist/CoCreate.js"></script> |
79 |
| - <!-- <script src="https://CoCreate.app/dist/CoCreate.js"></script> --> |
80 |
| - </body> |
| 77 | + <!-- <script src="../dist/CoCreate-file.js"></script> --> |
| 78 | + <script src="../../../CoCreateJS/dist/CoCreate.js"></script> |
| 79 | + <!-- <script src="https://CoCreate.app/dist/CoCreate.js"></script> --> |
| 80 | + </body> |
81 | 81 | </html>
|
0 commit comments