mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat(FRONTEND): Added Log Mangement UI
This commit is contained in:
parent
1eb072cc69
commit
d821b30008
6 changed files with 1419 additions and 11 deletions
|
|
@ -170,9 +170,9 @@ export default function FileUploader() {
|
|||
formData.append('search_space_id', search_space_id)
|
||||
|
||||
try {
|
||||
toast("File Upload", {
|
||||
description: "Files Uploading Initiated",
|
||||
})
|
||||
// toast("File Upload", {
|
||||
// description: "Files Uploading Initiated",
|
||||
// })
|
||||
|
||||
const response = await fetch(`${process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL!}/api/v1/documents/fileupload`, {
|
||||
method: "POST",
|
||||
|
|
@ -188,8 +188,8 @@ export default function FileUploader() {
|
|||
|
||||
await response.json()
|
||||
|
||||
toast("Upload Successful", {
|
||||
description: "Files Uploaded Successfully",
|
||||
toast("Upload Task Initiated", {
|
||||
description: "Files Uploading Initiated",
|
||||
})
|
||||
|
||||
router.push(`/dashboard/${search_space_id}/documents`);
|
||||
|
|
|
|||
|
|
@ -43,10 +43,10 @@ export default function DashboardLayout({
|
|||
title: "Upload Documents",
|
||||
url: `/dashboard/${search_space_id}/documents/upload`,
|
||||
},
|
||||
{
|
||||
title: "Add Webpages",
|
||||
url: `/dashboard/${search_space_id}/documents/webpage`,
|
||||
},
|
||||
// { TODO: FIX THIS AND ADD IT BACK
|
||||
// title: "Add Webpages",
|
||||
// url: `/dashboard/${search_space_id}/documents/webpage`,
|
||||
// },
|
||||
{
|
||||
title: "Add Youtube Videos",
|
||||
url: `/dashboard/${search_space_id}/documents/youtube`,
|
||||
|
|
@ -78,6 +78,13 @@ export default function DashboardLayout({
|
|||
icon: "Podcast",
|
||||
items: [
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Logs",
|
||||
url: `/dashboard/${search_space_id}/logs`,
|
||||
icon: "FileText",
|
||||
items: [
|
||||
],
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
1085
surfsense_web/app/dashboard/[search_space_id]/logs/(manage)/page.tsx
Normal file
1085
surfsense_web/app/dashboard/[search_space_id]/logs/(manage)/page.tsx
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue