mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
feat: added project layout and project select in breadcrumb
This commit is contained in:
+51
-45
@@ -1,26 +1,30 @@
|
||||
import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
createFileRoute,
|
||||
linkOptions,
|
||||
stripSearchParams,
|
||||
} from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
|
||||
import { BreadcrumbTypes } from "@app/components/v2";
|
||||
import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
|
||||
import { BreadcrumbTypes } from '@app/components/v2'
|
||||
|
||||
import { RollbackPreviewTab } from "./RollbackPreviewTab";
|
||||
import { RollbackPreviewTab } from './RollbackPreviewTab'
|
||||
|
||||
const RollbackPreviewTabQueryParamsSchema = z.object({
|
||||
secretPath: z.string().catch("/")
|
||||
});
|
||||
secretPath: z.string().catch('/'),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/$commitId/restore"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/restore',
|
||||
)({
|
||||
component: RollbackPreviewTab,
|
||||
validateSearch: zodValidator(RollbackPreviewTabQueryParamsSchema),
|
||||
search: {
|
||||
middlewares: [stripSearchParams({ secretPath: "/" })]
|
||||
middlewares: [stripSearchParams({ secretPath: '/' })],
|
||||
},
|
||||
beforeLoad: ({ context, params, search }) => {
|
||||
const secretPathSegments = search.secretPath.split("/").filter(Boolean);
|
||||
const secretPathSegments = search.secretPath.split('/').filter(Boolean)
|
||||
|
||||
return {
|
||||
breadcrumbs: [
|
||||
@@ -28,18 +32,20 @@ export const Route = createFileRoute(
|
||||
{
|
||||
type: BreadcrumbTypes.Dropdown,
|
||||
label:
|
||||
context.project.environments.find((el) => el.slug === params.environment)?.name || "",
|
||||
dropdownTitle: "Environments",
|
||||
context.project.environments.find(
|
||||
(el) => el.slug === params.environment,
|
||||
)?.name || '',
|
||||
dropdownTitle: 'Environments',
|
||||
links: context.project.environments.map((el) => ({
|
||||
label: el.name,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/secrets/$envSlug",
|
||||
to: '/secret-manager/$projectId/secrets/$envSlug',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
envSlug: el.slug
|
||||
}
|
||||
})
|
||||
}))
|
||||
envSlug: el.slug,
|
||||
},
|
||||
}),
|
||||
})),
|
||||
},
|
||||
...secretPathSegments.map((_, index) => ({
|
||||
type: BreadcrumbTypes.Component,
|
||||
@@ -51,41 +57,41 @@ export const Route = createFileRoute(
|
||||
projectId={params.projectId}
|
||||
disableCopy
|
||||
/>
|
||||
)
|
||||
),
|
||||
})),
|
||||
{
|
||||
label: "Commits",
|
||||
label: 'Commits',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/commits/$environment/$folderId",
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
environment: params.environment,
|
||||
folderId: params.folderId
|
||||
},
|
||||
search: {
|
||||
secretPath: search.secretPath
|
||||
}
|
||||
})
|
||||
},
|
||||
{
|
||||
label: params.commitId,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/commits/$environment/$folderId/$commitId",
|
||||
to: '/secret-manager/$projectId/commits/$environment/$folderId',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
environment: params.environment,
|
||||
folderId: params.folderId,
|
||||
commitId: params.commitId
|
||||
},
|
||||
search: {
|
||||
secretPath: search.secretPath
|
||||
}
|
||||
})
|
||||
secretPath: search.secretPath,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Restore"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: params.commitId,
|
||||
link: linkOptions({
|
||||
to: '/secret-manager/$projectId/commits/$environment/$folderId/$commitId',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
environment: params.environment,
|
||||
folderId: params.folderId,
|
||||
commitId: params.commitId,
|
||||
},
|
||||
search: {
|
||||
secretPath: search.secretPath,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: 'Restore',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,26 +1,30 @@
|
||||
import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
createFileRoute,
|
||||
linkOptions,
|
||||
stripSearchParams,
|
||||
} from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
|
||||
import { BreadcrumbTypes } from "@app/components/v2";
|
||||
import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
|
||||
import { BreadcrumbTypes } from '@app/components/v2'
|
||||
|
||||
import { CommitDetailsPage } from "./CommitDetailsPage";
|
||||
import { CommitDetailsPage } from './CommitDetailsPage'
|
||||
|
||||
const CommitDetailsPageQueryParamsSchema = z.object({
|
||||
secretPath: z.string().catch("/")
|
||||
});
|
||||
secretPath: z.string().catch('/'),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/$commitId/"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/$commitId/',
|
||||
)({
|
||||
component: CommitDetailsPage,
|
||||
validateSearch: zodValidator(CommitDetailsPageQueryParamsSchema),
|
||||
search: {
|
||||
middlewares: [stripSearchParams({ secretPath: "/" })]
|
||||
middlewares: [stripSearchParams({ secretPath: '/' })],
|
||||
},
|
||||
beforeLoad: ({ context, params, search }) => {
|
||||
const secretPathSegments = search.secretPath.split("/").filter(Boolean);
|
||||
const secretPathSegments = search.secretPath.split('/').filter(Boolean)
|
||||
|
||||
return {
|
||||
breadcrumbs: [
|
||||
@@ -28,18 +32,20 @@ export const Route = createFileRoute(
|
||||
{
|
||||
type: BreadcrumbTypes.Dropdown,
|
||||
label:
|
||||
context.project.environments.find((el) => el.slug === params.environment)?.name || "",
|
||||
dropdownTitle: "Environments",
|
||||
context.project.environments.find(
|
||||
(el) => el.slug === params.environment,
|
||||
)?.name || '',
|
||||
dropdownTitle: 'Environments',
|
||||
links: context.project.environments.map((el) => ({
|
||||
label: el.name,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/secrets/$envSlug",
|
||||
to: '/secret-manager/$projectId/secrets/$envSlug',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
envSlug: el.slug
|
||||
}
|
||||
})
|
||||
}))
|
||||
envSlug: el.slug,
|
||||
},
|
||||
}),
|
||||
})),
|
||||
},
|
||||
...secretPathSegments.map((_, index) => ({
|
||||
type: BreadcrumbTypes.Component,
|
||||
@@ -51,26 +57,26 @@ export const Route = createFileRoute(
|
||||
projectId={params.projectId}
|
||||
disableCopy
|
||||
/>
|
||||
)
|
||||
),
|
||||
})),
|
||||
{
|
||||
label: "Commits",
|
||||
label: 'Commits',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/commits/$environment/$folderId",
|
||||
to: '/secret-manager/$projectId/commits/$environment/$folderId',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
environment: params.environment,
|
||||
folderId: params.folderId
|
||||
folderId: params.folderId,
|
||||
},
|
||||
search: {
|
||||
secretPath: search.secretPath
|
||||
}
|
||||
})
|
||||
secretPath: search.secretPath,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: params.commitId
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: params.commitId,
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,27 +1,31 @@
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
createFileRoute,
|
||||
linkOptions,
|
||||
stripSearchParams,
|
||||
} from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
|
||||
import { BreadcrumbTypes } from "@app/components/v2";
|
||||
import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
|
||||
import { BreadcrumbTypes } from '@app/components/v2'
|
||||
|
||||
import { CommitsPage } from "./CommitsPage";
|
||||
import { CommitsPage } from './CommitsPage'
|
||||
|
||||
const CommitsPageQueryParamsSchema = z.object({
|
||||
secretPath: z.string().catch("/")
|
||||
});
|
||||
secretPath: z.string().catch('/'),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/commits/$environment/$folderId/"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/commits/$environment/$folderId/',
|
||||
)({
|
||||
component: CommitsPage,
|
||||
validateSearch: zodValidator(CommitsPageQueryParamsSchema),
|
||||
search: {
|
||||
middlewares: [stripSearchParams({ secretPath: "/" })]
|
||||
middlewares: [stripSearchParams({ secretPath: '/' })],
|
||||
},
|
||||
beforeLoad: ({ context, params, search }) => {
|
||||
const secretPathSegments = search.secretPath.split("/").filter(Boolean);
|
||||
const secretPathSegments = search.secretPath.split('/').filter(Boolean)
|
||||
|
||||
return {
|
||||
breadcrumbs: [
|
||||
@@ -29,18 +33,20 @@ export const Route = createFileRoute(
|
||||
{
|
||||
type: BreadcrumbTypes.Dropdown,
|
||||
label:
|
||||
context.project.environments.find((el) => el.slug === params.environment)?.name || "",
|
||||
dropdownTitle: "Environments",
|
||||
context.project.environments.find(
|
||||
(el) => el.slug === params.environment,
|
||||
)?.name || '',
|
||||
dropdownTitle: 'Environments',
|
||||
links: context.project.environments.map((el) => ({
|
||||
label: el.name,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/secrets/$envSlug",
|
||||
to: '/secret-manager/$projectId/secrets/$envSlug',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
envSlug: el.slug
|
||||
}
|
||||
})
|
||||
}))
|
||||
envSlug: el.slug,
|
||||
},
|
||||
}),
|
||||
})),
|
||||
},
|
||||
...secretPathSegments.map((_, index) => ({
|
||||
type: BreadcrumbTypes.Component,
|
||||
@@ -52,20 +58,20 @@ export const Route = createFileRoute(
|
||||
projectId={params.projectId}
|
||||
disableCopy
|
||||
/>
|
||||
)
|
||||
),
|
||||
})),
|
||||
{
|
||||
label: "Commits",
|
||||
label: 'Commits',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/commits/$environment/$folderId",
|
||||
to: '/secret-manager/$projectId/commits/$environment/$folderId',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
environment: params.environment,
|
||||
folderId: params.folderId
|
||||
}
|
||||
})
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
folderId: params.folderId,
|
||||
},
|
||||
}),
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
import { IPAllowListPage } from "./IPAllowlistPage";
|
||||
import { IPAllowListPage } from './IPAllowlistPage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/allowlist"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/allowlist',
|
||||
)({
|
||||
component: () => IPAllowListPage
|
||||
});
|
||||
component: () => IPAllowListPage,
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { IntegrationDetailsByIDPage } from "./IntegrationsDetailsByIDPage";
|
||||
import { IntegrationDetailsByIDPage } from './IntegrationsDetailsByIDPage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/$integrationId"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/$integrationId',
|
||||
)({
|
||||
component: IntegrationDetailsByIDPage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Details"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Details',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,101 +1,101 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { workspaceKeys } from "@app/hooks/api";
|
||||
import { TIntegration } from "@app/hooks/api/integrations/types";
|
||||
import { workspaceKeys } from '@app/hooks/api'
|
||||
import { TIntegration } from '@app/hooks/api/integrations/types'
|
||||
import {
|
||||
fetchSecretSyncsByProjectId,
|
||||
SecretSync,
|
||||
secretSyncKeys,
|
||||
TSecretSync
|
||||
} from "@app/hooks/api/secretSyncs";
|
||||
import { fetchWorkspaceIntegrations } from "@app/hooks/api/workspace/queries";
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
TSecretSync,
|
||||
} from '@app/hooks/api/secretSyncs'
|
||||
import { fetchWorkspaceIntegrations } from '@app/hooks/api/workspace/queries'
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { IntegrationsListPage } from "./IntegrationsListPage";
|
||||
import { IntegrationsListPage } from './IntegrationsListPage'
|
||||
|
||||
const IntegrationsListPageQuerySchema = z.object({
|
||||
selectedTab: z.nativeEnum(IntegrationsListPageTabs).optional(),
|
||||
addSync: z.nativeEnum(SecretSync).optional()
|
||||
});
|
||||
addSync: z.nativeEnum(SecretSync).optional(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/',
|
||||
)({
|
||||
component: IntegrationsListPage,
|
||||
validateSearch: zodValidator(IntegrationsListPageQuerySchema),
|
||||
beforeLoad: async ({ context, search, params: { projectId } }) => {
|
||||
if (!search.selectedTab) {
|
||||
let secretSyncs: TSecretSync[];
|
||||
let secretSyncs: TSecretSync[]
|
||||
|
||||
try {
|
||||
secretSyncs = await context.queryClient.ensureQueryData({
|
||||
queryKey: secretSyncKeys.list(projectId),
|
||||
queryFn: () => fetchSecretSyncsByProjectId(projectId)
|
||||
});
|
||||
queryFn: () => fetchSecretSyncsByProjectId(projectId),
|
||||
})
|
||||
} catch {
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params: {
|
||||
projectId
|
||||
projectId,
|
||||
},
|
||||
search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations }
|
||||
});
|
||||
search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations },
|
||||
})
|
||||
}
|
||||
|
||||
if (secretSyncs.length) {
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params: {
|
||||
projectId
|
||||
projectId,
|
||||
},
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
|
||||
});
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs },
|
||||
})
|
||||
}
|
||||
|
||||
let integrations: TIntegration[];
|
||||
let integrations: TIntegration[]
|
||||
try {
|
||||
integrations = await context.queryClient.ensureQueryData({
|
||||
queryKey: workspaceKeys.getWorkspaceIntegrations(projectId),
|
||||
queryFn: () => fetchWorkspaceIntegrations(projectId)
|
||||
});
|
||||
queryFn: () => fetchWorkspaceIntegrations(projectId),
|
||||
})
|
||||
} catch {
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params: {
|
||||
projectId
|
||||
projectId,
|
||||
},
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
|
||||
});
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs },
|
||||
})
|
||||
}
|
||||
|
||||
if (integrations.length) {
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params: {
|
||||
projectId
|
||||
projectId,
|
||||
},
|
||||
search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations }
|
||||
});
|
||||
search: { selectedTab: IntegrationsListPageTabs.NativeIntegrations },
|
||||
})
|
||||
}
|
||||
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params: {
|
||||
projectId
|
||||
projectId,
|
||||
},
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs }
|
||||
});
|
||||
search: { selectedTab: IntegrationsListPageTabs.SecretSyncs },
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Integrations',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import { createFileRoute, stripSearchParams } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, stripSearchParams } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { OverviewPage } from "./OverviewPage";
|
||||
import { OverviewPage } from './OverviewPage'
|
||||
|
||||
const SecretOverviewPageQuerySchema = z.object({
|
||||
search: z.string().catch(""),
|
||||
secretPath: z.string().catch("/")
|
||||
});
|
||||
search: z.string().catch(''),
|
||||
secretPath: z.string().catch('/'),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/overview"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/overview',
|
||||
)({
|
||||
component: OverviewPage,
|
||||
validateSearch: zodValidator(SecretOverviewPageQuerySchema),
|
||||
search: {
|
||||
middlewares: [stripSearchParams({ secretPath: "/", search: "" })]
|
||||
}
|
||||
});
|
||||
middlewares: [stripSearchParams({ secretPath: '/', search: '' })],
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { SecretApprovalsPage } from "./SecretApprovalsPage";
|
||||
import { SecretApprovalsPage } from './SecretApprovalsPage'
|
||||
|
||||
const SecretApprovalPageQueryParams = z.object({
|
||||
requestId: z.string().catch("")
|
||||
});
|
||||
requestId: z.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/approval"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/approval',
|
||||
)({
|
||||
component: SecretApprovalsPage,
|
||||
validateSearch: zodValidator(SecretApprovalPageQueryParams),
|
||||
@@ -18,9 +18,9 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Approvals"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Approvals',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,44 +1,51 @@
|
||||
import { createFileRoute, linkOptions, stripSearchParams } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
createFileRoute,
|
||||
linkOptions,
|
||||
stripSearchParams,
|
||||
} from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { SecretDashboardPathBreadcrumb } from "@app/components/navigation/SecretDashboardPathBreadcrumb";
|
||||
import { BreadcrumbTypes } from "@app/components/v2";
|
||||
import { SecretDashboardPathBreadcrumb } from '@app/components/navigation/SecretDashboardPathBreadcrumb'
|
||||
import { BreadcrumbTypes } from '@app/components/v2'
|
||||
|
||||
import { SecretDashboardPage } from "./SecretDashboardPage";
|
||||
import { SecretDashboardPage } from './SecretDashboardPage'
|
||||
|
||||
const SecretDashboardPageQueryParamsSchema = z.object({
|
||||
secretPath: z.string().catch("/"),
|
||||
search: z.string().catch(""),
|
||||
tags: z.string().catch("")
|
||||
});
|
||||
secretPath: z.string().catch('/'),
|
||||
search: z.string().catch(''),
|
||||
tags: z.string().catch(''),
|
||||
})
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/secrets/$envSlug"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secrets/$envSlug',
|
||||
)({
|
||||
component: SecretDashboardPage,
|
||||
validateSearch: zodValidator(SecretDashboardPageQueryParamsSchema),
|
||||
search: {
|
||||
middlewares: [stripSearchParams({ secretPath: "/", search: "", tags: "" })]
|
||||
middlewares: [stripSearchParams({ secretPath: '/', search: '', tags: '' })],
|
||||
},
|
||||
beforeLoad: ({ context, params, search }) => {
|
||||
const secretPathSegments = search.secretPath.split("/").filter(Boolean);
|
||||
const secretPathSegments = search.secretPath.split('/').filter(Boolean)
|
||||
return {
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
type: BreadcrumbTypes.Dropdown,
|
||||
label: context.project.environments.find((el) => el.slug === params.envSlug)?.name || "",
|
||||
dropdownTitle: "Environments",
|
||||
label:
|
||||
context.project.environments.find(
|
||||
(el) => el.slug === params.envSlug,
|
||||
)?.name || '',
|
||||
dropdownTitle: 'Environments',
|
||||
links: context.project.environments.map((el) => ({
|
||||
label: el.name,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/secrets/$envSlug",
|
||||
to: '/secret-manager/$projectId/secrets/$envSlug',
|
||||
params: {
|
||||
projectId: params.projectId,
|
||||
envSlug: el.slug
|
||||
}
|
||||
})
|
||||
}))
|
||||
envSlug: el.slug,
|
||||
},
|
||||
}),
|
||||
})),
|
||||
},
|
||||
...secretPathSegments.map((_, index) => ({
|
||||
type: BreadcrumbTypes.Component,
|
||||
@@ -49,9 +56,9 @@ export const Route = createFileRoute(
|
||||
environmentSlug={params.envSlug}
|
||||
projectId={params.projectId}
|
||||
/>
|
||||
)
|
||||
}))
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
),
|
||||
})),
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
import { SecretRotationPage } from "./SecretRotationPage";
|
||||
import { SecretRotationPage } from './SecretRotationPage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/secret-rotation"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/secret-rotation',
|
||||
)({
|
||||
component: SecretRotationPage,
|
||||
beforeLoad: ({ context }) => {
|
||||
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Secret Rotation"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Secret Rotation',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { SecretSyncDetailsByIDPage } from "./SecretSyncDetailsByIDPage";
|
||||
import { SecretSyncDetailsByIDPage } from './SecretSyncDetailsByIDPage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/secret-syncs/$destination/$syncId"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/secret-syncs/$destination/$syncId',
|
||||
)({
|
||||
component: SecretSyncDetailsByIDPage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.SecretSyncs
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.SecretSyncs,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Secret Sync"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Secret Sync',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
import { createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
import { SettingsPage } from "./SettingsPage";
|
||||
import { SettingsPage } from './SettingsPage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/settings"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/settings',
|
||||
)({
|
||||
component: SettingsPage,
|
||||
beforeLoad: ({ context }) => {
|
||||
@@ -11,9 +11,9 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Settings"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Settings',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AWSParameterStoreAuthorizeIntegrationPage } from "./AwsParameterStoreAuthorizePage";
|
||||
import { AWSParameterStoreAuthorizeIntegrationPage } from './AwsParameterStoreAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/authorize',
|
||||
)({
|
||||
component: AWSParameterStoreAuthorizeIntegrationPage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "AWS Parameter Store"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'AWS Parameter Store',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AWSParameterStoreConfigurePage } from "./AwsParamterStoreConfigurePage";
|
||||
import { AWSParameterStoreConfigurePage } from './AwsParamterStoreConfigurePage'
|
||||
|
||||
const AwsParameterStoreConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/aws-parameter-store/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-parameter-store/create',
|
||||
)({
|
||||
component: AWSParameterStoreConfigurePage,
|
||||
validateSearch: zodValidator(AwsParameterStoreConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "AWS Parameter Store"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'AWS Parameter Store',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AWSSecretManagerAuthorizePage } from "./AwsSecretManagerAuthorizePage";
|
||||
import { AWSSecretManagerAuthorizePage } from './AwsSecretManagerAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/authorize',
|
||||
)({
|
||||
component: AWSSecretManagerAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "AWS Secret Manager"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'AWS Secret Manager',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AwsSecretManagerConfigurePage } from "./AwsSecretManagerConfigurePage";
|
||||
import { AwsSecretManagerConfigurePage } from './AwsSecretManagerConfigurePage'
|
||||
|
||||
const AwsSecretManagerConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/aws-secret-manager/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/aws-secret-manager/create',
|
||||
)({
|
||||
component: AwsSecretManagerConfigurePage,
|
||||
validateSearch: zodValidator(AwsSecretManagerConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "AWS Secret Manager"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'AWS Secret Manager',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureAppConfigurationConfigurePage } from "./AzureAppConfigurationConfigurePage";
|
||||
import { AzureAppConfigurationConfigurePage } from './AzureAppConfigurationConfigurePage'
|
||||
|
||||
const AzureAppConfigurationPageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/create',
|
||||
)({
|
||||
component: AzureAppConfigurationConfigurePage,
|
||||
validateSearch: zodValidator(AzureAppConfigurationPageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure App Configuration"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure App Configuration',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+26
-22
@@ -1,39 +1,43 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureAppConfigurationOauthCallbackPage } from "./AzureAppConfigurationOauthCallbackPage";
|
||||
import { AzureAppConfigurationOauthCallbackPage } from './AzureAppConfigurationOauthCallbackPage'
|
||||
|
||||
export const AzureAppConfigurationOauthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
export const AzureAppConfigurationOauthCallbackPageQueryParamsSchema = z.object(
|
||||
{
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
},
|
||||
)
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-app-configuration/oauth2/callback',
|
||||
)({
|
||||
component: AzureAppConfigurationOauthCallbackPage,
|
||||
validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema),
|
||||
validateSearch: zodValidator(
|
||||
AzureAppConfigurationOauthCallbackPageQueryParamsSchema,
|
||||
),
|
||||
beforeLoad: ({ context, params }) => {
|
||||
return {
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure App Configuration"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure App Configuration',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureDevopsAuthorizePage } from "./AzureDevopsAuthorizePage";
|
||||
import { AzureDevopsAuthorizePage } from './AzureDevopsAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/authorize',
|
||||
)({
|
||||
component: AzureDevopsAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure Devops"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure Devops',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureDevopsConfigurePage } from "./AzureDevopsConfigurePage";
|
||||
import { AzureDevopsConfigurePage } from './AzureDevopsConfigurePage'
|
||||
|
||||
const AzureDevopsConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-devops/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-devops/create',
|
||||
)({
|
||||
component: AzureDevopsConfigurePage,
|
||||
validateSearch: zodValidator(AzureDevopsConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure Devops"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure Devops',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+18
-18
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import z from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import z from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureKeyVaultAuthorizePage } from "./AzureKeyVaultAuthorizePage";
|
||||
import { AzureKeyVaultAuthorizePage } from './AzureKeyVaultAuthorizePage'
|
||||
|
||||
const PageQueryParamsSchema = z.object({
|
||||
state: z.string(),
|
||||
clientId: z.string().optional()
|
||||
});
|
||||
clientId: z.string().optional(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/authorize',
|
||||
)({
|
||||
component: AzureKeyVaultAuthorizePage,
|
||||
validateSearch: PageQueryParamsSchema,
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure Key Vault"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure Key Vault',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureKeyVaultConfigurePage } from "./AzureKeyVaultConfigurePage";
|
||||
import { AzureKeyVaultConfigurePage } from './AzureKeyVaultConfigurePage'
|
||||
|
||||
const AzureKeyVaultConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/create',
|
||||
)({
|
||||
component: AzureKeyVaultConfigurePage,
|
||||
validateSearch: zodValidator(AzureKeyVaultConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure Key Vault"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure Key Vault',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+20
-20
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { AzureKeyVaultOauthCallbackPage } from "./AzureKeyVaultOauthCallback";
|
||||
import { AzureKeyVaultOauthCallbackPage } from './AzureKeyVaultOauthCallback'
|
||||
|
||||
export const AzureKeyVaultOauthCallbackQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/azure-key-vault/oauth2/callback',
|
||||
)({
|
||||
component: AzureKeyVaultOauthCallbackPage,
|
||||
validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Azure Key Vault"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Azure Key Vault',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { BitbucketConfigurePage } from "./BitbucketConfigurePage";
|
||||
import { BitbucketConfigurePage } from './BitbucketConfigurePage'
|
||||
|
||||
const BitbucketConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/create',
|
||||
)({
|
||||
component: BitbucketConfigurePage,
|
||||
validateSearch: zodValidator(BitbucketConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Bitbucket"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Bitbucket',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+20
-20
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { BitbucketOauthCallbackPage } from "./BitbucketOauthCallbackPage";
|
||||
import { BitbucketOauthCallbackPage } from './BitbucketOauthCallbackPage'
|
||||
|
||||
export const BitbucketOauthCallbackQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/bitbucket/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/bitbucket/oauth2/callback',
|
||||
)({
|
||||
component: BitbucketOauthCallbackPage,
|
||||
validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Bitbucket"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Bitbucket',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { ChecklyAuthorizePage } from "./ChecklyAuthorizePage";
|
||||
import { ChecklyAuthorizePage } from './ChecklyAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/authorize',
|
||||
)({
|
||||
component: ChecklyAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Checkly"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Checkly',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { ChecklyConfigurePage } from "./ChecklyConfigurePage";
|
||||
import { ChecklyConfigurePage } from './ChecklyConfigurePage'
|
||||
|
||||
const ChecklyConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/checkly/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/checkly/create',
|
||||
)({
|
||||
component: ChecklyConfigurePage,
|
||||
validateSearch: zodValidator(ChecklyConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Checkly"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Checkly',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CircleCIAuthorizePage } from "./CircleCIAuthorizePage";
|
||||
import { CircleCIAuthorizePage } from './CircleCIAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/authorize',
|
||||
)({
|
||||
component: CircleCIAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Circle CI"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Circle CI',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CircleCIConfigurePage } from "./CircleCIConfigurePage";
|
||||
import { CircleCIConfigurePage } from './CircleCIConfigurePage'
|
||||
|
||||
const CircleCIConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/circleci/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/circleci/create',
|
||||
)({
|
||||
component: CircleCIConfigurePage,
|
||||
validateSearch: zodValidator(CircleCIConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Circle CI"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Circle CI',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { Cloud66AuthorizePage } from "./Cloud66AuthorizePage";
|
||||
import { Cloud66AuthorizePage } from './Cloud66AuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/authorize',
|
||||
)({
|
||||
component: Cloud66AuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloud 66"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloud 66',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { Cloud66ConfigurePage } from "./Cloud66ConfigurePage";
|
||||
import { Cloud66ConfigurePage } from './Cloud66ConfigurePage'
|
||||
|
||||
const Cloud66ConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloud-66/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloud-66/create',
|
||||
)({
|
||||
component: Cloud66ConfigurePage,
|
||||
validateSearch: zodValidator(Cloud66ConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloud 66"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloud 66',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CloudflarePagesAuthorizePage } from "./CloudflarePagesAuthorizePage";
|
||||
import { CloudflarePagesAuthorizePage } from './CloudflarePagesAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/authorize',
|
||||
)({
|
||||
component: CloudflarePagesAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloudflare Pages"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloudflare Pages',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CloudflarePagesConfigurePage } from "./CloudflarePagesConfigurePage";
|
||||
import { CloudflarePagesConfigurePage } from './CloudflarePagesConfigurePage'
|
||||
|
||||
const CloudflarePagesConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-pages/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-pages/create',
|
||||
)({
|
||||
component: CloudflarePagesConfigurePage,
|
||||
validateSearch: zodValidator(CloudflarePagesConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloudflare Pages"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloudflare Pages',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CloudflareWorkersAuthorizePage } from "./CloudflareWorkersAuthorizePage";
|
||||
import { CloudflareWorkersAuthorizePage } from './CloudflareWorkersAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/authorize',
|
||||
)({
|
||||
component: CloudflareWorkersAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloudflare Workers"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloudflare Workers',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CloudflareWorkersConfigurePage } from "./CloudflareWorkersConfigurePage";
|
||||
import { CloudflareWorkersConfigurePage } from './CloudflareWorkersConfigurePage'
|
||||
|
||||
const CloudflareWorkersConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/cloudflare-workers/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/cloudflare-workers/create',
|
||||
)({
|
||||
component: CloudflareWorkersConfigurePage,
|
||||
validateSearch: zodValidator(CloudflareWorkersConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Cloudflare Workers"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Cloudflare Workers',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CodefreshAuthorizePage } from "./CodefreshAuthorizePage";
|
||||
import { CodefreshAuthorizePage } from './CodefreshAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/authorize',
|
||||
)({
|
||||
component: CodefreshAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Codefresh"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Codefresh',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { CodefreshConfigurePage } from "./CodefreshConfigurePage";
|
||||
import { CodefreshConfigurePage } from './CodefreshConfigurePage'
|
||||
|
||||
const CodefreshConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/codefresh/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/codefresh/create',
|
||||
)({
|
||||
component: CodefreshConfigurePage,
|
||||
validateSearch: zodValidator(CodefreshConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Codefresh"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Codefresh',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { DatabricksAuthorizePage } from "./DatabricksAuthorizePage";
|
||||
import { DatabricksAuthorizePage } from './DatabricksAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/authorize',
|
||||
)({
|
||||
component: DatabricksAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Databricks"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Databricks',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { DatabricksConfigurePage } from "./DatabricksConfigurePage";
|
||||
import { DatabricksConfigurePage } from './DatabricksConfigurePage'
|
||||
|
||||
const DatabricksConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/databricks/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/databricks/create',
|
||||
)({
|
||||
component: DatabricksConfigurePage,
|
||||
validateSearch: zodValidator(DatabricksConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Databricks"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Databricks',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { DigitalOceanAppPlatformAuthorizePage } from "./DigitalOceanAppPlatformAuthorizePage";
|
||||
import { DigitalOceanAppPlatformAuthorizePage } from './DigitalOceanAppPlatformAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/authorize',
|
||||
)({
|
||||
component: DigitalOceanAppPlatformAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "DigitalOcean App Platform"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'DigitalOcean App Platform',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+22
-20
@@ -1,38 +1,40 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { DigitalOceanAppPlatformConfigurePage } from "./DigitalOceanAppPlatformConfigurePage";
|
||||
import { DigitalOceanAppPlatformConfigurePage } from './DigitalOceanAppPlatformConfigurePage'
|
||||
|
||||
const DigitalOceanAppPlatformConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/digital-ocean-app-platform/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/digital-ocean-app-platform/create',
|
||||
)({
|
||||
component: DigitalOceanAppPlatformConfigurePage,
|
||||
validateSearch: zodValidator(DigitalOceanAppPlatformConfigurePageQueryParamsSchema),
|
||||
validateSearch: zodValidator(
|
||||
DigitalOceanAppPlatformConfigurePageQueryParamsSchema,
|
||||
),
|
||||
beforeLoad: ({ context, params }) => {
|
||||
return {
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "DigitalOcean App Platform"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'DigitalOcean App Platform',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { FlyioAuthorizePage } from "./FlyioAuthorizePage";
|
||||
import { FlyioAuthorizePage } from './FlyioAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/authorize',
|
||||
)({
|
||||
component: FlyioAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Fly IO"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Fly IO',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { FlyioConfigurePage } from "./FlyioConfigurePage";
|
||||
import { FlyioConfigurePage } from './FlyioConfigurePage'
|
||||
|
||||
const FlyioConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/flyio/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/flyio/create',
|
||||
)({
|
||||
component: FlyioConfigurePage,
|
||||
validateSearch: zodValidator(FlyioConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Fly IO"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Fly IO',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GcpSecretManagerAuthorizePage } from "./GcpSecretManagerAuthorizePage";
|
||||
import { GcpSecretManagerAuthorizePage } from './GcpSecretManagerAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/authorize',
|
||||
)({
|
||||
component: GcpSecretManagerAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GCP Secret Manager"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GCP Secret Manager',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GcpSecretManagerConfigurePage } from "./GcpSecretManagerConfigurePage";
|
||||
import { GcpSecretManagerConfigurePage } from './GcpSecretManagerConfigurePage'
|
||||
|
||||
const GcpConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/create',
|
||||
)({
|
||||
component: GcpSecretManagerConfigurePage,
|
||||
validateSearch: zodValidator(GcpConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GCP Secret Manager"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GCP Secret Manager',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+23
-21
@@ -1,39 +1,41 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GcpSecretManagerOauthCallbackPage } from "./GcpSecretManagerOauthCallbackPage";
|
||||
import { GcpSecretManagerOauthCallbackPage } from './GcpSecretManagerOauthCallbackPage'
|
||||
|
||||
export const GcpSecretManagerOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gcp-secret-manager/oauth2/callback',
|
||||
)({
|
||||
component: GcpSecretManagerOauthCallbackPage,
|
||||
validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema),
|
||||
validateSearch: zodValidator(
|
||||
GcpSecretManagerOAuthCallbackPageQueryParamsSchema,
|
||||
),
|
||||
beforeLoad: ({ context, params }) => {
|
||||
return {
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GCP Secret Manager"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GCP Secret Manager',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GithubAuthorizePage } from "./GithubAuthorizePage";
|
||||
import { GithubAuthorizePage } from './GithubAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/github/auth-mode-selection"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/auth-mode-selection',
|
||||
)({
|
||||
component: GithubAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitHub"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitHub',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GithubConfigurePage } from "./GithubConfigurePage";
|
||||
import { GithubConfigurePage } from './GithubConfigurePage'
|
||||
|
||||
const GithubConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/github/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/create',
|
||||
)({
|
||||
component: GithubConfigurePage,
|
||||
validateSearch: zodValidator(GithubConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitHub"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitHub',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GithubOauthCallbackPage } from "./GithubOauthCallbackPage";
|
||||
import { GithubOauthCallbackPage } from './GithubOauthCallbackPage'
|
||||
|
||||
export const GithubOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
installation_id: z.coerce.string().optional().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
installation_id: z.coerce.string().optional().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/github/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/github/oauth2/callback',
|
||||
)({
|
||||
component: GithubOauthCallbackPage,
|
||||
validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema),
|
||||
@@ -22,19 +22,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...(context?.breadcrumbs || []),
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitHub"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitHub',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GitlabAuthorizePage } from "./GitlabAuthorizePage";
|
||||
import { GitlabAuthorizePage } from './GitlabAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/authorize',
|
||||
)({
|
||||
component: GitlabAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitLab"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitLab',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GitlabConfigurePage } from "./GitlabConfigurePage";
|
||||
import { GitlabConfigurePage } from './GitlabConfigurePage'
|
||||
|
||||
const GitlabConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/create',
|
||||
)({
|
||||
component: GitlabConfigurePage,
|
||||
validateSearch: zodValidator(GitlabConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitLab"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitLab',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { GitLabOAuthCallbackPage } from "./GitlabOauthCallbackPage";
|
||||
import { GitLabOAuthCallbackPage } from './GitlabOauthCallbackPage'
|
||||
|
||||
export const GitlabOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/gitlab/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/gitlab/oauth2/callback',
|
||||
)({
|
||||
component: GitLabOAuthCallbackPage,
|
||||
validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "GitLab"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'GitLab',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HashicorpVaultAuthorizePage } from "./HashicorpVaultAuthorizePage";
|
||||
import { HashicorpVaultAuthorizePage } from './HashicorpVaultAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/authorize',
|
||||
)({
|
||||
component: HashicorpVaultAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Hashicorp Vault"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Hashicorp Vault',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HashicorpVaultConfigurePage } from "./HashicorpVaultConfigurePage";
|
||||
import { HashicorpVaultConfigurePage } from './HashicorpVaultConfigurePage'
|
||||
|
||||
const HashicorpVaultConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/hashicorp-vault/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hashicorp-vault/create',
|
||||
)({
|
||||
component: HashicorpVaultConfigurePage,
|
||||
validateSearch: zodValidator(HashicorpVaultConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Hashicorp Vault"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Hashicorp Vault',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HasuraCloudAuthorizePage } from "./HasuraCloudAuthorizePage";
|
||||
import { HasuraCloudAuthorizePage } from './HasuraCloudAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/authorize',
|
||||
)({
|
||||
component: HasuraCloudAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Hasura Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Hasura Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HasuraCloudConfigurePage } from "./HasuraCloudConfigurePage";
|
||||
import { HasuraCloudConfigurePage } from './HasuraCloudConfigurePage'
|
||||
|
||||
const HasuraCloudConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/hasura-cloud/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/hasura-cloud/create',
|
||||
)({
|
||||
component: HasuraCloudConfigurePage,
|
||||
validateSearch: zodValidator(HasuraCloudConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Hasura Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Hasura Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HerokuConfigurePage } from "./HerokuConfigurePage";
|
||||
import { HerokuConfigurePage } from './HerokuConfigurePage'
|
||||
|
||||
const HerokuConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/create',
|
||||
)({
|
||||
component: HerokuConfigurePage,
|
||||
validateSearch: zodValidator(HerokuConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Heroku Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Heroku Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { HerokuOAuthCallbackPage } from "./HerokuOauthCallbackPage";
|
||||
import { HerokuOAuthCallbackPage } from './HerokuOauthCallbackPage'
|
||||
|
||||
export const HerokuOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/heroku/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/heroku/oauth2/callback',
|
||||
)({
|
||||
component: HerokuOAuthCallbackPage,
|
||||
validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Heroku Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Heroku Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { LaravelForgeAuthorizePage } from "./LaravelForgeAuthorizePage";
|
||||
import { LaravelForgeAuthorizePage } from './LaravelForgeAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/authorize',
|
||||
)({
|
||||
component: LaravelForgeAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Laravel Forge"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Laravel Forge',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { LaravelForgeConfigurePage } from "./LaravelForgeConfigurePage";
|
||||
import { LaravelForgeConfigurePage } from './LaravelForgeConfigurePage'
|
||||
|
||||
const LaravelForgeConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/laravel-forge/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/laravel-forge/create',
|
||||
)({
|
||||
component: LaravelForgeConfigurePage,
|
||||
validateSearch: zodValidator(LaravelForgeConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Laravel Forge"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Laravel Forge',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { NetlifyConfigurePage } from "./NetlifyConfigurePage";
|
||||
import { NetlifyConfigurePage } from './NetlifyConfigurePage'
|
||||
|
||||
const NetlifyConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/create',
|
||||
)({
|
||||
component: NetlifyConfigurePage,
|
||||
validateSearch: zodValidator(NetlifyConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Netlify"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Netlify',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { NetlifyOauthCallbackPage } from "./NetlifyOauthCallbackPage";
|
||||
import { NetlifyOauthCallbackPage } from './NetlifyOauthCallbackPage'
|
||||
|
||||
export const NetlifyOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/netlify/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/netlify/oauth2/callback',
|
||||
)({
|
||||
component: NetlifyOauthCallbackPage,
|
||||
validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Netlify"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Netlify',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { NorthflankAuthorizePage } from "./NorthflankAuthorizePage";
|
||||
import { NorthflankAuthorizePage } from './NorthflankAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/authorize',
|
||||
)({
|
||||
component: NorthflankAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Northflank"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Northflank',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { NorthflankConfigurePage } from "./NorthflankConfigurePage";
|
||||
import { NorthflankConfigurePage } from './NorthflankConfigurePage'
|
||||
|
||||
const NorthflankConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/northflank/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/northflank/create',
|
||||
)({
|
||||
component: NorthflankConfigurePage,
|
||||
validateSearch: zodValidator(NorthflankConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Northflank"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Northflank',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { OctopusDeployAuthorizePage } from "./OctopusDeployAuthorizePage";
|
||||
import { OctopusDeployAuthorizePage } from './OctopusDeployAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/authorize',
|
||||
)({
|
||||
component: OctopusDeployAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Octopus Deploy"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Octopus Deploy',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { OctopusDeployConfigurePage } from "./OctopusDeployConfigurePage";
|
||||
import { OctopusDeployConfigurePage } from './OctopusDeployConfigurePage'
|
||||
|
||||
const OctopusDeployConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/octopus-deploy/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/octopus-deploy/create',
|
||||
)({
|
||||
component: OctopusDeployConfigurePage,
|
||||
validateSearch: zodValidator(OctopusDeployConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Octopus Deploy"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Octopus Deploy',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { QoveryAuthorizePage } from "./QoveryAuthorizePage";
|
||||
import { QoveryAuthorizePage } from './QoveryAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/authorize',
|
||||
)({
|
||||
component: QoveryAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Qovery"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Qovery',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { QoveryConfigurePage } from "./QoveryConfigurePage";
|
||||
import { QoveryConfigurePage } from './QoveryConfigurePage'
|
||||
|
||||
const QoveryConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/qovery/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/qovery/create',
|
||||
)({
|
||||
component: QoveryConfigurePage,
|
||||
validateSearch: zodValidator(QoveryConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Qovery"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Qovery',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RailwayAuthorizePage } from "./RailwayAuthorizePage";
|
||||
import { RailwayAuthorizePage } from './RailwayAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/railway/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/authorize',
|
||||
)({
|
||||
component: RailwayAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Railway"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Railway',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RailwayConfigurePage } from "./RailwayConfigurePage";
|
||||
import { RailwayConfigurePage } from './RailwayConfigurePage'
|
||||
|
||||
const RailwayConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/railway/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/railway/create',
|
||||
)({
|
||||
component: RailwayConfigurePage,
|
||||
validateSearch: zodValidator(RailwayConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Railway"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Railway',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RenderAuthorizePage } from "./RenderAuthorizePage";
|
||||
import { RenderAuthorizePage } from './RenderAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/render/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/authorize',
|
||||
)({
|
||||
component: RenderAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Render"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Render',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RenderConfigurePage } from "./RenderConfigurePage";
|
||||
import { RenderConfigurePage } from './RenderConfigurePage'
|
||||
|
||||
const RenderConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/render/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/render/create',
|
||||
)({
|
||||
component: RenderConfigurePage,
|
||||
validateSearch: zodValidator(RenderConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Render"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Render',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RundeckAuthorizePage } from "./RundeckAuthorizePage";
|
||||
import { RundeckAuthorizePage } from './RundeckAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/authorize',
|
||||
)({
|
||||
component: RundeckAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Rundeck"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Rundeck',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { RundeckConfigurePage } from "./RundeckConfigurePage";
|
||||
import { RundeckConfigurePage } from './RundeckConfigurePage'
|
||||
|
||||
const RundeskConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/rundeck/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/rundeck/create',
|
||||
)({
|
||||
component: RundeckConfigurePage,
|
||||
validateSearch: zodValidator(RundeskConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Rundeck"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Rundeck',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { SelectIntegrationAuthPage } from "./SelectIntegrationAuthPage";
|
||||
import { SelectIntegrationAuthPage } from './SelectIntegrationAuthPage'
|
||||
|
||||
const SelectIntegrationAuthPageQueryParamsSchema = z.object({
|
||||
integrationSlug: z.string()
|
||||
});
|
||||
integrationSlug: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/select-integration-auth"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/select-integration-auth',
|
||||
)({
|
||||
component: SelectIntegrationAuthPage,
|
||||
validateSearch: zodValidator(SelectIntegrationAuthPageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Configure"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Configure',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { SupabaseAuthorizePage } from "./SupabaseAuthorizePage";
|
||||
import { SupabaseAuthorizePage } from './SupabaseAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/authorize',
|
||||
)({
|
||||
component: SupabaseAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Supabase"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Supabase',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { SupabaseConfigurePage } from "./SupabaseConfigurePage";
|
||||
import { SupabaseConfigurePage } from './SupabaseConfigurePage'
|
||||
|
||||
const SupabaseConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/supabase/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/supabase/create',
|
||||
)({
|
||||
component: SupabaseConfigurePage,
|
||||
validateSearch: zodValidator(SupabaseConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Supabase"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Supabase',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TeamcityAuthorizePage } from "./TeamcityAuthorizePage";
|
||||
import { TeamcityAuthorizePage } from './TeamcityAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/authorize',
|
||||
)({
|
||||
component: TeamcityAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Teamcity"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Teamcity',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TeamcityConfigurePage } from "./TeamcityConfigurePage";
|
||||
import { TeamcityConfigurePage } from './TeamcityConfigurePage'
|
||||
|
||||
const TeamcityConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/teamcity/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/teamcity/create',
|
||||
)({
|
||||
component: TeamcityConfigurePage,
|
||||
validateSearch: zodValidator(TeamcityConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Teamcity"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Teamcity',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+15
-15
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TerraformCloudAuthorizePage } from "./TerraformCloudAuthorizePage";
|
||||
import { TerraformCloudAuthorizePage } from './TerraformCloudAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/authorize',
|
||||
)({
|
||||
component: TerraformCloudAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Terraform Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Terraform Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+19
-19
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TerraformCloudConfigurePage } from "./TerraformCloudConfigurePage";
|
||||
import { TerraformCloudConfigurePage } from './TerraformCloudConfigurePage'
|
||||
|
||||
const TerraformCloudConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/terraform-cloud/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/terraform-cloud/create',
|
||||
)({
|
||||
component: TerraformCloudConfigurePage,
|
||||
validateSearch: zodValidator(TerraformCloudConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Terraform Cloud"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Terraform Cloud',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TravisCIAuthorizePage } from "./TravisCIAuthorizePage";
|
||||
import { TravisCIAuthorizePage } from './TravisCIAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/authorize',
|
||||
)({
|
||||
component: TravisCIAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Travis CI"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Travis CI',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { TravisCIConfigurePage } from "./TravisCIConfigurePage";
|
||||
import { TravisCIConfigurePage } from './TravisCIConfigurePage'
|
||||
|
||||
const TravisCIConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/travisci/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/travisci/create',
|
||||
)({
|
||||
component: TravisCIConfigurePage,
|
||||
validateSearch: zodValidator(TravisCIConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Travis CI"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Travis CI',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { VercelConfigurePage } from "./VercelConfigurePage";
|
||||
import { VercelConfigurePage } from './VercelConfigurePage'
|
||||
|
||||
const VercelConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/create',
|
||||
)({
|
||||
component: VercelConfigurePage,
|
||||
validateSearch: zodValidator(VercelConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Vercel"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Vercel',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { VercelOauthCallbackPage } from "./VercelOauthCallbackPage";
|
||||
import { VercelOauthCallbackPage } from './VercelOauthCallbackPage'
|
||||
|
||||
export const VercelOAuthCallbackPageQueryParamsSchema = z.object({
|
||||
state: z.string().catch(""),
|
||||
code: z.coerce.string().catch("")
|
||||
});
|
||||
state: z.string().catch(''),
|
||||
code: z.coerce.string().catch(''),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/vercel/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/vercel/oauth2/callback',
|
||||
)({
|
||||
component: VercelOauthCallbackPage,
|
||||
validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema),
|
||||
@@ -21,19 +21,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Vercel"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Vercel',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { WindmillAuthorizePage } from "./WindmillAuthorizePage";
|
||||
import { WindmillAuthorizePage } from './WindmillAuthorizePage'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/authorize"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/authorize',
|
||||
)({
|
||||
component: WindmillAuthorizePage,
|
||||
beforeLoad: ({ context, params }) => {
|
||||
@@ -13,19 +13,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Windmill"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Windmill',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { z } from "zod";
|
||||
import { createFileRoute, linkOptions } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
import { z } from 'zod'
|
||||
|
||||
import { IntegrationsListPageTabs } from "@app/types/integrations";
|
||||
import { IntegrationsListPageTabs } from '@app/types/integrations'
|
||||
|
||||
import { WindmillConfigurePage } from "./WindmillConfigurePage";
|
||||
import { WindmillConfigurePage } from './WindmillConfigurePage'
|
||||
|
||||
const WindmillConfigurePageQueryParamsSchema = z.object({
|
||||
integrationAuthId: z.string()
|
||||
});
|
||||
integrationAuthId: z.string(),
|
||||
})
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout/integrations/windmill/create"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout/integrations/windmill/create',
|
||||
)({
|
||||
component: WindmillConfigurePage,
|
||||
validateSearch: zodValidator(WindmillConfigurePageQueryParamsSchema),
|
||||
@@ -20,19 +20,19 @@ export const Route = createFileRoute(
|
||||
breadcrumbs: [
|
||||
...context.breadcrumbs,
|
||||
{
|
||||
label: "Integrations",
|
||||
label: 'Integrations',
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/integrations",
|
||||
to: '/secret-manager/$projectId/integrations',
|
||||
params,
|
||||
search: {
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations
|
||||
}
|
||||
})
|
||||
selectedTab: IntegrationsListPageTabs.NativeIntegrations,
|
||||
},
|
||||
}),
|
||||
},
|
||||
{
|
||||
label: "Windmill"
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
});
|
||||
label: 'Windmill',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
+20
-18
@@ -1,29 +1,31 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { AzureAppConfigurationOauthCallbackPageQueryParamsSchema } from "./AzureAppConfigurationOauthCallbackPage/route";
|
||||
import { AzureAppConfigurationOauthCallbackPageQueryParamsSchema } from './AzureAppConfigurationOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/azure-app-configuration/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-app-configuration/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(AzureAppConfigurationOauthCallbackPageQueryParamsSchema),
|
||||
validateSearch: zodValidator(
|
||||
AzureAppConfigurationOauthCallbackPageQueryParamsSchema,
|
||||
),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/azure-app-configuration/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
+17
-17
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { AzureKeyVaultOauthCallbackQueryParamsSchema } from "./AzureKeyVaultOauthCallbackPage/route";
|
||||
import { AzureKeyVaultOauthCallbackQueryParamsSchema } from './AzureKeyVaultOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/azure-key-vault/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/azure-key-vault/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(AzureKeyVaultOauthCallbackQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/azure-key-vault/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { BitbucketOauthCallbackQueryParamsSchema } from "./BitbucketOauthCallbackPage/route";
|
||||
import { BitbucketOauthCallbackQueryParamsSchema } from './BitbucketOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/bitbucket/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/bitbucket/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(BitbucketOauthCallbackQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/bitbucket/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/bitbucket/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,31 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { GcpSecretManagerOAuthCallbackPageQueryParamsSchema } from "./GcpSecretManagerOauthCallbackPage/route";
|
||||
import { GcpSecretManagerOAuthCallbackPageQueryParamsSchema } from './GcpSecretManagerOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/gcp-secret-manager/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gcp-secret-manager/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(GcpSecretManagerOAuthCallbackPageQueryParamsSchema),
|
||||
validateSearch: zodValidator(
|
||||
GcpSecretManagerOAuthCallbackPageQueryParamsSchema,
|
||||
),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/gcp-secret-manager/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { GithubOAuthCallbackPageQueryParamsSchema } from "./GithubOauthCallbackPage/route";
|
||||
import { GithubOAuthCallbackPageQueryParamsSchema } from './GithubOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/github/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/github/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(GithubOAuthCallbackPageQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/github/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/github/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { GitlabOAuthCallbackPageQueryParamsSchema } from "./GitlabOauthCallbackPage/route";
|
||||
import { GitlabOAuthCallbackPageQueryParamsSchema } from './GitlabOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/gitlab/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/gitlab/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(GitlabOAuthCallbackPageQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/gitlab/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/gitlab/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { HerokuOAuthCallbackPageQueryParamsSchema } from "./HerokuOauthCallbackPage/route";
|
||||
import { HerokuOAuthCallbackPageQueryParamsSchema } from './HerokuOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/heroku/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/heroku/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(HerokuOAuthCallbackPageQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/heroku/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/heroku/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { NetlifyOAuthCallbackPageQueryParamsSchema } from "./NetlifyOauthCallbackPage/route";
|
||||
import { NetlifyOAuthCallbackPageQueryParamsSchema } from './NetlifyOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/netlify/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/netlify/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(NetlifyOAuthCallbackPageQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/netlify/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/netlify/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
import { createFileRoute, redirect } from "@tanstack/react-router";
|
||||
import { zodValidator } from "@tanstack/zod-adapter";
|
||||
import { createFileRoute, redirect } from '@tanstack/react-router'
|
||||
import { zodValidator } from '@tanstack/zod-adapter'
|
||||
|
||||
import { createNotification } from "@app/components/notifications";
|
||||
import { localStorageService } from "@app/helpers/localStorage";
|
||||
import { createNotification } from '@app/components/notifications'
|
||||
import { localStorageService } from '@app/helpers/localStorage'
|
||||
|
||||
import { VercelOAuthCallbackPageQueryParamsSchema } from "./VercelOauthCallbackPage/route";
|
||||
import { VercelOAuthCallbackPageQueryParamsSchema } from './VercelOauthCallbackPage/route'
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/integrations/vercel/oauth2/callback"
|
||||
'/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/integrations/vercel/oauth2/callback',
|
||||
)({
|
||||
validateSearch: zodValidator(VercelOAuthCallbackPageQueryParamsSchema),
|
||||
beforeLoad: ({ search }) => {
|
||||
const projectId = localStorageService.getIintegrationProjectId();
|
||||
const projectId = localStorageService.getIintegrationProjectId()
|
||||
if (!projectId) {
|
||||
createNotification({
|
||||
type: "error",
|
||||
title: "Missing project id",
|
||||
text: "Please retry integration"
|
||||
});
|
||||
throw redirect({ to: "/organization/secret-manager/overview" });
|
||||
type: 'error',
|
||||
title: 'Missing project id',
|
||||
text: 'Please retry integration',
|
||||
})
|
||||
throw redirect({ to: '/organization/secret-manager/overview' })
|
||||
}
|
||||
throw redirect({
|
||||
to: "/secret-manager/$projectId/integrations/vercel/oauth2/callback",
|
||||
to: '/secret-manager/$projectId/integrations/vercel/oauth2/callback',
|
||||
params: { projectId },
|
||||
search
|
||||
});
|
||||
}
|
||||
});
|
||||
search,
|
||||
})
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,45 +1,11 @@
|
||||
import { faHome } from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { createFileRoute, linkOptions } from "@tanstack/react-router";
|
||||
import { createFileRoute, linkOptions, Outlet } from "@tanstack/react-router";
|
||||
|
||||
import { workspaceKeys } from "@app/hooks/api";
|
||||
import { fetchUserProjectPermissions, roleQueryKeys } from "@app/hooks/api/roles/queries";
|
||||
import { fetchWorkspaceById } from "@app/hooks/api/workspace/queries";
|
||||
import { ProjectLayout } from "@app/layouts/ProjectLayout";
|
||||
|
||||
export const Route = createFileRoute(
|
||||
"/_authenticate/_inject-org-details/_org-layout/secret-manager/$projectId/_secret-manager-layout"
|
||||
"/_authenticate/_inject-org-details/_org-layout/projects/$projectId/_project-layout/secret-manager/_secret-manager-layout"
|
||||
)({
|
||||
component: ProjectLayout,
|
||||
beforeLoad: async ({ params, context }) => {
|
||||
const project = await context.queryClient.ensureQueryData({
|
||||
queryKey: workspaceKeys.getWorkspaceById(params.projectId),
|
||||
queryFn: () => fetchWorkspaceById(params.projectId)
|
||||
});
|
||||
|
||||
await context.queryClient.ensureQueryData({
|
||||
queryKey: roleQueryKeys.getUserProjectPermissions({
|
||||
workspaceId: params.projectId
|
||||
}),
|
||||
queryFn: () => fetchUserProjectPermissions({ workspaceId: params.projectId })
|
||||
});
|
||||
|
||||
return {
|
||||
project,
|
||||
breadcrumbs: [
|
||||
{
|
||||
label: "Secret Managers",
|
||||
icon: () => <FontAwesomeIcon icon={faHome} />,
|
||||
link: linkOptions({ to: "/organization/secret-manager/overview" })
|
||||
},
|
||||
{
|
||||
label: project.name,
|
||||
link: linkOptions({
|
||||
to: "/secret-manager/$projectId/overview",
|
||||
params: { projectId: project.id }
|
||||
})
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
component: () => <Outlet />
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user