Skip to content

Commit

Permalink
Add dataservices search page
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudDauce committed Sep 16, 2024
1 parent 317b0f7 commit 265b350
Show file tree
Hide file tree
Showing 8 changed files with 689 additions and 1 deletion.
80 changes: 80 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"@datagouv/components": "^1.3.0",
"@datagouv/select-a11y": "^3.6.1",
"@gouvfr/dsfr": "~1.11.2",
"@vueuse/router": "^11.0.3",
"leaflet": "^1.9.4"
},
"msw": {
Expand Down
8 changes: 8 additions & 0 deletions udata_front/theme/gouvfr/assets/js/api/types.ts
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;
};
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: {},
};
Loading

0 comments on commit 265b350

Please sign in to comment.