Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,104 changes: 671 additions & 433 deletions spec/openapi.infra.yaml

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions src/configs/mock-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { nanoid } from 'nanoid'
const DEFAULT_TEMPLATES: DefaultTemplate[] = [
{
aliases: ['code-interpreter'],
names: ['code-interpreter'],
buildID: 'build_000',
cpuCount: 1,
memoryMB: 1024,
Expand All @@ -36,6 +37,7 @@ const DEFAULT_TEMPLATES: DefaultTemplate[] = [
},
{
aliases: ['web-starter'],
names: ['web-starter'],
buildID: 'build_005',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -54,6 +56,7 @@ const DEFAULT_TEMPLATES: DefaultTemplate[] = [
},
{
aliases: ['data-science'],
names: ['data-science'],
buildID: 'build_006',
cpuCount: 4,
memoryMB: 8192,
Expand All @@ -78,6 +81,7 @@ const DEFAULT_TEMPLATES: DefaultTemplate[] = [
const TEMPLATES: Template[] = [
{
aliases: ['node-typescript', 'node-ts'],
names: ['node-typescript', 'node-ts'],
buildID: 'build_001',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -97,6 +101,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['react-vite'],
names: ['react-vite'],
buildID: 'build_002',
cpuCount: 1,
memoryMB: 1024,
Expand All @@ -113,6 +118,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['postgres', 'pg'],
names: ['postgres', 'pg'],
buildID: 'build_003',
cpuCount: 2,
memoryMB: 4096,
Expand All @@ -129,6 +135,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['redis'],
names: ['redis'],
buildID: 'build_004',
cpuCount: 1,
memoryMB: 2048,
Expand All @@ -145,6 +152,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['python-ml', 'ml'],
names: ['python-ml', 'ml'],
buildID: 'build_005',
cpuCount: 4,
memoryMB: 8192,
Expand All @@ -161,6 +169,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['elastic', 'es'],
names: ['elastic', 'es'],
buildID: 'build_006',
cpuCount: 2,
memoryMB: 4096,
Expand All @@ -177,6 +186,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['grafana'],
names: ['grafana'],
buildID: 'build_007',
cpuCount: 1,
memoryMB: 2048,
Expand All @@ -193,6 +203,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['nginx'],
names: ['nginx'],
buildID: 'build_008',
cpuCount: 1,
memoryMB: 1024,
Expand All @@ -209,6 +220,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['mongodb', 'mongo'],
names: ['mongodb', 'mongo'],
buildID: 'build_009',
cpuCount: 2,
memoryMB: 4096,
Expand All @@ -225,6 +237,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['mysql'],
names: ['mysql'],
buildID: 'build_010',
envdVersion: '0.1.0',
cpuCount: 2,
Expand All @@ -241,6 +254,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['nextjs', 'next'],
names: ['nextjs', 'next'],
buildID: 'build_011',
envdVersion: '0.1.0',
cpuCount: 2,
Expand All @@ -260,6 +274,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['vue', 'vue3'],
names: ['vue', 'vue3'],
buildID: 'build_012',
cpuCount: 1,
envdVersion: '0.1.0',
Expand All @@ -276,6 +291,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['django'],
names: ['django'],
buildID: 'build_013',
envdVersion: '0.1.0',
cpuCount: 2,
Expand All @@ -295,6 +311,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['flask'],
names: ['flask'],
buildID: 'build_014',
envdVersion: '0.1.0',
cpuCount: 1,
Expand All @@ -311,6 +328,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['golang', 'go'],
names: ['golang', 'go'],
buildID: 'build_015',
envdVersion: '0.1.0',
cpuCount: 2,
Expand All @@ -330,6 +348,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['rust'],
names: ['rust'],
buildID: 'build_016',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -346,6 +365,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['java-spring', 'spring'],
names: ['java-spring', 'spring'],
buildID: 'build_017',
cpuCount: 3,
memoryMB: 4096,
Expand All @@ -365,6 +385,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['dotnet', 'csharp'],
names: ['dotnet', 'csharp'],
buildID: 'build_018',
cpuCount: 2,
memoryMB: 3072,
Expand All @@ -381,6 +402,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['php-laravel', 'laravel'],
names: ['php-laravel', 'laravel'],
buildID: 'build_019',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -400,6 +422,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['ruby-rails', 'rails'],
names: ['ruby-rails', 'rails'],
buildID: 'build_020',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -416,6 +439,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['jupyter', 'notebook'],
names: ['jupyter', 'notebook'],
buildID: 'build_021',
cpuCount: 4,
memoryMB: 6144,
Expand All @@ -435,6 +459,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['tensorflow'],
names: ['tensorflow'],
buildID: 'build_022',
cpuCount: 8,
memoryMB: 16384,
Expand All @@ -454,6 +479,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['pytorch'],
names: ['pytorch'],
buildID: 'build_023',
cpuCount: 8,
memoryMB: 16384,
Expand All @@ -473,6 +499,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['cassandra'],
names: ['cassandra'],
buildID: 'build_024',
cpuCount: 4,
memoryMB: 8192,
Expand All @@ -489,6 +516,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['docker', 'dind'],
names: ['docker', 'dind'],
buildID: 'build_025',
cpuCount: 2,
memoryMB: 4096,
Expand All @@ -508,6 +536,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['kubernetes', 'k8s'],
names: ['kubernetes', 'k8s'],
buildID: 'build_026',
cpuCount: 4,
memoryMB: 8192,
Expand All @@ -527,6 +556,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['terraform'],
names: ['terraform'],
buildID: 'build_027',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -543,6 +573,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['ansible'],
names: ['ansible'],
buildID: 'build_028',
cpuCount: 1,
memoryMB: 1536,
Expand All @@ -562,6 +593,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['prometheus'],
names: ['prometheus'],
buildID: 'build_029',
cpuCount: 2,
memoryMB: 3072,
Expand All @@ -578,6 +610,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['jenkins'],
names: ['jenkins'],
buildID: 'build_030',
cpuCount: 3,
envdVersion: '0.1.0',
Expand All @@ -597,6 +630,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['gitlab-ci'],
names: ['gitlab-ci'],
buildID: 'build_031',
cpuCount: 2,
envdVersion: '0.1.0',
Expand All @@ -613,6 +647,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['apache-spark', 'spark'],
names: ['apache-spark', 'spark'],
buildID: 'build_032',
cpuCount: 8,
envdVersion: '0.1.0',
Expand All @@ -632,6 +667,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['kafka'],
names: ['kafka'],
envdVersion: '0.1.0',
buildID: 'build_033',
cpuCount: 3,
Expand All @@ -648,6 +684,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['rabbitmq'],
names: ['rabbitmq'],
buildID: 'build_034',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -667,6 +704,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['zookeeper'],
names: ['zookeeper'],
envdVersion: '0.1.0',
buildID: 'build_035',
cpuCount: 1,
Expand All @@ -683,6 +721,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['solr'],
names: ['solr'],
buildID: 'build_036',
cpuCount: 2,
memoryMB: 4096,
Expand All @@ -702,6 +741,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['logstash'],
names: ['logstash'],
buildID: 'build_037',
cpuCount: 2,
memoryMB: 3072,
Expand All @@ -718,6 +758,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['kibana'],
names: ['kibana'],
buildID: 'build_038',
cpuCount: 1,
memoryMB: 2048,
Expand All @@ -734,6 +775,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['minio'],
names: ['minio'],
buildID: 'build_039',
cpuCount: 2,
memoryMB: 2048,
Expand All @@ -753,6 +795,7 @@ const TEMPLATES: Template[] = [
},
{
aliases: ['vault'],
names: ['vault'],
buildID: 'build_040',
cpuCount: 1,
envdVersion: '0.1.0',
Expand Down
5 changes: 5 additions & 0 deletions src/features/dashboard/settings/general/info-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ export function InfoCard({ className }: InfoCardProps) {
<span>{team.id}</span>
<CopyButton value={team.id} variant="ghost" className="size-5" />
</div>
<div className="flex items-center gap-2">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add also team slug to the teams info

<Badge>Team Slug</Badge>
<span>{team.slug}</span>
<CopyButton value={team.slug} variant="ghost" className="size-5" />
</div>
</div>
</CardContent>
</Card>
Expand Down
Loading
Loading