This file contains hidden or 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
| Chapters.EditChapterView = Ember.View.extend | |
| templateName: 'chapters/edit' | |
| tagName: 'form' | |
| classNames: 'form-horizontal' | |
| didInsertElement: -> | |
| @_super() | |
| @$('input:first').focus() | |
| submit: (event) -> |
This file contains hidden or 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
| App.CurrentUserController = Ember.ObjectController.extend | |
| isSignedIn: (-> | |
| @get('content') != null | |
| ).property('@content') | |
| App.ApplicationController = Ember.Controller.extend | |
| needs: ['currentUser'] | |
| isHome: (-> |
This file contains hidden or 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
| +computed firstName, lastName | |
| fullName: (key, value) -> | |
| if arguments.length == 2 and value | |
| name = value.split(' ') | |
| @firstName = name[0] | |
| @lastName = name.slice(1).join(' ') | |
| if @firstName or @lastName | |
| "#{@firstName} #{@lastName}" | |
| else |
This file contains hidden or 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
| PhotographerEditRoute = Ember.Route.extend | |
| model: -> | |
| @session.get('user').then (user) -> | |
| user.get('photographer') | |
| setupController: (controller, model) -> | |
| @_super controller, model | |
| controller.set 'availableCategories', @store.find('category') | |
| @resetSelectedCategories() |
This file contains hidden or 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
| { | |
| "name": "insta-photographers", | |
| "dependencies": { | |
| "handlebars": "~1.3.0", | |
| "jquery": "^1.11.1", | |
| "ember": "1.8.0-beta.4", | |
| "ember-data": "1.0.0-beta.10", | |
| "ember-resolver": "~0.1.7", | |
| "loader": "stefanpenner/loader.js#2.0.0", | |
| "ember-cli-shims": "stefanpenner/ember-cli-shims#0.0.3", |
This file contains hidden or 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
| /* | |
| * jQuery FlexSlider v2.2.0 | |
| * http://www.woothemes.com/flexslider/ | |
| * | |
| * Copyright 2012 WooThemes | |
| * Free to use under the GPLv2 license. | |
| * http://www.gnu.org/licenses/gpl-2.0.html | |
| * | |
| * Contributing author: Tyler Smith (@mbmufffin) | |
| */ |
This file contains hidden or 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
| /* global require, module */ | |
| var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | |
| var pickFiles = require('broccoli-static-compiler'); | |
| var mergeTrees = require('broccoli-merge-trees'); | |
| var app = new EmberApp({ | |
| outputPaths: { | |
| app: { | |
| css: { |
This file contains hidden or 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
| `import Ember from 'ember'` | |
| AdminPhotographersIndexController = Ember.ArrayController.extend Ember.PromiseProxyMixin, | |
| queryParams: ['status'] | |
| status: null | |
| setupPromise: (-> | |
| @set 'promise', new Ember.RSVP.Promise((->)) | |
| ).on('init') |
This file contains hidden or 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
| import Ember from 'ember'; | |
| import { | |
| moduleForComponent, | |
| test | |
| } from 'ember-qunit'; | |
| moduleForComponent('signup-form', 'SignupFormComponent', { | |
| // specify the other units that are required for this test | |
| // needs: ['component:foo', 'helper:bar'] | |
| needs: [ |