2023-11-07 12:35:05 +09:00
|
|
|
import { Meta } from '@storybook/react';
|
2022-09-07 09:00:28 +02:00
|
|
|
import { ChatSocialMessage } from './ChatSocialMessage';
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
const meta = {
|
2022-04-27 23:19:20 -07:00
|
|
|
title: 'owncast/Chat/Messages/Social-fediverse event',
|
|
|
|
component: ChatSocialMessage,
|
|
|
|
parameters: {},
|
2023-11-07 12:35:05 +09:00
|
|
|
} satisfies Meta<typeof ChatSocialMessage>;
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export default meta;
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const Follow = {
|
|
|
|
args: {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_FOLLOW',
|
|
|
|
body: '<p>james followed this live stream.</p>',
|
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
2022-10-05 22:43:24 -07:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const Like = {
|
|
|
|
args: {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_LIKE',
|
|
|
|
body: '<p>james liked that this stream went live.</p>',
|
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
2022-10-05 22:43:24 -07:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const Repost = {
|
|
|
|
args: {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
2022-10-05 22:43:24 -07:00
|
|
|
},
|
|
|
|
};
|
2023-02-19 14:57:44 -08:00
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const LongAccountName = {
|
|
|
|
args: {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
|
|
|
title: 'littlejimmywilliams@technology.biz.net.org.technology.gov',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
2023-02-19 14:57:44 -08:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2023-11-07 12:35:05 +09:00
|
|
|
export const InvalidAvatarImage = {
|
|
|
|
args: {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://xx.xx/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
2023-02-19 14:57:44 -08:00
|
|
|
},
|
|
|
|
};
|