%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 async = require( "async" ); var extend = require( "util" )._extend; var banner = require( "./banner" ); var sqwish = require( "sqwish" ); var Package1_12 = require( "./package-1-12" ); var path = require( "path" ); var ThemeGallery = require( "./themeroller-themegallery" ); function stripBanner( data ) { if ( data instanceof Buffer ) { data = data.toString( "utf8" ); } return data.replace( /^\s*\/\*[\s\S]*?\*\/\s*/g, "" ); } function Package( files, runtime ) { this.themeGallery = ThemeGallery( runtime.jqueryUi ); if ( !runtime.themeVars ) { runtime.themeVars = this.themeGallery[ 0 ].vars; } Package1_12.apply( this, arguments ); } extend( Package.prototype, { "AUTHORS.txt": Package1_12.prototype[ "AUTHORS.txt" ], "LICENSE.txt": Package1_12.prototype[ "LICENSE.txt" ], "images": Package1_12.prototype[ "images" ], "jquery-ui.css": Package1_12.prototype[ "jquery-ui.css" ], "jquery-ui.structure.css": Package1_12.prototype[ "jquery-ui.structure.css" ], "jquery-ui.theme.css": Package1_12.prototype[ "jquery-ui.theme.css" ], "jquery-ui.min.css": Package1_12.prototype[ "jquery-ui.min.css" ], "jquery-ui.structure.min.css": Package1_12.prototype[ "jquery-ui.structure.min.css" ], "jquery-ui.theme.min.css": Package1_12.prototype[ "jquery-ui.theme.min.css" ], "themes": function( callback ) { var files = {}; var structureCssFileNames = this.structureCssFileNames; var themeCssFileNames = this.themeCssFileNames; var pkgJson = this.pkgJson; var themeGallery = this.themeGallery; this.structureCss.promise.then( function( structureCss ) { async.mapSeries( themeGallery, function( theme, callback ) { var themeCss = theme.css(); files[path.join(theme.folderName(), "theme.css")] = themeCss; var _banner = banner( pkgJson, structureCssFileNames.concat( themeCssFileNames ), { customThemeUrl: theme.url() }); var _minBanner = banner( pkgJson, structureCssFileNames.concat( themeCssFileNames ), { minify: true, customThemeUrl: theme.url() } ); var allCss = structureCss + stripBanner( themeCss ); // Bundle CSS (and minified) files[path.join(theme.folderName(), "jquery-ui.css")] = _banner + allCss; files[path.join(theme.folderName(), "jquery-ui.min.css")] = _minBanner + sqwish.minify( allCss ); // Custom theme image files theme.generateImages(function( error, imageFiles ) { if ( error ) { return callback( error, null ); } imageFiles.forEach(function(imageFile) { files[ path.join(theme.folderName(), "images", imageFile.path ) ] = imageFile.data; }); callback(); }); }, function( error ) { if ( error ) { console.log( 'mapSeries( themeGallery ) failed', error ); return callback( error ); } callback( null, files ); }); } ); } }); module.exports = Package;