diff --git a/src/CV.tsx b/src/CV.tsx index 0c6a8f5..aea39a9 100644 --- a/src/CV.tsx +++ b/src/CV.tsx @@ -7,14 +7,7 @@ import SideProjects from './Components/SideProjects'; import Languages from './Components/Languages'; import Interests from './Components/Interests'; import Skills from './Components/Skills'; -import {Tag, TagCategory} from './Model/tag'; -import {Lang} from './Model/lang'; -import {EducationYear} from './Model/education'; -import {SideProjectCats} from './Model/side-project'; -import {JobAtCompany} from './Model/job-at-company'; -import {Interest} from './Model/interests'; -import {Profile} from './Model/profile'; -import { Me } from './Model/me'; +import {Me} from './Model/me'; function CV() { @@ -23,7 +16,7 @@ function CV() { const [cv, setCV] = useState(new Me()); useEffect(() => { - fetch("http://localhost:7070/api/me") + fetch(process.env.REACT_APP_API_BASE_URL + "/api/me") .then(res => res.json()) .then( (result: Me) => { diff --git a/src/Components/Education.tsx b/src/Components/Education.tsx index c45ee13..da95736 100644 --- a/src/Components/Education.tsx +++ b/src/Components/Education.tsx @@ -1,5 +1,5 @@ import React, {ComponentProps} from 'react'; -import {AcademicCapIcon, BriefcaseIcon} from '@heroicons/react/24/outline'; +import {AcademicCapIcon} from '@heroicons/react/24/outline'; import {EducationYear} from '../Model/education'; function Education(props: ComponentProps) { diff --git a/src/Components/Header.tsx b/src/Components/Header.tsx index c44a435..5173704 100644 --- a/src/Components/Header.tsx +++ b/src/Components/Header.tsx @@ -9,7 +9,7 @@ function Header(props: ComponentProps) { return (
- {profile.name}
@@ -31,9 +31,10 @@ function Header(props: ComponentProps) { + target="_blank" rel="noreferrer">Mon linkedin
Mon + + href={profile.source} target="_blank" rel="noreferrer">Mon code
diff --git a/src/Components/Interests.tsx b/src/Components/Interests.tsx index 122ca39..3ba000c 100644 --- a/src/Components/Interests.tsx +++ b/src/Components/Interests.tsx @@ -1,5 +1,5 @@ import React, {ComponentProps} from 'react'; -import {CalendarDaysIcon, FaceSmileIcon, LanguageIcon} from '@heroicons/react/24/outline'; +import {FaceSmileIcon} from '@heroicons/react/24/outline'; import {Interest} from '../Model/interests'; function Interests(props: ComponentProps) { diff --git a/src/Components/Job.tsx b/src/Components/Job.tsx index 55ed760..64a8cff 100644 --- a/src/Components/Job.tsx +++ b/src/Components/Job.tsx @@ -1,5 +1,4 @@ import React, {ComponentProps} from 'react'; -import {BriefcaseIcon} from '@heroicons/react/24/outline'; function Job(props: ComponentProps) { return (
diff --git a/src/Components/Languages.tsx b/src/Components/Languages.tsx index a243181..13d3bca 100644 --- a/src/Components/Languages.tsx +++ b/src/Components/Languages.tsx @@ -1,5 +1,5 @@ import React, {ComponentProps} from 'react'; -import {CalendarDaysIcon, LanguageIcon} from '@heroicons/react/24/outline'; +import {LanguageIcon} from '@heroicons/react/24/outline'; import {Lang} from '../Model/lang'; function Languages(props: ComponentProps) { diff --git a/src/Components/SideProjects.tsx b/src/Components/SideProjects.tsx index cf814a8..d371d95 100644 --- a/src/Components/SideProjects.tsx +++ b/src/Components/SideProjects.tsx @@ -1,7 +1,6 @@ import React, {ComponentProps} from 'react'; import {BeakerIcon} from '@heroicons/react/24/outline'; import {SideProject} from '../Model/side-project'; -import {each, keys, map} from 'lodash'; function SideProjects(props: ComponentProps) { return (
diff --git a/src/Components/Skills.tsx b/src/Components/Skills.tsx index e7c85ab..3d5be2a 100644 --- a/src/Components/Skills.tsx +++ b/src/Components/Skills.tsx @@ -1,7 +1,7 @@ import React, {ComponentProps} from 'react'; -import {CalendarDaysIcon, CheckBadgeIcon, LanguageIcon} from '@heroicons/react/24/outline'; -import {getTagColor, getTagTitle, Tag, TagCategory} from '../Model/tag'; -import {forIn, groupBy, map} from 'lodash'; +import {CheckBadgeIcon} from '@heroicons/react/24/outline'; +import {getTagColor, getTagTitle, Tag} from '../Model/tag'; +import {groupBy, map} from 'lodash'; function Skills(props: ComponentProps) { const tagsByCat = groupBy(props.tags, 'category') diff --git a/src/Model/tag.ts b/src/Model/tag.ts index ab14868..629b057 100644 --- a/src/Model/tag.ts +++ b/src/Model/tag.ts @@ -1,3 +1,17 @@ +export enum TagCategory { + FRONT = 'FRONT', + BACK = 'BACK', + MOBILE = 'MOBILE', + DB = 'DB', + OTHER = 'OTHER' +} + +export class Tag { + name: string = "" + workThing: Boolean = true + category!: TagCategory +} + export function getTagColor(t: Tag) { switch (t.category) { case TagCategory.FRONT: @@ -28,17 +42,3 @@ export function getTagTitle(cat: string) { } }; -export enum TagCategory { - FRONT = 'FRONT', - BACK = 'BACK', - MOBILE = 'MOBILE', - DB = 'DB', - OTHER = 'OTHER' -} - -export class Tag { - name: string = "" - workThing: Boolean = true - category!: TagCategory -} -