2024-03-26 16:07:08 +00:00
|
|
|
import React from 'react'
|
|
|
|
import ReactDOM from 'react-dom/client'
|
|
|
|
import Router from './Router.tsx'
|
2024-05-13 14:22:31 +00:00
|
|
|
import '@mantine/core/styles.layer.css';
|
|
|
|
import '@mantine/code-highlight/styles.layer.css';
|
|
|
|
import '@mantine/dates/styles.layer.css';
|
|
|
|
import '@mantine/tiptap/styles.layer.css';
|
|
|
|
import '@mantine/notifications/styles.layer.css';
|
|
|
|
import {Alert, createTheme, DEFAULT_THEME, MantineProvider, mergeMantineTheme} from "@mantine/core";
|
2024-03-26 16:07:08 +00:00
|
|
|
import {QueryClient, QueryClientProvider} from "@tanstack/react-query";
|
2024-05-13 14:22:31 +00:00
|
|
|
import {PocketBaseProvider} from "@/lib/pocketbase.tsx";
|
|
|
|
import "./style/global.css";
|
|
|
|
import "./style/EventCalender.scss"
|
2024-03-26 16:07:08 +00:00
|
|
|
|
|
|
|
// fonts
|
|
|
|
import "@fontsource/overpass"
|
|
|
|
import "@fontsource/fira-code"
|
2024-05-13 14:22:31 +00:00
|
|
|
import {Notifications} from "@mantine/notifications";
|
|
|
|
import {ModalsProvider} from "@mantine/modals";
|
2024-03-26 16:07:08 +00:00
|
|
|
|
2024-05-13 14:22:31 +00:00
|
|
|
export const queryClient = new QueryClient()
|
2024-03-26 16:07:08 +00:00
|
|
|
|
|
|
|
const themeOverride = createTheme({
|
|
|
|
fontFamilyMonospace: 'Fira Code VF, monospace',
|
|
|
|
fontFamily: 'Overpass, sans-serif',
|
|
|
|
headings: {
|
|
|
|
fontFamily: 'Overpass, sans-serif'
|
|
|
|
},
|
2024-05-13 14:22:31 +00:00
|
|
|
components: {
|
|
|
|
Alert: Alert.extend({
|
|
|
|
defaultProps: {
|
|
|
|
radius: 'md',
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
2024-03-26 16:07:08 +00:00
|
|
|
});
|
|
|
|
export const theme = mergeMantineTheme(DEFAULT_THEME, themeOverride);
|
|
|
|
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
2024-05-13 14:22:31 +00:00
|
|
|
<React.StrictMode>
|
|
|
|
<MantineProvider theme={theme}>
|
|
|
|
<ModalsProvider>
|
|
|
|
<Notifications/>
|
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
|
<PocketBaseProvider>
|
|
|
|
<Router/>
|
|
|
|
</PocketBaseProvider>
|
|
|
|
{/*
|
|
|
|
<ReactQueryDevtools initialIsOpen={false}/>
|
|
|
|
*/}
|
|
|
|
</QueryClientProvider>
|
|
|
|
</ModalsProvider>
|
|
|
|
</MantineProvider>
|
|
|
|
</React.StrictMode>
|
2024-03-26 16:07:08 +00:00
|
|
|
)
|