mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prettier: change to single quoting
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
import "babel-polyfill";
|
||||
import "file-saver";
|
||||
import "lodash";
|
||||
import "jquery";
|
||||
import "angular";
|
||||
import "angular-route";
|
||||
import "angular-sanitize";
|
||||
import "angular-native-dragdrop";
|
||||
import "angular-bindonce";
|
||||
import "react";
|
||||
import "react-dom";
|
||||
import 'babel-polyfill';
|
||||
import 'file-saver';
|
||||
import 'lodash';
|
||||
import 'jquery';
|
||||
import 'angular';
|
||||
import 'angular-route';
|
||||
import 'angular-sanitize';
|
||||
import 'angular-native-dragdrop';
|
||||
import 'angular-bindonce';
|
||||
import 'react';
|
||||
import 'react-dom';
|
||||
|
||||
import "vendor/bootstrap/bootstrap";
|
||||
import "vendor/angular-ui/ui-bootstrap-tpls";
|
||||
import "vendor/angular-other/angular-strap";
|
||||
import 'vendor/bootstrap/bootstrap';
|
||||
import 'vendor/angular-ui/ui-bootstrap-tpls';
|
||||
import 'vendor/angular-other/angular-strap';
|
||||
|
||||
import $ from "jquery";
|
||||
import angular from "angular";
|
||||
import config from "app/core/config";
|
||||
import _ from "lodash";
|
||||
import moment from "moment";
|
||||
import $ from 'jquery';
|
||||
import angular from 'angular';
|
||||
import config from 'app/core/config';
|
||||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
|
||||
// add move to lodash for backward compatabiltiy
|
||||
_.move = function(array, fromIndex, toIndex) {
|
||||
@@ -26,7 +26,7 @@ _.move = function(array, fromIndex, toIndex) {
|
||||
return array;
|
||||
};
|
||||
|
||||
import { coreModule, registerAngularDirectives } from "./core/core";
|
||||
import { coreModule, registerAngularDirectives } from './core/core';
|
||||
|
||||
export class GrafanaApp {
|
||||
registerFunctions: any;
|
||||
@@ -50,7 +50,7 @@ export class GrafanaApp {
|
||||
}
|
||||
|
||||
init() {
|
||||
var app = angular.module("grafana", []);
|
||||
var app = angular.module('grafana', []);
|
||||
|
||||
moment.locale(config.bootData.user.locale);
|
||||
|
||||
@@ -66,7 +66,7 @@ export class GrafanaApp {
|
||||
// pre assing bindings before constructor calls
|
||||
$compileProvider.preAssignBindingsEnabled(true);
|
||||
|
||||
if (config.buildInfo.env !== "development") {
|
||||
if (config.buildInfo.env !== 'development') {
|
||||
$compileProvider.debugInfoEnabled(false);
|
||||
}
|
||||
|
||||
@@ -78,50 +78,50 @@ export class GrafanaApp {
|
||||
this.registerFunctions.service = $provide.service;
|
||||
this.registerFunctions.filter = $filterProvider.register;
|
||||
|
||||
$provide.decorator("$http", [
|
||||
"$delegate",
|
||||
"$templateCache",
|
||||
$provide.decorator('$http', [
|
||||
'$delegate',
|
||||
'$templateCache',
|
||||
function($delegate, $templateCache) {
|
||||
var get = $delegate.get;
|
||||
$delegate.get = function(url, config) {
|
||||
if (url.match(/\.html$/)) {
|
||||
// some template's already exist in the cache
|
||||
if (!$templateCache.get(url)) {
|
||||
url += "?v=" + new Date().getTime();
|
||||
url += '?v=' + new Date().getTime();
|
||||
}
|
||||
}
|
||||
return get(url, config);
|
||||
};
|
||||
return $delegate;
|
||||
}
|
||||
},
|
||||
]);
|
||||
}
|
||||
);
|
||||
|
||||
this.ngModuleDependencies = [
|
||||
"grafana.core",
|
||||
"ngRoute",
|
||||
"ngSanitize",
|
||||
"$strap.directives",
|
||||
"ang-drag-drop",
|
||||
"grafana",
|
||||
"pasvaz.bindonce",
|
||||
"ui.bootstrap",
|
||||
"ui.bootstrap.tpls",
|
||||
"react"
|
||||
'grafana.core',
|
||||
'ngRoute',
|
||||
'ngSanitize',
|
||||
'$strap.directives',
|
||||
'ang-drag-drop',
|
||||
'grafana',
|
||||
'pasvaz.bindonce',
|
||||
'ui.bootstrap',
|
||||
'ui.bootstrap.tpls',
|
||||
'react',
|
||||
];
|
||||
|
||||
var module_types = [
|
||||
"controllers",
|
||||
"directives",
|
||||
"factories",
|
||||
"services",
|
||||
"filters",
|
||||
"routes"
|
||||
'controllers',
|
||||
'directives',
|
||||
'factories',
|
||||
'services',
|
||||
'filters',
|
||||
'routes',
|
||||
];
|
||||
|
||||
_.each(module_types, type => {
|
||||
var moduleName = "grafana." + type;
|
||||
var moduleName = 'grafana.' + type;
|
||||
this.useModule(angular.module(moduleName, []));
|
||||
});
|
||||
|
||||
@@ -131,7 +131,7 @@ export class GrafanaApp {
|
||||
// register react angular wrappers
|
||||
registerAngularDirectives();
|
||||
|
||||
var preBootRequires = [System.import("app/features/all")];
|
||||
var preBootRequires = [System.import('app/features/all')];
|
||||
|
||||
Promise.all(preBootRequires)
|
||||
.then(() => {
|
||||
@@ -147,7 +147,7 @@ export class GrafanaApp {
|
||||
});
|
||||
})
|
||||
.catch(function(err) {
|
||||
console.log("Application boot failed:", err);
|
||||
console.log('Application boot failed:', err);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user