card-mod-format 0.14.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/decko/clicks_and_hovers.js.coffee +49 -0
  3. data/assets/script/decko/decko.js.coffee +32 -0
  4. data/assets/script/decko/decko_jquery.js.coffee +25 -0
  5. data/assets/script/decko/slot.js.coffee +150 -0
  6. data/assets/script/decko/slot_ready.js.coffee +11 -0
  7. data/assets/script/decko/slotter.js.coffee +208 -0
  8. data/assets/script/jquery/jquery-ui.min.js +13 -0
  9. data/assets/script/jquery/jquery.autosize.js +274 -0
  10. data/assets/script/jquery/jquery.ui.autocomplete.html.js +41 -0
  11. data/assets/script/manifest.yml +38 -0
  12. data/assets/style/common.scss +73 -0
  13. data/assets/style/logo_and_credit.scss +24 -0
  14. data/assets/style/menu.scss +43 -0
  15. data/assets/style/messaging.scss +59 -0
  16. data/assets/style/misc.scss +90 -0
  17. data/assets/style/open_and_closed.scss +68 -0
  18. data/data/files/credit_image.svg +59 -0
  19. data/data/files/mod_format_script_asset_output/file.js +66 -0
  20. data/data/real.yml +67 -0
  21. data/lib/card/format/html_format.rb +0 -2
  22. data/lib/card/mod/format.rb +4 -0
  23. data/lib/card/path.rb +20 -20
  24. data/set/all/base.rb +1 -11
  25. data/set/all/content.rb +3 -11
  26. data/set/all/csv.rb +22 -74
  27. data/set/all/data.rb +2 -2
  28. data/set/all/demo.rb +6 -2
  29. data/set/all/error.rb +1 -1
  30. data/set/all/html/error.rb +1 -1
  31. data/set/all/html/head.rb +22 -12
  32. data/set/all/html/header.rb +10 -40
  33. data/set/all/html/header_wrap.haml +3 -4
  34. data/set/all/html/labeled.haml +1 -1
  35. data/set/all/html/menu.rb +36 -12
  36. data/set/all/html/views.rb +8 -17
  37. data/set/all/html/wrap.rb +5 -4
  38. data/set/all/html.rb +2 -3
  39. data/set/all/json.rb +1 -5
  40. data/set/right/head.rb +1 -0
  41. data/set/type/cardtype.rb +4 -6
  42. data/set/type/json.rb +1 -1
  43. data/set/type/number.rb +1 -16
  44. data/vendor/jquery_file_upload/LICENSE.txt +20 -0
  45. data/vendor/jquery_file_upload/README.md +224 -0
  46. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  47. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  48. data/vendor/jquery_file_upload/cors/postmessage.html +85 -0
  49. data/vendor/jquery_file_upload/cors/result.html +26 -0
  50. data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +22 -0
  51. data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +17 -0
  52. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +68 -0
  53. data/vendor/jquery_file_upload/css/jquery.fileupload.css +36 -0
  54. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  55. data/vendor/jquery_file_upload/img/loading.gif +0 -0
  56. data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
  57. data/vendor/jquery_file_upload/index.html +357 -0
  58. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +126 -0
  59. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +97 -0
  60. data/vendor/jquery_file_upload/js/demo.js +75 -0
  61. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +101 -0
  62. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +347 -0
  63. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +170 -0
  64. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +759 -0
  65. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +119 -0
  66. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +101 -0
  67. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1604 -0
  68. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +227 -0
  69. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +805 -0
  70. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  71. data/vendor/jquery_file_upload/package.json +116 -0
  72. data/vendor/jquery_file_upload/server/gae-python/app.yaml +18 -0
  73. data/vendor/jquery_file_upload/server/gae-python/main.py +204 -0
  74. data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
  75. data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +2 -0
  76. data/vendor/jquery_file_upload/server/php/Dockerfile +44 -0
  77. data/vendor/jquery_file_upload/server/php/UploadHandler.php +1480 -0
  78. data/vendor/jquery_file_upload/server/php/index.php +15 -0
  79. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  80. data/vendor/jquery_file_upload/test/index.html +49 -0
  81. data/vendor/jquery_file_upload/test/unit.js +989 -0
  82. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  83. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  84. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  85. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  86. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  87. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  88. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  89. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  90. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  91. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  92. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  93. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  94. data/vendor/jquery_rails/CHANGELOG.md +359 -0
  95. data/vendor/jquery_rails/CONTRIBUTING.md +132 -0
  96. data/vendor/jquery_rails/Gemfile +22 -0
  97. data/vendor/jquery_rails/MIT-LICENSE +21 -0
  98. data/vendor/jquery_rails/README.md +75 -0
  99. data/vendor/jquery_rails/Rakefile +59 -0
  100. data/vendor/jquery_rails/VERSIONS.md +62 -0
  101. data/vendor/jquery_rails/jquery-rails.gemspec +26 -0
  102. data/vendor/jquery_rails/lib/jquery/assert_select.rb +149 -0
  103. data/vendor/jquery_rails/lib/jquery/rails/engine.rb +6 -0
  104. data/vendor/jquery_rails/lib/jquery/rails/version.rb +9 -0
  105. data/vendor/jquery_rails/lib/jquery/rails.rb +8 -0
  106. data/vendor/jquery_rails/lib/jquery-rails.rb +1 -0
  107. data/vendor/jquery_rails/test/assert_select_jquery_test.rb +85 -0
  108. data/vendor/jquery_rails/test/test_helper.rb +6 -0
  109. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +11008 -0
  110. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +5 -0
  111. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +1 -0
  112. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +9814 -0
  113. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +4 -0
  114. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +1 -0
  115. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +10364 -0
  116. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +2 -0
  117. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +1 -0
  118. data/vendor/jquery_rails/vendor/assets/javascripts/jquery_ujs.js +555 -0
  119. metadata +104 -7
@@ -0,0 +1,119 @@
1
+ /*
2
+ * jQuery File Upload Validation Plugin
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
+ /* global define, require */
13
+
14
+ (function (factory) {
15
+ 'use strict';
16
+ if (typeof define === 'function' && define.amd) {
17
+ // Register as an anonymous AMD module:
18
+ define(['jquery', './jquery.fileupload-process'], factory);
19
+ } else if (typeof exports === 'object') {
20
+ // Node/CommonJS:
21
+ factory(require('jquery'), require('./jquery.fileupload-process'));
22
+ } else {
23
+ // Browser globals:
24
+ factory(window.jQuery);
25
+ }
26
+ })(function ($) {
27
+ 'use strict';
28
+
29
+ // Append to the default processQueue:
30
+ $.blueimp.fileupload.prototype.options.processQueue.push({
31
+ action: 'validate',
32
+ // Always trigger this action,
33
+ // even if the previous action was rejected:
34
+ always: true,
35
+ // Options taken from the global options map:
36
+ acceptFileTypes: '@',
37
+ maxFileSize: '@',
38
+ minFileSize: '@',
39
+ maxNumberOfFiles: '@',
40
+ disabled: '@disableValidation'
41
+ });
42
+
43
+ // The File Upload Validation plugin extends the fileupload widget
44
+ // with file validation functionality:
45
+ $.widget('blueimp.fileupload', $.blueimp.fileupload, {
46
+ options: {
47
+ /*
48
+ // The regular expression for allowed file types, matches
49
+ // against either file type or file name:
50
+ acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
51
+ // The maximum allowed file size in bytes:
52
+ maxFileSize: 10000000, // 10 MB
53
+ // The minimum allowed file size in bytes:
54
+ minFileSize: undefined, // No minimal file size
55
+ // The limit of files to be uploaded:
56
+ maxNumberOfFiles: 10,
57
+ */
58
+
59
+ // Function returning the current number of files,
60
+ // has to be overridden for maxNumberOfFiles validation:
61
+ getNumberOfFiles: $.noop,
62
+
63
+ // Error and info messages:
64
+ messages: {
65
+ maxNumberOfFiles: 'Maximum number of files exceeded',
66
+ acceptFileTypes: 'File type not allowed',
67
+ maxFileSize: 'File is too large',
68
+ minFileSize: 'File is too small'
69
+ }
70
+ },
71
+
72
+ processActions: {
73
+ validate: function (data, options) {
74
+ if (options.disabled) {
75
+ return data;
76
+ }
77
+ // eslint-disable-next-line new-cap
78
+ var dfd = $.Deferred(),
79
+ settings = this.options,
80
+ file = data.files[data.index],
81
+ fileSize;
82
+ if (options.minFileSize || options.maxFileSize) {
83
+ fileSize = file.size;
84
+ }
85
+ if (
86
+ $.type(options.maxNumberOfFiles) === 'number' &&
87
+ (settings.getNumberOfFiles() || 0) + data.files.length >
88
+ options.maxNumberOfFiles
89
+ ) {
90
+ file.error = settings.i18n('maxNumberOfFiles');
91
+ } else if (
92
+ options.acceptFileTypes &&
93
+ !(
94
+ options.acceptFileTypes.test(file.type) ||
95
+ options.acceptFileTypes.test(file.name)
96
+ )
97
+ ) {
98
+ file.error = settings.i18n('acceptFileTypes');
99
+ } else if (fileSize > options.maxFileSize) {
100
+ file.error = settings.i18n('maxFileSize');
101
+ } else if (
102
+ $.type(fileSize) === 'number' &&
103
+ fileSize < options.minFileSize
104
+ ) {
105
+ file.error = settings.i18n('minFileSize');
106
+ } else {
107
+ delete file.error;
108
+ }
109
+ if (file.error || data.files.error) {
110
+ data.files.error = true;
111
+ dfd.rejectWith(this, [data]);
112
+ } else {
113
+ dfd.resolveWith(this, [data]);
114
+ }
115
+ return dfd.promise();
116
+ }
117
+ }
118
+ });
119
+ });
@@ -0,0 +1,101 @@
1
+ /*
2
+ * jQuery File Upload Video Preview Plugin
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
+ /* global define, require */
13
+
14
+ (function (factory) {
15
+ 'use strict';
16
+ if (typeof define === 'function' && define.amd) {
17
+ // Register as an anonymous AMD module:
18
+ define(['jquery', 'load-image', './jquery.fileupload-process'], factory);
19
+ } else if (typeof exports === 'object') {
20
+ // Node/CommonJS:
21
+ factory(
22
+ require('jquery'),
23
+ require('blueimp-load-image/js/load-image'),
24
+ require('./jquery.fileupload-process')
25
+ );
26
+ } else {
27
+ // Browser globals:
28
+ factory(window.jQuery, window.loadImage);
29
+ }
30
+ })(function ($, loadImage) {
31
+ 'use strict';
32
+
33
+ // Prepend to the default processQueue:
34
+ $.blueimp.fileupload.prototype.options.processQueue.unshift(
35
+ {
36
+ action: 'loadVideo',
37
+ // Use the action as prefix for the "@" options:
38
+ prefix: true,
39
+ fileTypes: '@',
40
+ maxFileSize: '@',
41
+ disabled: '@disableVideoPreview'
42
+ },
43
+ {
44
+ action: 'setVideo',
45
+ name: '@videoPreviewName',
46
+ disabled: '@disableVideoPreview'
47
+ }
48
+ );
49
+
50
+ // The File Upload Video Preview plugin extends the fileupload widget
51
+ // with video preview functionality:
52
+ $.widget('blueimp.fileupload', $.blueimp.fileupload, {
53
+ options: {
54
+ // The regular expression for the types of video files to load,
55
+ // matched against the file type:
56
+ loadVideoFileTypes: /^video\/.*$/
57
+ },
58
+
59
+ _videoElement: document.createElement('video'),
60
+
61
+ processActions: {
62
+ // Loads the video file given via data.files and data.index
63
+ // as video element if the browser supports playing it.
64
+ // Accepts the options fileTypes (regular expression)
65
+ // and maxFileSize (integer) to limit the files to load:
66
+ loadVideo: function (data, options) {
67
+ if (options.disabled) {
68
+ return data;
69
+ }
70
+ var file = data.files[data.index],
71
+ url,
72
+ video;
73
+ if (
74
+ this._videoElement.canPlayType &&
75
+ this._videoElement.canPlayType(file.type) &&
76
+ ($.type(options.maxFileSize) !== 'number' ||
77
+ file.size <= options.maxFileSize) &&
78
+ (!options.fileTypes || options.fileTypes.test(file.type))
79
+ ) {
80
+ url = loadImage.createObjectURL(file);
81
+ if (url) {
82
+ video = this._videoElement.cloneNode(false);
83
+ video.src = url;
84
+ video.controls = true;
85
+ data.video = video;
86
+ return data;
87
+ }
88
+ }
89
+ return data;
90
+ },
91
+
92
+ // Sets the video element as a property of the file object:
93
+ setVideo: function (data, options) {
94
+ if (data.video && !options.disabled) {
95
+ data.files[data.index][options.name || 'preview'] = data.video;
96
+ }
97
+ return data;
98
+ }
99
+ }
100
+ });
101
+ });