mirror of
https://github.com/coder/coder.git
synced 2026-10-28 02:42:54 +08:00
This implements a very simple Project Summary page (which lists workspaces):  ...which also has an empty state:  Fixes #66
41 lines
880 B
TypeScript
41 lines
880 B
TypeScript
import { User } from "../contexts/UserContext"
|
|
import { Provisioner, Organization, Project, Workspace } from "../api"
|
|
|
|
export const MockUser: User = {
|
|
id: "test-user-id",
|
|
username: "TestUser",
|
|
email: "test@coder.com",
|
|
created_at: "",
|
|
}
|
|
|
|
export const MockProject: Project = {
|
|
id: "project-id",
|
|
created_at: "",
|
|
updated_at: "",
|
|
organization_id: "test-org",
|
|
name: "Test Project",
|
|
provisioner: "test-provisioner",
|
|
active_version_id: "",
|
|
}
|
|
|
|
export const MockProvisioner: Provisioner = {
|
|
id: "test-provisioner",
|
|
name: "Test Provisioner",
|
|
}
|
|
|
|
export const MockOrganization: Organization = {
|
|
id: "test-org",
|
|
name: "Test Organization",
|
|
created_at: "",
|
|
updated_at: "",
|
|
}
|
|
|
|
export const MockWorkspace: Workspace = {
|
|
id: "test-workspace",
|
|
name: "Test-Workspace",
|
|
created_at: "",
|
|
updated_at: "",
|
|
project_id: "project-id",
|
|
owner_id: "test-user-id",
|
|
}
|