build(#10336): interactions

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-03-25 23:32:47 +09:00
parent 225a8e11a9
commit 356fd72603
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
8 changed files with 327 additions and 85 deletions

View file

@ -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: [

View file

@ -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 />',
};
},
],