mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Reorganize Storybook (#1087)
This commit is contained in:
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { LoadingButton, LoadingButtonProps } from "./LoadingButton"
|
||||
|
||||
export default {
|
||||
title: "Button/LoadingButton",
|
||||
title: "components/LoadingButton",
|
||||
component: LoadingButton,
|
||||
argTypes: {
|
||||
loading: { control: { type: "boolean" } },
|
||||
|
||||
@@ -9,7 +9,7 @@ Started container user
|
||||
Using user 'coder' with shell '/bin/bash'`.split("\n")
|
||||
|
||||
export default {
|
||||
title: "CodeBlock/CodeBlock",
|
||||
title: "components/CodeBlock",
|
||||
component: CodeBlock,
|
||||
argTypes: {
|
||||
lines: { control: "text", defaultValue: sampleLines },
|
||||
|
||||
@@ -5,7 +5,7 @@ import { CodeExample, CodeExampleProps } from "./CodeExample"
|
||||
const sampleCode = `echo "Hello, world"`
|
||||
|
||||
export default {
|
||||
title: "CodeBlock/CodeExample",
|
||||
title: "components/CodeExample",
|
||||
component: CodeExample,
|
||||
argTypes: {
|
||||
code: { control: "string", defaultValue: sampleCode },
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { FormCloseButton, FormCloseButtonProps } from "./FormCloseButton"
|
||||
|
||||
export default {
|
||||
title: "Form/FormCloseButton",
|
||||
title: "components/FormCloseButton",
|
||||
component: FormCloseButton,
|
||||
argTypes: {
|
||||
onClose: { action: "onClose" },
|
||||
|
||||
@@ -4,7 +4,7 @@ import React from "react"
|
||||
import { UserDropdown, UserDropdownProps } from "."
|
||||
|
||||
export default {
|
||||
title: "Page/UserDropdown",
|
||||
title: "components/UserDropdown",
|
||||
component: UserDropdown,
|
||||
argTypes: {
|
||||
onSignOut: { action: "Sign Out" },
|
||||
|
||||
@@ -5,7 +5,7 @@ import React from "react"
|
||||
import { Section, SectionProps } from "./"
|
||||
|
||||
export default {
|
||||
title: "Page/Section",
|
||||
title: "components/Section",
|
||||
component: Section,
|
||||
argTypes: {
|
||||
title: { type: "string" },
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { CliAuthToken, CliAuthTokenProps } from "./CliAuthToken"
|
||||
|
||||
export default {
|
||||
title: "SignIn/CliAuthToken",
|
||||
title: "components/CliAuthToken",
|
||||
component: CliAuthToken,
|
||||
argTypes: {
|
||||
sessionToken: { control: "text", defaultValue: "some-session-token" },
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { SignInForm, SignInFormProps } from "./SignInForm"
|
||||
|
||||
export default {
|
||||
title: "SignIn/SignInForm",
|
||||
title: "components/SignInForm",
|
||||
component: SignInForm,
|
||||
argTypes: {
|
||||
isLoading: "boolean",
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { EnterpriseSnackbar, EnterpriseSnackbarProps } from "./EnterpriseSnackbar"
|
||||
|
||||
export default {
|
||||
title: "Snackbar/EnterpriseSnackbar",
|
||||
title: "components/EnterpriseSnackbar",
|
||||
component: EnterpriseSnackbar,
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import React from "react"
|
||||
import { Stack, StackProps } from "./Stack"
|
||||
|
||||
export default {
|
||||
title: "Components/Stack",
|
||||
title: "components/Stack",
|
||||
component: Stack,
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { TabPanel, TabPanelProps } from "."
|
||||
|
||||
export default {
|
||||
title: "TabPanel/TabPanel",
|
||||
title: "components/TabPanel",
|
||||
component: TabPanel,
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import React from "react"
|
||||
import { TabSidebar, TabSidebarProps } from "./TabSidebar"
|
||||
|
||||
export default {
|
||||
title: "TabPanel/TabSidebar",
|
||||
title: "components/TabSidebar",
|
||||
component: TabSidebar,
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MockUser, MockUserAgent } from "../../../testHelpers"
|
||||
import { UserCell, UserCellProps } from "./UserCell"
|
||||
|
||||
export default {
|
||||
title: "Table/Cells/UserCell",
|
||||
title: "components/UserCell",
|
||||
component: UserCell,
|
||||
} as ComponentMeta<typeof UserCell>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MockUser, MockUser2 } from "../../testHelpers"
|
||||
import { UsersTable, UsersTableProps } from "./UsersTable"
|
||||
|
||||
export default {
|
||||
title: "Components/UsersTable",
|
||||
title: "components/UsersTable",
|
||||
component: UsersTable,
|
||||
} as ComponentMeta<typeof UsersTable>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MockOrganization, MockTemplate, MockWorkspace } from "../../testHelpers
|
||||
import { Workspace, WorkspaceProps } from "./Workspace"
|
||||
|
||||
export default {
|
||||
title: "Workspaces/Workspace",
|
||||
title: "components/Workspace",
|
||||
component: Workspace,
|
||||
argTypes: {},
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { MockWorkspaceAutostartEnabled } from "../../testHelpers"
|
||||
import { WorkspaceSchedule, WorkspaceScheduleProps } from "./WorkspaceSchedule"
|
||||
|
||||
export default {
|
||||
title: "Workspaces/WorkspaceSchedule",
|
||||
title: "components/WorkspaceSchedule",
|
||||
component: WorkspaceSchedule,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user