Skip to content

Latest commit

 

History

History
100 lines (85 loc) · 1.56 KB

documentation.md

File metadata and controls

100 lines (85 loc) · 1.56 KB

Notion do projeto com algumas informações de desenvolvimento, links úteis e outras visões das tarefas

  1. Tipos 1.1 UsuarioProps
  2. Componentes
  3. Hooks
  4. Funções

Tipos

UsuarioProps

type usuarioProps = {
	nome: string,
	email: string,
	senha: string,
	foto?: string,
	turma: {
		id: string,
		nome: string,
		descricao: string
	},
	id: string,
	admin?: false
	}

ComentarioProps

type  ComentarioProps  = {
	videoId:string|undefined
	id:  string;
	texto:  string;
	editado:  boolean;
	createdAt:  Date;
	aluno: {
		id:  string;
		admin:  boolean;
		nome:  string;
		email:  string;
		senha:  string;
		foto:  string;
	};
	meuVote?:{
		vote:string,
	}
	upVotes:  number;
	downVotes:  number;
};

VideoProps

type  videoProps  = {
	id:string,
	nome:string,
	url:string,
	thumbUrl:string,
	descricao:string,
	createdAt:Date,
	duracao:string,
	dataPublicacao:Date,
	topico:string,
	tags:string[],
}

thumbnailProps

interface  thumbnailProps{
	video:videoProps
	hover?:boolean
}
 
  interface  thumbnailProps{
	video:videoProps
	hover?:boolean
}
 

VideoListProps

type videoListProps = {
    vertical?:boolean,
    videos:Array<videoProps> | undefined,
}

Componentes