Add placeholder components to be worked on

This commit is contained in:
Gabe Kangas
2022-04-27 23:19:20 -07:00
parent 07c6faad60
commit 91b0db9c2e
53 changed files with 565 additions and 54 deletions

View File

@@ -0,0 +1,8 @@
interface Props {
content: string;
}
export default function CustomPageContent(props: Props) {
const { content } = props;
return <div>{content}</div>;
}

View File

@@ -0,0 +1,9 @@
import { ExternalAction } from '../interfaces/external-action.interface';
interface Props {
action: ExternalAction;
}
export default function ExternalActionButton(props: Props) {
return <div>External action button component goes here</div>;
}

View File

@@ -0,0 +1,7 @@
interface Props {
url: string;
}
export default function PageLogo(props: Props) {
return <div>Pimary logo component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { SocialLink } from '../interfaces/social-link.model';
interface Props {
links: SocialLink[];
}
export default function SocialLinks(props: Props) {
return <div>Social links component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function UserDropdown(props: Props) {
return <div>User settings dropdown component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
interface Props {
message: ChatMessage;
}
export default function ChatSystemMessage(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
interface Props {
messages: ChatMessage[];
}
export default function ChatContainer(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function ChatModerationNotification(props: Props) {
return <div>You are now a moderator notification component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
interface Props {
message: ChatMessage;
}
export default function ChatSocialMessage(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
interface Props {
message: ChatMessage;
}
export default function ChatSystemMessage(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function ChatTextField(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,9 @@
import { ChatMessage } from '../../interfaces/chat-message.model';
interface Props {
message: ChatMessage;
}
export default function ChatUserMessage(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -1,10 +1,10 @@
import { useRecoilValue } from 'recoil';
import { Layout, Row, Col } from 'antd';
import { useState } from 'react';
import { ServerStatus } from '../../models/ServerStatus';
import { ServerStatus } from '../../interfaces/server-status.model';
import { ServerStatusStore, serverStatusState } from '../stores/ServerStatusStore';
import { ClientConfigStore, clientConfigState } from '../stores/ClientConfigStore';
import { ClientConfig } from '../../models/ClientConfig';
import { ClientConfig } from '../../interfaces/client-config.model';
const { Header, Content, Footer, Sider } = Layout;

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function AuthModal(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function BrowserNotifyModal(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function FediAuthModal(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function FollowModal(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -0,0 +1,5 @@
interface Props {}
export default function IndieAuthModal(props: Props) {
return <div>Component goes here</div>;
}

View File

@@ -1,14 +1,25 @@
import { useEffect } from 'react';
import { ReactElement } from 'react-markdown/lib/react-markdown';
import { atom, useRecoilState } from 'recoil';
import { makeEmptyClientConfig, ClientConfig } from '../../models/ClientConfig';
import ClientConfigService from '../../services/ClientConfigService';
import { makeEmptyClientConfig, ClientConfig } from '../../interfaces/client-config.model';
import ClientConfigService from '../../services/client-config-service';
// The config that comes from the API.
export const clientConfigState = atom({
key: 'clientConfigState',
default: makeEmptyClientConfig(),
});
export const chatCurrentlyVisible = atom({
key: 'chatvisible',
default: false,
});
export const chatDislayName = atom({
key: 'chatDisplayName',
default: '',
});
export function ClientConfigStore(): ReactElement {
const [, setClientConfig] = useRecoilState<ClientConfig>(clientConfigState);

View File

@@ -1,8 +1,8 @@
import { useEffect } from 'react';
import { ReactElement } from 'react-markdown/lib/react-markdown';
import { atom, useRecoilState } from 'recoil';
import { ServerStatus, makeEmptyServerStatus } from '../../models/ServerStatus';
import ServerStatusService from '../../services/StatusService';
import { ServerStatus, makeEmptyServerStatus } from '../../interfaces/server-status.model';
import ServerStatusService from '../../services/status-service';
export const serverStatusState = atom({
key: 'serverStatusState',

View File

@@ -0,0 +1,9 @@
interface Props {
online: boolean;
viewers: number;
timer: string;
}
export default function StatusBar(props: Props) {
return <div>Stream status bar goes here</div>;
}