Skip to content

Instantly share code, notes, and snippets.

View rxaviers's full-sized avatar

Rafael Xavier de Souza rxaviers

View GitHub Profile
@rxaviers
rxaviers / gist:5412513
Last active December 16, 2015 09:19
Big picture of the communication (input and output) between the building blocks of jQueryUI DownloadBuilder

DownloadBuilder

requirement

input

  • version
  • components list
  • theme vars
  • scope for the theme (optional)
@rxaviers
rxaviers / gist:5412659
Last active December 16, 2015 09:28
jQueryUI DownloadBuilder metadata

Categories Manifest

categories = {
	core: {
		name: "UI Core",
		description: "A required dependency, contains basic functions and initializers.",
		order: 0
	},
	interaction: {

Common files

Files independent of component selection. They are the easiest ones.

Component files

@rxaviers
rxaviers / gist:5569734
Created May 13, 2013 16:51
Base theme vars (v >= 1.10.0)
{ bgColorDefault: '#e6e6e6',
borderColorDefault: '#d3d3d3',
fcDefault: '#555555',
bgColorHover: '#dadada',
borderColorHover: '#999999',
fcHover: '#212121',
bgColorActive: '#ffffff',
borderColorActive: '#aaaaaa',
fcActive: '#212121',
bgColorHeader: '#cccccc',
@rxaviers
rxaviers / output
Last active December 17, 2015 07:08

$ node

var themeGallery = require("./lib/themeroller.themegallery");
themeGallery.map(function(t) {return {name: t.name, vars: t.vars}});
function Files() {
var array = [];
array.push.apply( array, arguments );
array.__proto__ = Files.prototype;
return array;
}
Files.prototype = [];
Files.prototype.into = function() {
return this[ this.length - 1 ];
};
diff --git a/build/release/release.js b/build/release/release.js
index 3cbee64..39cdc1f 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -119,15 +119,7 @@ function getVersions() {
minor = parseInt( parts[ 1 ], 10 );
patch = parseInt( parts[ 2 ], 10 );
- // TODO: handle 1.10.0
- // Also see comment above about pre-releases
{ categories:
[ { slug: 'uncategorized', pages: [], posts: [] },
{ slug: 'effects',
pages: [ 'color-animation.html', 'easings.html' ],
posts:
[ 'addClass.html',
'blind-effect.html',
'bounce-effect.html',
'clip-effect.html',
'drop-effect.html',
@rxaviers
rxaviers / a.diff
Last active December 19, 2015 05:29
--- a/grunt.js
+++ b/grunt.js
@@ -66,7 +66,8 @@ grunt.registerTask( "manifest", "Generate categories.json manifest file", functi
return done( false );
}
- grunt.file.write( grunt.config( "wordpress.dir" ) + "/categories.json", JSON.stringify( categories, null, "\t" ) + "\n" );
+ grunt.file.write( grunt.config( "wordpress.dir" ) + "/categories.json",
+ JSON.stringify( categories, null, "\t" ) + "\n" );
done();
Globalize.cultures[ "default" ] = {
// -> this is generated
name: "en",
// -> main.en.localeDisplayNames.languages.<langName>, eg. langName = "pt-BR"
englishName: "English",
// -> main.<langName>.localeDisplayNames.languages.<langName>, eg. langName = "pt-BR"
nativeName: "English",