mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
610 B
TypeScript
26 lines
610 B
TypeScript
4 years ago
|
import './init';
|
||
4 years ago
|
import './dev';
|
||
4 years ago
|
import React from 'react';
|
||
|
import ReactDOM from 'react-dom';
|
||
|
import { App } from './App';
|
||
4 years ago
|
import { initPlugins } from './plugin/loader';
|
||
4 years ago
|
import { installServiceWorker } from './utils/sw-helper';
|
||
3 years ago
|
import { showErrorToasts, t } from 'tailchat-shared';
|
||
|
import './styles';
|
||
4 years ago
|
|
||
|
installServiceWorker();
|
||
4 years ago
|
|
||
4 years ago
|
// 先加载插件再开启应用
|
||
3 years ago
|
initPlugins()
|
||
|
.then(() => {
|
||
|
ReactDOM.render(
|
||
|
<React.StrictMode>
|
||
|
<App />
|
||
|
</React.StrictMode>,
|
||
|
document.querySelector('#app')
|
||
|
);
|
||
|
})
|
||
|
.catch(() => {
|
||
|
showErrorToasts(t('MiniStar 应用初始化失败'));
|
||
|
});
|