Skip to content

Commit dffaed9

Browse files
committed
Merge branch 'main' into Auto-Testing-Pipeline
2 parents 46ee216 + 773f37b commit dffaed9

28 files changed

Lines changed: 7330 additions & 2066 deletions

client/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ pnpm-debug.log*
2525
/storybook-static/
2626
/playwright-report/
2727
/test-results/
28+
29+
*storybook.log
30+
storybook-static
31+
32+
# Playwright
33+
/blob-report/
34+
/playwright/.cache/
35+
/playwright/.auth/

client/.storybook/main.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { StorybookConfig } from "@storybook/vue3-vite";
2+
3+
const config: StorybookConfig = {
4+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5+
addons: [
6+
"@chromatic-com/storybook",
7+
"@storybook/addon-docs",
8+
"@storybook/addon-onboarding",
9+
"@storybook/addon-a11y",
10+
],
11+
framework: {
12+
name: "@storybook/vue3-vite",
13+
options: {},
14+
},
15+
};
16+
export default config;

client/.storybook/preview.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import type { Preview } from "@storybook/vue3";
2+
import { setup } from "@storybook/vue3";
3+
4+
import { createPinia } from "pinia";
5+
import { createVuetify } from "vuetify";
6+
import "vuetify/styles";
7+
import { createRouter, createWebHistory } from "vue-router";
8+
import AlertMsg from "@/components/widgets/AlertMsg.vue";
9+
import { VApp, VMain } from "vuetify/components";
10+
import "@mdi/font/css/materialdesignicons.css";
11+
12+
import i18n from "@/i18n";
13+
14+
const router = createRouter({
15+
history: createWebHistory(),
16+
routes: [], // add demo routes if your components navigate
17+
});
18+
19+
const vuetify = createVuetify();
20+
21+
setup((app) => {
22+
app.use(createPinia());
23+
app.use(vuetify);
24+
app.use(router);
25+
app.use(i18n);
26+
27+
app.component("AlertMsg", AlertMsg);
28+
});
29+
30+
const preview: Preview = {
31+
parameters: {
32+
controls: {
33+
matchers: { color: /(background|color)$/i, date: /Date$/i },
34+
},
35+
},
36+
decorators: [
37+
(story, context) => {
38+
const StoryComponent = story();
39+
return {
40+
components: { StoryComponent, VApp, VMain },
41+
setup() {
42+
return { args: context.args };
43+
},
44+
template: `
45+
<v-app>
46+
<v-main>
47+
<StoryComponent v-bind="args" />
48+
</v-main>
49+
</v-app>
50+
`,
51+
};
52+
},
53+
],
54+
};
55+
56+
export default preview;

client/.storybook/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"module": "esnext",
5+
"moduleResolution": "bundler",
6+
"types": ["vite/client", "node"],
7+
"resolveJsonModule": true,
8+
"skipLibCheck": true,
9+
"jsx": "preserve"
10+
},
11+
"include": ["./**/*", "../src/**/*"]
12+
}

0 commit comments

Comments
 (0)