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,7 +1,7 @@
|
||||
import angular from "angular";
|
||||
import _ from "lodash";
|
||||
import $ from "jquery";
|
||||
import coreModule from "../core_module";
|
||||
import angular from 'angular';
|
||||
import _ from 'lodash';
|
||||
import $ from 'jquery';
|
||||
import coreModule from '../core_module';
|
||||
|
||||
export class InspectCtrl {
|
||||
/** @ngInject */
|
||||
@@ -16,7 +16,7 @@ export class InspectCtrl {
|
||||
}
|
||||
|
||||
if (_.isString(model.error.data)) {
|
||||
$scope.response = $("<div>" + model.error.data + "</div>").text();
|
||||
$scope.response = $('<div>' + model.error.data + '</div>').text();
|
||||
} else if (model.error.data) {
|
||||
if (model.error.data.response) {
|
||||
$scope.response = $sanitize(model.error.data.response);
|
||||
@@ -62,13 +62,13 @@ export class InspectCtrl {
|
||||
}
|
||||
getParametersFromQueryString(queryString) {
|
||||
var result = [];
|
||||
var parameters = queryString.split("&");
|
||||
var parameters = queryString.split('&');
|
||||
for (var i = 0; i < parameters.length; i++) {
|
||||
var keyValue = parameters[i].split("=");
|
||||
var keyValue = parameters[i].split('=');
|
||||
if (keyValue[1].length > 0) {
|
||||
result.push({
|
||||
key: keyValue[0],
|
||||
value: (<any>window).unescape(keyValue[1])
|
||||
value: (<any>window).unescape(keyValue[1]),
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -76,4 +76,4 @@ export class InspectCtrl {
|
||||
}
|
||||
}
|
||||
|
||||
coreModule.controller("InspectCtrl", InspectCtrl);
|
||||
coreModule.controller('InspectCtrl', InspectCtrl);
|
||||
|
||||
Reference in New Issue
Block a user