mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
plugins: expose whole rxjs to plugins (#19226)
This commit is contained in:
parent
56f5106717
commit
98c95a8a83
@ -37,7 +37,8 @@ import * as grafanaUI from '@grafana/ui';
|
|||||||
import * as grafanaRuntime from '@grafana/runtime';
|
import * as grafanaRuntime from '@grafana/runtime';
|
||||||
|
|
||||||
// rxjs
|
// rxjs
|
||||||
import { Observable, Subject } from 'rxjs';
|
import * as rxjs from 'rxjs';
|
||||||
|
import * as rxjsOperators from 'rxjs/operators';
|
||||||
|
|
||||||
// add cache busting
|
// add cache busting
|
||||||
const bust = `?_cache=${Date.now()}`;
|
const bust = `?_cache=${Date.now()}`;
|
||||||
@ -81,12 +82,8 @@ exposeToPlugin('moment', moment);
|
|||||||
exposeToPlugin('jquery', jquery);
|
exposeToPlugin('jquery', jquery);
|
||||||
exposeToPlugin('angular', angular);
|
exposeToPlugin('angular', angular);
|
||||||
exposeToPlugin('d3', d3);
|
exposeToPlugin('d3', d3);
|
||||||
exposeToPlugin('rxjs/Subject', Subject);
|
exposeToPlugin('rxjs', rxjs);
|
||||||
exposeToPlugin('rxjs/Observable', Observable);
|
exposeToPlugin('rxjs/operators', rxjsOperators);
|
||||||
exposeToPlugin('rxjs', {
|
|
||||||
Subject: Subject,
|
|
||||||
Observable: Observable,
|
|
||||||
});
|
|
||||||
|
|
||||||
// Experimental modules
|
// Experimental modules
|
||||||
exposeToPlugin('prismjs', prismjs);
|
exposeToPlugin('prismjs', prismjs);
|
||||||
|
Loading…
Reference in New Issue
Block a user