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,15 +62,17 @@ const Repo = EmberObject.extend({
}
this.set("checking", true);
this.repoAjax(Discourse.getAppURL("/admin/docker/latest")).then(result => {
this.setProperties({
unloaded: false,
checking: false,
lastCheckedAt: new Date().getTime(),
latest: EmberObject.create(result.latest)
});
resolve();
});
this.repoAjax(Discourse.getAppURL("/admin/docker/latest")).then(
result => {
this.setProperties({
unloaded: false,
checking: false,
lastCheckedAt: new Date().getTime(),
latest: EmberObject.create(result.latest)
});
resolve();
}
);
});
},

View File

@ -2,10 +2,10 @@
module.exports = function(environment) {
var ENV = {
modulePrefix: 'manager-client',
modulePrefix: "manager-client",
environment: environment,
rootURL: '/',
locationType: 'hash',
rootURL: "/",
locationType: "hash",
EmberENV: {
FEATURES: {
// 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_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
@ -31,20 +31,19 @@ module.exports = function(environment) {
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
if (environment === "test") {
// Testem prefers this...
ENV.locationType = 'none';
ENV.locationType = "none";
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
ENV.APP.rootElement = "#ember-testing";
ENV.APP.autoboot = false;
}
if (environment === 'production') {
if (environment === "production") {
}
return ENV;

View File

@ -1,7 +1,6 @@
/*jshint node:true*/
/* 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) {
var app = new EmberApp(defaults, {

View File

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