I hereby claim:
- I am trmcnvn on github.
- I am vevix (https://keybase.io/vevix) on keybase.
- I have a public key whose fingerprint is 5339 A16C 444A 97BC 032F 2380 8962 FE71 D808 7F83
To claim this, I am signing this object:
| import Base from 'ember-simple-auth/authenticators/base'; | |
| import { remote } from 'budget/adapters/application'; | |
| import RSVP from 'rsvp'; | |
| import run from 'ember-runloop'; | |
| import get from 'ember-metal/get'; | |
| export default Base.extend({ | |
| restore(data) { | |
| return new RSVP.Promise((resolve, reject) => { | |
| if (get(data, 'name')) { |
| import Ember from 'ember'; | |
| const LAZY_KEY = 'REQUEST_COMPONENT_TWO_LAZY'; | |
| export default Ember.Component.extend({ | |
| isLoading: true, | |
| lazy: Ember.inject.service(), | |
| init() { | |
| this._super(...arguments); |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| init() { | |
| this._super(...arguments); | |
| this.set('user', { name: 'vevix' }); | |
| } | |
| }); |
| export default JSONAPIAdapter.extend({ | |
| init() { | |
| this._super(...arguments); | |
| this.xhrRequests = []; | |
| }, | |
| ajaxOptions() { | |
| const options = this._super(...arguments); | |
| const defaultBeforeSend = options.beforeSend; | |
| options.beforeSend = function(xhr) { |
| Type | |
| Looks | |
| Exorcist | |
| Digital Painting Studio | |
| Poor | |
| Salamander | |
| Crinoline | |
| Lion Books | |
| Pottery | |
| Lightning Magic |
| import Ember from 'ember'; | |
| import Changeset from 'ember-changeset'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle', | |
| init() { | |
| this._super(...arguments); | |
| this.model = new Ember.Object({ inputValue: 'Hello, World!' }); | |
| this.changeset = new Changeset(this.model, this.validate); |
I hereby claim:
To claim this, I am signing this object:
| action(query) { | |
| const options = Object.assign({ cache: true }, query.options); | |
| let key = Object.assign({}, query.expression, options); | |
| key = JSON.stringify(sortObject(key)); | |
| const value = QUERY_CACHE[key]; | |
| if (value) { | |
| if ((new Date()) > value) { | |
| delete QUERY_CACHE[key]; | |
| } else { |
| import { SchemaDirectiveVisitor } from 'graphql-tools'; | |
| import { defaultFieldResolver, GraphQLField, GraphQLResolveInfo } from 'graphql'; | |
| import { ForbiddenError } from '../errors'; | |
| import { ContextParameters } from 'graphql-yoga/dist/types'; | |
| // Throws an error if the query requested a field that is marked by this directive | |
| // and the requested user is not the authenticated user. | |
| export default class OwnerDirective extends SchemaDirectiveVisitor { | |
| visitFieldDefinition(field: GraphQLField<any, any>) { | |
| this.checkIfOwner(field); |