2023-01-23 14:51:50 -08:00
|
|
|
import './polyfills';
|
|
|
|
|
2020-03-27 13:59:38 -07:00
|
|
|
import React from 'react';
|
2023-01-05 14:42:18 -08:00
|
|
|
import { createRoot } from 'react-dom/client';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-11-15 12:48:54 -08:00
|
|
|
import * as BuildConfig from 'soapbox/build-config';
|
2023-10-13 13:25:59 -07:00
|
|
|
import Soapbox from 'soapbox/init/soapbox';
|
2022-04-21 09:21:09 -07:00
|
|
|
import { printConsoleWarning } from 'soapbox/utils/console';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2023-01-16 12:08:40 -08:00
|
|
|
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';
|
|
|
|
|
2023-09-18 14:37:15 -07:00
|
|
|
import './iframe';
|
2023-10-10 15:30:50 -07:00
|
|
|
import './styles/i18n/arabic.css';
|
2023-12-21 14:30:54 -08:00
|
|
|
import './styles/i18n/javanese.css';
|
2023-09-18 14:37:15 -07:00
|
|
|
import './styles/application.scss';
|
|
|
|
import './styles/tailwind.css';
|
2023-01-09 15:27:19 -08:00
|
|
|
|
|
|
|
import './precheck';
|
2020-03-27 13:59:38 -07:00
|
|
|
import ready from './ready';
|
2023-11-20 11:45:52 -08:00
|
|
|
import { registerSW, lockSW } from './utils/sw';
|
2022-06-23 15:53:04 -07:00
|
|
|
|
2023-01-09 15:27:19 -08:00
|
|
|
if (BuildConfig.NODE_ENV === 'production') {
|
|
|
|
printConsoleWarning();
|
2023-09-15 12:07:59 -07:00
|
|
|
registerSW('/sw.js');
|
2023-11-20 11:45:52 -08:00
|
|
|
lockSW();
|
2023-01-09 15:27:19 -08:00
|
|
|
}
|
2020-03-27 13:59:38 -07:00
|
|
|
|
2023-01-09 15:27:19 -08:00
|
|
|
ready(() => {
|
2023-10-17 14:09:24 -07:00
|
|
|
const container = document.getElementById('bigbuffet') as HTMLElement;
|
2023-01-10 07:30:42 -08:00
|
|
|
const root = createRoot(container);
|
2021-09-05 14:42:48 -07:00
|
|
|
|
2023-01-10 07:30:42 -08:00
|
|
|
root.render(<Soapbox />);
|
2023-01-09 15:27:19 -08:00
|
|
|
});
|