Skip to content

Commit 3907cb5

Browse files
committed
refactor(#10336): module semantics
1 parent be7b71a commit 3907cb5

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

packages/frontend/.storybook/generate.tsx

+13-9
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,19 @@ function toStories(component: string): string {
7474
/>,
7575
]
7676
: [],
77-
<import-declaration
78-
source={<literal value={`./${base}`} />}
79-
specifiers={[
80-
<import-default-specifier
81-
local={identifier}
82-
imported={identifier}
83-
/>,
84-
]}
85-
/>,
77+
...hasImplStories
78+
? []
79+
: [
80+
<import-declaration
81+
source={<literal value={`./${base}`} />}
82+
specifiers={[
83+
<import-default-specifier
84+
local={identifier}
85+
imported={identifier}
86+
/>,
87+
]}
88+
/>,
89+
],
8690
<variable-declaration
8791
kind="const"
8892
declarations={[

packages/frontend/src/components/MkAnalogClock.stories.impl.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import MkAnalogClock from './MkAnalogClock.vue';
12
export const Default = {
23
render(args, { argTypes }) {
34
return {

packages/frontend/src/components/MkAnalogClock.stories.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Meta, Story } from '@storybook/vue3';
2-
import MkAnalogClock from './MkAnalogClock.vue';
32
const meta = {
43
title: 'components/MkAnalogClock',
54
component: MkAnalogClock,
65
};
6+
export default meta;
7+
import MkAnalogClock from './MkAnalogClock.vue';
78
export const Default = {
89
render(args, { argTypes }) {
910
return {
@@ -18,4 +19,3 @@ export const Default = {
1819
layout: 'fullscreen',
1920
},
2021
};
21-
export default meta;

packages/frontend/src/components/MkButton.stories.impl.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import MkButton from './MkButton.vue';
12
export const Default = {
23
render(args, { argTypes }) {
34
return {

packages/frontend/src/components/MkButton.stories.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Meta, Story } from '@storybook/vue3';
2-
import MkButton from './MkButton.vue';
32
const meta = {
43
title: 'components/MkButton',
54
component: MkButton,
65
};
76
export default meta;
7+
import MkButton from './MkButton.vue';
88
export const Default = {
99
render(args, { argTypes }) {
1010
return {

0 commit comments

Comments
 (0)