Permalink
Browse files

stub missing specs, extract core into multiple files. add modal

  • Loading branch information...
1 parent cb9b4bc commit f549d622882892e8d4a7e73bb9d50349664fd08c @brentkirby brentkirby committed Sep 11, 2012
View
@@ -1 +1 @@
-jasmine static utils
+node static utils
View
@@ -28,19 +28,26 @@ less = require 'less'
javascripts = {
'build/transit.js': [
'src/core.coffee'
- 'src/core/notify.coffee'
- 'src/core/uploader.coffee'
- 'src/core/selection.coffee'
'src/core/browser.coffee'
+ 'src/core/selection.coffee'
+ 'src/core/template.coffee'
+
+ 'src/ui/manager.coffee'
+ 'src/ui/modal.coffee'
+ 'src/ui/notify.coffee'
+ 'src/ui/panel.coffee'
+ 'src/ui/toolbar.coffee'
+ 'src/ui/uploader.coffee'
+
+ 'src/model/asset.coffee'
+ 'src/model/assets.coffee'
'src/model/context.coffee'
- 'src/model/deliverable.coffee'
'src/model/contexts.coffee'
- 'src/model/asset.coffee'
- 'src/views/context.coffee'
- 'src/views/manager.coffee'
- 'src/views/toolbar.coffee'
- 'src/views/panel.coffee'
+ 'src/model/deliverable.coffee'
+
'src/views/asset_manager.coffee'
+ 'src/views/context.coffee'
+
],
'build/themes/bootstrap.js':[
'src/themes/bootstrap.coffee'
View
@@ -0,0 +1,9 @@
+
+begin
+ require 'jasmine'
+ load 'jasmine/tasks/jasmine.rake'
+rescue LoadError
+ task :jasmine do
+ abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
+ end
+end
View
@@ -1,29 +1,66 @@
(function() {
var root;
- root = Transit.config.template_path;
+ root = Transit.Template.url;
- Transit.template.set("" + root + "/core/save-button.jst", '<button class="save btn primary"><i class="icon-ok"></i> <%= text %></button>');
+ Transit.Template.set("" + root + "/core/save-button.jst", '<button class="save btn primary"><i class="icon-ok"></i> <%= text %></button>');
- Transit.template.set("" + root + "/core/tab-bar.jst", '\
+ Transit.Template.set("" + root + "/core/nav-bar.jst", '\
<div class="navbar">\
<div class="navbar-inner">\
- <ul class = "transit-tab-bar nav"></ul>\
+ <ul class="transit-nav-bar nav"></ul>\
</div>\
</div>\
');
- Transit.template.set("" + root + "/core/notification.jst", '\
+ Transit.Template.set("" + root + "/core/tab-bar.jst", '\
+ <ul class="transit-tab-bar nav nav-tabs"></ul>\
+');
+
+ Transit.Template.set("" + root + "/core/pill-bar.jst", '\
+ <ul class="transit-pill-bar nav nav-pills"></ul>\
+');
+
+ Transit.Template.set("" + root + "/core/notification.jst", '\
<div class="alert alert-<%= type %>">\
<button type="button" class="close" data-dismiss="alert">×</button>\
<%= message %>\
</div>\
');
- Transit.template.set("" + root + "/core/progress-bar.jst", '\
+ Transit.Template.set("" + root + "/core/modal.jst", '\
+ <div class="modal fade">\
+ <div class="modal-header">\
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>\
+ <h3><%= title %></h3>\
+ </div>\
+ <div class="modal-body">\
+ <%= content %>\
+ </div>\
+ <div class="modal-footer">\
+ <% _.each(buttons, function(button){ %>\
+ <a href="#" class="btn <%= button.css %>" data-action="<%= button.action %>"><%= button.text %></a>\
+ <% }); %>\
+ </div>\
+</div>\
+');
+
+ Transit.Template.set("" + root + "/core/progress-bar.jst", '\
<div class="progress progress-striped active">\
<div class="bar" style="width:<%= percent %>"></div>\
</div>\
');
+ Transit.Template.set("" + root + "/core/assets/image.jst", '\
+ <img src="<%= asset.get("url") %>" />\
+ <a href="#" class="icon-remove" data-action="remove"></a>\
+');
+
+ Transit.Template.set("" + root + "/core/assets/file.jst", '\
+ <a href="<%= asset.get("url") %>"><%= asset.get("filename") %></a>\
+ <a href="#" class="icon-remove" data-action="remove"></a>\
+');
+
+ Transit.Template.set("" + root + "/core/assets/uploader.jst", '');
+
}).call(this);

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit f549d62

Please sign in to comment.