2021-09-30 14:11:31 -04:00
|
|
|
import { withServer } from 'storybook-mirage'; // eslint-disable-line import/no-unresolved
|
2021-09-09 11:09:24 -04:00
|
|
|
import Vue from 'vue';
|
2021-09-30 14:11:31 -04:00
|
|
|
import { createMockServer } from 'test_helpers/mock_server';
|
|
|
|
import translateMixin from '~/vue_shared/translate';
|
2021-09-09 11:09:24 -04:00
|
|
|
|
2021-06-18 08:10:03 -04:00
|
|
|
const stylesheetsRequireCtx = require.context(
|
|
|
|
'../../app/assets/stylesheets',
|
|
|
|
true,
|
2021-09-09 11:09:24 -04:00
|
|
|
/(application|application_utilities)\.scss$/,
|
2021-06-18 08:10:03 -04:00
|
|
|
);
|
|
|
|
|
2021-09-09 11:09:24 -04:00
|
|
|
window.gon = {};
|
|
|
|
translateMixin(Vue);
|
|
|
|
|
2021-06-18 08:10:03 -04:00
|
|
|
stylesheetsRequireCtx('./application.scss');
|
2021-09-09 11:09:24 -04:00
|
|
|
stylesheetsRequireCtx('./application_utilities.scss');
|
2021-09-30 14:11:31 -04:00
|
|
|
|
|
|
|
export const decorators = [withServer(createMockServer)];
|