-
Notifications
You must be signed in to change notification settings - Fork 12
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
6a5bc17
commit 6a31ecb
Showing
8 changed files
with
689 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export type PaginatedArray<T> = { | ||
data: Array<T>; | ||
next_page: string | null; | ||
page: number; | ||
page_size: number; | ||
previous_page: string | null; | ||
total: number; | ||
}; |
23 changes: 23 additions & 0 deletions
23
..._front/theme/gouvfr/assets/js/components/DataservicesSearch/DataservicesSearch.stories.ts
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,23 @@ | ||
import { withActions } from '@storybook/addon-actions/decorator'; | ||
import type { Meta, StoryObj } from '@storybook/vue3'; | ||
import DataservicesSearch from './DataservicesSearch.vue'; | ||
|
||
const meta = { | ||
title: 'Components/DataservicesSearch', | ||
component: DataservicesSearch, | ||
decorators: [withActions], | ||
args: {}, | ||
} satisfies Meta<typeof DataservicesSearch>; | ||
|
||
export default meta; | ||
|
||
export const DataservicesSearchExample: StoryObj<typeof meta> = { | ||
render: (args) => ({ | ||
components: { DataservicesSearch }, | ||
setup() { | ||
return { args }; | ||
}, | ||
template: '<DataservicesSearch v-bind="args"/>', | ||
}), | ||
args: {}, | ||
}; |
Oops, something went wrong.