remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remix-ide/src/index.tsx

27 lines
807 B

3 years ago
// eslint-disable-next-line no-use-before-define
3 years ago
import React from 'react'
import './index.css'
import { ThemeModule } from './app/tabs/theme-module'
import { Preload } from './app/components/preload'
import Config from './config'
import { Registry } from '@remix-project/remix-lib'
import { Storage } from '@remix-project/remix-lib'
1 year ago
1 year ago
import { createRoot } from 'react-dom/client'
1 year ago
1 year ago
;(async function () {
3 years ago
try {
const configStorage = new Storage('config-v0.8:')
1 year ago
const config = new Config(configStorage)
Registry.getInstance().put({ api: config, name: 'config' })
1 year ago
} catch (e) {}
3 years ago
const theme = new ThemeModule()
theme.initTheme()
1 year ago
const container = document.getElementById('root');
const root = createRoot(container)
if (container) {
1 year ago
root.render(<Preload root={root} />);
}
3 years ago
})()