mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-23 18:01:08 +01:00
Fixed the circular imports and things
This commit is contained in:
5
src-web/lib/constants.ts
Normal file
5
src-web/lib/constants.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
export const HEADER_SIZE_MD = '27px';
|
||||
export const HEADER_SIZE_LG = '38px';
|
||||
|
||||
export const WINDOW_CONTROLS_WIDTH = '10.5rem';
|
||||
@@ -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
3
src-web/lib/jotai.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { createStore } from 'jotai/index';
|
||||
|
||||
export const jotaiStore = createStore();
|
||||
12
src-web/lib/router.ts
Normal file
12
src-web/lib/router.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user