build(#10336): interactions
This commit is contained in:
parent
225a8e11a9
commit
356fd72603
8 changed files with 327 additions and 85 deletions
|
@ -5,9 +5,9 @@ import restart from 'vite-plugin-restart';
|
|||
const config = {
|
||||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
||||
addons: [
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-essentials',
|
||||
'@storybook/addon-interactions',
|
||||
'@storybook/addon-links',
|
||||
'@storybook/addon-storysource',
|
||||
'../node_modules/storybook-addon-misskey-theme',
|
||||
],
|
||||
|
@ -21,6 +21,9 @@ const config = {
|
|||
core: {
|
||||
disableTelemetry: true,
|
||||
},
|
||||
features: {
|
||||
interactionsDebugger: true,
|
||||
},
|
||||
async viteFinal(config, options) {
|
||||
return mergeConfig(config, {
|
||||
plugins: [
|
||||
|
|
|
@ -90,7 +90,9 @@ const preview = {
|
|||
popups: misskeyOS.popups,
|
||||
};
|
||||
},
|
||||
template: '<component :is="popup.component" v-for="popup in popups" :key="popup.id" v-bind="popup.props" v-on="popup.events"/><story />',
|
||||
template:
|
||||
'<component :is="popup.component" v-for="popup in popups" :key="popup.id" v-bind="popup.props" v-on="popup.events"/>' +
|
||||
'<story />',
|
||||
};
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue