mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 20:06:06 +02:00
* wip * wip * wip * wip * revert unnecessary changes * wip * refactor(frontend): enforce verbatimModuleSyntax * fix * refactor(frontend-shared): enforce verbatimModuleSyntax * wip * refactor(frontend-embed): enforce verbatimModuleSyntax * enforce consistent-type-imports * fix lint config * attemt to fix ci * fix lint * fix * fix * fix
47 lines
984 B
TypeScript
47 lines
984 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import type { StoryObj } from '@storybook/vue3';
|
|
import MkCondensedLine from './MkCondensedLine.vue';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkCondensedLine,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkCondensedLine>{{ props.text }}</MkCondensedLine>',
|
|
};
|
|
},
|
|
args: {
|
|
// @ts-expect-error text is for test
|
|
text: 'This is a condensed line.',
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkCondensedLine>;
|
|
export const ContainerIs100px = {
|
|
...Default,
|
|
decorators: [
|
|
() => ({
|
|
template: '<div style="width: 100px;"><story/></div>',
|
|
}),
|
|
],
|
|
// @ts-expect-error text is for test
|
|
} satisfies StoryObj<typeof MkCondensedLine>;
|