Permalink
Browse files

Adding branch with node-traceur, require-hm experiments.

  • Loading branch information...
1 parent 3e11f29 commit 682eda0a3afcfed354810d5a5045ce4f3d1f479a @addyosmani addyosmani committed Jun 1, 2012
Showing 3,274 changed files with 647,304 additions and 112,050 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
View
@@ -4,4 +4,6 @@
*.min.css
#*.min.js
.sass-cache/*
-node_modules
+node_modules
+cli/tasks/init/remotes/_cache/
+cli/tasks/init/yeoman/root/
View
@@ -1,3 +0,0 @@
-MAJOR=0
-MINOR=0
-BUILD=0
View
@@ -1,8 +0,0 @@
-source :rubygems
-
-gem "bpm"
-gem "compass"
-
-group :development do
-
-end
View
@@ -1,48 +0,0 @@
-GEM
- remote: http://rubygems.org/
- specs:
- bpm (1.0.0)
- eventmachine (~> 1.0.0.beta.4)
- execjs (~> 1.2.4)
- gemcutter (~> 0.6.1)
- highline (~> 1.6.1)
- json_pure (~> 1.4.6)
- libgems (~> 0.1.3)
- sprockets (~> 2.0.0)
- thin (~> 1.2)
- thor (~> 0.14.3)
- chunky_png (1.2.5)
- compass (0.12.1)
- chunky_png (~> 1.2)
- fssm (>= 0.2.7)
- sass (~> 3.1)
- daemons (1.1.8)
- eventmachine (1.0.0.beta.4)
- execjs (1.2.13)
- multi_json (~> 1.0)
- fssm (0.2.9)
- gemcutter (0.6.1)
- highline (1.6.11)
- hike (1.2.1)
- json_pure (1.4.6)
- libgems (0.1.3)
- multi_json (1.2.0)
- rack (1.4.1)
- sass (3.1.15)
- sprockets (2.0.3)
- hike (~> 1.2)
- rack (~> 1.0)
- tilt (~> 1.1, != 1.3.0)
- thin (1.3.1)
- daemons (>= 1.0.9)
- eventmachine (>= 0.12.6)
- rack (>= 1.0.0)
- thor (0.14.6)
- tilt (1.3.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- bpm
- compass
@@ -1,22 +0,0 @@
-
-define([
- 'lib/ember/load',
- 'app/models/item'
-], function(em, Item) {
-
- var itemsArray = em.ArrayProxy.create({
- content: [],
- createItem: function(name) {
- var item = Item.create({
- name: name
- });
- this.pushObject(item);
- }
- });
-
- return {
- itemsArray: itemsArray
- }
-
-});
-
View
@@ -1,43 +0,0 @@
-
-define([
- 'lib/ember/load',
- 'app/models/user',
- "app/views/main-views",
- "app/views/access-views",
- "app/views/item-views"
-], function(em, User, mainViews, accessViews, itemViews) {
-
- var user = User.create();
-
- // Create a local namespace for the app
- var MyApp = em.Application.create({
- VERSION: "0.0.1",
- user: User.create({
- name: ""
- })
- });
-
- // Instantiate the main view
- var mainView = mainViews.MainView.create();
- mainView.appendTo("#main");
- MyApp.set("mainView", mainView);
- var accessView = accessViews.AccessView.create();
- mainView.switchView(accessView);
-
- // Expose the views to the handlebars templates
- MyApp.set("AccessView", accessViews.AccessView);
- MyApp.set("AccessButton", accessViews.AccessButton);
- MyApp.set("UsernameField", accessViews.UsernameField);
- MyApp.set("ItemView", itemViews.ItemView);
- MyApp.set("CreateItemView", itemViews.CreateItemView);
- MyApp.set("ListItemsView", itemViews.ListItemsView);
-
- // Add the application's namespace to Ember so we can access it
- // from within handlebars templates.
- em.MyApp = MyApp;
-
- // Export it from the module.
- return MyApp;
-
-});
-
@@ -1,36 +0,0 @@
-
-define([
- 'lib/ember/load'
-], function(em) {
-
- return em.Object.extend({
-
- name: "",
-
- createdAt: null,
- modifiedAt: null,
- createdBy: null,
-
- // Change the createdAt and modifiedAt value when the record is initialized.
- init: function(object) {
- this._super(object);
- this.set('createdAt', em.DateTime.create());
- this.set('modifiedAt', em.DateTime.create());
- this.set('createdBy', em.MyApp.user);
- },
-
- // Change the modifiedAt value when some attribute is being modified.
- set: function(key, value) {
- if (key == 'modifiedAt') {
- this._super(key, value)
- } else {
- this.set('modifiedAt', Em.DateTime.create());
- this._super(key, value);
- }
- }
- });
-
-});
-
-
-
@@ -1,11 +0,0 @@
-
-define([
- 'lib/ember/load'
-], function(em) {
-
- return em.Object.extend({
- name: ""
- });
-
-});
-
@@ -1,12 +0,0 @@
-<div id="top">
- {{#if Em.MyApp.user.name}}Entering as {{Em.MyApp.user.name}}{{else}}Please come in...{{/if}}
-</div>
-<div id="access">
- Who are you? {{#view Em.MyApp.UsernameField valueBinding="Em.MyApp.user.name" placeholder="Enter your user name" id="username-field"}}{{/view}}
- {{#view Em.MyApp.AccessButton action="login"}}Log in{{/view}}
-
-</div>
-<div id="bottom">
- MyApp v{{Em.MyApp.VERSION}}
-</div>
-
@@ -1,24 +0,0 @@
-
-<div id="top">
- {{Em.MyApp.user.name}} {{#view Em.MyApp.AccessButton action="logout"}}Log out{{/view}}
-</div>
-
-<div id="create-item">
- {{#view Em.MyApp.CreateItemView}}{{/view}}
-</div>
-
-<div id="items-list">
- <ul>
- {{#each items}}
- {{#view Em.MyApp.ItemView contentBinding="this"}}
- <li><span class="label">{{content.name}}</span>
- [{{createdAtString}} by {{createdByName}}]</li>
- {{/view}}
- {{/each}}
- </ul>
-</div>
-
-<div id="bottom">
- MyApp v{{Em.MyApp.VERSION}}.
-</div>
-
@@ -1,42 +0,0 @@
-
-define([
- 'lib/ember/load',
- 'plugins/text!app/templates/access.handlebars'
-], function(em, accessTemplateSource) {
-
- var AccessView = em.View.extend({
- template: em.Handlebars.compile(accessTemplateSource),
- didInsertElement: function() {
- this.$("#username-field").focus();
- }
- });
-
- var actions = em.Object.create({
- login: function() {
- em.MyApp.get("mainView").login();
- },
-
- logout: function() {
- em.MyApp.get("mainView").logout();
- }
- });
-
- var UsernameField = em.TextField.extend({
- insertNewline: function() {
- actions.login();
- }
- });
-
- var AccessButton = em.Button.extend({
- target: actions
- });
-
- // Export them also from the module to be used elsewhere.
- return {
- AccessView: AccessView,
- AccessButton: AccessButton,
- UsernameField: UsernameField
- }
-
-});
-
@@ -1,50 +0,0 @@
-
-define([
- 'lib/ember/load',
- 'lib/utils',
- 'app/controllers/item-controllers',
- 'plugins/text!app/templates/list.handlebars'
-], function(em, utils, itemControllers, listTemplateSource) {
-
- var ItemView = em.View.extend({
- createdAtString: function() {
- return utils.formatAsDateAndTime(this.getPath('content.createdAt'));
- }.property('content.createdAt'),
- createdByName: function() {
- var creator = this.getPath('content.createdBy');
- if (creator) {
- return creator.name;
- } else {
- return "Unknown";
- }
- }.property('content.createdBy')
- });
-
- var CreateItemView = em.TextField.extend({
- classNames: ['create-item-input'], // CSS class name
- insertNewline: function() {
- var value = this.get('value');
- if (value) {
- itemControllers.itemsArray.createItem(value);
- this.set('value', ''); // Reset the field
- }
- },
- didInsertElement: function() {
- this.$().focus();
- }
- });
-
- var ListItemsView = em.View.extend({
- template: em.Handlebars.compile(listTemplateSource),
- ItemView: ItemView,
- items: itemControllers.itemsArray
- });
-
- return {
- ItemView: ItemView,
- CreateItemView: CreateItemView,
- ListItemsView: ListItemsView
- }
- }
-);
-
@@ -1,32 +0,0 @@
-
-define([
- 'jquery',
- 'lib/ember/load',
- 'app/models/user'
-], function($, em, User) {
-
- var MainView = em.ContainerView.extend({
- switchView: function(view) {
- var childViews = this.get("childViews");
- childViews.popObject();
- childViews.pushObject(view);
- },
-
- logout: function() {
- var access = em.MyApp.get("AccessView").create();
- em.MyApp.set("user", User.create({name: ""}));
- this.switchView(access);
- },
-
- login: function() {
- var access = em.MyApp.get("ListItemsView").create();
- this.switchView(access);
- }
- });
-
- return {
- MainView: MainView
- }
-
-});
-
Oops, something went wrong.

0 comments on commit 682eda0

Please sign in to comment.