mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Add placeholders for moderation actions
This commit is contained in:
parent
3c291556e0
commit
99f40e28cb
6
web/components/chat/ChatModerationActionMenu.tsx
Normal file
6
web/components/chat/ChatModerationActionMenu.tsx
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
interface Props {}
|
||||||
|
|
||||||
|
export default function ChatModerationActionMenu(props: Props) {
|
||||||
|
return <div>Moderation popup menu goes here</div>;
|
||||||
|
}
|
||||||
6
web/components/chat/ChatModerationDetailsModal.tsx
Normal file
6
web/components/chat/ChatModerationDetailsModal.tsx
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
interface Props {}
|
||||||
|
|
||||||
|
export default function ChatModerationDetailsModal(props: Props) {
|
||||||
|
return <div>Moderation details modal goes here</div>;
|
||||||
|
}
|
||||||
27
web/stories/ChatModerationActionMenu.stories.tsx
Normal file
27
web/stories/ChatModerationActionMenu.stories.tsx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||||
|
import ChatModerationActionMenu from '../components/chat/ChatModerationActionMenu';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'owncast/Chat/Moderation menu',
|
||||||
|
component: ChatModerationActionMenu,
|
||||||
|
parameters: {
|
||||||
|
docs: {
|
||||||
|
description: {
|
||||||
|
component: `This should be a popup that is activated from a user's chat message. It should have actions to:
|
||||||
|
- Remove single message
|
||||||
|
- Ban user completely
|
||||||
|
- Open modal to see user details
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as ComponentMeta<typeof ChatModerationActionMenu>;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
const Template: ComponentStory<typeof ChatModerationActionMenu> = args => (
|
||||||
|
<ChatModerationActionMenu />
|
||||||
|
);
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
export const Basic = Template.bind({});
|
||||||
27
web/stories/ChatModerationDetailsModal.stories.tsx
Normal file
27
web/stories/ChatModerationDetailsModal.stories.tsx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||||||
|
import ChatModerationDetailsModal from '../components/chat/ChatModerationDetailsModal';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'owncast/Chat/Moderation modal',
|
||||||
|
component: ChatModerationDetailsModal,
|
||||||
|
parameters: {
|
||||||
|
docs: {
|
||||||
|
description: {
|
||||||
|
component: `This should be a modal that gives the moderator more details about the user such as:
|
||||||
|
- When the user was created
|
||||||
|
- Other names they've used
|
||||||
|
- If they're authenticated, and using what method (IndieAuth, FediAuth)
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
} as ComponentMeta<typeof ChatModerationDetailsModal>;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
const Template: ComponentStory<typeof ChatModerationDetailsModal> = args => (
|
||||||
|
<ChatModerationDetailsModal />
|
||||||
|
);
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
export const Basic = Template.bind({});
|
||||||
@ -1,17 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
||||||
import ChatModeratorNotification from '../components/chat/ChatModeratorNotification';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
title: 'owncast/Chat/Messages/Moderator notification',
|
|
||||||
component: ChatModeratorNotification,
|
|
||||||
parameters: {},
|
|
||||||
} as ComponentMeta<typeof ChatModeratorNotification>;
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
const Template: ComponentStory<typeof ChatModeratorNotification> = args => (
|
|
||||||
<ChatModeratorNotification />
|
|
||||||
);
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
||||||
export const Basic = Template.bind({});
|
|
||||||
Loading…
x
Reference in New Issue
Block a user