mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 18:21:28 +10:00
🚀 release v3.0.0
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
export * from './lib/atoms';
|
||||
export * from './lib/basics';
|
||||
export * from './lib/fonts';
|
||||
export * from './lib/integrations';
|
||||
export * from './lib/metadata';
|
||||
export * from './lib/resume';
|
||||
export * from './lib/section';
|
||||
export * from './lib/user';
|
||||
@ -1,4 +0,0 @@
|
||||
export type DateRange = {
|
||||
start?: string;
|
||||
end?: string;
|
||||
};
|
||||
@ -1,41 +0,0 @@
|
||||
export type Location = {
|
||||
address?: string;
|
||||
city?: string;
|
||||
region?: string;
|
||||
country?: string;
|
||||
postalCode?: string;
|
||||
};
|
||||
|
||||
export type Profile = {
|
||||
id?: string;
|
||||
network?: string;
|
||||
username?: string;
|
||||
url?: string;
|
||||
};
|
||||
|
||||
export type PhotoShape = 'square' | 'rounded-square' | 'circle';
|
||||
|
||||
export type PhotoFilters = {
|
||||
size: number;
|
||||
shape: PhotoShape;
|
||||
border: boolean;
|
||||
grayscale: boolean;
|
||||
};
|
||||
|
||||
export type Photo = {
|
||||
url?: string;
|
||||
visible: boolean;
|
||||
filters: PhotoFilters;
|
||||
};
|
||||
|
||||
export type Basics = {
|
||||
name?: string;
|
||||
photo?: Photo;
|
||||
email?: string;
|
||||
phone?: string;
|
||||
website?: string;
|
||||
headline?: string;
|
||||
summary?: string;
|
||||
location?: Location;
|
||||
profiles?: Profile[];
|
||||
};
|
||||
@ -1,18 +0,0 @@
|
||||
export enum FontCategory {
|
||||
'display' = 'display',
|
||||
'handwriting' = 'handwriting',
|
||||
'monospace' = 'monospace',
|
||||
'sans-serif' = 'sans-serif',
|
||||
'serif' = 'serif',
|
||||
}
|
||||
|
||||
export type Font = {
|
||||
family: string;
|
||||
variants: string[];
|
||||
subsets: string[];
|
||||
version: string;
|
||||
lastModified: string;
|
||||
files: Record<string, string>;
|
||||
category: FontCategory;
|
||||
kind: string;
|
||||
};
|
||||
@ -1 +0,0 @@
|
||||
export type Integration = 'linkedin' | 'json-resume' | 'reactive-resume';
|
||||
@ -1,32 +0,0 @@
|
||||
export type CustomCSS = {
|
||||
value: string;
|
||||
visible: boolean;
|
||||
};
|
||||
|
||||
export type Theme = {
|
||||
text: string;
|
||||
background: string;
|
||||
primary: string;
|
||||
};
|
||||
|
||||
export type TypeCategory = 'heading' | 'body';
|
||||
export type TypeProperty = 'family' | 'size';
|
||||
|
||||
export type Typography = {
|
||||
family: Record<TypeCategory, string>;
|
||||
size: Record<TypeCategory, number>;
|
||||
};
|
||||
|
||||
export type DateConfig = {
|
||||
format: string;
|
||||
};
|
||||
|
||||
export type Metadata = {
|
||||
css: CustomCSS;
|
||||
theme: Theme;
|
||||
layout: string[][][]; // page.column.section
|
||||
template: string;
|
||||
typography: Typography;
|
||||
date: DateConfig;
|
||||
language: string;
|
||||
};
|
||||
@ -1,19 +0,0 @@
|
||||
import { Basics } from './basics';
|
||||
import { Metadata } from './metadata';
|
||||
import { Section } from './section';
|
||||
import { User } from './user';
|
||||
|
||||
export type Resume = {
|
||||
id: number;
|
||||
shortId: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
image: string;
|
||||
user: User;
|
||||
basics: Basics;
|
||||
sections: Record<string, Section>;
|
||||
metadata: Metadata;
|
||||
public: boolean;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
};
|
||||
@ -1,139 +0,0 @@
|
||||
import { DateRange } from './atoms';
|
||||
import { Profile } from './basics';
|
||||
|
||||
export type WorkExperience = {
|
||||
id?: string;
|
||||
name: string;
|
||||
position: string;
|
||||
date?: DateRange;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Education = {
|
||||
id?: string;
|
||||
institution: string;
|
||||
degree: string;
|
||||
area?: string;
|
||||
score?: string;
|
||||
date?: DateRange;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
courses?: string[];
|
||||
};
|
||||
|
||||
export type Award = {
|
||||
id?: string;
|
||||
title: string;
|
||||
awarder: string;
|
||||
date?: string;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Certificate = {
|
||||
id?: string;
|
||||
name: string;
|
||||
issuer: string;
|
||||
date?: string;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Volunteer = {
|
||||
id?: string;
|
||||
organization: string;
|
||||
position: string;
|
||||
date?: DateRange;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Publication = {
|
||||
id?: string;
|
||||
name: string;
|
||||
publisher: string;
|
||||
date?: string;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Skill = {
|
||||
id?: string;
|
||||
name: string;
|
||||
level: string;
|
||||
levelNum: number;
|
||||
keywords?: string[];
|
||||
};
|
||||
|
||||
export type Language = {
|
||||
id?: string;
|
||||
name: string;
|
||||
level: string;
|
||||
levelNum: number;
|
||||
};
|
||||
|
||||
export type Interest = {
|
||||
id?: string;
|
||||
name: string;
|
||||
keywords?: string[];
|
||||
};
|
||||
|
||||
export type Project = {
|
||||
id?: string;
|
||||
name: string;
|
||||
description: string;
|
||||
date?: DateRange;
|
||||
url?: string;
|
||||
summary?: string;
|
||||
keywords?: string[];
|
||||
};
|
||||
|
||||
export type Reference = {
|
||||
id?: string;
|
||||
name: string;
|
||||
relationship: string;
|
||||
phone?: string;
|
||||
email?: string;
|
||||
summary?: string;
|
||||
};
|
||||
|
||||
export type Custom = {
|
||||
id?: string;
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
date?: DateRange;
|
||||
url?: string;
|
||||
level?: string;
|
||||
levelNum?: number;
|
||||
summary?: string;
|
||||
keywords?: string[];
|
||||
};
|
||||
|
||||
export type ListItem =
|
||||
| Award
|
||||
| Certificate
|
||||
| Education
|
||||
| Interest
|
||||
| Language
|
||||
| Profile
|
||||
| Project
|
||||
| Publication
|
||||
| Reference
|
||||
| Skill
|
||||
| Volunteer
|
||||
| WorkExperience
|
||||
| Custom;
|
||||
|
||||
export type SectionType = 'basic' | 'custom';
|
||||
|
||||
export type SectionPath = `sections.${string}`;
|
||||
|
||||
export type Section = {
|
||||
id?: string;
|
||||
name?: string;
|
||||
type?: SectionType;
|
||||
columns?: number;
|
||||
visible?: boolean;
|
||||
items?: ListItem[];
|
||||
};
|
||||
@ -1,14 +0,0 @@
|
||||
import { Resume } from './resume';
|
||||
|
||||
export type User = {
|
||||
id: number;
|
||||
name: string;
|
||||
username: string;
|
||||
email: string;
|
||||
password?: string;
|
||||
provider: 'email' | 'google';
|
||||
resetToken?: string;
|
||||
resumes: Resume[];
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
};
|
||||
Reference in New Issue
Block a user