Skip to content

Commit

Permalink
improve port display and switch from histoire to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwenael Pluchon committed Dec 23, 2024
1 parent 53f660a commit 3075fcb
Show file tree
Hide file tree
Showing 59 changed files with 17,957 additions and 5,901 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ module.exports = {
sourceType: 'module'
},
plugins: ['html', 'vue'],
extends: [
'eslint:recommended',
'plugin:prettier/recommended',
'plugin:vue/recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
extends: ['eslint:recommended', 'plugin:prettier/recommended', 'plugin:vue/recommended', 'plugin:import/errors', 'plugin:import/warnings', 'plugin:storybook/recommended'],
env: {
browser: true,
node: true,
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,5 @@ dist
.cache
.output
.DS_Store

*storybook.log
16 changes: 16 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { StorybookConfig } from "@storybook/vue3-vite";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/vue3-vite",
options: {},
},
};
export default config;
14 changes: 14 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Preview } from "@storybook/vue3";

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue diagrams</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 3075fcb

Please sign in to comment.