Skip to content

Commit 3075fcb

Browse files
author
Gwenael Pluchon
committed
improve port display and switch from histoire to storybook
1 parent 53f660a commit 3075fcb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+17957
-5901
lines changed

.eslintrc.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ module.exports = {
88
sourceType: 'module'
99
},
1010
plugins: ['html', 'vue'],
11-
extends: [
12-
'eslint:recommended',
13-
'plugin:prettier/recommended',
14-
'plugin:vue/recommended',
15-
'plugin:import/errors',
16-
'plugin:import/warnings'
17-
],
11+
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'plugin:vue/recommended', 'plugin:import/errors', 'plugin:import/warnings', 'plugin:storybook/recommended'],
1812
env: {
1913
browser: true,
2014
node: true,

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,5 @@ dist
7878
.cache
7979
.output
8080
.DS_Store
81+
82+
*storybook.log

.storybook/main.ts

+16
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+
"@storybook/addon-onboarding",
7+
"@storybook/addon-essentials",
8+
"@chromatic-com/storybook",
9+
"@storybook/addon-interactions",
10+
],
11+
framework: {
12+
name: "@storybook/vue3-vite",
13+
options: {},
14+
},
15+
};
16+
export default config;

.storybook/preview.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import type { Preview } from "@storybook/vue3";
2+
3+
const preview: Preview = {
4+
parameters: {
5+
controls: {
6+
matchers: {
7+
color: /(background|color)$/i,
8+
date: /Date$/i,
9+
},
10+
},
11+
},
12+
};
13+
14+
export default preview;

index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vue diagrams</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)