mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-09 07:42:39 +02:00
refactor: remove unused Document interface and associated icon mapping
This commit is contained in:
parent
57c9bcbccb
commit
21c0e249a8
1 changed files with 0 additions and 22 deletions
|
|
@ -84,28 +84,6 @@ interface ConnectorSource {
|
||||||
|
|
||||||
type DocumentType = "EXTENSION" | "CRAWLED_URL" | "SLACK_CONNECTOR" | "NOTION_CONNECTOR" | "FILE" | "YOUTUBE_VIDEO" | "GITHUB_CONNECTOR" | "LINEAR_CONNECTOR" | "DISCORD_CONNECTOR";
|
type DocumentType = "EXTENSION" | "CRAWLED_URL" | "SLACK_CONNECTOR" | "NOTION_CONNECTOR" | "FILE" | "YOUTUBE_VIDEO" | "GITHUB_CONNECTOR" | "LINEAR_CONNECTOR" | "DISCORD_CONNECTOR";
|
||||||
|
|
||||||
interface Document {
|
|
||||||
id: number;
|
|
||||||
title: string;
|
|
||||||
document_type: DocumentType;
|
|
||||||
document_metadata: any;
|
|
||||||
content: string;
|
|
||||||
created_at: string;
|
|
||||||
search_space_id: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Document type icons mapping
|
|
||||||
const documentTypeIcons = {
|
|
||||||
EXTENSION: Webhook,
|
|
||||||
CRAWLED_URL: Globe,
|
|
||||||
SLACK_CONNECTOR: IconBrandSlack,
|
|
||||||
NOTION_CONNECTOR: IconBrandNotion,
|
|
||||||
FILE: File,
|
|
||||||
YOUTUBE_VIDEO: IconBrandYoutube,
|
|
||||||
GITHUB_CONNECTOR: IconBrandGithub,
|
|
||||||
LINEAR_CONNECTOR: IconLayoutKanban,
|
|
||||||
DISCORD_CONNECTOR: IconBrandDiscord,
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Skeleton loader for document items
|
* Skeleton loader for document items
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue