forked from ChartIQ/chartiq-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.js
49 lines (38 loc) · 1.9 KB
/
resources.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
43
44
45
46
47
48
49
// Manage resources and plugins here
// import 'chartiq/js/thirdparty/perfect-scrollbar.jquery.js';
import { CIQ } from 'chartiq/js/chartiq';
// chart style sheets
import '../chartiq/styles/base-imports';
// custom css styles following base style sheets
import './chart_styles.css';
import 'chartiq/js/addOns';
import 'chartiq/js/components';
// market definition and symbology sample overrides abstract function CIQ.Market.Symbology.factory
import 'chartiq/examples/markets/marketDefinitionsSample';
import 'chartiq/examples/markets/marketSymbologySample';
import 'chartiq/examples/markers/videoSample.css';
import 'chartiq/examples/markers/videoSample';
import 'chartiq/examples/markers/tradeAnalyticsSample.css';
import 'chartiq/examples/markers/tradeAnalyticsSample';
// comment any properties if plugins are not needed or not available to prevent compilation errors
export const pluginsToLoadLazy = {
// cryptoiq: () => Promise.all([
// import(/* webpackChunkName: "cryptoiq" */ 'chartiq/plugins/cryptoiq/cryptoiq'),
// import(/* webpackChunkName: "marketdepth" */ 'chartiq/plugins/cryptoiq/marketdepth'),
// import(/* webpackChunkName: "orderbook" */ 'chartiq/plugins/cryptoiq/orderbook'),
// import(/* webpackChunkName: "L2_simulator" */ 'chartiq/examples/feeds/L2_simulator')
// ]),
// scriptiq: () => import(/* webpackChunkName: "scriptiq" */ 'chartiq/plugins/scriptiq/scriptiq'),
// tfc: () => Promise.all([
// import('chartiq/plugins/tfc/tfc-loader'),
// import('chartiq/plugins/tfc/tfc-demo') // Be sure to load some account file or TFC will not work
// ]),
// un-comment following lines to enable timespan (Life Cycle Events)
// timeSpanEvents: () => Promise.all([
// import('chartiq/plugins/timespanevent/timespanevent'),
// import('chartiq/plugins/timespanevent/examples/timeSpanEventSample')
// ])
};
CIQ.UI.ensureComponentsRegistered();
export { CIQ };
export { AdvancedChart } from '../chartiq';