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'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
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'; | |
| export function modelSave(subject, { successMsg, errorMsg, transitionPath, notifyLookupPath, confirmLookupPath, saveFunc }) { | |
| if (!saveFunc) { | |
| saveFunc = subject.save.bind(subject); | |
| } | |
| if (!notifyLookupPath) { | |
| notifyLookupPath = 'service:notify' | |
| } |
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
| { | |
| "assets": { | |
| "ember-data.js.map": "ember-data.js-e739d346508661e4eec329db5be04dd6.map", | |
| "images\/Porters-App-front-btn-andy.png": "images\/Porters-App-front-btn-andy-9bfb1b0fe208858f51d0b9bdcbe22852.png", | |
| "images\/[email protected]": "images\/Porters-App-front-btn-andy@2x-476d25b1a887ea6477aa07343b5b9818.png", | |
| "images\/Porters-App-front-btn-ios.png": "images\/Porters-App-front-btn-ios-ece0d518f629b4c95aa05bd5920091a7.png", | |
| "images\/[email protected]": "images\/Porters-App-front-btn-ios@2x-0ad174e5683bfaec54f68b9a530e7ec0.png", | |
| "images\/Porters-App-front-logo.png": "images\/Porters-App-front-logo-81c9021c6dd1c0aa1a9a301178058f6e.png", | |
| "images\/Porters-App-front-webBG.jpg": "images\/Porters-App-front-webBG-669b50aaae77e5670a388f01fb4c9c04.jpg", | |
| "images\/andy-robot-icon.png": "images\/andy-robot-icon-f6427f417d831ada94502b549cc4f4ae.png", |
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
| require 'fileutils' | |
| namespace :wildland do | |
| namespace :pre_deploy do | |
| namespace :precompile_assets do | |
| task :rails do | |
| system('RAILS_ENV=production bundle exec rake assets:precompile') | |
| end | |
| task :ember do |
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 { createSortableArray } from './sortable-array-proxy'; | |
| const { get, set } = Ember; | |
| /**** | |
| * TODO: If need sorting, add sort logic | |
| *****/ | |
| export default function computedManyThroughAsync(joinRelationAttr, nestedRelationAttr, sortProperties, sortAscending = true) { | |
| return Ember.computed(joinRelationAttr, function() { | |
| var joinRelationPromise = get(this, joinRelationAttr); |
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'; | |
| var SortableArrayProxy = Ember.ArrayProxy.extend(Ember.SortableMixin); | |
| export function createSortableArray(arrayToProxy, sortProperties, sortAscending) { | |
| return SortableArrayProxy.create({ | |
| content: arrayToProxy, | |
| sortProperties: sortProperties, | |
| sortAscending: sortAscending | |
| }); |
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 LFSerializer from 'ember-localforage-adapter/serializers/localforage'; | |
| export default LFSerializer; |
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'; | |
| export function padNumber(params/*, hash*/) { | |
| var str = params[0] + ""; | |
| var size = params[1]; | |
| while (str.length < size) { | |
| str = "0" + str; | |
| } |