mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #502 from spenceralger/fix-js-dashboards
Fixed dashboard scripts
This commit is contained in:
commit
efaff8405d
9
dist/app/app.js
vendored
9
dist/app/app.js
vendored
File diff suppressed because one or more lines are too long
2
dist/app/components/require.config.js
vendored
2
dist/app/components/require.config.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! kibana - v3.0.0m3pre - 2013-09-16
|
||||
* Copyright (c) 2013 Rashid Khan; Licensed Apache License */
|
||||
|
||||
require.config({baseUrl:"app",urlArgs:"r=2534463",paths:{config:"../config",settings:"components/settings",kbn:"components/kbn",css:"../vendor/require/css",text:"../vendor/require/text",moment:"../vendor/moment",filesaver:"../vendor/filesaver",angular:"../vendor/angular/angular","angular-strap":"../vendor/angular/angular-strap","angular-sanitize":"../vendor/angular/angular-sanitize",timepicker:"../vendor/angular/timepicker",datepicker:"../vendor/angular/datepicker",underscore:"components/underscore.extended","underscore-src":"../vendor/underscore",bootstrap:"../vendor/bootstrap/bootstrap",jquery:"../vendor/jquery/jquery-1.8.0","extend-jquery":"components/extend-jquery","jquery.flot":"../vendor/jquery/jquery.flot","jquery.flot.pie":"../vendor/jquery/jquery.flot.pie","jquery.flot.selection":"../vendor/jquery/jquery.flot.selection","jquery.flot.stack":"../vendor/jquery/jquery.flot.stack","jquery.flot.time":"../vendor/jquery/jquery.flot.time",modernizr:"../vendor/modernizr-2.6.1",elasticjs:"../vendor/elasticjs/elastic-angular-client"},shim:{underscore:{exports:"_"},angular:{deps:["jquery"],exports:"angular"},bootstrap:{deps:["jquery"]},modernizr:{exports:"Modernizr"},jquery:{exports:"jQuery"},"jquery.flot":["jquery"],"jquery.flot.pie":["jquery","jquery.flot"],"jquery.flot.selection":["jquery","jquery.flot"],"jquery.flot.stack":["jquery","jquery.flot"],"jquery.flot.time":["jquery","jquery.flot"],"angular-sanitize":["angular"],"angular-cookies":["angular"],"angular-loader":["angular"],"angular-mocks":["angular"],"angular-resource":["angular"],"angular-route":["angular"],"angular-touch":["angular"],"angular-strap":["angular","bootstrap","timepicker","datepicker"],timepicker:["jquery","bootstrap"],datepicker:["jquery","bootstrap"],elasticjs:["angular","../vendor/elasticjs/elastic"]}});
|
||||
require.config({baseUrl:"app",urlArgs:"r=2534463",paths:{config:"../config",settings:"components/settings",kbn:"components/kbn",css:"../vendor/require/css",text:"../vendor/require/text",moment:"../vendor/moment",filesaver:"../vendor/filesaver",angular:"../vendor/angular/angular","angular-strap":"../vendor/angular/angular-strap","angular-sanitize":"../vendor/angular/angular-sanitize",timepicker:"../vendor/angular/timepicker",datepicker:"../vendor/angular/datepicker",underscore:"components/underscore.extended","underscore-src":"../vendor/underscore",bootstrap:"../vendor/bootstrap/bootstrap",jquery:"../vendor/jquery/jquery-1.8.0","extend-jquery":"components/extend-jquery","jquery.flot":"../vendor/jquery/jquery.flot","jquery.flot.pie":"../vendor/jquery/jquery.flot.pie","jquery.flot.selection":"../vendor/jquery/jquery.flot.selection","jquery.flot.stack":"../vendor/jquery/jquery.flot.stack","jquery.flot.time":"../vendor/jquery/jquery.flot.time",modernizr:"../vendor/modernizr-2.6.1",elasticjs:"../vendor/elasticjs/elastic-angular-client"},shim:{underscore:{exports:"_"},angular:{deps:["jquery"],exports:"angular"},bootstrap:{deps:["jquery"]},modernizr:{exports:"Modernizr"},jquery:{exports:"jQuery"},"jquery.flot":["jquery"],"jquery.flot.pie":["jquery","jquery.flot"],"jquery.flot.selection":["jquery","jquery.flot"],"jquery.flot.stack":["jquery","jquery.flot"],"jquery.flot.time":["jquery","jquery.flot"],"angular-sanitize":["angular"],"angular-cookies":["angular"],"angular-loader":["angular"],"angular-mocks":["angular"],"angular-resource":["angular"],"angular-route":["angular"],"angular-touch":["angular"],"angular-strap":["angular","bootstrap","timepicker","datepicker"],timepicker:["jquery","bootstrap"],datepicker:["jquery","bootstrap"],elasticjs:["angular","../vendor/elasticjs/elastic"]}});
|
||||
|
2
dist/app/panels/map/module.js
vendored
2
dist/app/panels/map/module.js
vendored
File diff suppressed because one or more lines are too long
4
dist/build.txt
vendored
4
dist/build.txt
vendored
@ -15,11 +15,12 @@ vendor/angular/angular-strap.js
|
||||
app/components/extend-jquery.js
|
||||
app/components/settings.js
|
||||
app/services/alertSrv.js
|
||||
app/components/kbn.js
|
||||
vendor/moment.js
|
||||
vendor/modernizr-2.6.1.js
|
||||
app/services/dashboard.js
|
||||
app/services/fields.js
|
||||
app/services/filterSrv.js
|
||||
vendor/moment.js
|
||||
app/services/kbnIndex.js
|
||||
app/services/querySrv.js
|
||||
app/services/timer.js
|
||||
@ -34,7 +35,6 @@ app/directives/dashUpload.js
|
||||
app/directives/kibanaPanel.js
|
||||
app/directives/ngBlur.js
|
||||
app/directives/ngModelOnBlur.js
|
||||
app/components/kbn.js
|
||||
app/directives/tip.js
|
||||
app/directives/all.js
|
||||
app/filters/all.js
|
||||
|
@ -1,10 +1,13 @@
|
||||
define([
|
||||
'angular',
|
||||
'jquery',
|
||||
'kbn',
|
||||
'underscore',
|
||||
'config',
|
||||
'moment',
|
||||
'modernizr'
|
||||
],
|
||||
function (angular, _, config, Modernizr) {
|
||||
function (angular, $, kbn, _, config, moment, Modernizr) {
|
||||
'use strict';
|
||||
|
||||
var module = angular.module('kibana.services');
|
||||
@ -280,12 +283,12 @@ function (angular, _, config, Modernizr) {
|
||||
|
||||
this.script_load = function(file) {
|
||||
return $http({
|
||||
url: "dashboards/"+file,
|
||||
url: "app/dashboards/"+file,
|
||||
method: "GET",
|
||||
transformResponse: function(response) {
|
||||
/*jshint -W054 */
|
||||
var _f = new Function("ARGS",response);
|
||||
return _f($routeParams);
|
||||
var _f = new Function('ARGS','kbn','_','moment','window','document','angular','require','define','$','jQuery',response);
|
||||
return _f($routeParams,kbn,_,moment);
|
||||
}
|
||||
}).then(function(result) {
|
||||
if(!result) {
|
||||
|
Loading…
Reference in New Issue
Block a user