prettier: change to single quoting

This commit is contained in:
Torkel Ödegaard
2017-12-20 12:33:33 +01:00
parent 2a360c45a2
commit 85879a7014
304 changed files with 10558 additions and 10519 deletions

View File

@ -1,7 +1,7 @@
///<reference path="../../../headers/common.d.ts" />
import _ from "lodash";
import { QueryCtrl } from "app/plugins/sdk";
import _ from 'lodash';
import { QueryCtrl } from 'app/plugins/sdk';
export interface PostgresQuery {
refId: string;
@ -24,7 +24,7 @@ WHERE
`;
export class PostgresQueryCtrl extends QueryCtrl {
static templateUrl = "partials/query.editor.html";
static templateUrl = 'partials/query.editor.html';
showLastQuerySQL: boolean;
formats: any[];
@ -37,29 +37,29 @@ export class PostgresQueryCtrl extends QueryCtrl {
constructor($scope, $injector) {
super($scope, $injector);
this.target.format = this.target.format || "time_series";
this.target.alias = "";
this.target.format = this.target.format || 'time_series';
this.target.alias = '';
this.formats = [
{ text: "Time series", value: "time_series" },
{ text: "Table", value: "table" }
{ text: 'Time series', value: 'time_series' },
{ text: 'Table', value: 'table' },
];
if (!this.target.rawSql) {
// special handling when in table panel
if (this.panelCtrl.panel.type === "table") {
this.target.format = "table";
this.target.rawSql = "SELECT 1";
if (this.panelCtrl.panel.type === 'table') {
this.target.format = 'table';
this.target.rawSql = 'SELECT 1';
} else {
this.target.rawSql = defaultQuery;
}
}
this.panelCtrl.events.on(
"data-received",
'data-received',
this.onDataReceived.bind(this),
$scope
);
this.panelCtrl.events.on("data-error", this.onDataError.bind(this), $scope);
this.panelCtrl.events.on('data-error', this.onDataError.bind(this), $scope);
}
onDataReceived(dataList) {