mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
Expose react and slate to external plugins
Experimental support for react in external plugins - react - slate (editor) - papaparse (csv parsing) - prismjs (syntax highlighting) This is needed for new external datasource plugins like Flux
This commit is contained in:
parent
71b0326769
commit
eb686c06f2
@ -5,6 +5,16 @@ import kbn from 'app/core/utils/kbn';
|
||||
import moment from 'moment';
|
||||
import angular from 'angular';
|
||||
import jquery from 'jquery';
|
||||
|
||||
// Experimental module exports
|
||||
import papaparse from 'papaparse';
|
||||
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 +79,15 @@ 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);
|
||||
exposeToPlugin('papaparse', papaparse);
|
||||
|
||||
// backward compatible path
|
||||
exposeToPlugin('vendor/npm/rxjs/Rx', {
|
||||
Subject: Subject,
|
||||
|
Loading…
Reference in New Issue
Block a user