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
25e1d723
Unverified
Commit
25e1d723
authored
Jun 14, 2018
by
Marcus Efraimsson
Committed by
GitHub
Jun 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12276 from grafana/davkal/expose-react-slate
Expose react and slate to external plugins
parents
28404574
5ec7d60e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
public/app/features/plugins/plugin_loader.ts
+17
-0
No files found.
public/app/features/plugins/plugin_loader.ts
View file @
25e1d723
...
...
@@ -5,6 +5,15 @@ import kbn from 'app/core/utils/kbn';
import
moment
from
'moment'
;
import
angular
from
'angular'
;
import
jquery
from
'jquery'
;
// Experimental module exports
import
prismjs
from
'prismjs'
;
import
slate
from
'slate'
;
import
slateReact
from
'slate-react'
;
import
slatePlain
from
'slate-plain-serializer'
;
import
react
from
'react'
;
import
reactDom
from
'react-dom'
;
import
config
from
'app/core/config'
;
import
TimeSeries
from
'app/core/time_series2'
;
import
TableModel
from
'app/core/table_model'
;
...
...
@@ -69,6 +78,14 @@ exposeToPlugin('d3', d3);
exposeToPlugin
(
'rxjs/Subject'
,
Subject
);
exposeToPlugin
(
'rxjs/Observable'
,
Observable
);
// Experimental modules
exposeToPlugin
(
'prismjs'
,
prismjs
);
exposeToPlugin
(
'slate'
,
slate
);
exposeToPlugin
(
'slate-react'
,
slateReact
);
exposeToPlugin
(
'slate-plain-serializer'
,
slatePlain
);
exposeToPlugin
(
'react'
,
react
);
exposeToPlugin
(
'react-dom'
,
reactDom
);
// backward compatible path
exposeToPlugin
(
'vendor/npm/rxjs/Rx'
,
{
Subject
:
Subject
,
...
...
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