11import React from 'react'
22import ReactDOM from 'react-dom'
33import { HashRouter as Router , Route } from 'react-router-dom'
4- import { loadTheme , getTheme } from 'office-ui-fabric-react'
5- import {
6- AddCircle as AddIcon ,
7- Alert as AlertIcon ,
8- Checkmark as SuccessIcon ,
9- Close as DismissIcon ,
10- Copy as CopyIcon ,
11- Down as ArrowDownIcon ,
12- FormClose as ClearIcon ,
13- FormAdd as CreateIcon ,
14- FormPreviousLink as LeaveIcon ,
15- FormUp as ExpandIcon ,
16- FormUpload as ImportIcon ,
17- LinkBottom as LinkBottomIcon ,
18- LinkDown as LinkDownIcon ,
19- LinkTop as LinkTopIcon ,
20- LinkUp as LinkUpIcon ,
21- Nodes as ConnectedIcon ,
22- Scan as ScanIcon ,
23- Search as SearchIcon ,
24- SubtractCircle as RemoveIcon ,
25- Update as UpdateIcon ,
26- } from 'grommet-icons'
274
285import 'styles/index.scss'
296import 'utils/i18n'
7+ import 'utils/loadTheme'
308import * as serviceWorker from 'serviceWorker'
319
3210import Navbar from 'containers/Navbar'
@@ -35,53 +13,6 @@ import Main from 'containers/Main'
3513import Footer from 'containers/Footer'
3614import ErrorBoundary from 'components/ErrorBoundary'
3715import withProviders from 'states/stateProvider'
38- import { registerIcons } from 'utils/icons'
39-
40- loadTheme ( {
41- fonts : {
42- tiny : { fontSize : '11px' } ,
43- xSmall : { fontSize : '12px' } ,
44- small : { fontSize : '14px' } ,
45- smallPlus : { fontSize : '15px' } ,
46- medium : { fontSize : '16px' } ,
47- mediumPlus : { fontSize : '17px' } ,
48- large : { fontSize : '18px' } ,
49- xLarge : { fontSize : '22px' } ,
50- xxLarge : { fontSize : '28px' } ,
51- superLarge : { fontSize : '42px' } ,
52- mega : { fontSize : '72px' } ,
53- } ,
54- } )
55-
56- const theme = getTheme ( )
57- const { semanticColors } = theme
58-
59- registerIcons ( {
60- icons : {
61- errorbadge : < AlertIcon size = "16px" /> ,
62- completed : < SuccessIcon size = "16px" /> ,
63- MiniCopy : < CopyIcon size = "small" /> ,
64- Search : < SearchIcon size = "16px" color = { semanticColors . menuIcon } /> ,
65- FirstPage : < LinkTopIcon size = "16px" color = { semanticColors . menuIcon } style = { { transform : 'rotate(-90deg)' } } /> ,
66- LastPage : < LinkBottomIcon size = "16px" color = { semanticColors . menuIcon } style = { { transform : 'rotate(-90deg)' } } /> ,
67- PrevPage : < LinkUpIcon size = "16px" color = { semanticColors . menuIcon } style = { { transform : 'rotate(-90deg)' } } /> ,
68- NextPage : < LinkDownIcon size = "16px" color = { semanticColors . menuIcon } style = { { transform : 'rotate(-90deg)' } } /> ,
69- ArrowDown : < ArrowDownIcon size = "small" /> ,
70- ChevronRightMed : < ExpandIcon size = "16px" style = { { transform : 'rotate(90deg) translate(2px, 0px)' } } /> ,
71- Scan : < ScanIcon /> ,
72- Import : < ImportIcon color = "white" /> ,
73- Create : < CreateIcon /> ,
74- Add : < AddIcon /> ,
75- Remove : < RemoveIcon color = "red" /> ,
76- Copy : < CopyIcon /> ,
77- Clear : < ClearIcon size = "16px" /> ,
78- Dismiss : < DismissIcon size = "16px" /> ,
79- Leave : < LeaveIcon /> ,
80- Connected : < ConnectedIcon size = "small" color = "green" /> ,
81- Disconnected : < AlertIcon size = "small" color = "red" /> ,
82- Updating : < UpdateIcon size = "16px" style = { { animation : 'rotate360 3s linear infinite' } } /> ,
83- } ,
84- } )
8516
8617export const containers : CustomRouter . Route [ ] = [
8718 {
0 commit comments