Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pkg.toJson(function( error, files ) {
if (error) {
return test.done( error );
}
commonFilesCheck( test, files );
themeFilesCheck( test, files, true );
// 11 components selected, 7 have CSS, plus core, theme,
// checkboxradio, controlgroup (tmp button dependencies)
var includes = files[ "jquery-ui.min.css" ].match( /\* Includes: (.+)/ );
test.equal( includes[ 1 ].split( "," ).length, 11, someWidgets2 + " -> " + includes[ 1 ] );
test.done();
});
},
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 ), {
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();
}
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;
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()
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;
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()
});
.add('files with comments', () => {
const version = defaultVersion;
const store = createStoreWithVersion({ version });
store.dispatch(versionsActions.expandTree({ versionId: version.id }));
dispatchComments({
store,
versionId: version.id,
comments: [
createFakeExternalComment({
filename: version.file.entries['manifest.json'].path,
}),
createFakeExternalComment({
filename:
version.file.entries['jquery-ui/js/jquery-1.7.1.min.js'].path,
}),
createFakeExternalComment({
filename:
version.file.entries['background-scripts/libs/jquery.min.js'].path,
}),
createFakeExternalComment({
filename: version.file.entries['lib/compat.js'].path,
}),
],
});
return <div>{render({ store })}</div>;
});
$(document).ready(async function () {
const locale = window.navigator.language;
if (locale === 'de') {
const de = await import('jquery-ui/ui/i18n/datepicker-de');
datepicker.setDefaults({
...de,
weekHeader: 'Wo'
});
}
else {
const en = await import('jquery-ui/ui/i18n/datepicker-en-GB');
datepicker.setDefaults({
...en,
dateFormat: 'dd.mm.yy'
});
}
$('#startDate').datepicker();
$('#endDate').datepicker();
});
angular.forEach(oldVal, (oldValue, key) => {
if (!newVal || !(key in newVal)) {
if (key in directiveOpts) {
if (key === 'ui-floating') {
opts[key] = 'auto';
} else {
opts[key] = patchSortableOption(key, undefined);
}
return;
}
if (!defaultOptions) {
defaultOptions = sortable().options;
}
let defaultValue = defaultOptions[key];
defaultValue = patchSortableOption(key, defaultValue);
if (!optsDiff) {
optsDiff = {};
}
optsDiff[key] = defaultValue;
opts[key] = defaultValue;
}
});
}