43 lines
No EOL
1.2 KiB
TypeScript
43 lines
No EOL
1.2 KiB
TypeScript
import './polyfills';
|
|
|
|
import React from 'react';
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
import * as BuildConfig from 'soapbox/build-config';
|
|
import { printConsoleWarning } from 'soapbox/utils/console';
|
|
|
|
import '@fontsource/inter/200.css';
|
|
import '@fontsource/inter/300.css';
|
|
import '@fontsource/inter/400.css';
|
|
import '@fontsource/inter/500.css';
|
|
import '@fontsource/inter/600.css';
|
|
import '@fontsource/inter/700.css';
|
|
import '@fontsource/inter/900.css';
|
|
import '@fontsource/roboto-mono/400.css';
|
|
import 'line-awesome/dist/font-awesome-line-awesome/css/all.css';
|
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
|
|
import '../soapbox/iframe';
|
|
import '../styles/application.scss';
|
|
import '../styles/tailwind.css';
|
|
|
|
import './precheck';
|
|
import { default as Soapbox } from './containers/soapbox';
|
|
import * as monitoring from './monitoring';
|
|
import ready from './ready';
|
|
import { registerSW } from './utils/sw';
|
|
|
|
// Sentry
|
|
monitoring.start();
|
|
|
|
if (BuildConfig.NODE_ENV === 'production') {
|
|
printConsoleWarning();
|
|
registerSW('/sw.js');
|
|
}
|
|
|
|
ready(() => {
|
|
const container = document.getElementById('soapbox') as HTMLElement;
|
|
const root = createRoot(container);
|
|
|
|
root.render(<Soapbox />);
|
|
}); |