mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 13:39:44 -08:00
0746783e02
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Mutasem <[email protected]>
69 lines
1.3 KiB
JavaScript
69 lines
1.3 KiB
JavaScript
import { setup } from '@storybook/vue3';
|
|
|
|
import './storybook.scss';
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
import ElementPlus from 'element-plus';
|
|
import lang from 'element-plus/lib/locale/lang/en';
|
|
|
|
import { N8nPlugin } from '../src/plugin';
|
|
|
|
setup((app) => {
|
|
library.add(fas);
|
|
|
|
app.use(ElementPlus, {
|
|
locale: lang,
|
|
});
|
|
|
|
app.use(N8nPlugin);
|
|
});
|
|
|
|
export const parameters = {
|
|
actions: {
|
|
argTypesRegex: '^on[A-Z].*',
|
|
},
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
backgrounds: {
|
|
default: '--color-background-xlight',
|
|
values: [
|
|
{
|
|
name: '--color-background-dark',
|
|
value: 'var(--color-background-dark)',
|
|
},
|
|
{
|
|
name: '--color-background-base',
|
|
value: 'var(--color-background-base)',
|
|
},
|
|
{
|
|
name: '--color-background-light',
|
|
value: 'var(--color-background-light)',
|
|
},
|
|
{
|
|
name: '--color-background-xlight',
|
|
value: 'var(--color-background-xlight)',
|
|
},
|
|
],
|
|
},
|
|
themes: {
|
|
list: [
|
|
{
|
|
name: 'dark',
|
|
class: 'theme-dark-beta',
|
|
color: '#000',
|
|
},
|
|
],
|
|
},
|
|
options: {
|
|
storySort: {
|
|
order: ['Docs', 'Styleguide', ['Colors Primitives', 'Colors Tokens', 'Font', 'Spacing', 'Border'], 'Atoms', 'Modules'],
|
|
},
|
|
},
|
|
};
|