mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 11:12:00 +10:00
feat(homepage): add new sections to homepage
This commit is contained in:
21
libs/dto/src/contributors/index.ts
Normal file
21
libs/dto/src/contributors/index.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "nestjs-zod/z";
|
||||
|
||||
export const contributorSchema = z.object({
|
||||
id: z.number(),
|
||||
name: z.string(),
|
||||
url: z.string(),
|
||||
avatar: z.string(),
|
||||
});
|
||||
|
||||
export class ContributorDto extends createZodDto(contributorSchema) {}
|
||||
|
||||
export const languageSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
locale: z.string(),
|
||||
editorCode: z.string(),
|
||||
progress: z.number(),
|
||||
});
|
||||
|
||||
export class LanguageDto extends createZodDto(languageSchema) {}
|
||||
@ -1,4 +1,5 @@
|
||||
export * from "./auth";
|
||||
export * from "./contributors";
|
||||
export * from "./resume";
|
||||
export * from "./statistics";
|
||||
export * from "./user";
|
||||
|
||||
Reference in New Issue
Block a user