{
"meta": {
"total" : 6039391,
"took" : 65,
"timed_out" : false,
"shards" : {
"total" : 5,
This file contains 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 Notify from 'ember-notify'; | |
import Session from 'ember-simple-auth/services/session' | |
const { | |
Service, | |
computed, | |
isEmpty | |
} = Ember; |
This file contains 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 DS from 'ember-data'; | |
// results is never updated apart from for the initial reference (from a template) | |
export default DS.Model.extend({ | |
isNotSaving: Ember.computed.not('isSaving'), | |
isNotDirty: Ember.computed.not('isDirty'), | |
isSaved: Ember.computed.and('isNotSaving', 'isNotDirty'), | |
results: Ember.computed('isSaved', function() { | |
return ...; |
This file contains 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
export default Ember.Component.extend({ | |
selectedTabIndex: 0, | |
... | |
} |
This file contains 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
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ devon-discovery/pods/dc-tabs/template | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ devon-discovery/pods/components/dc-tabs/template | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ undefined | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ devon-discovery/templates/components/dc-tabs | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ devon-discovery/pods/dc-tabs/template | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ................................ devon-discovery/pods/components/dc-tabs/template | |
vendor-677ebc3d570315a9d25c81afd998f9f4.js:28585 [ ] template:components/dc-tabs ............................. |
This file contains 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 DS from "ember-data"; | |
import ENV from "devon-discovery/config/environment"; | |
var ApplicationAdapter = DS.ActiveModelAdapter.extend({ | |
namespace: ENV.api.namespace, | |
headers: { | |
'Accept': 'application/json', | |
}, | |
serializePolymorphicType: function(record, json, relationship) { | |
var key = relationship.key; |
This file contains 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
export default Ember.Component.extend({ | |
selection: [], | |
columns: function() { | |
return this.get('columnDefinitions').map(function(colDef) { | |
return fluidColumn.create(colDef); | |
}); | |
}.property('columnDefinitions'), | |
selectionChanged: function() { | |
console.log('in selection changed'); | |
}.observes('selection'), |
This file contains 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
Uncaught TypeError: string is not a function vendor.js:30452 applyStrvendor.js:25950 sendEventvendor.js:28065 ObserverSet.flushvendor.js:28616 endPropertyChangesvendor.js:12747 DeferredActionQueues.flushvendor.js:12203 Backburner.endvendor.js:12249 Backburner.runvendor.js:30441 applyvendor.js:29057 runvendor.js:49234 __exports__.default.EmberObject.extend._bubbleEventvendor.js:49182 (anonymous function)vendor.js:4527 jQuery.event.dispatchvendor.js:4213 elemData.handle |
This file contains 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
~/D/P/c/test ❯❯❯ bundle gem test | |
create test/Gemfile | |
create test/Rakefile | |
create test/LICENSE.txt | |
create test/README.md | |
create test/.gitignore | |
create test/test.gemspec | |
create test/lib/test.rb | |
create test/lib/test/version.rb | |
Initializing git repo in /Users/jon/Documents/Projects/coffee_shit/test/test |
This file contains 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
Ember.SimpleAuth.Authenticators.OAuth2.reopen({ | |
serverTokenEndpoint: ENV.api.host + '/' + ENV.api.namespace + '/oauth/token' | |
}); | |
// customize the session so that it allows access to the account object | |
Ember.SimpleAuth.Session.reopen({ | |
user: function() { | |
var resourceOwnerId = this.get('resource_owner_id'); | |
if (!Ember.isEmpty(resourceOwnerId)) { | |
return this.container.lookup('store:main').find('user', resourceOwnerId); |
NewerOlder