mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into apps
This commit is contained in:
commit
d1145ed3fb
@ -1,8 +1,8 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import config = require('app/core/config');
|
import config from 'app/core/config';
|
||||||
import store = require('app/core/store');
|
import store from 'app/core/store';
|
||||||
|
import _ from 'lodash';
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import coreModule from '../core_module';
|
import coreModule from '../core_module';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import angular = require('angular');
|
import angular from 'angular';
|
||||||
import config = require('app/core/config');
|
import config from 'app/core/config';
|
||||||
import coreModule from '../core_module';
|
import coreModule from '../core_module';
|
||||||
|
|
||||||
export class SignUpCtrl {
|
export class SignUpCtrl {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
|
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import coreModule from '../core_module';
|
import coreModule from '../core_module';
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import jquery = require('jquery');
|
import jquery from 'jquery';
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
|
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import coreModule from '../core_module';
|
import coreModule from '../core_module';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
///<reference path="../headers/common.d.ts" />
|
///<reference path="../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import kbn from 'app/core/utils/kbn';
|
||||||
import kbn = require('app/core/utils/kbn');
|
import _ from 'lodash';
|
||||||
|
|
||||||
function matchSeriesOverride(aliasOrRegex, seriesAlias) {
|
function matchSeriesOverride(aliasOrRegex, seriesAlias) {
|
||||||
if (!aliasOrRegex) { return false; }
|
if (!aliasOrRegex) { return false; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
var units = ['y', 'M', 'w', 'd', 'h', 'm', 's'];
|
var units = ['y', 'M', 'w', 'd', 'h', 'm', 's'];
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
///<reference path="../../headers/common.d.ts" />
|
///<reference path="../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
|
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import * as dateMath from './datemath';
|
import * as dateMath from './datemath';
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
///<amd-dependency path="./input_date" name="inputDate" />
|
///<amd-dependency path="./input_date" name="inputDate" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
import kbn = require('app/core/utils/kbn');
|
import kbn from 'app/core/utils/kbn';
|
||||||
|
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
import * as dateMath from 'app/core/utils/datemath';
|
import * as dateMath from 'app/core/utils/datemath';
|
||||||
import * as rangeUtil from 'app/core/utils/rangeutil';
|
import * as rangeUtil from 'app/core/utils/rangeutil';
|
||||||
|
|
||||||
|
@ -12,10 +12,8 @@ import 'app/core/core';
|
|||||||
|
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import _ = require('lodash');
|
import config from 'app/core/config';
|
||||||
import bootstrap = require('bootstrap');
|
import _ from 'lodash';
|
||||||
import kbn = require('app/core/utils/kbn');
|
|
||||||
import config = require('app/core/config');
|
|
||||||
|
|
||||||
export class GrafanaApp {
|
export class GrafanaApp {
|
||||||
registerFunctions: any;
|
registerFunctions: any;
|
||||||
|
39
public/app/headers/common.d.ts
vendored
39
public/app/headers/common.d.ts
vendored
@ -1,17 +1,21 @@
|
|||||||
///<reference path="lodash/lodash.d.ts" />
|
|
||||||
///<reference path="../../vendor/npm/angular2/typings/tsd.d.ts" />
|
///<reference path="../../vendor/npm/angular2/typings/tsd.d.ts" />
|
||||||
///<reference path="../../vendor/npm/angular2/manual_typings/globals.d.ts" />
|
///<reference path="../../vendor/npm/angular2/manual_typings/globals.d.ts" />
|
||||||
|
|
||||||
|
declare var System: any;
|
||||||
|
|
||||||
// dummy modules
|
// dummy modules
|
||||||
declare module 'app/core/config' {
|
declare module 'app/core/config' {
|
||||||
var config : any;
|
var config : any;
|
||||||
export = config;
|
export default config;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var System: any;
|
declare module 'lodash' {
|
||||||
|
var lodash: any;
|
||||||
|
export default lodash;
|
||||||
|
}
|
||||||
|
|
||||||
declare module 'moment' {
|
declare module 'moment' {
|
||||||
var moment : any;
|
var moment: any;
|
||||||
export default moment;
|
export default moment;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,35 +31,12 @@ declare module 'jquery' {
|
|||||||
|
|
||||||
declare module 'app/core/utils/kbn' {
|
declare module 'app/core/utils/kbn' {
|
||||||
var kbn: any;
|
var kbn: any;
|
||||||
export = kbn;
|
export default kbn;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'app/core/store' {
|
declare module 'app/core/store' {
|
||||||
var store : any;
|
var store : any;
|
||||||
export = store;
|
export default store;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module 'angular-route' {
|
|
||||||
var kbn : any;
|
|
||||||
export = kbn;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'angular-sanitize' {
|
|
||||||
var kbn : any;
|
|
||||||
export = kbn;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'bootstrap' {
|
|
||||||
var kbn : any;
|
|
||||||
export = kbn;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'angular-strap' {
|
|
||||||
var kbn : any;
|
|
||||||
export = kbn;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'angular-dragdrop' {
|
|
||||||
var kbn : any;
|
|
||||||
export = kbn;
|
|
||||||
}
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
import queryPart from './query_part';
|
import queryPart from './query_part';
|
||||||
|
|
||||||
export default class InfluxQuery {
|
export default class InfluxQuery {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
|
|
||||||
var index = [];
|
var index = [];
|
||||||
var categories = {
|
var categories = {
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import angular = require('angular');
|
import angular from 'angular';
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
import moment = require('moment');
|
import moment from 'moment';
|
||||||
import PanelMeta from 'app/features/panel/panel_meta2';
|
import PanelMeta from 'app/features/panel/panel_meta2';
|
||||||
|
|
||||||
import {transformDataToTable} from './transformers';
|
import {transformDataToTable} from './transformers';
|
||||||
|
|
||||||
export class TablePanelCtrl {
|
export class TablePanelCtrl {
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
|
||||||
import kbn = require('app/core/utils/kbn');
|
|
||||||
|
|
||||||
|
import _ from 'lodash';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
|
|
||||||
import {transformers} from './transformers';
|
import {transformers} from './transformers';
|
||||||
|
import kbn from 'app/core/utils/kbn';
|
||||||
|
|
||||||
export class TablePanelEditorCtrl {
|
export class TablePanelEditorCtrl {
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
|
||||||
import kbn = require('app/core/utils/kbn');
|
import kbn = require('app/core/utils/kbn');
|
||||||
|
|
||||||
|
import _ from 'lodash';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import _ = require('lodash');
|
import _ from 'lodash';
|
||||||
import kbn = require('app/core/utils/kbn');
|
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import kbn from 'app/core/utils/kbn';
|
||||||
|
|
||||||
export class TableRenderer {
|
export class TableRenderer {
|
||||||
formaters: any[];
|
formaters: any[];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
///<reference path="../../../headers/common.d.ts" />
|
///<reference path="../../../headers/common.d.ts" />
|
||||||
|
|
||||||
import moment = require('moment');
|
import _ from 'lodash';
|
||||||
import _ = require('lodash');
|
import moment from 'moment';
|
||||||
import flatten from '../../../core/utils/flatten';
|
import flatten from '../../../core/utils/flatten';
|
||||||
import TimeSeries from '../../../core/time_series2';
|
import TimeSeries from '../../../core/time_series2';
|
||||||
import TableModel from '../../../core/table_model';
|
import TableModel from '../../../core/table_model';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import {describe, beforeEach, it, sinon, expect} from 'test/lib/common'
|
import {describe, beforeEach, it, sinon, expect} from 'test/lib/common'
|
||||||
|
|
||||||
import * as dateMath from 'app/core/utils/datemath';
|
import * as dateMath from 'app/core/utils/datemath';
|
||||||
import * as _ from 'lodash';
|
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import _ from 'lodash';
|
||||||
|
|
||||||
describe("DateMath", () => {
|
describe("DateMath", () => {
|
||||||
var spans = ['s', 'm', 'h', 'd', 'w', 'M', 'y'];
|
var spans = ['s', 'm', 'h', 'd', 'w', 'M', 'y'];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {describe, beforeEach, it, sinon, expect} from 'test/lib/common'
|
import {describe, beforeEach, it, sinon, expect} from 'test/lib/common'
|
||||||
|
|
||||||
import * as rangeUtil from 'app/core/utils/rangeutil';
|
import * as rangeUtil from 'app/core/utils/rangeutil';
|
||||||
import * as _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
describe("rangeUtil", () => {
|
describe("rangeUtil", () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user