DEV: Prettier

This commit is contained in:
Jarek Radosz 2020-07-20 13:28:53 +02:00
parent c27f14f2a7
commit f627eacb0d
4 changed files with 25 additions and 30 deletions

View File

@ -62,7 +62,8 @@ const Repo = EmberObject.extend({
} }
this.set("checking", true); this.set("checking", true);
this.repoAjax(Discourse.getAppURL("/admin/docker/latest")).then(result => { this.repoAjax(Discourse.getAppURL("/admin/docker/latest")).then(
result => {
this.setProperties({ this.setProperties({
unloaded: false, unloaded: false,
checking: false, checking: false,
@ -70,7 +71,8 @@ const Repo = EmberObject.extend({
latest: EmberObject.create(result.latest) latest: EmberObject.create(result.latest)
}); });
resolve(); resolve();
}); }
);
}); });
}, },

View File

@ -2,10 +2,10 @@
module.exports = function(environment) { module.exports = function(environment) {
var ENV = { var ENV = {
modulePrefix: 'manager-client', modulePrefix: "manager-client",
environment: environment, environment: environment,
rootURL: '/', rootURL: "/",
locationType: 'hash', locationType: "hash",
EmberENV: { EmberENV: {
FEATURES: { FEATURES: {
// Here you can enable experimental features on an ember canary build // Here you can enable experimental features on an ember canary build
@ -23,7 +23,7 @@ module.exports = function(environment) {
} }
}; };
if (environment === 'development') { if (environment === "development") {
// ENV.APP.LOG_RESOLVER = true; // ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true; // ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS = true;
@ -31,20 +31,19 @@ module.exports = function(environment) {
// ENV.APP.LOG_VIEW_LOOKUPS = true; // ENV.APP.LOG_VIEW_LOOKUPS = true;
} }
if (environment === 'test') { if (environment === "test") {
// Testem prefers this... // Testem prefers this...
ENV.locationType = 'none'; ENV.locationType = "none";
// keep test console output quieter // keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false; ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing'; ENV.APP.rootElement = "#ember-testing";
ENV.APP.autoboot = false; ENV.APP.autoboot = false;
} }
if (environment === 'production') { if (environment === "production") {
} }
return ENV; return ENV;

View File

@ -1,7 +1,6 @@
/*jshint node:true*/ /*jshint node:true*/
/* global require, module */ /* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var EmberApp = require("ember-cli/lib/broccoli/ember-app");
module.exports = function(defaults) { module.exports = function(defaults) {
var app = new EmberApp(defaults, { var app = new EmberApp(defaults, {

View File

@ -1,13 +1,8 @@
/*jshint node:true*/ /*jshint node:true*/
module.exports = { module.exports = {
"framework": "qunit", framework: "qunit",
"test_page": "tests/index.html?hidepassed", test_page: "tests/index.html?hidepassed",
"disable_watching": true, disable_watching: true,
"launch_in_ci": [ launch_in_ci: ["PhantomJS"],
"PhantomJS" launch_in_dev: ["PhantomJS", "Chrome"]
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
}; };