%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.208 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/vlasotin/public_html/assets/plugins/jqueryui/lib/ |
Upload File : |
var Builder, _ = require( "underscore" ), config = require( "./config" ), fs = require( "fs" ), JqueryUiFiles = require( "./jquery-ui-files.js" ), JqueryUi_1_11_0 = require( "./jquery-ui-1-11.js" ), JqueryUi_1_12_0 = require( "./jquery-ui-1-12.js" ), semver = require( "semver" ); /** * JqueryUi */ function JqueryUi( path, options ) { options = options || {}; this.dependsOn = options.dependsOn; this.stable = options.stable; this.label = options.label; // 1: Always with a trailing slash this.path = path.replace( /\/*$/, "/" ) /* 1 */; this.pkg = JSON.parse( fs.readFileSync( path + "/package.json" ) ); if ( semver.gte( this.pkg.version, "1.12.0-a" ) ) { JqueryUi_1_12_0.apply( this, arguments ); } else { JqueryUi_1_11_0.apply( this, arguments ); } } JqueryUi.all = function() { if ( !JqueryUi._all ) { JqueryUi._all = config().jqueryUi.map(function( jqueryUi ) { var path = __dirname + "/../jquery-ui/" + jqueryUi.ref + "/"; if ( !fs.existsSync( path ) ) { throw new Error( "Missing ./" + require( "path" ).relative( __dirname, path ) + " folder. Run `grunt prepare` first, or fix your config file." ); } if ( !fs.existsSync( path + "package.json" ) ) { throw new Error( "Invalid ./" + require( "path" ).relative( __dirname, path ) + " folder. Run `grunt prepare` first, or fix your config file." ); } return new JqueryUi( path, jqueryUi ); }); } return JqueryUi._all; }; JqueryUi.getStable = function() { var match = JqueryUi.all().filter(function( jqueryUi ) { return jqueryUi.stable; }); if ( !match.length ) { throw new Error( "No stable jqueryUi has been defined. Check your config file." ); } return match[ 0 ]; }; JqueryUi.find = function( version ) { if ( !version ) { throw new Error( "Invalid version argument: " + version ); } var match = JqueryUi.all().filter(function( jqueryUi ) { return jqueryUi.pkg.version === version; }); if ( !match.length ) { throw new Error( "Didn't find a jqueryUi for version: " + version ); } return match[ 0 ]; }; JqueryUi.prototype = { components: function() { return this.manifests; }, files: function() { if ( !this._files ) { this._files = new JqueryUiFiles( this ); } return this._files; } }; module.exports = JqueryUi;