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 ActiveModelSerializer from 'ember-cli-mirage/serializers/active-model-serializer' | |
| import { pluralize } from 'ember-inflector'; | |
| const { camelize, dasherize } = Ember.String; | |
| export default ActiveModelSerializer.extend({ | |
| keyForModel(type) { | |
| return camelize(type); |
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
| harvest() { | |
| dow=$(date "+%u") | |
| if [ -n "$2" ]; then | |
| date=$2 | |
| else | |
| if [ $dow = "1" ]; then | |
| date=$(date -v-mon -v -1w "+%Y-%m-%d 00:00:00") | |
| else | |
| date=$(date -v-mon "+%Y-%m-%d 00:00:00") | |
| fi |
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
| flfaf |
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
| this.inject('bar'); | |
| this.render(hbs`{{some-thing}}`); | |
| this.bar.foo = function() { assert.ok(true) } | |
| this.$('a').click(); | |
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
| foo:w | |
| : |
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
| }); | |
| var inputFiles = ['vendor/ember-cli/vendor-prefix.js'] | |
| .concat(legacyFilesToAppend) | |
| .concat('vendor/addons.js') | |
| .concat('vendor/ember-cli/vendor-suffix.js'); | |
| var vendor = stewMap(applicationJs, function(content, relativePath){ | |
| debugger; | |
| if (inputFiles.indexOf(relativePath) > -1) { |
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
| if (hasDOM) { | |
| Ember.$.ajax(hash); | |
| } else { | |
| najax(hash) | |
| } |
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
| From f3aa801a7015c118cd50b2c0664485355bd21ad7 Mon Sep 17 00:00:00 2001 | |
| From: Jonathan Jackson <jonathan.jackson1@me.com> | |
| Date: Tue, 20 Oct 2015 09:37:03 -0400 | |
| Subject: [PATCH] Inherit from LinkComponent to remove private routing API | |
| usage | |
| --- | |
| frontend/app/components/course-page-list-item.js | 30 +--------------------- | |
| .../app/templates/components/course-page-list.hbs | 4 ++- | |
| .../app/templates/components/course-page-thumb.hbs | 4 ++- |
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'; | |
| const PromisableArrayProxy = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin); | |
| export default function(...args) { | |
| const fn = args.pop(); | |
| const dependentKeys = args.slice(); | |
| return Ember.computed(...dependentKeys, function() { | |
| const promise = fn.apply(this); |