mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
Fix build
This commit is contained in:
parent
10aa249995
commit
a98db52bf4
3 changed files with 6 additions and 8 deletions
|
|
@ -21,18 +21,12 @@ import { SettingsDropdown } from "../settingsDropdown";
|
|||
import useCaptureEvent from "@/hooks/useCaptureEvent";
|
||||
import { CodePreviewPanel } from "./components/codePreviewPanel";
|
||||
import { SearchResultsPanel } from "./components/searchResultsPanel";
|
||||
import { SearchResultFile } from "@/lib/types";
|
||||
import { SearchQueryParams, SearchResultFile } from "@/lib/types";
|
||||
import { ScrollArea } from "@/components/ui/scroll-area";
|
||||
import { Scrollbar } from "@radix-ui/react-scroll-area";
|
||||
|
||||
const DEFAULT_MAX_MATCH_DISPLAY_COUNT = 200;
|
||||
|
||||
export enum SearchQueryParams {
|
||||
query = "query",
|
||||
maxMatchDisplayCount = "maxMatchDisplayCount",
|
||||
}
|
||||
|
||||
|
||||
export default function SearchPage() {
|
||||
const router = useRouter();
|
||||
const searchQuery = useNonEmptyQueryParam(SearchQueryParams.query) ?? "";
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { useForm } from "react-hook-form";
|
|||
import { z } from "zod";
|
||||
import { useHotkeys } from 'react-hotkeys-hook'
|
||||
import { useRef } from "react";
|
||||
import { SearchQueryParams } from "./search/page";
|
||||
import { SearchQueryParams } from "@/lib/types";
|
||||
|
||||
interface SearchBarProps {
|
||||
className?: string;
|
||||
|
|
|
|||
|
|
@ -17,3 +17,7 @@ export type ListRepositoriesResponse = z.infer<typeof listRepositoriesResponseSc
|
|||
export type Repository = z.infer<typeof repositorySchema>;
|
||||
export type SearchRequest = z.infer<typeof searchRequestSchema>;
|
||||
|
||||
export enum SearchQueryParams {
|
||||
query = "query",
|
||||
maxMatchDisplayCount = "maxMatchDisplayCount",
|
||||
}
|
||||
Loading…
Reference in a new issue