Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
ae146557
Commit
ae146557
authored
Oct 02, 2017
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugins: expose datemath to plugins as well, fixes zabbix plugin
parent
bd348e16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
public/app/features/plugins/plugin_loader.ts
+17
-9
No files found.
public/app/features/plugins/plugin_loader.ts
View file @
ae146557
...
...
@@ -7,6 +7,7 @@ import angular from 'angular';
import
jquery
from
'jquery'
;
import
config
from
'app/core/config'
;
import
TimeSeries
from
'app/core/time_series2'
;
import
*
as
datemath
from
'app/core/utils/datemath'
;
import
*
as
graphitePlugin
from
'app/plugins/datasource/graphite/module'
;
import
*
as
cloudwatchPlugin
from
'app/plugins/datasource/cloudwatch/module'
;
...
...
@@ -78,15 +79,22 @@ System.locate = function(load) {
});
};
System
.
registerDynamic
(
'lodash'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
_
;
});
System
.
registerDynamic
(
'moment'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
moment
;
});
System
.
registerDynamic
(
'jquery'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
jquery
;
});
System
.
registerDynamic
(
'angular'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
angular
;
});
System
.
registerDynamic
(
'app/plugins/sdk'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
sdk
;
});
System
.
registerDynamic
(
'app/core/utils/kbn'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
kbn
;
});
System
.
registerDynamic
(
'app/core/config'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
config
;
});
System
.
registerDynamic
(
'app/core/time_series'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
TimeSeries
;
});
System
.
registerDynamic
(
'app/core/time_series2'
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
TimeSeries
;
});
function
exposeToPlugin
(
name
:
string
,
component
:
any
)
{
System
.
registerDynamic
(
name
,
[],
true
,
function
(
require
,
exports
,
module
)
{
module
.
exports
=
component
;
});
}
exposeToPlugin
(
'lodash'
,
_
);
exposeToPlugin
(
'moment'
,
moment
);
exposeToPlugin
(
'jquery'
,
jquery
);
exposeToPlugin
(
'angular'
,
angular
);
exposeToPlugin
(
'app/plugins/sdk'
,
sdk
);
exposeToPlugin
(
'app/core/utils/datemath'
,
datemath
);
exposeToPlugin
(
'app/core/utils/kbn'
,
kbn
);
exposeToPlugin
(
'app/core/config'
,
config
);
exposeToPlugin
(
'app/core/time_series'
,
TimeSeries
);
exposeToPlugin
(
'app/core/time_series2'
,
TimeSeries
);
import
'vendor/flot/jquery.flot'
;
import
'vendor/flot/jquery.flot.selection'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment