Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Update and fix storybook (was failing to run in local dev mode) #6180

Merged
merged 11 commits into from
May 4, 2023
1 change: 0 additions & 1 deletion packages/design-system/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module.exports = {
},
},
},
'storybook-addon-designs',
'storybook-addon-themes',
],
webpackFinal: async (config) => {
Expand Down
6 changes: 3 additions & 3 deletions packages/design-system/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import ElementUI from 'element-ui';
import lang from 'element-ui/lib/locale/lang/en';
import locale from 'element-ui/lib/locale';

import designSystemComponents from '../src/plugins/n8nComponents';
import { N8nPlugin } from '../src/plugin';

import Vue from 'vue';

Vue.use(ElementUI);
Vue.use(designSystemComponents);
Vue.use(N8nPlugin);

locale.use(lang);

Expand Down Expand Up @@ -58,7 +58,7 @@ export const parameters = {
list: [
{
name: 'dark',
class: 'theme-dark',
class: 'theme-dark-beta',
color: '#000',
},
],
Expand Down
14 changes: 7 additions & 7 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@
"@fortawesome/fontawesome-svg-core": "^1.2.36",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/vue-fontawesome": "^2.0.9",
"@storybook/addon-actions": "^7.0.0-beta.46",
"@storybook/addon-essentials": "^7.0.0-beta.46",
"@storybook/addon-links": "^7.0.0-beta.46",
"@storybook/addon-actions": "^7.0.7",
"@storybook/addon-docs": "^7.0.7",
"@storybook/addon-essentials": "^7.0.7",
"@storybook/addon-links": "^7.0.7",
"@storybook/addon-postcss": "^3.0.0-alpha.1",
"@storybook/vue": "^7.0.0-beta.46",
"@storybook/vue-webpack5": "^7.0.0-beta.46",
"@storybook/vue": "^7.0.7",
"@storybook/vue-webpack5": "^7.0.7",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/vue": "^5.8.3",
"@types/markdown-it": "^12.2.3",
Expand All @@ -63,8 +64,7 @@
"node-notifier": "^10.0.1",
"sass": "^1.58.0",
"sass-loader": "^13.2.0",
"storybook": "^7.0.0-beta.46",
"storybook-addon-designs": "^6.3.1",
"storybook": "^7.0.7",
"storybook-addon-themes": "^6.1.0",
cstuncsik marked this conversation as resolved.
Show resolved Hide resolved
"trim": "^1.0.1",
"vite": "^4.0.4",
Expand Down
2 changes: 2 additions & 0 deletions packages/design-system/src/docs/Introduction.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Meta } from '@storybook/addon-docs';

<Meta title="Docs/Introduction" />

# Welcome to n8n Storybook
Expand Down
Loading