mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-25 06:36:37 +00:00
Major additions: - Complete Next.js studio application with 1600+ components - Docker support (Dockerfile.combined, docker-compose.yml) - GCP deployment documentation and benchmarks - SQL benchmark scripts for performance testing - Sentry integration for monitoring - Comprehensive test suite and mocks Studio features: - Dashboard and admin interfaces - Data visualization components - Authentication and user management - API integration with RuVector backend - Static data and public assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { useRouter } from 'next/router'
|
|
import { PropsWithChildren } from 'react'
|
|
|
|
import { useParams } from 'common'
|
|
import { ProductMenu } from 'components/ui/ProductMenu'
|
|
import { withAuth } from 'hooks/misc/withAuth'
|
|
import { ProjectLayout } from '../ProjectLayout'
|
|
|
|
const EdgeFunctionsProductMenu = () => {
|
|
const { ref: projectRef = 'default' } = useParams()
|
|
const router = useRouter()
|
|
const page = router.pathname.split('/')[4]
|
|
|
|
const menuItems = [
|
|
{
|
|
title: 'Manage',
|
|
items: [
|
|
{
|
|
name: 'Functions',
|
|
key: 'main',
|
|
pages: ['', '[functionSlug]', 'new'],
|
|
url: `/project/${projectRef}/functions`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Secrets',
|
|
key: 'secrets',
|
|
url: `/project/${projectRef}/functions/secrets`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
return <ProductMenu page={page} menu={menuItems} />
|
|
}
|
|
|
|
const EdgeFunctionsLayout = ({ children }: PropsWithChildren<{}>) => {
|
|
return (
|
|
<ProjectLayout
|
|
title="Edge Functions"
|
|
product="Edge Functions"
|
|
productMenu={<EdgeFunctionsProductMenu />}
|
|
isBlocking={false}
|
|
>
|
|
{children}
|
|
</ProjectLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(EdgeFunctionsLayout)
|