mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-04 05:39:06 +00:00
Rename API to get all files, minor UI updates
This commit is contained in:
@@ -381,8 +381,8 @@ const UploadFiles: React.FC<{
|
||||
<DialogHeader>
|
||||
<DialogTitle>Build Your Knowledge Base</DialogTitle>
|
||||
<DialogDescription>
|
||||
Add your files to supercharge Khoj`'`s AI with your knowledge. Get
|
||||
instant, personalized answers powered by your own documents and data.
|
||||
Add context for your Khoj knowledge base.
|
||||
Quickly search and get personalized answers from your documents.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<div
|
||||
@@ -576,7 +576,7 @@ export default function Search() {
|
||||
|
||||
const fetchFiles = async (currentPageNumber: number) => {
|
||||
try {
|
||||
const url = `api/content/all?page=${currentPageNumber}`;
|
||||
const url = `api/content/files?page=${currentPageNumber}`;
|
||||
const response = await fetch(url);
|
||||
if (!response.ok) throw new Error("Failed to fetch files");
|
||||
|
||||
|
||||
@@ -857,7 +857,7 @@ export default function SettingsView() {
|
||||
<div className="text-2xl">Content</div>
|
||||
<div className="cards flex flex-wrap gap-16">
|
||||
<Card id="computer" className={cardClassName}>
|
||||
<CardHeader className="flex flex-row text-2xl">
|
||||
<CardHeader className="flex flex-row text-xl">
|
||||
<Brain className="h-8 w-8 mr-2" />
|
||||
Knowledge Base
|
||||
{userConfig.enabled_content_source.computer && (
|
||||
|
||||
Reference in New Issue
Block a user