-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.js
42 lines (32 loc) · 1.34 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// polyfills
import 'core-js';
import 'regenerator-runtime/runtime';
import 'custom-event-polyfill';
import 'whatwg-fetch';
import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only';
import React from 'react';
import { render } from 'react-dom';
import * as analytics from './lib/analytics';
import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';
import 'react-bootstrap-table2-paginator/dist/react-bootstrap-table2-paginator.min.css';
import 'react-bootstrap-table2-filter/dist/react-bootstrap-table2-filter.min.css';
import 'agr_genomefeaturecomponent/src/GenomeFeatureViewer.css';
import './style.scss';
import ReactApp from './reactApplication';
import { applyPolyfills, defineCustomElements } from '@geneontology/wc-ribbon-strips/loader';
import { applyPolyfills as applyPolyfills2, defineCustomElements as defineCustomElements2 } from '@geneontology/wc-ribbon-table/loader';
import { applyPolyfills as applyPolyfills3, defineCustomElements as defineCustomElements3 } from '@geneontology/wc-gocam-viz/loader';
analytics.initialize();
render(<ReactApp />, document.getElementById('app'));
if (module.hot) {
module.hot.accept();
}
applyPolyfills().then(() => {
defineCustomElements(window);
});
applyPolyfills2().then(() => {
defineCustomElements2(window);
});
applyPolyfills3().then(() => {
defineCustomElements3(window);
});