Skip to content

Commit

Permalink
refactor(#10336): module semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Mar 20, 2023
1 parent be7b71a commit 3907cb5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
22 changes: 13 additions & 9 deletions packages/frontend/.storybook/generate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,19 @@ function toStories(component: string): string {
/>,
]
: [],
<import-declaration
source={<literal value={`./${base}`} />}
specifiers={[
<import-default-specifier
local={identifier}
imported={identifier}
/>,
]}
/>,
...hasImplStories
? []
: [
<import-declaration
source={<literal value={`./${base}`} />}
specifiers={[
<import-default-specifier
local={identifier}
imported={identifier}
/>,
]}
/>,
],
<variable-declaration
kind="const"
declarations={[
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import MkAnalogClock from './MkAnalogClock.vue';
export const Default = {
render(args, { argTypes }) {
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/components/MkAnalogClock.stories.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Meta, Story } from '@storybook/vue3';
import MkAnalogClock from './MkAnalogClock.vue';
const meta = {
title: 'components/MkAnalogClock',
component: MkAnalogClock,
};
export default meta;
import MkAnalogClock from './MkAnalogClock.vue';
export const Default = {
render(args, { argTypes }) {
return {
Expand All @@ -18,4 +19,3 @@ export const Default = {
layout: 'fullscreen',
},
};
export default meta;
1 change: 1 addition & 0 deletions packages/frontend/src/components/MkButton.stories.impl.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import MkButton from './MkButton.vue';
export const Default = {
render(args, { argTypes }) {
return {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkButton.stories.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Meta, Story } from '@storybook/vue3';
import MkButton from './MkButton.vue';
const meta = {
title: 'components/MkButton',
component: MkButton,
};
export default meta;
import MkButton from './MkButton.vue';
export const Default = {
render(args, { argTypes }) {
return {
Expand Down

0 comments on commit 3907cb5

Please sign in to comment.