mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-03 16:56:44 -06:00
9487856495
* wip * Update read-announcement.ts * wip * wip * wip * Update index.d.ts * wip * Create 1691649257651-refine-announcement.js * wip * wip * wip * wip * wip * wip * Update announcements.vue * wip * wip * Update announcements.vue * wip * Update announcements.vue * wip * Update misskey-js.api.md * Update users.ts * Create MkAnnouncementDialog.stories.impl.ts * wip * wip * Create AnnouncementService.ts
47 lines
937 B
TypeScript
47 lines
937 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
import { StoryObj } from '@storybook/vue3';
|
|
import MkAnnouncementDialog from './MkAnnouncementDialog.vue';
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
MkAnnouncementDialog,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...this.args,
|
|
};
|
|
},
|
|
},
|
|
template: '<MkAnnouncementDialog v-bind="props" />',
|
|
};
|
|
},
|
|
args: {
|
|
announcement: {
|
|
id: '1',
|
|
title: 'Title',
|
|
text: 'Text',
|
|
createdAt: new Date().toISOString(),
|
|
updatedAt: null,
|
|
icon: 'info',
|
|
imageUrl: null,
|
|
display: 'dialog',
|
|
needConfirmationToRead: false,
|
|
forYou: true,
|
|
},
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof MkAnnouncementDialog>;
|