summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkAccountMoved.stories.impl.ts
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2023-04-13 12:20:39 +0900
committerGitHub <noreply@github.com>2023-04-13 12:20:39 +0900
commit9bb6c536c0cdf6c5fa5e9bda7ceba36f007ef4eb (patch)
tree43682137b867ebc3dddc3a12e3bb5f50098f4f56 /packages/frontend/src/components/MkAccountMoved.stories.impl.ts
parent[ci skip] improve readability (diff)
downloadmisskey-9bb6c536c0cdf6c5fa5e9bda7ceba36f007ef4eb.tar.gz
misskey-9bb6c536c0cdf6c5fa5e9bda7ceba36f007ef4eb.tar.bz2
misskey-9bb6c536c0cdf6c5fa5e9bda7ceba36f007ef4eb.zip
test(#10336): add `components/Mk[A-B].*` stories (#10475)
* chore(#10336): register snippets * test(#10336): add `components/Mk[A-B].*` stories * build: desynced lockfile * ci(#10336): preload assets * ci(#10336): use pull_request * build: update lockfile * fix: reactivity transform * chore: track upstream changes * refactor: avoid temporary previous tapping declarations * revert: avoid temporary previous tapping declarations This reverts commit e649b1b1e6771bee674f2dfb044e0efd72d0be5d. * test: flaky snapshots * style: import
Diffstat (limited to 'packages/frontend/src/components/MkAccountMoved.stories.impl.ts')
-rw-r--r--packages/frontend/src/components/MkAccountMoved.stories.impl.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkAccountMoved.stories.impl.ts b/packages/frontend/src/components/MkAccountMoved.stories.impl.ts
new file mode 100644
index 0000000000..bed9d94311
--- /dev/null
+++ b/packages/frontend/src/components/MkAccountMoved.stories.impl.ts
@@ -0,0 +1,33 @@
+/* eslint-disable @typescript-eslint/explicit-function-return-type */
+import { StoryObj } from '@storybook/vue3';
+import { userDetailed } from '../../.storybook/fakes';
+import MkAccountMoved from './MkAccountMoved.vue';
+export const Default = {
+ render(args) {
+ return {
+ components: {
+ MkAccountMoved,
+ },
+ setup() {
+ return {
+ args,
+ };
+ },
+ computed: {
+ props() {
+ return {
+ ...this.args,
+ };
+ },
+ },
+ template: '<MkAccountMoved v-bind="props" />',
+ };
+ },
+ args: {
+ username: userDetailed().username,
+ host: userDetailed().host,
+ },
+ parameters: {
+ layout: 'centered',
+ },
+} satisfies StoryObj<typeof MkAccountMoved>;