mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
chore: remove VERSION file and clean up unused imports across multiple files
This commit is contained in:
parent
c70ce0b711
commit
deea3fa544
18 changed files with 7 additions and 43 deletions
1
VERSION
1
VERSION
|
@ -1 +0,0 @@
|
|||
0.0.1
|
|
@ -1,6 +1,6 @@
|
|||
import base64
|
||||
import logging
|
||||
from typing import List, Optional, Dict, Any, Tuple
|
||||
from typing import List, Optional, Dict, Any
|
||||
from github3 import login as github_login, exceptions as github_exceptions
|
||||
from github3.repos.contents import Contents
|
||||
from github3.exceptions import ForbiddenError, NotFoundError
|
||||
|
|
|
@ -5,13 +5,12 @@ A module for retrieving conversation history from Slack channels.
|
|||
Allows fetching channel lists and message history with date range filtering.
|
||||
"""
|
||||
|
||||
import os
|
||||
import time # Added import
|
||||
import logging # Added import
|
||||
from slack_sdk import WebClient
|
||||
from slack_sdk.errors import SlackApiError
|
||||
from datetime import datetime
|
||||
from typing import Dict, List, Optional, Tuple, Any, Union
|
||||
from typing import Dict, List, Optional, Tuple, Any
|
||||
|
||||
logger = logging.getLogger(__name__) # Added logger
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import unittest
|
||||
from unittest.mock import patch, Mock, call
|
||||
from unittest.mock import patch, Mock
|
||||
from datetime import datetime
|
||||
|
||||
# Adjust the import path based on the actual location if test_github_connector.py
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from typing import List, Any
|
||||
from typing import List
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
from app.db import DocumentType
|
||||
from datetime import datetime
|
||||
|
|
|
@ -6,7 +6,6 @@ from app.db import Document, DocumentType, Chunk
|
|||
from app.schemas import ExtensionDocumentContent
|
||||
from app.config import config
|
||||
from app.prompts import SUMMARY_PROMPT_TEMPLATE
|
||||
from datetime import datetime
|
||||
from app.utils.document_converters import convert_document_to_markdown, generate_content_hash
|
||||
from langchain_core.documents import Document as LangChainDocument
|
||||
from langchain_community.document_loaders import FireCrawlLoader, AsyncChromiumLoader
|
||||
|
|
|
@ -2,7 +2,6 @@ from typing import Optional, Tuple
|
|||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
from sqlalchemy.future import select
|
||||
from sqlalchemy import delete
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from app.db import Document, DocumentType, Chunk, SearchSourceConnector, SearchSourceConnectorType
|
||||
from app.config import config
|
||||
|
@ -15,7 +14,6 @@ from app.connectors.discord_connector import DiscordConnector
|
|||
from slack_sdk.errors import SlackApiError
|
||||
import logging
|
||||
import asyncio
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
|
||||
from app.utils.document_converters import generate_content_hash
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import json
|
||||
from typing import List, Dict, Any, Optional, Tuple
|
||||
from typing import List, Dict, Optional
|
||||
import asyncio
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.future import select
|
||||
|
|
|
@ -7,9 +7,7 @@ import { toast } from "sonner";
|
|||
import {
|
||||
Edit,
|
||||
Plus,
|
||||
Search,
|
||||
Trash2,
|
||||
ExternalLink,
|
||||
RefreshCw,
|
||||
} from "lucide-react";
|
||||
|
||||
|
@ -19,7 +17,6 @@ import {
|
|||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardFooter,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
|
|
|
@ -4,7 +4,7 @@ import { useState, useCallback, useRef } from "react"
|
|||
import { useDropzone } from "react-dropzone"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { toast } from "sonner"
|
||||
import { X, Upload, FileIcon, Tag, AlertCircle, CheckCircle2, Calendar, FileType } from "lucide-react"
|
||||
import { X, Upload, Tag, CheckCircle2, Calendar, FileType } from "lucide-react"
|
||||
import { useRouter, useParams } from "next/navigation"
|
||||
import { motion, AnimatePresence } from "framer-motion"
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ export default function DashboardLayout({
|
|||
// Use React.use to unwrap the params Promise
|
||||
const { search_space_id } = use(params);
|
||||
|
||||
// TODO: Get search space name from our FastAPI backend
|
||||
const customNavSecondary = [
|
||||
{
|
||||
title: `All Search Spaces`,
|
||||
|
@ -80,22 +79,6 @@ export default function DashboardLayout({
|
|||
items: [
|
||||
],
|
||||
}
|
||||
// TODO: Add research synthesizer's
|
||||
// {
|
||||
// title: "Research Synthesizer's",
|
||||
// url: `#`,
|
||||
// icon: "SquareLibrary",
|
||||
// items: [
|
||||
// {
|
||||
// title: "Podcast Creator",
|
||||
// url: `/dashboard/${search_space_id}/synthesizer/podcast`,
|
||||
// },
|
||||
// {
|
||||
// title: "Presentation Creator",
|
||||
// url: `/dashboard/${search_space_id}/synthesizer/presentation`,
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
]
|
||||
|
||||
return (
|
||||
|
|
|
@ -31,13 +31,10 @@ import {
|
|||
DialogFooter
|
||||
} from "@/components/ui/dialog";
|
||||
import {
|
||||
SegmentedControl,
|
||||
ConnectorButton as ConnectorButtonComponent,
|
||||
getConnectorIcon,
|
||||
getMainViewSources as getMainViewSourcesUtil,
|
||||
getFilteredSources as getFilteredSourcesUtil,
|
||||
getPaginatedDialogSources as getPaginatedDialogSourcesUtil,
|
||||
getSourcesCount as getSourcesCountUtil,
|
||||
useScrollToBottom,
|
||||
updateScrollIndicators as updateScrollIndicatorsUtil,
|
||||
useScrollIndicators,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import React, { RefObject, useEffect } from 'react';
|
||||
import { RefObject, useEffect } from 'react';
|
||||
|
||||
/**
|
||||
* Function to scroll to the bottom of a container
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import React from 'react';
|
||||
import { Source, Connector } from './types';
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import { useEffect, useState } from 'react';
|
||||
import { AppSidebar } from '@/components/sidebar/app-sidebar';
|
||||
import { iconMap } from '@/components/sidebar/app-sidebar';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
"use client"
|
||||
|
||||
import { ChevronRight, type LucideIcon } from "lucide-react"
|
||||
import Link from "next/link"
|
||||
|
||||
import {
|
||||
Collapsible,
|
||||
|
|
|
@ -5,7 +5,6 @@ import { type LucideIcon } from "lucide-react"
|
|||
|
||||
import {
|
||||
SidebarGroup,
|
||||
SidebarGroupContent,
|
||||
SidebarMenu,
|
||||
SidebarMenuButton,
|
||||
SidebarMenuItem,
|
||||
|
|
|
@ -2,11 +2,8 @@
|
|||
|
||||
import {
|
||||
BadgeCheck,
|
||||
Bell,
|
||||
ChevronsUpDown,
|
||||
CreditCard,
|
||||
LogOut,
|
||||
Sparkles,
|
||||
} from "lucide-react"
|
||||
|
||||
import {
|
||||
|
|
Loading…
Add table
Reference in a new issue