mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
fix storybook to work with pinia and vue-i18n
This commit is contained in:
parent
30ed38b79a
commit
d3431ec776
@ -16,7 +16,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.v-application__wrap {
|
.v-application .v-application__wrap {
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,13 +1,20 @@
|
|||||||
import type { Preview } from "@storybook/vue3";
|
import type { Preview } from "@storybook/vue3";
|
||||||
import vuetify from '../renderer/vuetify'
|
import { createPinia } from 'pinia'
|
||||||
|
|
||||||
import { withVuetifyTheme } from './withVuetifyTheme.decorator';
|
import { withVuetifyTheme } from './withVuetifyTheme.decorator';
|
||||||
|
import i18n from '../renderer/i18n'
|
||||||
|
import CreateVuetify from '../renderer/vuetify'
|
||||||
// .storybook/preview.js
|
// .storybook/preview.js
|
||||||
|
|
||||||
import { setup } from '@storybook/vue3';
|
import { setup } from '@storybook/vue3';
|
||||||
|
|
||||||
setup((app) => {
|
setup((app) => {
|
||||||
// Registers your app's plugins into Storybook
|
// 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];
|
export const decorators = [withVuetifyTheme];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user