mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
15 lines
379 B
TypeScript
15 lines
379 B
TypeScript
import { createHashHistory } from 'history'
|
|
import { configure } from 'mobx'
|
|
import { RouterStore, ConfigStore } from '@stores'
|
|
|
|
// prepare MobX stores
|
|
configure({ enforceActions: 'observed' })
|
|
const history = createHashHistory()
|
|
|
|
export const rootStores = {
|
|
router: new RouterStore(history),
|
|
config: new ConfigStore()
|
|
}
|
|
|
|
export const storeKeys = Object.keys(rootStores)
|