card-mod-script 0.13.3 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/decko/components.js.coffee +3 -0
- data/assets/script/decko/decko.js.coffee +0 -15
- data/assets/script/decko/editor.js.coffee +3 -1
- data/assets/script/decko/filter.js.coffee +13 -6
- data/assets/script/decko/mod.js.coffee +2 -8
- data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
- data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
- data/assets/script/decko/slot.js.coffee +2 -2
- data/assets/script/decko/slot_ready.js.coffee +1 -0
- data/assets/script/decko/slotter.js.coffee +23 -31
- data/assets/script/decko/type_editor.js.coffee +21 -0
- data/assets/script/decko/upload.js.coffee +12 -5
- data/assets/script/manifest.yml +15 -2
- data/set/abstract/00_script.rb +30 -31
- data/set/abstract/01_asset_script.rb +0 -16
- data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
- data/set/all/head_javascript.rb +4 -5
- data/set/right/script.rb +1 -14
- data/set/type/local_script_folder_group.rb +2 -2
- data/set/type/local_script_manifest_group.rb +1 -1
- data/set/type_plus_right/mod/script.rb +56 -0
- data/set/type_plus_right/set/script.rb +7 -0
- data/vendor/jquery_file_upload/LICENSE.txt +11 -12
- data/vendor/jquery_file_upload/README.md +189 -72
- data/vendor/jquery_file_upload/SECURITY.md +227 -0
- data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
- data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
- data/vendor/jquery_file_upload/cors/result.html +12 -10
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
- data/vendor/jquery_file_upload/docker-compose.yml +55 -0
- data/vendor/jquery_file_upload/index.html +332 -230
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
- data/vendor/jquery_file_upload/js/demo.js +75 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
- data/vendor/jquery_file_upload/package-lock.json +6853 -0
- data/vendor/jquery_file_upload/package.json +71 -10
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
- data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
- data/vendor/jquery_file_upload/server/php/php.ini +5 -0
- data/vendor/jquery_file_upload/test/index.html +36 -159
- data/vendor/jquery_file_upload/test/unit.js +989 -0
- data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
- data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
- data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
- data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
- data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
- data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
- data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
- data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
- metadata +34 -52
- data/file/mod_script_script_decko_machine_output/file.js +0 -2685
- data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
- data/lib/javascript/script_html5shiv_printshiv.js +0 -1
- data/set/self/script_html5shiv_printshiv.rb +0 -11
- data/set/self/script_mods.rb +0 -1
- data/set/type/mod_script_assets.rb +0 -21
- data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
- data/vendor/jquery_file_upload/angularjs.html +0 -211
- data/vendor/jquery_file_upload/basic-plus.html +0 -226
- data/vendor/jquery_file_upload/basic.html +0 -136
- data/vendor/jquery_file_upload/bower-version-update.js +0 -16
- data/vendor/jquery_file_upload/bower.json +0 -64
- data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
- data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
- data/vendor/jquery_file_upload/css/style.css +0 -15
- data/vendor/jquery_file_upload/jquery-ui.html +0 -252
- data/vendor/jquery_file_upload/js/app.js +0 -101
- data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
- data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
- data/vendor/jquery_file_upload/js/main.js +0 -75
- data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
- data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
- data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
- data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
- data/vendor/jquery_file_upload/test/test.js +0 -1292
@@ -1,4 +1,4 @@
|
|
1
|
-
<!DOCTYPE
|
1
|
+
<!DOCTYPE html>
|
2
2
|
<!--
|
3
3
|
/*
|
4
4
|
* jQuery File Upload Plugin postMessage API
|
@@ -12,64 +12,74 @@
|
|
12
12
|
*/
|
13
13
|
-->
|
14
14
|
<html lang="en">
|
15
|
-
<head>
|
16
|
-
<meta charset="utf-8"
|
17
|
-
<title>jQuery File Upload Plugin postMessage API</title>
|
18
|
-
<script
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
f.append(v.name, v.value);
|
15
|
+
<head>
|
16
|
+
<meta charset="utf-8" />
|
17
|
+
<title>jQuery File Upload Plugin postMessage API</title>
|
18
|
+
<script
|
19
|
+
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"
|
20
|
+
integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
|
21
|
+
crossorigin="anonymous"
|
22
|
+
></script>
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
<script>
|
26
|
+
'use strict';
|
27
|
+
var origin = /^https:\/\/example.org/,
|
28
|
+
target = new RegExp('^(http(s)?:)?\\/\\/' + location.host + '\\/');
|
29
|
+
$(window).on('message', function (e) {
|
30
|
+
e = e.originalEvent;
|
31
|
+
var s = e.data,
|
32
|
+
xhr = $.ajaxSettings.xhr(),
|
33
|
+
f;
|
34
|
+
if (!origin.test(e.origin)) {
|
35
|
+
throw new Error('Origin "' + e.origin + '" does not match ' + origin);
|
36
|
+
}
|
37
|
+
if (!target.test(e.data.url)) {
|
38
|
+
throw new Error(
|
39
|
+
'Target "' + e.data.url + '" does not match ' + target
|
40
|
+
);
|
41
|
+
}
|
42
|
+
$(xhr.upload).on('progress', function (ev) {
|
43
|
+
ev = ev.originalEvent;
|
44
|
+
e.source.postMessage(
|
45
|
+
{
|
46
|
+
id: s.id,
|
47
|
+
type: ev.type,
|
48
|
+
timeStamp: ev.timeStamp,
|
49
|
+
lengthComputable: ev.lengthComputable,
|
50
|
+
loaded: ev.loaded,
|
51
|
+
total: ev.total
|
52
|
+
},
|
53
|
+
e.origin
|
54
|
+
);
|
56
55
|
});
|
57
|
-
s.
|
58
|
-
|
59
|
-
|
60
|
-
if (!
|
56
|
+
s.xhr = function () {
|
57
|
+
return xhr;
|
58
|
+
};
|
59
|
+
if (!(s.data instanceof Blob)) {
|
60
|
+
f = new FormData();
|
61
|
+
$.each(s.data, function (i, v) {
|
62
|
+
f.append(v.name, v.value);
|
63
|
+
});
|
64
|
+
s.data = f;
|
65
|
+
}
|
66
|
+
$.ajax(s).always(function (result, statusText, jqXHR) {
|
67
|
+
if (!jqXHR.done) {
|
61
68
|
jqXHR = result;
|
62
69
|
result = null;
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
70
|
+
}
|
71
|
+
e.source.postMessage(
|
72
|
+
{
|
73
|
+
id: s.id,
|
74
|
+
status: jqXHR.status,
|
75
|
+
statusText: statusText,
|
76
|
+
result: result,
|
77
|
+
headers: jqXHR.getAllResponseHeaders()
|
78
|
+
},
|
79
|
+
e.origin
|
80
|
+
);
|
81
|
+
});
|
82
|
+
});
|
83
|
+
</script>
|
84
|
+
</body>
|
75
85
|
</html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<!DOCTYPE
|
1
|
+
<!DOCTYPE html>
|
2
2
|
<!--
|
3
3
|
/*
|
4
4
|
* jQuery Iframe Transport Plugin Redirect Page
|
@@ -12,13 +12,15 @@
|
|
12
12
|
*/
|
13
13
|
-->
|
14
14
|
<html lang="en">
|
15
|
-
<head>
|
16
|
-
<meta charset="utf-8"
|
17
|
-
<title>jQuery Iframe Transport Plugin Redirect Page</title>
|
18
|
-
</head>
|
19
|
-
<body>
|
20
|
-
<script>
|
21
|
-
document.body.innerText=document.body.textContent=decodeURIComponent(
|
22
|
-
|
23
|
-
|
15
|
+
<head>
|
16
|
+
<meta charset="utf-8" />
|
17
|
+
<title>jQuery Iframe Transport Plugin Redirect Page</title>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<script>
|
21
|
+
document.body.innerText = document.body.textContent = decodeURIComponent(
|
22
|
+
window.location.search.slice(1)
|
23
|
+
);
|
24
|
+
</script>
|
25
|
+
</body>
|
24
26
|
</html>
|
@@ -10,13 +10,9 @@
|
|
10
10
|
* https://opensource.org/licenses/MIT
|
11
11
|
*/
|
12
12
|
|
13
|
-
.fileupload-buttonbar .btn,
|
14
|
-
.fileupload-buttonbar .toggle {
|
15
|
-
margin-bottom: 5px;
|
16
|
-
}
|
17
13
|
.progress-animated .progress-bar,
|
18
14
|
.progress-animated .bar {
|
19
|
-
background: url(
|
15
|
+
background: url('../img/progressbar.gif') !important;
|
20
16
|
filter: none;
|
21
17
|
}
|
22
18
|
.fileupload-process {
|
@@ -28,30 +24,45 @@
|
|
28
24
|
display: block;
|
29
25
|
width: 32px;
|
30
26
|
height: 32px;
|
31
|
-
background: url(
|
27
|
+
background: url('../img/loading.gif') center no-repeat;
|
32
28
|
background-size: contain;
|
33
29
|
}
|
34
30
|
.files audio,
|
35
31
|
.files video {
|
36
32
|
max-width: 300px;
|
37
33
|
}
|
34
|
+
.files .name {
|
35
|
+
word-wrap: break-word;
|
36
|
+
overflow-wrap: anywhere;
|
37
|
+
-webkit-hyphens: auto;
|
38
|
+
hyphens: auto;
|
39
|
+
}
|
40
|
+
.files button {
|
41
|
+
margin-bottom: 5px;
|
42
|
+
}
|
43
|
+
.toggle[type='checkbox'] {
|
44
|
+
transform: scale(2);
|
45
|
+
margin-left: 10px;
|
46
|
+
}
|
38
47
|
|
39
48
|
@media (max-width: 767px) {
|
49
|
+
.fileupload-buttonbar .btn {
|
50
|
+
margin-bottom: 5px;
|
51
|
+
}
|
52
|
+
.fileupload-buttonbar .delete,
|
40
53
|
.fileupload-buttonbar .toggle,
|
41
54
|
.files .toggle,
|
42
55
|
.files .btn span {
|
43
56
|
display: none;
|
44
57
|
}
|
45
|
-
.files .name {
|
46
|
-
width: 80px;
|
47
|
-
word-wrap: break-word;
|
48
|
-
}
|
49
58
|
.files audio,
|
50
59
|
.files video {
|
51
60
|
max-width: 80px;
|
52
61
|
}
|
53
|
-
|
54
|
-
|
55
|
-
|
62
|
+
}
|
63
|
+
|
64
|
+
@media (max-width: 480px) {
|
65
|
+
.files .image td:nth-child(2) {
|
66
|
+
display: none;
|
56
67
|
}
|
57
68
|
}
|
@@ -20,8 +20,9 @@
|
|
20
20
|
top: 0;
|
21
21
|
right: 0;
|
22
22
|
margin: 0;
|
23
|
+
height: 100%;
|
23
24
|
opacity: 0;
|
24
|
-
|
25
|
+
filter: alpha(opacity=0);
|
25
26
|
font-size: 200px !important;
|
26
27
|
direction: ltr;
|
27
28
|
cursor: pointer;
|
@@ -30,8 +31,6 @@
|
|
30
31
|
/* Fixes for IE < 8 */
|
31
32
|
@media screen\9 {
|
32
33
|
.fileinput-button input {
|
33
|
-
|
34
|
-
font-size: 100%;
|
35
|
-
height: 100%;
|
34
|
+
font-size: 150% !important;
|
36
35
|
}
|
37
36
|
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
version: '3.7'
|
2
|
+
services:
|
3
|
+
example:
|
4
|
+
build: server/php
|
5
|
+
ports:
|
6
|
+
- 127.0.0.1:80:80
|
7
|
+
volumes:
|
8
|
+
- .:/var/www/html
|
9
|
+
mocha:
|
10
|
+
image: blueimp/mocha-chrome
|
11
|
+
command: http://example/test
|
12
|
+
environment:
|
13
|
+
- WAIT_FOR_HOSTS=example:80
|
14
|
+
depends_on:
|
15
|
+
- example
|
16
|
+
chromedriver:
|
17
|
+
image: blueimp/chromedriver
|
18
|
+
tmpfs: /tmp
|
19
|
+
environment:
|
20
|
+
- DISABLE_X11=false
|
21
|
+
- ENABLE_VNC=true
|
22
|
+
- EXPOSE_X11=true
|
23
|
+
volumes:
|
24
|
+
- ./wdio/assets:/home/webdriver/assets:ro
|
25
|
+
ports:
|
26
|
+
- 127.0.0.1:5900:5900
|
27
|
+
geckodriver:
|
28
|
+
image: blueimp/geckodriver
|
29
|
+
tmpfs: /tmp
|
30
|
+
shm_size: 2g
|
31
|
+
environment:
|
32
|
+
- DISABLE_X11=false
|
33
|
+
- ENABLE_VNC=true
|
34
|
+
- EXPOSE_X11=true
|
35
|
+
volumes:
|
36
|
+
- ./wdio/assets:/home/webdriver/assets:ro
|
37
|
+
ports:
|
38
|
+
- 127.0.0.1:5901:5900
|
39
|
+
wdio:
|
40
|
+
image: blueimp/wdio
|
41
|
+
read_only: true
|
42
|
+
tmpfs:
|
43
|
+
- /tmp
|
44
|
+
environment:
|
45
|
+
- WAIT_FOR_HOSTS=chromedriver:4444 geckodriver:4444 example:80
|
46
|
+
- WINDOWS_HOST
|
47
|
+
- MACOS_ASSETS_DIR=$PWD/wdio/assets/
|
48
|
+
- WINDOWS_ASSETS_DIR
|
49
|
+
volumes:
|
50
|
+
- ./wdio:/app:ro
|
51
|
+
- ./wdio/reports:/app/reports
|
52
|
+
depends_on:
|
53
|
+
- chromedriver
|
54
|
+
- geckodriver
|
55
|
+
- example
|