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