refactor
MkMisskeyFlavoredMarkdown -> MkMfm
This commit is contained in:
parent
0134e6e420
commit
cacdf9d939
@ -3,15 +3,14 @@
|
|||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
||||||
import { StoryObj } from '@storybook/vue3';
|
import { StoryObj } from '@storybook/vue3';
|
||||||
import { expect, within } from '@storybook/test';
|
import { expect, within } from '@storybook/test';
|
||||||
import MkMisskeyFlavoredMarkdown from './MkMisskeyFlavoredMarkdown.js';
|
import MkMfm from './MkMfm.js';
|
||||||
export const Default = {
|
export const Default = {
|
||||||
render(args) {
|
render(args) {
|
||||||
return {
|
return {
|
||||||
components: {
|
components: {
|
||||||
MkMisskeyFlavoredMarkdown,
|
MkMfm,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
return {
|
return {
|
||||||
@ -25,7 +24,7 @@ export const Default = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
template: '<MkMisskeyFlavoredMarkdown v-bind="props" />',
|
template: '<MkMfm v-bind="props" />',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
async play({ canvasElement, args }) {
|
async play({ canvasElement, args }) {
|
||||||
@ -54,25 +53,25 @@ export const Default = {
|
|||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
} satisfies StoryObj<typeof MkMisskeyFlavoredMarkdown>;
|
} satisfies StoryObj<typeof MkMfm>;
|
||||||
export const Plain = {
|
export const Plain = {
|
||||||
...Default,
|
...Default,
|
||||||
args: {
|
args: {
|
||||||
...Default.args,
|
...Default.args,
|
||||||
plain: true,
|
plain: true,
|
||||||
},
|
},
|
||||||
} satisfies StoryObj<typeof MkMisskeyFlavoredMarkdown>;
|
} satisfies StoryObj<typeof MkMfm>;
|
||||||
export const Nowrap = {
|
export const Nowrap = {
|
||||||
...Default,
|
...Default,
|
||||||
args: {
|
args: {
|
||||||
...Default.args,
|
...Default.args,
|
||||||
nowrap: true,
|
nowrap: true,
|
||||||
},
|
},
|
||||||
} satisfies StoryObj<typeof MkMisskeyFlavoredMarkdown>;
|
} satisfies StoryObj<typeof MkMfm>;
|
||||||
export const IsNotNote = {
|
export const IsNotNote = {
|
||||||
...Default,
|
...Default,
|
||||||
args: {
|
args: {
|
||||||
...Default.args,
|
...Default.args,
|
||||||
isNote: false,
|
isNote: false,
|
||||||
},
|
},
|
||||||
} satisfies StoryObj<typeof MkMisskeyFlavoredMarkdown>;
|
} satisfies StoryObj<typeof MkMfm>;
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { App } from 'vue';
|
import { App } from 'vue';
|
||||||
|
|
||||||
import Mfm from './global/MkMisskeyFlavoredMarkdown.js';
|
import Mfm from './global/MkMfm.js';
|
||||||
import MkA from './global/MkA.vue';
|
import MkA from './global/MkA.vue';
|
||||||
import MkAcct from './global/MkAcct.vue';
|
import MkAcct from './global/MkAcct.vue';
|
||||||
import MkAvatar from './global/MkAvatar.vue';
|
import MkAvatar from './global/MkAvatar.vue';
|
||||||
|
Loading…
Reference in New Issue
Block a user