-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbb6d08
commit 3bdaf44
Showing
14 changed files
with
639 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 0 additions & 100 deletions
100
apps/nextjs/src/app/[workspaceSlug]/(job)/job-agents/add/JobAgentSelectCard.tsx
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
apps/nextjs/src/app/[workspaceSlug]/(job)/job-agents/add/KubernetesConfig.tsx
This file was deleted.
Oops, something went wrong.
106 changes: 0 additions & 106 deletions
106
apps/nextjs/src/app/[workspaceSlug]/(job)/job-agents/add/page.tsx
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...lug]/settings/(settings)/workspace/integrations/(integration)/github/GithubConfigFile.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from "@ctrlplane/ui/card"; | ||
import { Separator } from "@ctrlplane/ui/separator"; | ||
|
||
import { api } from "~/trpc/react"; | ||
|
||
export const GithubConfigFileSync: React.FC<{ | ||
workspaceId?: string; | ||
}> = ({ workspaceId }) => { | ||
const configFiles = api.github.configFile.list.useQuery(workspaceId ?? "", { | ||
enabled: workspaceId != null, | ||
}); | ||
|
||
return ( | ||
<Card className="rounded-md"> | ||
<CardHeader className="space-y-2"> | ||
<CardTitle>Sync Github Config File</CardTitle> | ||
<CardDescription> | ||
A{" "} | ||
<code className="rounded-md bg-neutral-800 p-1">ctrlplane.yaml</code>{" "} | ||
configuration file allows you to manage your Ctrlplane resources from | ||
github. | ||
</CardDescription> | ||
</CardHeader> | ||
|
||
<Separator /> | ||
|
||
<CardContent className="p-4"> | ||
{configFiles.data?.map((configFile) => ( | ||
<div key={configFile.id}>{configFile.name}</div> | ||
))} | ||
</CardContent> | ||
</Card> | ||
); | ||
}; |
Oops, something went wrong.