-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
596 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type": "folder", | ||
"id": 273, | ||
"name": "MyProject.kpf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
migrated package on Tue Aug 3 16:04:48 2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "1.0.6", | ||
"type": "folder", | ||
"name": "Project", | ||
"id": 274 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "1.0.6", | ||
"type": "folder", | ||
"name": "Abbreviations", | ||
"id": 275 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"version": "1.0.6", | ||
"type": "folder", | ||
"name": "PHP", | ||
"id": 279 | ||
} |
33 changes: 33 additions & 0 deletions
33
modulizr/.komodotools/Project/Abbreviations/PHP/BootstrapStub.komodotool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "BootstrapStub", | ||
"value": [ | ||
"<?php ", | ||
" ", | ||
"/* Report all errors directly to the screen for simple diagnostics in the dev environment */ ", | ||
"error_reporting(E_ALL | E_STRICT); ", | ||
"ini_set('display_startup_errors', 1); ", | ||
"ini_set('display_errors', 1); ", | ||
" ", | ||
"/* Add the Zend Framework library to the include path so that we can access the ZF classes */ ", | ||
"set_include_path('../library' . PATH_SEPARATOR . get_include_path()); ", | ||
" ", | ||
"/* Set up autoload so we don't have to explicitely require each Zend Framework class */ ", | ||
"require_once \"Zend/Loader.php\"; ", | ||
"Zend_Loader::registerAutoload(); ", | ||
" ", | ||
"/* Set the singleton instance of the front controller */ ", | ||
"$frontController = Zend_Controller_Front::getInstance(); ", | ||
"/* Disable error handler so it doesn't intercept all those errors we enabled above */ ", | ||
"$frontController->throwExceptions(true); ", | ||
"/* Point the front controller to your action controller directory */ ", | ||
"$frontController->setControllerDirectory('../application/controllers'); ", | ||
"/* OK, do your stuff, front controller */ ", | ||
"$frontController->dispatch();!@#_currentPos!@#_anchor" | ||
], | ||
"set_selection": "false", | ||
"version": "1.0.6", | ||
"type": "snippet", | ||
"id": 280, | ||
"indent_relative": "false" | ||
} |
13 changes: 13 additions & 0 deletions
13
modulizr/.komodotools/Project/Abbreviations/PHP/IndexStub.komodotool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "IndexStub", | ||
"value": [ | ||
"<?php ", | ||
"require '../application/bootstrap.php';!@#_currentPos!@#_anchor" | ||
], | ||
"set_selection": "false", | ||
"version": "1.0.6", | ||
"type": "snippet", | ||
"id": 281, | ||
"indent_relative": "false" | ||
} |
29 changes: 29 additions & 0 deletions
29
modulizr/.komodotools/Project/Abbreviations/PHP/ZendController.komodotool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "ZendController", | ||
"value": [ | ||
"<?php ", | ||
"", | ||
"require_once('Zend/Controller/Action.php');", | ||
"", | ||
"/**", | ||
" * Class [[%tabstop:Name]]Controller", | ||
" */", | ||
" ", | ||
"class [[%tabstop:Name]]Controller extends Zend_Controller_Action {", | ||
"", | ||
" /**", | ||
" * indexAction", | ||
" */", | ||
"", | ||
" public function indexAction() {", | ||
" ", | ||
" } ", | ||
"}!@#_currentPos!@#_anchor" | ||
], | ||
"set_selection": "false", | ||
"version": "1.0.6", | ||
"type": "snippet", | ||
"id": 282, | ||
"indent_relative": "true" | ||
} |
30 changes: 30 additions & 0 deletions
30
modulizr/.komodotools/Project/Abbreviations/PHP/ZendView.komodotool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "ZendView", | ||
"value": [ | ||
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> ", | ||
"<html xmlns=\"http://www.w3.org/1999/xhtml\"> ", | ||
"<head> ", | ||
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> ", | ||
" <title>[[%tabstop:Name]]</title> ", | ||
"</head> ", | ||
"<body> ", | ||
" <h1>[[%tabstop:Name]]</h1> ", | ||
" <?php if($this->values): ?> ", | ||
" <h3>You just submitted the following values:</h3> ", | ||
" <ul> ", | ||
" <?php foreach ($this->values as $value) :?> ", | ||
" <li> <?php echo $this->escape($value); ?></li> ", | ||
" <?php endforeach; ?> ", | ||
" </ul> ", | ||
" <?php endif; ?> ", | ||
" <?php echo $this->form; ?> ", | ||
"</body> ", | ||
"</html> !@#_currentPos!@#_anchor" | ||
], | ||
"set_selection": "false", | ||
"version": "1.0.6", | ||
"type": "snippet", | ||
"id": 283, | ||
"indent_relative": "true" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "New Controller", | ||
"language": "JavaScript", | ||
"trigger_enabled": "0", | ||
"rank": "100", | ||
"trigger": "trigger_postopen", | ||
"value": [ | ||
"/*", | ||
" * @fileoverview create a new Controller stub in the current project", | ||
" * to customize the format of the controller class stub that is created, edit", | ||
" * the 'Controller' snippet in this project", | ||
" *", | ||
" */", | ||
"", | ||
"zendutils.addController();", | ||
"" | ||
], | ||
"version": "1.0.6", | ||
"async": "0", | ||
"type": "macro", | ||
"id": 276, | ||
"icon": "chrome://famfamfamsilk/skin/icons/brick_add.png" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "New View", | ||
"language": "JavaScript", | ||
"trigger_enabled": "0", | ||
"rank": "100", | ||
"trigger": "trigger_postopen", | ||
"value": [ | ||
"/*", | ||
" * @fileoverview create a new View stub in the current project", | ||
" * to customize the format of the controller class stub that is created, edit", | ||
" * the 'Controller' snippet in this project", | ||
" *", | ||
" */", | ||
"", | ||
"zendutils.addView();", | ||
"" | ||
], | ||
"version": "1.0.6", | ||
"async": "0", | ||
"type": "macro", | ||
"id": 277, | ||
"icon": "chrome://famfamfamsilk/skin/icons/application_form_add.png" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"keyboard_shortcut": "", | ||
"name": "oncreate", | ||
"language": "JavaScript", | ||
"trigger_enabled": "0", | ||
"rank": "100", | ||
"trigger": "trigger_postopen", | ||
"value": [ | ||
"if (typeof(zendutils) !== 'undefined') {", | ||
" var project = ko.projects.manager.currentProject;", | ||
" var projectPath = project.liveDirectory;", | ||
" var hasProjectFS = zendutils.isZendProject(projectPath);", | ||
" var args = {", | ||
" 'path': projectPath,", | ||
" 'hasFS': hasProjectFS,", | ||
" 'scaffold': false,", | ||
" 'zendFwPath': false", | ||
" };", | ||
" zendutils.openZendWizard(args);", | ||
" ", | ||
" if (args.scaffold == true) {", | ||
" zendutils.setLiveDir(args.projPath);", | ||
" zendutils.scaffold(args.projPath);", | ||
" }", | ||
" ", | ||
" if(args.zendFwPath) {", | ||
" zendutils.addReplaceZendFwPath(args.zendFwPath);", | ||
" }", | ||
" var part = project.getChildByAttributeValue('name', 'oncreate',1);", | ||
" if(part) { part.name = 'Configure'; }", | ||
" ", | ||
"}", | ||
"" | ||
], | ||
"version": "1.0.6", | ||
"async": "0", | ||
"type": "macro", | ||
"id": 278, | ||
"icon": "chrome://famfamfamsilk/skin/icons/wrench.png" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* reset.css */ | ||
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;} | ||
body {line-height:1.5;} | ||
table {border-collapse:separate;border-spacing:0;} | ||
caption, th, td {text-align:left;font-weight:normal;} | ||
table, td, th {vertical-align:middle;} | ||
blockquote:before, blockquote:after, q:before, q:after {content:"";} | ||
blockquote, q {quotes:"" "";} | ||
a img {border:none;} | ||
|
||
/* modulizr */ | ||
#buildArea { | ||
display:none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8 /> | ||
<title>Modernizr Modular Build Tool</title> | ||
<link href="css/main.css" rel="stylesheet" type="text/css" media="all" /> | ||
</head> | ||
<body> | ||
<h1>Modernizr Modular Build Tool</h1> | ||
|
||
<h3>Choose the features you want to test for:</h3> | ||
<ul id="tests" class="features"> | ||
<li id="fontface"><input type="checkbox" value="fontface" /> @font-face</li> | ||
<li id="canvas"><input type="checkbox" value="canvas" /> Canvas</li> | ||
<li id="canvastext"><input type="checkbox" value="canvastext" /> Canvas Text</li> | ||
<li id="audio"><input type="checkbox" value="audio" /> HTML5 Audio</li> | ||
<li id="video"><input type="checkbox" value="video" /> HTML5 Video</li> | ||
<li id="rgba"><input type="checkbox" value="rgba" /> rgba()</li> | ||
<li id="hsla"><input type="checkbox" value="hsla" /> hsla()</li> | ||
<li id="borderimage"><input type="checkbox" value="borderimage" /> border-image:</li> | ||
<li id="borderradius"><input type="checkbox" value="borderradius" /> border-radius:</li> | ||
<li id="boxshadow"><input type="checkbox" value="boxshadow" /> box-shadow:</li> | ||
<li id="opacity"><input type="checkbox" value="opacity" /> opacity:</li> | ||
<li id="backgroundsize"><input type="checkbox" value="backgroundsize" /> backgroundsize</li> | ||
<li id="multiplebgs"><input type="checkbox" value="multiplebgs" /> Multiple backgrounds</li> | ||
<li id="cssanimations"><input type="checkbox" value="cssanimations" /> CSS Animations</li> | ||
<li id="csscolumns"><input type="checkbox" value="csscolumns" /> CSS Columns</li> | ||
<li id="cssgradients"><input type="checkbox" value="cssgradients" /> CSS Gradients</li> | ||
<li id="cssreflections"><input type="checkbox" value="cssreflections" /> CSS Reflections</li> | ||
<li id="csstransforms"><input type="checkbox" value="csstransforms" /> CSS 2D Transforms</li> | ||
<li id="csstransforms3d"><input type="checkbox" value="csstransforms3d" /> CSS 3D Transforms</li> | ||
<li id="csstransitions"><input type="checkbox" value="csstransitions" /> CSS Transitions</li> | ||
<li id="geolocation"><input type="checkbox" value="geolocation" /> Geolocation API</li> | ||
<li id="localstorage"><input type="checkbox" value="localstorage" /> localStorage</li> | ||
<li id="sessionstorage"><input type="checkbox" value="sessionstorage" /> sessionStorage</li> | ||
<li id="svg"><input type="checkbox" value="svg" /> SVG</li> | ||
<li id="smil"><input type="checkbox" value="smil" /> SMIL</li> | ||
<li id="svgclippaths"><input type="checkbox" value="svgclippaths" /> SVG Clipping</li> | ||
<li id="draganddrop"><input type="checkbox" value="draganddrop" /> Drag and Drop</li> | ||
<li id="hashchange"><input type="checkbox" value="hashchange" /> hashchange</li> | ||
<li id="crosswindowmessaging"><input type="checkbox" value="crosswindowmessaging" /> X-window Messaging</li> | ||
<li id="historymanagement"><input type="checkbox" value="historymanagement" /> History Management</li> | ||
<li id="applicationcache"><input type="checkbox" value="applicationcache" /> applicationCache</li> | ||
<li id="websockets"><input type="checkbox" value="websockets" /> Web Sockets</li> | ||
<li id="webworkers"><input type="checkbox" value="webworkers" /> Web Workers</li> | ||
<li id="websqldatabase"><input type="checkbox" value="websqldatabase" /> Web SQL Database</li> | ||
<li id="indexeddb"><input type="checkbox" value="indexeddb" /> IndexedDB</li> | ||
<li id="inputtypes"><input type="checkbox" value="inputtypes" /> Input Types</li> | ||
<li id="input"><input type="checkbox" value="input" /> Input Attributes</li> | ||
</ul> | ||
|
||
<h3>Choose the enhancements you want to run:</h3> | ||
<ul id="enhancements" class="features"> | ||
<li id="shim"><input type="checkbox" value="shim" /> HTML5 Shim</li> | ||
<li id="shim"><input type="checkbox" value="addtest" /> Add Your Own Tests (via addTest())</li> | ||
<li id="shim"><input type="checkbox" value="htmlclasses" /> Add <html> Classes (e.g. class="no-csstransitions")</li> | ||
<li id="shim"><input type="checkbox" value="removenojs" /> Remove the 'no-js' class from the 'html' element</li> | ||
</ul> | ||
<input type="button" id="generate" value="Generate Custom Modernizr Build" /> | ||
<div id="buildArea"> | ||
<p id="modulizrize">We generate this file in the browser, and that takes Flash, so make sure you gotz it.</p> | ||
OR | ||
<br /> | ||
Copy the source:<br /> | ||
<textarea id="generatedSource" rows="10" cols="80"></textarea> | ||
</div> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | ||
<script src="js/modulizr.js"></script> | ||
<script src="js/swfobject.js"></script> | ||
<script src="js/downloadify.min.js"></script> | ||
<script> | ||
jQuery(function($){ | ||
$('#generate').click(function(){ | ||
// Get all the tests and enhancements | ||
var tests = $('.features input:checked').map(function(){ | ||
return this.value; | ||
}); | ||
|
||
// Grab the modernizr source and run it through modulizr | ||
$.ajax({ | ||
dataType: 'text', | ||
cache: false, | ||
type: 'GET', | ||
url: '../modernizr.js', | ||
success:function(script) { | ||
// Call the modulr function to create a modular build | ||
var modularBuild = Modulizr.ize(script, [].slice.call(tests,0)); | ||
|
||
// Inject into the textarea | ||
$('#generatedSource').val(modularBuild); | ||
|
||
// Create Download Button | ||
Downloadify.create('modulizrize',{ | ||
filename: function(){ | ||
return 'modernizr.custom.'+(+new Date)+'.js'; | ||
}, | ||
data: function(){ | ||
return modularBuild; | ||
}, | ||
swf: 'media/downloadify.swf', | ||
downloadImage: 'media/download.png', | ||
width: 100, | ||
height: 30, | ||
transparent: true, | ||
append: false | ||
}); | ||
|
||
$('#buildArea').fadeIn(); | ||
} | ||
}); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.