mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 16:27:39 +00:00
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
|
import { zodValidator } from '@tanstack/zod-adapter'
|
|
import { z } from 'zod'
|
|
|
|
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
|
|
|
import { QoveryConfigurePage } from './QoveryConfigurePage'
|
|
|
|
const QoveryConfigurePageQueryParamsSchema = z.object({
|
|
integrationAuthId: z.string(),
|
|
})
|
|
|
|
export const Route = createFileRoute(
|
|
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/create',
|
|
)({
|
|
component: QoveryConfigurePage,
|
|
validateSearch: zodValidator(QoveryConfigurePageQueryParamsSchema),
|
|
beforeLoad: ({ context, params }) => {
|
|
return {
|
|
breadcrumbs: [
|
|
...context.breadcrumbs,
|
|
{
|
|
label: 'Integrations',
|
|
link: linkOptions({
|
|
to: '/secret-manager/$projectId/integrations',
|
|
params,
|
|
search: {
|
|
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
|
},
|
|
}),
|
|
},
|
|
{
|
|
label: 'Qovery',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
})
|