refactor: repartition server-side and client-side code

This commit is contained in:
LIlGG
2025-10-11 18:26:07 +08:00
parent 7acc4949fb
commit e9b573a276
309 changed files with 631 additions and 962 deletions

View File

@@ -1,4 +1,4 @@
import type { ModelInfo } from '~/lib/modules/llm/types';
import type { ModelInfo } from '~/.server/modules/llm/types';
export type ProviderInfo = {
staticModels: ModelInfo[];

9
app/types/pages.ts Normal file
View File

@@ -0,0 +1,9 @@
import type { Page, Section } from '~/types/actions';
export type PageSection = Section & {
validRootDomId?: boolean;
};
export type PageMap = Record<string, Page | undefined>;
export type SectionMap = Record<string, PageSection | undefined>;