Scaffold web frontend: mock-backed chat + PDF split-view, Tailwind/shadcn

This commit is contained in:
2026-07-31 12:16:47 +07:00
parent b72d4bf9d9
commit 967b917001
43 changed files with 5192 additions and 7 deletions
+5 -1
View File
@@ -2,5 +2,9 @@
"name": "@duoc-thu/shared-types",
"private": true,
"version": "0.0.0",
"main": "src/index.ts"
"main": "src/index.ts",
"types": "src/index.ts",
"devDependencies": {
"typescript": "^5.5.0"
}
}
+18
View File
@@ -0,0 +1,18 @@
export interface Citation {
drugName: string;
sectionType: string;
sourcePageRange: [number, number];
}
export interface ChatMessage {
id: string;
role: "user" | "assistant";
content: string;
citations?: Citation[];
disclaimer?: string;
createdAt: string;
}
export interface SendMessageResponse {
message: ChatMessage;
}
+1 -1
View File
@@ -1 +1 @@
export {};
export * from "./dto/chat";
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../config/tsconfig-base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": ["src"]
}