mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Remove unused Files Connect button and setup Github content card
This commit is contained in:
parent
ecb873c488
commit
32ce564b7c
2 changed files with 6 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
import './globals.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 SidePanel from './components/sidePanel/chatHistorySidePanel';
|
||||
|
@ -16,7 +16,7 @@ import 'katex/dist/katex.min.css';
|
|||
import ChatInputArea, { ChatOptions } from './components/chatInputArea/chatInputArea';
|
||||
import { useAuthenticatedData } from './common/auth';
|
||||
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 { ClockCounterClockwise } from '@phosphor-icons/react';
|
||||
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 (
|
||||
<div className={`${styles.chatBoxBody}`}>
|
||||
<div className="w-full text-center">
|
||||
|
|
|
@ -731,15 +731,9 @@ export default function SettingsView() {
|
|||
</CardContent>
|
||||
<CardFooter className="flex flex-wrap gap-4">
|
||||
<Button variant="outline" size="sm" onClick={() => setIsManageFilesModalOpen(true)}>
|
||||
{userConfig.enabled_content_source.computer && (
|
||||
<>
|
||||
<Files className="h-5 w-5 inline mr-1" />Manage
|
||||
</>
|
||||
) || (
|
||||
<>
|
||||
<Plugs className="h-5 w-5 inline mr-1" />Connect
|
||||
</>
|
||||
)}
|
||||
<>
|
||||
<Files className="h-5 w-5 inline mr-1" />Manage
|
||||
</>
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
|
@ -751,7 +745,7 @@ export default function SettingsView() {
|
|||
</Button>
|
||||
</CardFooter>
|
||||
</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>
|
||||
<CardContent className="overflow-hidden pb-12 text-gray-400">
|
||||
Set Github repositories to index
|
||||
|
|
Loading…
Reference in a new issue