mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Remove unused Files Connect button and setup Github content card
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import './globals.css';
|
import './globals.css';
|
||||||
|
|
||||||
import styles from './page.module.css';
|
import styles from './page.module.css';
|
||||||
import React, { Suspense, useEffect, useState, useMemo } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
|
|
||||||
import SuggestionCard from './components/suggestions/suggestionCard';
|
import SuggestionCard from './components/suggestions/suggestionCard';
|
||||||
import SidePanel from './components/sidePanel/chatHistorySidePanel';
|
import SidePanel from './components/sidePanel/chatHistorySidePanel';
|
||||||
@@ -16,7 +16,7 @@ import 'katex/dist/katex.min.css';
|
|||||||
import ChatInputArea, { ChatOptions } from './components/chatInputArea/chatInputArea';
|
import ChatInputArea, { ChatOptions } from './components/chatInputArea/chatInputArea';
|
||||||
import { useAuthenticatedData } from './common/auth';
|
import { useAuthenticatedData } from './common/auth';
|
||||||
import { Card, CardTitle } from '@/components/ui/card';
|
import { Card, CardTitle } from '@/components/ui/card';
|
||||||
import { converColorToBgGradient, colorMap, convertColorToBorderClass } from './common/colorUtils';
|
import { convertColorToBorderClass } from './common/colorUtils';
|
||||||
import { getIconFromIconName } from './common/iconUtils';
|
import { getIconFromIconName } from './common/iconUtils';
|
||||||
import { ClockCounterClockwise } from '@phosphor-icons/react';
|
import { ClockCounterClockwise } from '@phosphor-icons/react';
|
||||||
import { AgentData } from './agents/page';
|
import { AgentData } from './agents/page';
|
||||||
@@ -150,10 +150,6 @@ function ChatBodyData(props: ChatBodyDataProps) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTailwindBorderClass(color: string): string {
|
|
||||||
return colorMap[color] || 'border-black'; // Default to black if color not found
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`${styles.chatBoxBody}`}>
|
<div className={`${styles.chatBoxBody}`}>
|
||||||
<div className="w-full text-center">
|
<div className="w-full text-center">
|
||||||
|
|||||||
@@ -731,15 +731,9 @@ export default function SettingsView() {
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter className="flex flex-wrap gap-4">
|
<CardFooter className="flex flex-wrap gap-4">
|
||||||
<Button variant="outline" size="sm" onClick={() => setIsManageFilesModalOpen(true)}>
|
<Button variant="outline" size="sm" onClick={() => setIsManageFilesModalOpen(true)}>
|
||||||
{userConfig.enabled_content_source.computer && (
|
<>
|
||||||
<>
|
<Files className="h-5 w-5 inline mr-1" />Manage
|
||||||
<Files className="h-5 w-5 inline mr-1" />Manage
|
</>
|
||||||
</>
|
|
||||||
) || (
|
|
||||||
<>
|
|
||||||
<Plugs className="h-5 w-5 inline mr-1" />Connect
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@@ -751,7 +745,7 @@ export default function SettingsView() {
|
|||||||
</Button>
|
</Button>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
</Card>
|
</Card>
|
||||||
<Card className={cardClassName}>
|
<Card className={`${cardClassName} hidden`}>
|
||||||
<CardHeader className="text-xl flex flex-row text-2xl"><GithubLogo className="h-8 w-8 mr-2" />Github</CardHeader>
|
<CardHeader className="text-xl flex flex-row text-2xl"><GithubLogo className="h-8 w-8 mr-2" />Github</CardHeader>
|
||||||
<CardContent className="overflow-hidden pb-12 text-gray-400">
|
<CardContent className="overflow-hidden pb-12 text-gray-400">
|
||||||
Set Github repositories to index
|
Set Github repositories to index
|
||||||
|
|||||||
Reference in New Issue
Block a user