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
#!/usr/bin/env python | |
# ---------------------------------------------------------------------------- | |
# Copyright (c) 2016--, QIIME 2 development team. | |
# | |
# Distributed under the terms of the Modified BSD License. | |
# | |
# The full license is in the file LICENSE, distributed with this software. | |
# ---------------------------------------------------------------------------- |
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'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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'; | |
const ERROR_MESSAGES = { | |
401: 'Unauthorized', | |
500: 'Internal Server Error' | |
}; | |
export default DS.RESTAdapter.extend({ | |
defaultSerializer: "DS/djangoREST", | |
addTrailingSlashes: true, |
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'; | |
const ERROR_MESSAGES = { | |
401: 'Unauthorized', | |
500: 'Internal Server Error' | |
}; | |
export default DS.RESTAdapter.extend({ | |
defaultSerializer: "DS/djangoREST", | |
addTrailingSlashes: true, |
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'; | |
export default Ember.Route.extend({ | |
beforeModel() { | |
this.store.push({ | |
data: { | |
type: 'folder', | |
id: 2 | |
} | |
}); |
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'; | |
const { Controller, Object } = Ember; | |
const TestObject = Object.extend({ | |
property1: 'abc', | |
property2: [1], | |
}); | |
export default Controller.extend({ |