debian-mirror-gitlab/storybook/config/preview.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
680 B
JavaScript
Raw Normal View History

2021-11-18 22:05:49 +05:30
import { withServer } from 'storybook-mirage'; // eslint-disable-line import/no-unresolved
2021-11-11 11:23:49 +05:30
import Vue from 'vue';
2021-11-18 22:05:49 +05:30
import { createMockServer } from 'test_helpers/mock_server';
import translateMixin from '~/vue_shared/translate';
2021-11-11 11:23:49 +05:30
2021-09-30 23:02:18 +05:30
const stylesheetsRequireCtx = require.context(
'../../app/assets/stylesheets',
true,
2022-10-11 01:57:18 +05:30
/(application|application_utilities|highlight\/themes\/white)\.scss$/,
2021-09-30 23:02:18 +05:30
);
2022-10-11 01:57:18 +05:30
window.gon = {
user_color_scheme: 'white',
};
2021-11-11 11:23:49 +05:30
translateMixin(Vue);
2021-09-30 23:02:18 +05:30
stylesheetsRequireCtx('./application.scss');
2021-11-11 11:23:49 +05:30
stylesheetsRequireCtx('./application_utilities.scss');
2022-10-11 01:57:18 +05:30
stylesheetsRequireCtx('./highlight/themes/white.scss');
2021-11-18 22:05:49 +05:30
export const decorators = [withServer(createMockServer)];