fix storybook to work with pinia and vue-i18n

This commit is contained in:
Ulf Gebhardt 2023-11-17 11:02:30 +01:00
parent 30ed38b79a
commit d3431ec776
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 10 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export default {
</script>
<style>
.v-application__wrap {
.v-application .v-application__wrap {
min-height: unset;
}
</style>

View File

@ -1,13 +1,20 @@
import type { Preview } from "@storybook/vue3";
import vuetify from '../renderer/vuetify'
import { createPinia } from 'pinia'
import { withVuetifyTheme } from './withVuetifyTheme.decorator';
import i18n from '../renderer/i18n'
import CreateVuetify from '../renderer/vuetify'
// .storybook/preview.js
import { setup } from '@storybook/vue3';
setup((app) => {
// Registers your app's plugins into Storybook
app.use(vuetify);
// app.use(vuetify);
const pinia = createPinia()
app.use(pinia)
app.use(i18n)
app.use(CreateVuetify(i18n))
});
export const decorators = [withVuetifyTheme];