mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 09:43:09 +02:00
26 lines
652 B
TypeScript
26 lines
652 B
TypeScript
import { type Preview, setup } from '@storybook/vue3';
|
|
import locale from './locale';
|
|
import theme from './theme';
|
|
import '../src/style.scss';
|
|
|
|
localStorage.setItem("locale", JSON.stringify(locale));
|
|
Promise.all([
|
|
import('../src/components'),
|
|
import('../src/directives'),
|
|
import('../src/widgets'),
|
|
import('../src/scripts/theme').then(({ applyTheme }) => applyTheme(theme)),
|
|
]).then(([{ default: components }, { default: directives }, { default: widgets }]) => {
|
|
setup((app) => {
|
|
components(app);
|
|
directives(app);
|
|
widgets(app);
|
|
});
|
|
})
|
|
|
|
const preview = {
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies Preview;
|
|
|
|
export default preview;
|