mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
poc: frontend extensions
This commit is contained in:
parent
974eddee8f
commit
f4a9817b94
4
public/app/extensions/index.ts
Normal file
4
public/app/extensions/index.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
let components = (require as any).context('.', true, /\.tsx?/);
|
||||||
|
components.keys().forEach(key => {
|
||||||
|
console.log('extension component', components(key));
|
||||||
|
});
|
3
public/app/extensions/test/test.ts
Normal file
3
public/app/extensions/test/test.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export class Tester {}
|
||||||
|
|
||||||
|
console.log('Tester');
|
@ -1,5 +1,6 @@
|
|||||||
import './dashboard_loaders';
|
import './dashboard_loaders';
|
||||||
import './ReactContainer';
|
import './ReactContainer';
|
||||||
|
import '../extensions';
|
||||||
|
|
||||||
import ServerStats from 'app/features/admin/ServerStats';
|
import ServerStats from 'app/features/admin/ServerStats';
|
||||||
import AlertRuleList from 'app/features/alerting/AlertRuleList';
|
import AlertRuleList from 'app/features/alerting/AlertRuleList';
|
||||||
|
Loading…
Reference in New Issue
Block a user