build(#10336): avoid intrinsic component names
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import cpu from './cpu.vue';
|
||||
import cpu_ from './cpu.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/cpu',
|
||||
component: cpu,
|
||||
} satisfies Meta<typeof cpu>;
|
||||
component: cpu_,
|
||||
} satisfies Meta<typeof cpu_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
cpu,
|
||||
cpu_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<cpu v-bind="$props" />',
|
||||
template: '<cpu_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof cpu>;
|
||||
} satisfies StoryObj<typeof cpu_>;
|
||||
export default meta;
|
||||
|
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import disk from './disk.vue';
|
||||
import disk_ from './disk.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/disk',
|
||||
component: disk,
|
||||
} satisfies Meta<typeof disk>;
|
||||
component: disk_,
|
||||
} satisfies Meta<typeof disk_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
disk,
|
||||
disk_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<disk v-bind="$props" />',
|
||||
template: '<disk_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof disk>;
|
||||
} satisfies StoryObj<typeof disk_>;
|
||||
export default meta;
|
||||
|
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import index from './index.vue';
|
||||
import index_ from './index.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/index',
|
||||
component: index,
|
||||
} satisfies Meta<typeof index>;
|
||||
component: index_,
|
||||
} satisfies Meta<typeof index_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
index,
|
||||
index_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<index v-bind="$props" />',
|
||||
template: '<index_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof index>;
|
||||
} satisfies StoryObj<typeof index_>;
|
||||
export default meta;
|
||||
|
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import mem from './mem.vue';
|
||||
import mem_ from './mem.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/mem',
|
||||
component: mem,
|
||||
} satisfies Meta<typeof mem>;
|
||||
component: mem_,
|
||||
} satisfies Meta<typeof mem_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
mem,
|
||||
mem_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<mem v-bind="$props" />',
|
||||
template: '<mem_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof mem>;
|
||||
} satisfies StoryObj<typeof mem_>;
|
||||
export default meta;
|
||||
|
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import net from './net.vue';
|
||||
import net_ from './net.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/net',
|
||||
component: net,
|
||||
} satisfies Meta<typeof net>;
|
||||
component: net_,
|
||||
} satisfies Meta<typeof net_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
net,
|
||||
net_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<net v-bind="$props" />',
|
||||
template: '<net_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof net>;
|
||||
} satisfies StoryObj<typeof net_>;
|
||||
export default meta;
|
||||
|
@@ -1,21 +1,21 @@
|
||||
import { Meta, StoryObj } from '@storybook/vue3';
|
||||
import pie from './pie.vue';
|
||||
import pie_ from './pie.vue';
|
||||
const meta = {
|
||||
title: 'widgets/server-metric/pie',
|
||||
component: pie,
|
||||
} satisfies Meta<typeof pie>;
|
||||
component: pie_,
|
||||
} satisfies Meta<typeof pie_>;
|
||||
export const Default = {
|
||||
render(args, { argTypes }) {
|
||||
return {
|
||||
components: {
|
||||
pie,
|
||||
pie_,
|
||||
},
|
||||
props: Object.keys(argTypes),
|
||||
template: '<pie v-bind="$props" />',
|
||||
template: '<pie_ v-bind="$props" />',
|
||||
};
|
||||
},
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
} satisfies StoryObj<typeof pie>;
|
||||
} satisfies StoryObj<typeof pie_>;
|
||||
export default meta;
|
||||
|
Reference in New Issue
Block a user