diff --git a/dashboard-ui/bower_components/Sortable/.bower.json b/dashboard-ui/bower_components/Sortable/.bower.json deleted file mode 100644 index 820d6f0c5d..0000000000 --- a/dashboard-ui/bower_components/Sortable/.bower.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "Sortable", - "main": [ - "Sortable.js", - "ng-sortable.js", - "knockout-sortable.js", - "react-sortable-mixin.js" - ], - "homepage": "http://rubaxa.github.io/Sortable/", - "authors": [ - "RubaXa " - ], - "description": "Minimalist library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery.", - "keywords": [ - "sortable", - "reorder", - "list", - "html5", - "drag", - "and", - "drop", - "dnd", - "web-components" - ], - "license": "MIT", - "ignore": [ - "node_modules", - "bower_components", - "test", - "tests" - ], - "version": "1.4.2", - "_release": "1.4.2", - "_resolution": { - "type": "version", - "tag": "1.4.2", - "commit": "d86937c8bca017f948aad04eb02dcaddfbb60ffa" - }, - "_source": "git://github.com/RubaXa/Sortable.git", - "_target": "~1.4.2", - "_originalSource": "Sortable", - "_direct": true -} \ No newline at end of file diff --git a/dashboard-ui/bower_components/Sortable/.editorconfig b/dashboard-ui/bower_components/Sortable/.editorconfig deleted file mode 100644 index b0d7fd91b3..0000000000 --- a/dashboard-ui/bower_components/Sortable/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -# editorconfig.org -root = true - -[*] -indent_style = tab -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/dashboard-ui/bower_components/Sortable/.gitignore b/dashboard-ui/bower_components/Sortable/.gitignore deleted file mode 100644 index 434cfa9b1f..0000000000 --- a/dashboard-ui/bower_components/Sortable/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -mock.png -.*.sw* -.build* -jquery.fn.* diff --git a/dashboard-ui/bower_components/Sortable/.jshintrc b/dashboard-ui/bower_components/Sortable/.jshintrc deleted file mode 100644 index 3f67a098be..0000000000 --- a/dashboard-ui/bower_components/Sortable/.jshintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "strict": true, - "newcap": false, - "node": true, - "expr": true, - "supernew": true, - "laxbreak": true, - "white": true, - "globals": { - "define": true, - "test": true, - "expect": true, - "module": true, - "asyncTest": true, - "start": true, - "ok": true, - "equal": true, - "notEqual": true, - "deepEqual": true, - "window": true, - "document": true, - "performance": true - } -} diff --git a/dashboard-ui/bower_components/Sortable/CONTRIBUTING.md b/dashboard-ui/bower_components/Sortable/CONTRIBUTING.md deleted file mode 100644 index 34ff6cdc53..0000000000 --- a/dashboard-ui/bower_components/Sortable/CONTRIBUTING.md +++ /dev/null @@ -1,23 +0,0 @@ -# Contribution Guidelines - -### Issue - - 1. Try [dev](https://github.com/RubaXa/Sortable/tree/dev/)-branch, perhaps the problem has been solved; - 2. [Use the search](https://github.com/RubaXa/Sortable/search?q=problem), maybe already have an answer; - 3. If not found, create example on [jsbin.com (draft)](http://jsbin.com/zunibaxada/1/edit?html,js,output) and describe the problem. - ---- - -### Pull Request - - 1. Before PR run `grunt`; - 2. Only into [dev](https://github.com/RubaXa/Sortable/tree/dev/)-branch. - -### Setup - - Pieced together from [gruntjs](http://gruntjs.com/getting-started) - - 1. Fork repo on [github](https://github.com) - 2. Clone locally - 3. from local repro ```npm install``` - 4. Install grunt-cli globally ```sudo -H npm install -g grunt-cli``` diff --git a/dashboard-ui/bower_components/Sortable/Gruntfile.js b/dashboard-ui/bower_components/Sortable/Gruntfile.js deleted file mode 100644 index 5d67184bb4..0000000000 --- a/dashboard-ui/bower_components/Sortable/Gruntfile.js +++ /dev/null @@ -1,103 +0,0 @@ -module.exports = function (grunt) { - 'use strict'; - - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - version: { - js: { - src: ['<%= pkg.exportName %>.js', '*.json'] - }, - cdn: { - options: { - prefix: '(cdnjs\\.cloudflare\\.com\\/ajax\\/libs\\/Sortable|cdn\\.jsdelivr\\.net\\/sortable)\\/', - replace: '[0-9\\.]+' - }, - src: ['README.md'] - } - }, - - jshint: { - all: ['*.js', '!*.min.js'], - - options: { - jshintrc: true - } - }, - - uglify: { - options: { - banner: '/*! <%= pkg.exportName %> <%= pkg.version %> - <%= pkg.license %> | <%= pkg.repository.url %> */\n' - }, - dist: { - files: { - '<%= pkg.exportName %>.min.js': ['<%= pkg.exportName %>.js'] - } - }, - jquery: { - files: {} - } - }, - - exec: { - 'meteor-test': { - command: 'meteor/runtests.sh' - }, - 'meteor-publish': { - command: 'meteor/publish.sh' - } - }, - - jquery: {} - }); - - - grunt.registerTask('jquery', function (exportName, uglify) { - if (exportName == 'min') { - exportName = null; - uglify = 'min'; - } - - if (!exportName) { - exportName = 'sortable'; - } - - var fs = require('fs'), - filename = 'jquery.fn.' + exportName + '.js'; - - grunt.log.oklns(filename); - - fs.writeFileSync( - filename, - (fs.readFileSync('jquery.binding.js') + '') - .replace('$.fn.sortable', '$.fn.' + exportName) - .replace('/* CODE */', - (fs.readFileSync('Sortable.js') + '') - .replace(/^[\s\S]*?function[\s\S]*?(var[\s\S]+)\/\/\s+Export[\s\S]+/, '$1') - ) - ); - - if (uglify) { - var opts = {}; - - opts['jquery.fn.' + exportName + '.min.js'] = filename; - grunt.config.set('uglify.jquery.files', opts); - - grunt.task.run('uglify:jquery'); - } - }); - - - grunt.loadNpmTasks('grunt-version'); - grunt.loadNpmTasks('grunt-contrib-jshint'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - grunt.loadNpmTasks('grunt-exec'); - - // Meteor tasks - grunt.registerTask('meteor-test', 'exec:meteor-test'); - grunt.registerTask('meteor-publish', 'exec:meteor-publish'); - grunt.registerTask('meteor', ['meteor-test', 'meteor-publish']); - - grunt.registerTask('tests', ['jshint']); - grunt.registerTask('default', ['tests', 'version', 'uglify:dist']); -}; diff --git a/dashboard-ui/bower_components/Sortable/bower.json b/dashboard-ui/bower_components/Sortable/bower.json deleted file mode 100644 index 742b3ffb37..0000000000 --- a/dashboard-ui/bower_components/Sortable/bower.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "Sortable", - "main": [ - "Sortable.js", - "ng-sortable.js", - "knockout-sortable.js", - "react-sortable-mixin.js" - ], - "homepage": "http://rubaxa.github.io/Sortable/", - "authors": [ - "RubaXa " - ], - "description": "Minimalist library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery.", - "keywords": [ - "sortable", - "reorder", - "list", - "html5", - "drag", - "and", - "drop", - "dnd", - "web-components" - ], - "license": "MIT", - "ignore": [ - "node_modules", - "bower_components", - "test", - "tests" - ] -} diff --git a/dashboard-ui/bower_components/Sortable/component.json b/dashboard-ui/bower_components/Sortable/component.json deleted file mode 100644 index 3df9414d5c..0000000000 --- a/dashboard-ui/bower_components/Sortable/component.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "Sortable", - "main": "Sortable.js", - "version": "1.4.2", - "homepage": "http://rubaxa.github.io/Sortable/", - "repo": "RubaXa/Sortable", - "authors": [ - "RubaXa " - ], - "description": "Minimalist library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery.", - "keywords": [ - "sortable", - "reorder", - "list", - "html5", - "drag", - "and", - "drop", - "dnd" - ], - "license": "MIT", - "ignore": [ - "node_modules", - "bower_components", - "test", - "tests" - ], - - "scripts": [ - "Sortable.js" - ] -} diff --git a/dashboard-ui/bower_components/Sortable/jquery.binding.js b/dashboard-ui/bower_components/Sortable/jquery.binding.js index 9e9f4b93c7..b85cd4b2f1 100644 --- a/dashboard-ui/bower_components/Sortable/jquery.binding.js +++ b/dashboard-ui/bower_components/Sortable/jquery.binding.js @@ -1,61 +1 @@ -/** - * jQuery plugin for Sortable - * @author RubaXa - * @license MIT - */ -(function (factory) { - "use strict"; - - if (typeof define === "function" && define.amd) { - define(["jquery"], factory); - } - else { - /* jshint sub:true */ - factory(jQuery); - } -})(function ($) { - "use strict"; - - - /* CODE */ - - - /** - * jQuery plugin for Sortable - * @param {Object|String} options - * @param {..*} [args] - * @returns {jQuery|*} - */ - $.fn.sortable = function (options) { - var retVal, - args = arguments; - - this.each(function () { - var $el = $(this), - sortable = $el.data('sortable'); - - if (!sortable && (options instanceof Object || !options)) { - sortable = new Sortable(this, options); - $el.data('sortable', sortable); - } - - if (sortable) { - if (options === 'widget') { - return sortable; - } - else if (options === 'destroy') { - sortable.destroy(); - $el.removeData('sortable'); - } - else if (typeof sortable[options] === 'function') { - retVal = sortable[options].apply(sortable, [].slice.call(args, 1)); - } - else if (options in sortable.options) { - retVal = sortable.option.apply(sortable, args); - } - } - }); - - return (retVal === void 0) ? this : retVal; - }; -}); +!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):factory(jQuery)}(function($){"use strict";$.fn.sortable=function(options){var retVal,args=arguments;return this.each(function(){var $el=$(this),sortable=$el.data("sortable");if(sortable||!(options instanceof Object)&&options||(sortable=new Sortable(this,options),$el.data("sortable",sortable)),sortable){if("widget"===options)return sortable;"destroy"===options?(sortable.destroy(),$el.removeData("sortable")):"function"==typeof sortable[options]?retVal=sortable[options].apply(sortable,[].slice.call(args,1)):options in sortable.options&&(retVal=sortable.option.apply(sortable,args))}}),void 0===retVal?this:retVal}}); \ No newline at end of file diff --git a/dashboard-ui/bower_components/Sortable/knockout-sortable.js b/dashboard-ui/bower_components/Sortable/knockout-sortable.js index 02881970e3..ca4657f18e 100644 --- a/dashboard-ui/bower_components/Sortable/knockout-sortable.js +++ b/dashboard-ui/bower_components/Sortable/knockout-sortable.js @@ -1,182 +1 @@ -(function (factory) { - "use strict"; - if (typeof define === "function" && define.amd) { - // AMD anonymous module - define(["knockout"], factory); - } else if (typeof require === "function" && typeof exports === "object" && typeof module === "object") { - // CommonJS module - var ko = require("knockout"); - factory(ko); - } else { - // No module loader (plain -``` - -Invoke the following static method: `Hls.isSupported()` to check whether your browser is supporting [MediaSource Extensions](http://w3c.github.io/media-source/). - -```html - - -``` - -### Second step: instantiate Hls object and bind it to `