mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
ea8b4277b0
refs TryGhost/Ghost#7860 - removes post type filter links - adds dropdown filters for post type, author, and tag - replaces custom refresh on query params change with Ember's standard `refreshModel` config
25 lines
736 B
JavaScript
25 lines
736 B
JavaScript
import {assign} from 'ember-platform';
|
|
import run from 'ember-runloop';
|
|
import Application from '../../app';
|
|
import config from '../../config/environment';
|
|
import registerPowerSelectHelpers from '../../tests/helpers/ember-power-select';
|
|
// eslint-disable-next-line no-unused-vars
|
|
import fileUpload from './file-upload';
|
|
|
|
registerPowerSelectHelpers();
|
|
|
|
export default function startApp(attrs) {
|
|
let application;
|
|
|
|
let attributes = assign({}, config.APP);
|
|
attributes = assign(attributes, attrs); // use defaults, but you can override;
|
|
|
|
run(function () {
|
|
application = Application.create(attributes);
|
|
application.setupForTesting();
|
|
application.injectTestHelpers();
|
|
});
|
|
|
|
return application;
|
|
}
|