card-mod-script 0.14.2 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/data/real.yml +50 -0
  3. data/lib/ansi2html.rb +69 -0
  4. data/lib/card/mod/script.rb +1 -0
  5. data/set/abstract/00_script.rb +4 -4
  6. data/set/abstract/02_coffee_script.rb +9 -1
  7. data/set/all/head_javascript.rb +13 -22
  8. data/set/right/script.rb +1 -1
  9. data/set/type/coffee_script.rb +6 -0
  10. data/set/type/java_script.rb +6 -0
  11. data/set/type/local_script_folder_group.rb +2 -0
  12. data/set/type/local_script_manifest_group.rb +2 -0
  13. data/set/type_plus_right/mod/script.rb +1 -5
  14. data/set/type_plus_right/set/script.rb +3 -1
  15. metadata +13 -119
  16. data/assets/script/decko/autosave.js.coffee +0 -30
  17. data/assets/script/decko/bridge.js.coffee +0 -31
  18. data/assets/script/decko/card_menu.js.coffee +0 -26
  19. data/assets/script/decko/components.js.coffee +0 -49
  20. data/assets/script/decko/decko.js.coffee +0 -82
  21. data/assets/script/decko/doubleclick.js.coffee +0 -30
  22. data/assets/script/decko/editor.js.coffee +0 -57
  23. data/assets/script/decko/filter.js.coffee +0 -183
  24. data/assets/script/decko/filter_items.js.coffee +0 -128
  25. data/assets/script/decko/filter_links.js.coffee +0 -81
  26. data/assets/script/decko/follow.js.coffee +0 -22
  27. data/assets/script/decko/layout.js.coffee +0 -76
  28. data/assets/script/decko/link_editor.js.coffee +0 -61
  29. data/assets/script/decko/mod.js.coffee +0 -79
  30. data/assets/script/decko/modal.js.coffee +0 -113
  31. data/assets/script/decko/name_editor.js.coffee +0 -40
  32. data/assets/script/decko/navbox.js.coffee +0 -74
  33. data/assets/script/decko/nest_editor.js.coffee +0 -166
  34. data/assets/script/decko/nest_editor_name.js.coffee +0 -102
  35. data/assets/script/decko/nest_editor_options.js.coffee +0 -93
  36. data/assets/script/decko/nest_editor_rules.js.coffee +0 -3
  37. data/assets/script/decko/overlay.js.coffee +0 -54
  38. data/assets/script/decko/pointer_config.js.coffee +0 -79
  39. data/assets/script/decko/pointer_list_editor.js.coffee +0 -67
  40. data/assets/script/decko/recaptcha.js.coffee +0 -19
  41. data/assets/script/decko/selectable_filtered_content.js.coffee +0 -12
  42. data/assets/script/decko/slot.js.coffee +0 -182
  43. data/assets/script/decko/slot_ready.js.coffee +0 -12
  44. data/assets/script/decko/slotter.js.coffee +0 -268
  45. data/assets/script/decko/type_editor.js.coffee +0 -21
  46. data/assets/script/decko/upload.js.coffee +0 -64
  47. data/assets/script/jquery-ui.min.js +0 -13
  48. data/assets/script/jquery.autosize.js +0 -274
  49. data/assets/script/manifest.yml +0 -57
  50. data/db/migrate_core_cards/20200804112348_add_mod_script_assets_type.rb +0 -30
  51. data/vendor/jquery_file_upload/LICENSE.txt +0 -20
  52. data/vendor/jquery_file_upload/README.md +0 -224
  53. data/vendor/jquery_file_upload/SECURITY.md +0 -227
  54. data/vendor/jquery_file_upload/VULNERABILITIES.md +0 -118
  55. data/vendor/jquery_file_upload/cors/postmessage.html +0 -85
  56. data/vendor/jquery_file_upload/cors/result.html +0 -26
  57. data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +0 -22
  58. data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +0 -17
  59. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +0 -68
  60. data/vendor/jquery_file_upload/css/jquery.fileupload.css +0 -36
  61. data/vendor/jquery_file_upload/docker-compose.yml +0 -55
  62. data/vendor/jquery_file_upload/img/loading.gif +0 -0
  63. data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
  64. data/vendor/jquery_file_upload/index.html +0 -357
  65. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +0 -126
  66. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +0 -97
  67. data/vendor/jquery_file_upload/js/demo.js +0 -75
  68. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +0 -101
  69. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +0 -347
  70. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +0 -170
  71. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +0 -759
  72. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +0 -119
  73. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +0 -101
  74. data/vendor/jquery_file_upload/js/jquery.fileupload.js +0 -1604
  75. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +0 -227
  76. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +0 -805
  77. data/vendor/jquery_file_upload/package-lock.json +0 -6853
  78. data/vendor/jquery_file_upload/package.json +0 -116
  79. data/vendor/jquery_file_upload/server/gae-python/app.yaml +0 -18
  80. data/vendor/jquery_file_upload/server/gae-python/main.py +0 -204
  81. data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
  82. data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +0 -2
  83. data/vendor/jquery_file_upload/server/php/Dockerfile +0 -44
  84. data/vendor/jquery_file_upload/server/php/UploadHandler.php +0 -1480
  85. data/vendor/jquery_file_upload/server/php/index.php +0 -15
  86. data/vendor/jquery_file_upload/server/php/php.ini +0 -5
  87. data/vendor/jquery_file_upload/test/index.html +0 -49
  88. data/vendor/jquery_file_upload/test/unit.js +0 -989
  89. data/vendor/jquery_file_upload/test/vendor/chai.js +0 -10854
  90. data/vendor/jquery_file_upload/test/vendor/mocha.css +0 -325
  91. data/vendor/jquery_file_upload/test/vendor/mocha.js +0 -18178
  92. data/vendor/jquery_file_upload/wdio/LICENSE.txt +0 -20
  93. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  94. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  95. data/vendor/jquery_file_upload/wdio/conf/chrome.js +0 -40
  96. data/vendor/jquery_file_upload/wdio/conf/firefox.js +0 -25
  97. data/vendor/jquery_file_upload/wdio/hooks/index.js +0 -36
  98. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +0 -79
  99. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +0 -25
  100. data/vendor/jquery_file_upload/wdio/wdio.conf.js +0 -4
  101. data/vendor/jquery_rails/CHANGELOG.md +0 -359
  102. data/vendor/jquery_rails/CONTRIBUTING.md +0 -132
  103. data/vendor/jquery_rails/Gemfile +0 -22
  104. data/vendor/jquery_rails/MIT-LICENSE +0 -21
  105. data/vendor/jquery_rails/README.md +0 -75
  106. data/vendor/jquery_rails/Rakefile +0 -59
  107. data/vendor/jquery_rails/VERSIONS.md +0 -62
  108. data/vendor/jquery_rails/jquery-rails.gemspec +0 -26
  109. data/vendor/jquery_rails/lib/jquery/assert_select.rb +0 -149
  110. data/vendor/jquery_rails/lib/jquery/rails/engine.rb +0 -6
  111. data/vendor/jquery_rails/lib/jquery/rails/version.rb +0 -9
  112. data/vendor/jquery_rails/lib/jquery/rails.rb +0 -8
  113. data/vendor/jquery_rails/lib/jquery-rails.rb +0 -1
  114. data/vendor/jquery_rails/test/assert_select_jquery_test.rb +0 -85
  115. data/vendor/jquery_rails/test/test_helper.rb +0 -6
  116. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +0 -11008
  117. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +0 -5
  118. data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +0 -1
  119. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +0 -9814
  120. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +0 -4
  121. data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +0 -1
  122. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +0 -10364
  123. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +0 -2
  124. data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +0 -1
  125. data/vendor/jquery_rails/vendor/assets/javascripts/jquery_ujs.js +0 -555
@@ -1,119 +0,0 @@
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
- });
@@ -1,101 +0,0 @@
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
- });