Fixed the circular imports and things

This commit is contained in:
Gregory Schier
2024-12-20 23:49:15 -08:00
parent 51a11b6495
commit ec999015ab
83 changed files with 511 additions and 551 deletions

5
src-web/lib/constants.ts Normal file
View File

@@ -0,0 +1,5 @@
export const HEADER_SIZE_MD = '27px';
export const HEADER_SIZE_LG = '38px';
export const WINDOW_CONTROLS_WIDTH = '10.5rem';

View File

@@ -1,4 +1,4 @@
import type { EditorProps } from '../components/core/Editor';
import type { EditorProps } from '../components/core/Editor/Editor';
export function languageFromContentType(
contentType: string | null,

3
src-web/lib/jotai.ts Normal file
View File

@@ -0,0 +1,3 @@
import { createStore } from 'jotai/index';
export const jotaiStore = createStore();

12
src-web/lib/router.ts Normal file
View File

@@ -0,0 +1,12 @@
// Create a new router instance
import {createRouter} from "@tanstack/react-router";
import {routeTree} from "../routeTree.gen";
export const router = createRouter({ routeTree });
// Register the router instance for type safety
declare module '@tanstack/react-router' {
interface Register {
router: typeof router;
}
}