2021-03-26 04:17:02 +04:30
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
2021-01-26 23:32:12 +03:30
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
2023-05-18 13:17:41 +02:00
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
2021-01-26 23:32:12 +03:30
|
|
|
|
2026-01-10 19:45:02 +01:00
|
|
|
import { StrictMode } from 'react';
|
|
|
|
|
import { createRoot } from 'react-dom/client';
|
|
|
|
|
|
|
|
|
|
import '@/index.css';
|
2024-09-30 04:53:56 +02:00
|
|
|
import '@/polyfill.manual';
|
2026-01-10 19:45:02 +01:00
|
|
|
import { initializeLocalization } from '@/i18n';
|
2025-07-27 00:03:51 +02:00
|
|
|
import '@/lib/dayjs/Setup.ts';
|
2025-10-11 00:39:44 +02:00
|
|
|
import '@/lib/koration/Setup.ts';
|
2025-11-22 16:58:12 +01:00
|
|
|
import '@/lib/PointerDeviceUtil.ts';
|
2025-10-11 00:39:44 +02:00
|
|
|
import { App } from '@/App';
|
2026-01-10 19:45:02 +01:00
|
|
|
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
|
|
|
|
|
|
|
|
|
|
initializeLocalization().catch(defaultPromiseErrorHandler('i18n', true));
|
2024-05-02 22:14:34 +02:00
|
|
|
|
2023-06-04 21:40:04 +02:00
|
|
|
const container = document.getElementById('root');
|
|
|
|
|
const root = createRoot(container!);
|
|
|
|
|
root.render(
|
2023-08-14 21:43:06 +02:00
|
|
|
<StrictMode>
|
2020-12-24 16:50:50 +01:00
|
|
|
<App />
|
2023-08-14 21:43:06 +02:00
|
|
|
</StrictMode>,
|
2020-12-24 02:37:23 +03:30
|
|
|
);
|