card-mod-script 0.13.2 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/decko/components.js.coffee +3 -0
  3. data/assets/script/decko/decko.js.coffee +0 -15
  4. data/assets/script/decko/editor.js.coffee +3 -1
  5. data/assets/script/decko/filter.js.coffee +14 -7
  6. data/assets/script/decko/filter_links.js.coffee +2 -2
  7. data/assets/script/decko/mod.js.coffee +2 -8
  8. data/assets/script/decko/name_editor.js.coffee +0 -18
  9. data/assets/script/decko/overlay.js.coffee +0 -3
  10. data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
  11. data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
  12. data/assets/script/decko/slot.js.coffee +3 -3
  13. data/assets/script/decko/slot_ready.js.coffee +1 -0
  14. data/assets/script/decko/slotter.js.coffee +23 -31
  15. data/assets/script/decko/type_editor.js.coffee +21 -0
  16. data/assets/script/decko/upload.js.coffee +12 -5
  17. data/assets/script/jquery-ui.min.js +13 -0
  18. data/assets/script/manifest.yml +16 -3
  19. data/init/early/init_execjs.rb +3 -0
  20. data/set/abstract/00_script.rb +30 -31
  21. data/set/abstract/01_asset_script.rb +0 -16
  22. data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
  23. data/set/all/head_javascript.rb +12 -8
  24. data/set/right/script.rb +1 -14
  25. data/set/type/local_script_folder_group.rb +2 -2
  26. data/set/type/local_script_manifest_group.rb +1 -1
  27. data/set/type_plus_right/mod/script.rb +56 -0
  28. data/set/type_plus_right/set/script.rb +7 -0
  29. data/vendor/jquery_file_upload/LICENSE.txt +11 -12
  30. data/vendor/jquery_file_upload/README.md +189 -72
  31. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  32. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  33. data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
  34. data/vendor/jquery_file_upload/cors/result.html +12 -10
  35. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
  36. data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
  37. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  38. data/vendor/jquery_file_upload/index.html +332 -230
  39. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
  40. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
  41. data/vendor/jquery_file_upload/js/demo.js +75 -0
  42. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
  43. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
  44. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
  45. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
  46. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
  47. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
  48. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
  49. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
  50. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
  51. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  52. data/vendor/jquery_file_upload/package.json +71 -10
  53. data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
  54. data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
  55. data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
  56. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  57. data/vendor/jquery_file_upload/test/index.html +36 -159
  58. data/vendor/jquery_file_upload/test/unit.js +989 -0
  59. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  60. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  61. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  62. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  63. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  64. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  65. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  66. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  67. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  68. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  69. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  70. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  71. metadata +36 -53
  72. data/assets/script/jquery-ui.js +0 -10
  73. data/file/mod_script_script_decko_machine_output/file.js +0 -2710
  74. data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
  75. data/lib/javascript/script_html5shiv_printshiv.js +0 -1
  76. data/set/self/script_html5shiv_printshiv.rb +0 -11
  77. data/set/self/script_mods.rb +0 -1
  78. data/set/type/mod_script_assets.rb +0 -21
  79. data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
  80. data/vendor/jquery_file_upload/angularjs.html +0 -211
  81. data/vendor/jquery_file_upload/basic-plus.html +0 -226
  82. data/vendor/jquery_file_upload/basic.html +0 -136
  83. data/vendor/jquery_file_upload/bower-version-update.js +0 -16
  84. data/vendor/jquery_file_upload/bower.json +0 -64
  85. data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
  86. data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
  87. data/vendor/jquery_file_upload/css/style.css +0 -15
  88. data/vendor/jquery_file_upload/jquery-ui.html +0 -252
  89. data/vendor/jquery_file_upload/js/app.js +0 -101
  90. data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
  91. data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
  92. data/vendor/jquery_file_upload/js/main.js +0 -75
  93. data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
  94. data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
  95. data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
  96. data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
  97. data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
  98. data/vendor/jquery_file_upload/test/test.js +0 -1292
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- var path = require('path');
6
- var packageJSON = require(path.join(__dirname, 'package.json'));
7
- var bowerFile = path.join(__dirname, 'bower.json');
8
- var bowerJSON = require('bower-json').parse(
9
- require(bowerFile),
10
- {normalize: true}
11
- );
12
- bowerJSON.version = packageJSON.version;
13
- require('fs').writeFileSync(
14
- bowerFile,
15
- JSON.stringify(bowerJSON, null, 2) + '\n'
16
- );
@@ -1,64 +0,0 @@
1
- {
2
- "name": "blueimp-file-upload",
3
- "version": "9.21.0",
4
- "title": "jQuery File Upload",
5
- "description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images.",
6
- "keywords": [
7
- "jquery",
8
- "file",
9
- "upload",
10
- "widget",
11
- "multiple",
12
- "selection",
13
- "drag",
14
- "drop",
15
- "progress",
16
- "preview",
17
- "cross-domain",
18
- "cross-site",
19
- "chunk",
20
- "resume",
21
- "gae",
22
- "go",
23
- "python",
24
- "php",
25
- "bootstrap"
26
- ],
27
- "homepage": "https://github.com/blueimp/jQuery-File-Upload",
28
- "author": {
29
- "name": "Sebastian Tschan",
30
- "url": "https://blueimp.net"
31
- },
32
- "maintainers": [
33
- {
34
- "name": "Sebastian Tschan",
35
- "url": "https://blueimp.net"
36
- }
37
- ],
38
- "repository": {
39
- "type": "git",
40
- "url": "git://github.com/blueimp/jQuery-File-Upload.git"
41
- },
42
- "bugs": "https://github.com/blueimp/jQuery-File-Upload/issues",
43
- "license": "MIT",
44
- "dependencies": {
45
- "jquery": ">=1.6",
46
- "blueimp-tmpl": ">=2.5.4",
47
- "blueimp-load-image": ">=1.13.0",
48
- "blueimp-canvas-to-blob": ">=2.1.1"
49
- },
50
- "main": [
51
- "js/jquery.fileupload.js"
52
- ],
53
- "ignore": [
54
- "/*.*",
55
- "/cors",
56
- "css/jquery-ui-demo-ie8.css",
57
- "css/jquery-ui-demo.css",
58
- "css/style.css",
59
- "js/app.js",
60
- "js/main.js",
61
- "server",
62
- "test"
63
- ]
64
- }
@@ -1,21 +0,0 @@
1
- @charset "UTF-8";
2
- /*
3
- * jQuery File Upload Demo CSS Fixes for IE<9
4
- * https://github.com/blueimp/jQuery-File-Upload
5
- *
6
- * Copyright 2013, Sebastian Tschan
7
- * https://blueimp.net
8
- *
9
- * Licensed under the MIT license:
10
- * https://opensource.org/licenses/MIT
11
- */
12
-
13
- .navigation {
14
- list-style: none;
15
- padding: 0;
16
- margin: 1em 0;
17
- }
18
- .navigation li {
19
- display: inline;
20
- margin-right: 10px;
21
- }
@@ -1,67 +0,0 @@
1
- @charset "UTF-8";
2
- /*
3
- * jQuery File Upload Demo CSS
4
- * https://github.com/blueimp/jQuery-File-Upload
5
- *
6
- * Copyright 2013, Sebastian Tschan
7
- * https://blueimp.net
8
- *
9
- * Licensed under the MIT license:
10
- * https://opensource.org/licenses/MIT
11
- */
12
-
13
- body {
14
- max-width: 750px;
15
- margin: 0 auto;
16
- padding: 1em;
17
- font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
18
- font-size: 1em;
19
- line-height: 1.4em;
20
- background: #222;
21
- color: #fff;
22
- -webkit-text-size-adjust: 100%;
23
- -ms-text-size-adjust: 100%;
24
- }
25
- a {
26
- color: orange;
27
- text-decoration: none;
28
- }
29
- img {
30
- border: 0;
31
- vertical-align: middle;
32
- }
33
- h1 {
34
- line-height: 1em;
35
- }
36
- blockquote {
37
- padding: 0 0 0 15px;
38
- margin: 0 0 20px;
39
- border-left: 5px solid #eee;
40
- }
41
- table {
42
- width: 100%;
43
- margin: 10px 0;
44
- }
45
-
46
- .fileupload-progress {
47
- margin: 10px 0;
48
- }
49
- .fileupload-progress .progress-extended {
50
- margin-top: 5px;
51
- }
52
- .error {
53
- color: red;
54
- }
55
-
56
- @media (min-width: 481px) {
57
- .navigation {
58
- list-style: none;
59
- padding: 0;
60
- }
61
- .navigation li {
62
- display: inline-block;
63
- }
64
- .navigation li:not(:first-child):before {
65
- content: "| ";
66
- }
67
- }
@@ -1,15 +0,0 @@
1
- @charset "UTF-8";
2
- /*
3
- * jQuery File Upload Plugin CSS Example
4
- * https://github.com/blueimp/jQuery-File-Upload
5
- *
6
- * Copyright 2013, Sebastian Tschan
7
- * https://blueimp.net
8
- *
9
- * Licensed under the MIT license:
10
- * https://opensource.org/licenses/MIT
11
- */
12
-
13
- body {
14
- padding-top: 60px;
15
- }
@@ -1,252 +0,0 @@
1
- <!DOCTYPE HTML>
2
- <!--
3
- /*
4
- * jQuery File Upload Plugin jQuery UI Demo
5
- * https://github.com/blueimp/jQuery-File-Upload
6
- *
7
- * Copyright 2013, Sebastian Tschan
8
- * https://blueimp.net
9
- *
10
- * Licensed under the MIT license:
11
- * https://opensource.org/licenses/MIT
12
- */
13
- -->
14
- <html lang="en">
15
- <head>
16
- <!-- Force latest IE rendering engine or ChromeFrame if installed -->
17
- <!--[if IE]>
18
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
19
- <![endif]-->
20
- <meta charset="utf-8">
21
- <title>jQuery File Upload Demo - jQuery UI version</title>
22
- <meta name="description" content="File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.">
23
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
24
- <!-- jQuery UI styles -->
25
- <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/dark-hive/jquery-ui.css" id="theme">
26
- <!-- Generic page styles -->
27
- <link rel="stylesheet" href="css/style.css">
28
- <!-- Demo styles -->
29
- <link rel="stylesheet" href="css/jquery-ui-demo.css">
30
- <!--[if lte IE 8]>
31
- <link rel="stylesheet" href="css/jquery-ui-demo-ie8.css">
32
- <![endif]-->
33
- <style>
34
- /* Adjust the jQuery UI widget font-size: */
35
- .ui-widget {
36
- font-size: 0.95em;
37
- }
38
- </style>
39
- <!-- blueimp Gallery styles -->
40
- <link rel="stylesheet" href="https://blueimp.github.io/Gallery/css/blueimp-gallery.min.css">
41
- <!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
42
- <link rel="stylesheet" href="css/jquery.fileupload.css">
43
- <link rel="stylesheet" href="css/jquery.fileupload-ui.css">
44
- <!-- CSS adjustments for browsers with JavaScript disabled -->
45
- <noscript><link rel="stylesheet" href="css/jquery.fileupload-noscript.css"></noscript>
46
- <noscript><link rel="stylesheet" href="css/jquery.fileupload-ui-noscript.css"></noscript>
47
- </head>
48
- <body>
49
- <ul class="navigation">
50
- <li><h3><a href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a></h3></li>
51
- <li><a href="https://github.com/blueimp/jQuery-File-Upload/tags">Download</a></li>
52
- <li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
53
- <li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
54
- <li><a href="https://blueimp.net">&copy; blueimp.net</a></li>
55
- </ul>
56
- <h1>jQuery File Upload Demo</h1>
57
- <h2>jQuery UI version</h2>
58
- <form>
59
- <label for="theme-switcher">Theme:</label>
60
- <select id="theme-switcher" class="pull-right">
61
- <option value="black-tie">Black Tie</option>
62
- <option value="blitzer">Blitzer</option>
63
- <option value="cupertino">Cupertino</option>
64
- <option value="dark-hive" selected>Dark Hive</option>
65
- <option value="dot-luv">Dot Luv</option>
66
- <option value="eggplant">Eggplant</option>
67
- <option value="excite-bike">Excite Bike</option>
68
- <option value="flick">Flick</option>
69
- <option value="hot-sneaks">Hot sneaks</option>
70
- <option value="humanity">Humanity</option>
71
- <option value="le-frog">Le Frog</option>
72
- <option value="mint-choc">Mint Choc</option>
73
- <option value="overcast">Overcast</option>
74
- <option value="pepper-grinder">Pepper Grinder</option>
75
- <option value="redmond">Redmond</option>
76
- <option value="smoothness">Smoothness</option>
77
- <option value="south-street">South Street</option>
78
- <option value="start">Start</option>
79
- <option value="sunny">Sunny</option>
80
- <option value="swanky-purse">Swanky Purse</option>
81
- <option value="trontastic">Trontastic</option>
82
- <option value="ui-darkness">UI Darkness</option>
83
- <option value="ui-lightness">UI Lightness</option>
84
- <option value="vader">Vader</option>
85
- </select>
86
- </form>
87
- <ul class="navigation">
88
- <li><a href="basic.html">Basic</a></li>
89
- <li><a href="basic-plus.html">Basic Plus</a></li>
90
- <li><a href="index.html">Basic Plus UI</a></li>
91
- <li><a href="angularjs.html">AngularJS</a></li>
92
- <li class="active"><a href="jquery-ui.html">jQuery UI</a></li>
93
- </ul>
94
- <blockquote>
95
- <p>File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery UI.<br>
96
- Supports cross-domain, chunked and resumable file uploads and client-side image resizing.<br>
97
- Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
98
- </blockquote>
99
- <!-- The file upload form used as target for the file upload widget -->
100
- <form id="fileupload" action="https://jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data">
101
- <!-- Redirect browsers with JavaScript disabled to the origin page -->
102
- <noscript><input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/"></noscript>
103
- <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
104
- <div class="fileupload-buttonbar">
105
- <div class="fileupload-buttons">
106
- <!-- The fileinput-button span is used to style the file input field as button -->
107
- <span class="fileinput-button">
108
- <span>Add files...</span>
109
- <input type="file" name="files[]" multiple>
110
- </span>
111
- <button type="submit" class="start">Start upload</button>
112
- <button type="reset" class="cancel">Cancel upload</button>
113
- <button type="button" class="delete">Delete</button>
114
- <input type="checkbox" class="toggle">
115
- <!-- The global file processing state -->
116
- <span class="fileupload-process"></span>
117
- </div>
118
- <!-- The global progress state -->
119
- <div class="fileupload-progress fade" style="display:none">
120
- <!-- The global progress bar -->
121
- <div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
122
- <!-- The extended global progress state -->
123
- <div class="progress-extended">&nbsp;</div>
124
- </div>
125
- </div>
126
- <!-- The table listing the files available for upload/download -->
127
- <table role="presentation"><tbody class="files"></tbody></table>
128
- </form>
129
- <br>
130
- <h3>Demo Notes</h3>
131
- <ul>
132
- <li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
133
- <li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
134
- <li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
135
- <li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
136
- <li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
137
- <li>Built with <a href="https://jqueryui.com">jQuery UI</a>.</li>
138
- </ul>
139
- <!-- The blueimp Gallery widget -->
140
- <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
141
- <div class="slides"></div>
142
- <h3 class="title"></h3>
143
- <a class="prev">‹</a>
144
- <a class="next">›</a>
145
- <a class="close">×</a>
146
- <a class="play-pause"></a>
147
- <ol class="indicator"></ol>
148
- </div>
149
- <!-- The template to display files available for upload -->
150
- <script id="template-upload" type="text/x-tmpl">
151
- {% for (var i=0, file; file=o.files[i]; i++) { %}
152
- <tr class="template-upload fade">
153
- <td>
154
- <span class="preview"></span>
155
- </td>
156
- <td>
157
- <p class="name">{%=file.name%}</p>
158
- <strong class="error"></strong>
159
- </td>
160
- <td>
161
- <p class="size">Processing...</p>
162
- <div class="progress"></div>
163
- </td>
164
- <td>
165
- {% if (!i && !o.options.autoUpload) { %}
166
- <button class="start" disabled>Start</button>
167
- {% } %}
168
- {% if (!i) { %}
169
- <button class="cancel">Cancel</button>
170
- {% } %}
171
- </td>
172
- </tr>
173
- {% } %}
174
- </script>
175
- <!-- The template to display files available for download -->
176
- <script id="template-download" type="text/x-tmpl">
177
- {% for (var i=0, file; file=o.files[i]; i++) { %}
178
- <tr class="template-download fade">
179
- <td>
180
- <span class="preview">
181
- {% if (file.thumbnailUrl) { %}
182
- <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
183
- {% } %}
184
- </span>
185
- </td>
186
- <td>
187
- <p class="name">
188
- <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
189
- </p>
190
- {% if (file.error) { %}
191
- <div><span class="error">Error</span> {%=file.error%}</div>
192
- {% } %}
193
- </td>
194
- <td>
195
- <span class="size">{%=o.formatFileSize(file.size)%}</span>
196
- </td>
197
- <td>
198
- <button class="delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>Delete</button>
199
- <input type="checkbox" name="delete" value="1" class="toggle">
200
- </td>
201
- </tr>
202
- {% } %}
203
- </script>
204
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
205
- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
206
- <!-- The Templates plugin is included to render the upload/download listings -->
207
- <script src="https://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
208
- <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
209
- <script src="https://blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
210
- <!-- The Canvas to Blob plugin is included for image resizing functionality -->
211
- <script src="https://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
212
- <!-- blueimp Gallery script -->
213
- <script src="https://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
214
- <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
215
- <script src="js/jquery.iframe-transport.js"></script>
216
- <!-- The basic File Upload plugin -->
217
- <script src="js/jquery.fileupload.js"></script>
218
- <!-- The File Upload processing plugin -->
219
- <script src="js/jquery.fileupload-process.js"></script>
220
- <!-- The File Upload image preview & resize plugin -->
221
- <script src="js/jquery.fileupload-image.js"></script>
222
- <!-- The File Upload audio preview plugin -->
223
- <script src="js/jquery.fileupload-audio.js"></script>
224
- <!-- The File Upload video preview plugin -->
225
- <script src="js/jquery.fileupload-video.js"></script>
226
- <!-- The File Upload validation plugin -->
227
- <script src="js/jquery.fileupload-validate.js"></script>
228
- <!-- The File Upload user interface plugin -->
229
- <script src="js/jquery.fileupload-ui.js"></script>
230
- <!-- The File Upload jQuery UI plugin -->
231
- <script src="js/jquery.fileupload-jquery-ui.js"></script>
232
- <!-- The main application script -->
233
- <script src="js/main.js"></script>
234
- <script>
235
- // Initialize the jQuery UI theme switcher:
236
- $('#theme-switcher').change(function () {
237
- var theme = $('#theme');
238
- theme.prop(
239
- 'href',
240
- theme.prop('href').replace(
241
- /[\w\-]+\/jquery-ui.css/,
242
- $(this).val() + '/jquery-ui.css'
243
- )
244
- );
245
- });
246
- </script>
247
- <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
248
- <!--[if (gte IE 8)&(lt IE 10)]>
249
- <script src="js/cors/jquery.xdr-transport.js"></script>
250
- <![endif]-->
251
- </body>
252
- </html>
@@ -1,101 +0,0 @@
1
- /*
2
- * jQuery File Upload Plugin Angular JS Example
3
- * https://github.com/blueimp/jQuery-File-Upload
4
- *
5
- * Copyright 2013, Sebastian Tschan
6
- * https://blueimp.net
7
- *
8
- * Licensed under the MIT license:
9
- * https://opensource.org/licenses/MIT
10
- */
11
-
12
- /* jshint nomen:false */
13
- /* global window, angular */
14
-
15
- ;(function () {
16
- 'use strict';
17
-
18
- var isOnGitHub = window.location.hostname === 'blueimp.github.io',
19
- url = isOnGitHub ? '//jquery-file-upload.appspot.com/' : 'server/php/';
20
-
21
- angular.module('demo', [
22
- 'blueimp.fileupload'
23
- ])
24
- .config([
25
- '$httpProvider', 'fileUploadProvider',
26
- function ($httpProvider, fileUploadProvider) {
27
- delete $httpProvider.defaults.headers.common['X-Requested-With'];
28
- fileUploadProvider.defaults.redirect = window.location.href.replace(
29
- /\/[^\/]*$/,
30
- '/cors/result.html?%s'
31
- );
32
- if (isOnGitHub) {
33
- // Demo settings:
34
- angular.extend(fileUploadProvider.defaults, {
35
- // Enable image resizing, except for Android and Opera,
36
- // which actually support image resizing, but fail to
37
- // send Blob objects via XHR requests:
38
- disableImageResize: /Android(?!.*Chrome)|Opera/
39
- .test(window.navigator.userAgent),
40
- maxFileSize: 999000,
41
- acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
42
- });
43
- }
44
- }
45
- ])
46
-
47
- .controller('DemoFileUploadController', [
48
- '$scope', '$http', '$filter', '$window',
49
- function ($scope, $http) {
50
- $scope.options = {
51
- url: url
52
- };
53
- if (!isOnGitHub) {
54
- $scope.loadingFiles = true;
55
- $http.get(url)
56
- .then(
57
- function (response) {
58
- $scope.loadingFiles = false;
59
- $scope.queue = response.data.files || [];
60
- },
61
- function () {
62
- $scope.loadingFiles = false;
63
- }
64
- );
65
- }
66
- }
67
- ])
68
-
69
- .controller('FileDestroyController', [
70
- '$scope', '$http',
71
- function ($scope, $http) {
72
- var file = $scope.file,
73
- state;
74
- if (file.url) {
75
- file.$state = function () {
76
- return state;
77
- };
78
- file.$destroy = function () {
79
- state = 'pending';
80
- return $http({
81
- url: file.deleteUrl,
82
- method: file.deleteType
83
- }).then(
84
- function () {
85
- state = 'resolved';
86
- $scope.clear(file);
87
- },
88
- function () {
89
- state = 'rejected';
90
- }
91
- );
92
- };
93
- } else if (!file.$cancel && !file._index) {
94
- file.$cancel = function () {
95
- $scope.clear(file);
96
- };
97
- }
98
- }
99
- ]);
100
-
101
- }());