forked from fribbels/hsr-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsx
63 lines (57 loc) · 2.16 KB
/
index.jsx
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import React from 'react'
import ReactDOM from 'react-dom/client'
import { ErrorBoundary } from 'react-error-boundary'
import './style/style.css'
import './style/hsro.css'
import App from './App'
import { WorkerPool } from './lib/workerPool'
import { Constants } from './lib/constants.ts'
import { DataParser } from './lib/dataParser'
import { DB } from './lib/db'
import { CharacterStats } from './lib/characterStats'
import { Assets } from './lib/assets'
import { RelicAugmenter } from './lib/relicAugmenter'
import { StatCalculator } from './lib/statCalculator'
import { Gradient } from './lib/gradient'
import { SaveState } from './lib/saveState'
import { RelicFilters } from './lib/relicFilters'
import { Renderer } from './lib/renderer'
import { Message } from './lib/message'
import { Hint } from './lib/hint'
import { CharacterConverter } from './lib/characterConverter'
import { RelicScorer } from './lib/relicScorer.ts'
import { BufferPacker } from './lib/bufferPacker'
import { Typography } from 'antd'
import { RelicRollFixer } from './lib/relicRollFixer'
window.WorkerPool = WorkerPool
window.Constants = Constants
window.DataParser = DataParser
// window.OptimizerTabController = OptimizerTabController
window.DB = DB
window.CharacterStats = CharacterStats
window.Assets = Assets
window.RelicAugmenter = RelicAugmenter
window.StatCalculator = StatCalculator
window.Gradient = Gradient
window.SaveState = SaveState
window.RelicFilters = RelicFilters
window.Renderer = Renderer
window.Message = Message
window.Hint = Hint
window.CharacterConverter = CharacterConverter
window.RelicScorer = RelicScorer
// window.CharacterConditionals = CharacterConditionals
// window.LightConeConditionals = LightConeConditionals
window.BufferPacker = BufferPacker
window.RelicRollFixer = RelicRollFixer
console.log('Data parser', DataParser.parse())
SaveState.load()
const defaultErrorRender = ({ error }) => <Typography>Something went wrong: {error.message}</Typography>
document.addEventListener('DOMContentLoaded', function() {
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
<ErrorBoundary fallbackRender={defaultErrorRender}>
<App />
</ErrorBoundary>,
)
})