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.
- checksums.yaml +4 -4
- data/data/real.yml +50 -0
- data/lib/ansi2html.rb +69 -0
- data/lib/card/mod/script.rb +1 -0
- data/set/abstract/00_script.rb +4 -4
- data/set/abstract/02_coffee_script.rb +9 -1
- data/set/all/head_javascript.rb +13 -22
- data/set/right/script.rb +1 -1
- data/set/type/coffee_script.rb +6 -0
- data/set/type/java_script.rb +6 -0
- data/set/type/local_script_folder_group.rb +2 -0
- data/set/type/local_script_manifest_group.rb +2 -0
- data/set/type_plus_right/mod/script.rb +1 -5
- data/set/type_plus_right/set/script.rb +3 -1
- metadata +13 -119
- data/assets/script/decko/autosave.js.coffee +0 -30
- data/assets/script/decko/bridge.js.coffee +0 -31
- data/assets/script/decko/card_menu.js.coffee +0 -26
- data/assets/script/decko/components.js.coffee +0 -49
- data/assets/script/decko/decko.js.coffee +0 -82
- data/assets/script/decko/doubleclick.js.coffee +0 -30
- data/assets/script/decko/editor.js.coffee +0 -57
- data/assets/script/decko/filter.js.coffee +0 -183
- data/assets/script/decko/filter_items.js.coffee +0 -128
- data/assets/script/decko/filter_links.js.coffee +0 -81
- data/assets/script/decko/follow.js.coffee +0 -22
- data/assets/script/decko/layout.js.coffee +0 -76
- data/assets/script/decko/link_editor.js.coffee +0 -61
- data/assets/script/decko/mod.js.coffee +0 -79
- data/assets/script/decko/modal.js.coffee +0 -113
- data/assets/script/decko/name_editor.js.coffee +0 -40
- data/assets/script/decko/navbox.js.coffee +0 -74
- data/assets/script/decko/nest_editor.js.coffee +0 -166
- data/assets/script/decko/nest_editor_name.js.coffee +0 -102
- data/assets/script/decko/nest_editor_options.js.coffee +0 -93
- data/assets/script/decko/nest_editor_rules.js.coffee +0 -3
- data/assets/script/decko/overlay.js.coffee +0 -54
- data/assets/script/decko/pointer_config.js.coffee +0 -79
- data/assets/script/decko/pointer_list_editor.js.coffee +0 -67
- data/assets/script/decko/recaptcha.js.coffee +0 -19
- data/assets/script/decko/selectable_filtered_content.js.coffee +0 -12
- data/assets/script/decko/slot.js.coffee +0 -182
- data/assets/script/decko/slot_ready.js.coffee +0 -12
- data/assets/script/decko/slotter.js.coffee +0 -268
- data/assets/script/decko/type_editor.js.coffee +0 -21
- data/assets/script/decko/upload.js.coffee +0 -64
- data/assets/script/jquery-ui.min.js +0 -13
- data/assets/script/jquery.autosize.js +0 -274
- data/assets/script/manifest.yml +0 -57
- data/db/migrate_core_cards/20200804112348_add_mod_script_assets_type.rb +0 -30
- data/vendor/jquery_file_upload/LICENSE.txt +0 -20
- data/vendor/jquery_file_upload/README.md +0 -224
- data/vendor/jquery_file_upload/SECURITY.md +0 -227
- data/vendor/jquery_file_upload/VULNERABILITIES.md +0 -118
- data/vendor/jquery_file_upload/cors/postmessage.html +0 -85
- data/vendor/jquery_file_upload/cors/result.html +0 -26
- data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +0 -22
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +0 -17
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +0 -68
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +0 -36
- data/vendor/jquery_file_upload/docker-compose.yml +0 -55
- data/vendor/jquery_file_upload/img/loading.gif +0 -0
- data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
- data/vendor/jquery_file_upload/index.html +0 -357
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +0 -126
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +0 -97
- data/vendor/jquery_file_upload/js/demo.js +0 -75
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +0 -101
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +0 -347
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +0 -170
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +0 -759
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +0 -119
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +0 -101
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +0 -1604
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +0 -227
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +0 -805
- data/vendor/jquery_file_upload/package-lock.json +0 -6853
- data/vendor/jquery_file_upload/package.json +0 -116
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +0 -18
- data/vendor/jquery_file_upload/server/gae-python/main.py +0 -204
- data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +0 -2
- data/vendor/jquery_file_upload/server/php/Dockerfile +0 -44
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +0 -1480
- data/vendor/jquery_file_upload/server/php/index.php +0 -15
- data/vendor/jquery_file_upload/server/php/php.ini +0 -5
- data/vendor/jquery_file_upload/test/index.html +0 -49
- data/vendor/jquery_file_upload/test/unit.js +0 -989
- data/vendor/jquery_file_upload/test/vendor/chai.js +0 -10854
- data/vendor/jquery_file_upload/test/vendor/mocha.css +0 -325
- data/vendor/jquery_file_upload/test/vendor/mocha.js +0 -18178
- data/vendor/jquery_file_upload/wdio/LICENSE.txt +0 -20
- 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 +0 -40
- data/vendor/jquery_file_upload/wdio/conf/firefox.js +0 -25
- data/vendor/jquery_file_upload/wdio/hooks/index.js +0 -36
- data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +0 -79
- data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +0 -25
- data/vendor/jquery_file_upload/wdio/wdio.conf.js +0 -4
- data/vendor/jquery_rails/CHANGELOG.md +0 -359
- data/vendor/jquery_rails/CONTRIBUTING.md +0 -132
- data/vendor/jquery_rails/Gemfile +0 -22
- data/vendor/jquery_rails/MIT-LICENSE +0 -21
- data/vendor/jquery_rails/README.md +0 -75
- data/vendor/jquery_rails/Rakefile +0 -59
- data/vendor/jquery_rails/VERSIONS.md +0 -62
- data/vendor/jquery_rails/jquery-rails.gemspec +0 -26
- data/vendor/jquery_rails/lib/jquery/assert_select.rb +0 -149
- data/vendor/jquery_rails/lib/jquery/rails/engine.rb +0 -6
- data/vendor/jquery_rails/lib/jquery/rails/version.rb +0 -9
- data/vendor/jquery_rails/lib/jquery/rails.rb +0 -8
- data/vendor/jquery_rails/lib/jquery-rails.rb +0 -1
- data/vendor/jquery_rails/test/assert_select_jquery_test.rb +0 -85
- data/vendor/jquery_rails/test/test_helper.rb +0 -6
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +0 -11008
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +0 -5
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +0 -1
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +0 -9814
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +0 -4
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +0 -1
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +0 -10364
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +0 -2
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +0 -1
- 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
|
-
});
|