save
This commit is contained in:
parent
35d61ebd6c
commit
e1bf501c13
|
@ -0,0 +1,10 @@
|
|||
export default function ResultBox() {
|
||||
|
||||
return <div className="h-[40vh] w-full px-4">
|
||||
<div className="font-bold">搜索结果:</div>
|
||||
<div className="pl-2 border-l-blue-400 border-0 border-l-2 my-2">网址</div>
|
||||
<div className="w-full grid grid-rows-6">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
}
|
|
@ -1,5 +1,9 @@
|
|||
import Search from "@/app/_ui/Search";
|
||||
import ResultBox from "./ResultBox";
|
||||
|
||||
export default function Page() {
|
||||
return <div>
|
||||
home
|
||||
<Search></Search>
|
||||
<ResultBox />
|
||||
</div>
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
"use server"
|
||||
|
||||
import { ArticleType } from "../data/article"
|
||||
import { Link } from "../data/link"
|
||||
|
||||
export type SiteSearchType = {
|
||||
articles: ArticleType[];
|
||||
articleCount: number;
|
||||
links: Link[];
|
||||
linkCount: number;
|
||||
|
||||
}
|
||||
export async function doSearch(wd: string) {
|
||||
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue