Introduce Storybook and refactor Vue components (#524)

This commit is contained in:
andig 2020-12-23 17:56:26 +01:00 • committed by GitHub
parent 95cfe455b8
commit 2d3bf1bec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 17513 additions and 8161 deletions

4
.storybook/main.js Normal file
View file

@ -0,0 +1,4 @@
module.exports = {
stories: ["../assets/js/**/*.stories.mdx", "../assets/js/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
};

View file

@ -0,0 +1,2 @@
<link href="/css/bootstrap.min.css" rel="stylesheet" />
<link href="/css/app.css" rel="stylesheet" />

4
.storybook/preview.js Normal file
View file

@ -0,0 +1,4 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}