card-mod-script 0.13.3 → 0.14.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.
Files changed (92) 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 +13 -6
  6. data/assets/script/decko/mod.js.coffee +2 -8
  7. data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
  8. data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
  9. data/assets/script/decko/slot.js.coffee +2 -2
  10. data/assets/script/decko/slot_ready.js.coffee +1 -0
  11. data/assets/script/decko/slotter.js.coffee +23 -31
  12. data/assets/script/decko/type_editor.js.coffee +21 -0
  13. data/assets/script/decko/upload.js.coffee +12 -5
  14. data/assets/script/manifest.yml +15 -2
  15. data/set/abstract/00_script.rb +30 -31
  16. data/set/abstract/01_asset_script.rb +0 -16
  17. data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
  18. data/set/all/head_javascript.rb +4 -5
  19. data/set/right/script.rb +1 -14
  20. data/set/type/local_script_folder_group.rb +2 -2
  21. data/set/type/local_script_manifest_group.rb +1 -1
  22. data/set/type_plus_right/mod/script.rb +56 -0
  23. data/set/type_plus_right/set/script.rb +7 -0
  24. data/vendor/jquery_file_upload/LICENSE.txt +11 -12
  25. data/vendor/jquery_file_upload/README.md +189 -72
  26. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  27. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  28. data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
  29. data/vendor/jquery_file_upload/cors/result.html +12 -10
  30. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
  31. data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
  32. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  33. data/vendor/jquery_file_upload/index.html +332 -230
  34. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
  35. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
  36. data/vendor/jquery_file_upload/js/demo.js +75 -0
  37. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
  38. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
  39. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
  40. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
  41. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
  42. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
  43. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
  44. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
  45. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
  46. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  47. data/vendor/jquery_file_upload/package.json +71 -10
  48. data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
  49. data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
  50. data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
  51. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  52. data/vendor/jquery_file_upload/test/index.html +36 -159
  53. data/vendor/jquery_file_upload/test/unit.js +989 -0
  54. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  55. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  56. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  57. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  58. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  59. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  60. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  61. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  62. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  63. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  64. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  65. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  66. metadata +34 -52
  67. data/file/mod_script_script_decko_machine_output/file.js +0 -2685
  68. data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
  69. data/lib/javascript/script_html5shiv_printshiv.js +0 -1
  70. data/set/self/script_html5shiv_printshiv.rb +0 -11
  71. data/set/self/script_mods.rb +0 -1
  72. data/set/type/mod_script_assets.rb +0 -21
  73. data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
  74. data/vendor/jquery_file_upload/angularjs.html +0 -211
  75. data/vendor/jquery_file_upload/basic-plus.html +0 -226
  76. data/vendor/jquery_file_upload/basic.html +0 -136
  77. data/vendor/jquery_file_upload/bower-version-update.js +0 -16
  78. data/vendor/jquery_file_upload/bower.json +0 -64
  79. data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
  80. data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
  81. data/vendor/jquery_file_upload/css/style.css +0 -15
  82. data/vendor/jquery_file_upload/jquery-ui.html +0 -252
  83. data/vendor/jquery_file_upload/js/app.js +0 -101
  84. data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
  85. data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
  86. data/vendor/jquery_file_upload/js/main.js +0 -75
  87. data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
  88. data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
  89. data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
  90. data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
  91. data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
  92. data/vendor/jquery_file_upload/test/test.js +0 -1292
@@ -1,4 +1,4 @@
1
- <!DOCTYPE HTML>
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 src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
19
- </head>
20
- <body>
21
- <script>
22
- /*jslint unparam: true, regexp: true */
23
- /*global $, Blob, FormData, location */
24
- 'use strict';
25
- var origin = /^http:\/\/example.org/,
26
- target = new RegExp('^(http(s)?:)?\\/\\/' + location.host + '\\/');
27
- $(window).on('message', function (e) {
28
- e = e.originalEvent;
29
- var s = e.data,
30
- xhr = $.ajaxSettings.xhr(),
31
- f;
32
- if (!origin.test(e.origin)) {
33
- throw new Error('Origin "' + e.origin + '" does not match ' + origin);
34
- }
35
- if (!target.test(e.data.url)) {
36
- throw new Error('Target "' + e.data.url + '" does not match ' + target);
37
- }
38
- $(xhr.upload).on('progress', function (ev) {
39
- ev = ev.originalEvent;
40
- e.source.postMessage({
41
- id: s.id,
42
- type: ev.type,
43
- timeStamp: ev.timeStamp,
44
- lengthComputable: ev.lengthComputable,
45
- loaded: ev.loaded,
46
- total: ev.total
47
- }, e.origin);
48
- });
49
- s.xhr = function () {
50
- return xhr;
51
- };
52
- if (!(s.data instanceof Blob)) {
53
- f = new FormData();
54
- $.each(s.data, function (i, v) {
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.data = f;
58
- }
59
- $.ajax(s).always(function (result, statusText, jqXHR) {
60
- if (!jqXHR.done) {
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
- e.source.postMessage({
65
- id: s.id,
66
- status: jqXHR.status,
67
- statusText: statusText,
68
- result: result,
69
- headers: jqXHR.getAllResponseHeaders()
70
- }, e.origin);
71
- });
72
- });
73
- </script>
74
- </body>
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 HTML>
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(window.location.search.slice(1));
22
- </script>
23
- </body>
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("../img/progressbar.gif") !important;
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("../img/loading.gif") center no-repeat;
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
- .files img,
54
- .files canvas {
55
- max-width: 100%;
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
- -ms-filter: 'alpha(opacity=0)';
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
- filter: alpha(opacity=0);
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