storybook autodocs

This commit is contained in:
Gauthier Roebroeck 2026-01-12 16:29:00 +08:00
parent c9c3f29fbd
commit 861936c671
54 changed files with 250 additions and 58 deletions

View file

@ -16,6 +16,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BuildCommit>

View file

@ -17,6 +17,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BuildVersion>

View file

@ -1,11 +0,0 @@
import {Canvas, Meta} from '@storybook/addon-docs/blocks';
import * as Stories from './FormattedMessage.stories';
<Meta of={Stories} />
# FormattedMessage
Component to display formatted `formatjs` messages using dynamic slots.
<Canvas of={Stories.Default} />

View file

@ -6,6 +6,11 @@ const meta = {
component: FormattedMessage,
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: 'Component to display formatted `formatjs` messages using dynamic slots.',
},
},
},
args: {},
} satisfies Meta<typeof FormattedMessage>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof LocaleSelector>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
modelValue: 20,

View file

@ -1,11 +0,0 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as Stories from './PresentationSelector.stories';
<Meta of={Stories} />
# PresentationSelector
A button that will display a list of presentation modes when clicked.
<Canvas of={Stories.Default} />

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: 'A button that will display a list of presentation modes when clicked.',
},
},
},
args: {
modelValue: 'grid',
@ -30,6 +35,7 @@ export const Default: Story = {
}
export const Clicked: Story = {
tags: ['!autodocs'],
args: {},
play: async ({ canvas, userEvent }) => {
await expect(canvas.getByRole('button')).toBeEnabled()

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof RemoteFileList>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof SnackQueue>

View file

@ -1,11 +0,0 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as Stories from './ThemeSelector.stories';
<Meta of={Stories} />
# ThemeSelector
A cycling button to change the theme.
<Canvas of={Stories.Default} />

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: 'A cycling button to change the theme.',
},
},
},
args: {},
} satisfies Meta<typeof ThemeSelector>

View file

@ -1,11 +0,0 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as Stories from './Card.stories';
<Meta of={Stories} />
# AnnouncementCard
A card showing the details of a Komga announcement.
<Canvas of={Stories.Unread} />

View file

@ -12,12 +12,18 @@ const meta = {
},
template: '<Card :item="args.item"/>',
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
},
args: {
onMarkRead: fn(),
},
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: 'A card showing the details of a Komga announcement.',
},
},
},
} satisfies Meta<typeof Card>
export default meta

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof DeletionWarning>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof ForceSyncWarning>

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
dialog: true,

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
onAddApiKey: fn(),

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
dialog: true,

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
dialog: true,

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
dialog: true,

View file

@ -16,6 +16,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
dialog: true,

View file

@ -18,6 +18,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof HistoryTable>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BookConverted>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BookFileDeleted>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BookImported>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof DuplicatePageDeleted>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof SeriesDirectoryDeleted>

View file

@ -16,6 +16,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
onScan: fn(),

View file

@ -18,6 +18,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof TransientBooksTable>

View file

@ -19,6 +19,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof Table>

View file

@ -17,6 +17,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof Drawer>

View file

@ -17,6 +17,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof ReorderLibraries>

View file

@ -25,6 +25,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof Libraries>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof BottomNavigation>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof DeletionWarning>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof TabNavigation>

View file

@ -16,6 +16,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof CreateEdit>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof StepGeneral>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof StepMetadata>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof StepOptions>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof StepScanner>

View file

@ -21,6 +21,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof KnownTable>

View file

@ -18,6 +18,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
modelValue: 'hash1',

View file

@ -21,6 +21,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof UnknownTable>

View file

@ -1,11 +0,0 @@
import { Canvas, Meta } from '@storybook/addon-docs/blocks';
import * as Stories from './Card.stories';
<Meta of={Stories} />
# ReleaseCard
A card showing the details of a Komga release.
<Canvas of={Stories.LatestAndCurrent} />

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: 'A card showing the details of a Komga release.',
},
},
},
args: {},
} satisfies Meta<typeof Card>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
settings: {

View file

@ -18,6 +18,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof AuthenticationActivityTable>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof DeletionWarning>

View file

@ -13,6 +13,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
user: {

View file

@ -15,6 +15,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {
onAddUser: fn(),

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof ChangePassword>

View file

@ -14,6 +14,11 @@ const meta = {
}),
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
docs: {
description: {
component: '',
},
},
},
args: {},
} satisfies Meta<typeof CreateEdit>