1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-12-08 00:44:30 +01:00

fix(resume): wrong dates

This commit is contained in:
Divlo 2022-05-03 10:05:11 +02:00
parent fb689c9bc1
commit 5d3a287b27
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
13 changed files with 8036 additions and 4800 deletions

View File

@ -1,5 +1,3 @@
version: '3.0'
services: services:
workspace: workspace:
build: build:

View File

@ -81,7 +81,7 @@ npm run dev
```sh ```sh
# Setup and run all the services for you # Setup and run all the services for you
docker-compose up --build docker compose up --build
``` ```
### Services started ### Services started

View File

@ -1,15 +1,15 @@
FROM node:16.14.2 AS dependencies FROM node:16.15.0 AS dependencies
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY ./package*.json ./ COPY ./package*.json ./
RUN npm install RUN npm install
FROM node:16.14.2 AS builder FROM node:16.15.0 AS builder
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY ./ ./ COPY ./ ./
COPY --from=dependencies /usr/src/app/node_modules ./node_modules COPY --from=dependencies /usr/src/app/node_modules ./node_modules
RUN npm run build RUN npm run build
FROM node:16.14.2 AS runner FROM node:16.15.0 AS runner
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV NODE_ENV=production ENV NODE_ENV=production
COPY --from=builder /usr/src/app/next.config.js ./next.config.js COPY --from=builder /usr/src/app/next.config.js ./next.config.js

View File

@ -1,4 +1,4 @@
import { useCallback, useEffect, useState } from 'react' import { useCallback, useEffect, useState, useRef } from 'react'
import useTranslation from 'next-translate/useTranslation' import useTranslation from 'next-translate/useTranslation'
import setLanguage from 'next-translate/setLanguage' import setLanguage from 'next-translate/setLanguage'
import classNames from 'classnames' import classNames from 'classnames'
@ -11,31 +11,37 @@ import { LanguageFlag } from './LanguageFlag'
export const Language: React.FC = () => { export const Language: React.FC = () => {
const { lang: currentLanguage } = useTranslation() const { lang: currentLanguage } = useTranslation()
const [hiddenMenu, setHiddenMenu] = useState(true) const [hiddenMenu, setHiddenMenu] = useState(true)
const languageClickRef = useRef<HTMLDivElement | null>(null)
const handleHiddenMenu = useCallback(() => { const handleHiddenMenu = useCallback(() => {
setHiddenMenu(!hiddenMenu) setHiddenMenu((oldHiddenMenu) => !oldHiddenMenu)
}, [hiddenMenu]) }, [])
useEffect(() => { useEffect(() => {
if (!hiddenMenu) { const handleClickEvent = (event: MouseEvent): void => {
window.document.addEventListener('click', handleHiddenMenu) if (languageClickRef.current == null || event.target == null) {
} else { return
window.document.removeEventListener('click', handleHiddenMenu) }
if (!languageClickRef.current.contains(event.target as Node)) {
setHiddenMenu(true)
}
} }
window.document.addEventListener('click', handleClickEvent)
return () => { return () => {
window.document.removeEventListener('click', handleHiddenMenu) return window.removeEventListener('click', handleClickEvent)
} }
}, [hiddenMenu, handleHiddenMenu]) }, [])
const handleLanguage = async (language: string): Promise<void> => { const handleLanguage = async (language: string): Promise<void> => {
await setLanguage(language) await setLanguage(language)
handleHiddenMenu()
} }
return ( return (
<div className='flex cursor-pointer flex-col items-center justify-center'> <div className='flex cursor-pointer flex-col items-center justify-center'>
<div <div
ref={languageClickRef}
data-cy='language-click' data-cy='language-click'
className='mr-5 flex items-center' className='mr-5 flex items-center'
onClick={handleHiddenMenu} onClick={handleHiddenMenu}

View File

@ -3,7 +3,9 @@ interface SocialMediaItemProps {
ariaLabel: string ariaLabel: string
} }
export const SocialMediaItem: React.FC<SocialMediaItemProps> = (props) => { export const SocialMediaItem: React.FC<
React.PropsWithChildren<SocialMediaItemProps>
> = (props) => {
const { link, ariaLabel, children } = props const { link, ariaLabel, children } = props
return ( return (

View File

@ -1,6 +1,6 @@
import { useEffect, useRef } from 'react' import { useEffect, useRef } from 'react'
export const RevealFade: React.FC = (props) => { export const RevealFade: React.FC<React.PropsWithChildren<{}>> = (props) => {
const { children } = props const { children } = props
const htmlElement = useRef<HTMLDivElement>(null) const htmlElement = useRef<HTMLDivElement>(null)

View File

@ -1,4 +1,3 @@
version: '3.0'
services: services:
divlo.fr: divlo.fr:
container_name: ${COMPOSE_PROJECT_NAME} container_name: ${COMPOSE_PROJECT_NAME}

File diff suppressed because it is too large Load Diff

View File

@ -5,15 +5,15 @@
"type": "module", "type": "module",
"scripts": {}, "scripts": {},
"dependencies": { "dependencies": {
"date-and-time": "2.3.0", "date-and-time": "2.3.1",
"ejs": "3.1.6", "ejs": "3.1.7",
"modern-normalize": "1.1.0" "modern-normalize": "1.1.0"
}, },
"devDependencies": { "devDependencies": {
"@parcel/config-default": "2.4.1", "@parcel/config-default": "2.5.0",
"@parcel/core": "2.4.1", "@parcel/core": "2.5.0",
"@parcel/optimizer-data-url": "2.4.1", "@parcel/optimizer-data-url": "2.5.0",
"@parcel/transformer-inline-string": "2.4.1", "@parcel/transformer-inline-string": "2.5.0",
"parcel": "2.4.1" "parcel": "2.5.0"
} }
} }

View File

@ -167,7 +167,8 @@
</p> </p>
<p class="text-muted clear-margin"> <p class="text-muted clear-margin">
<small> <small>
<%= degree.startDate %> - <%= degree.endDate %> <%= degree.startDate %> <%= degree.endDate != null
? " - " + degree.endDate : "" %>
</small> </small>
</p> </p>
</div> </div>

10682
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,52 +32,52 @@
"postinstall": "husky install" "postinstall": "husky install"
}, },
"dependencies": { "dependencies": {
"@fontsource/montserrat": "4.5.7", "@fontsource/montserrat": "4.5.10",
"@fortawesome/fontawesome-svg-core": "6.1.1", "@fortawesome/fontawesome-svg-core": "6.1.1",
"@fortawesome/free-brands-svg-icons": "6.1.1", "@fortawesome/free-brands-svg-icons": "6.1.1",
"@fortawesome/free-solid-svg-icons": "6.1.1", "@fortawesome/free-solid-svg-icons": "6.1.1",
"@fortawesome/react-fontawesome": "0.1.18", "@fortawesome/react-fontawesome": "0.1.18",
"classnames": "2.3.1", "classnames": "2.3.1",
"date-and-time": "2.3.0", "date-and-time": "2.3.1",
"gray-matter": "4.0.3", "gray-matter": "4.0.3",
"html-react-parser": "1.4.10", "html-react-parser": "1.4.12",
"next": "12.1.4", "next": "12.1.6",
"next-mdx-remote": "4.0.2", "next-mdx-remote": "4.0.3",
"next-pwa": "5.4.7", "next-pwa": "5.5.2",
"next-themes": "0.1.1", "next-themes": "0.1.1",
"next-translate": "1.4.0", "next-translate": "1.4.0",
"react": "17.0.2", "react": "18.1.0",
"react-dom": "17.0.2", "react-dom": "18.1.0",
"read-pkg": "7.1.0", "read-pkg": "7.1.0",
"rehype-raw": "6.1.1", "rehype-raw": "6.1.1",
"rehype-slug": "5.0.1", "rehype-slug": "5.0.1",
"remark-gfm": "3.0.1", "remark-gfm": "3.0.1",
"sharp": "0.30.3", "sharp": "0.30.4",
"shiki": "0.10.1", "shiki": "0.10.1",
"unified": "10.1.2", "unified": "10.1.2",
"unist-util-visit": "4.1.0", "unist-util-visit": "4.1.0",
"universal-cookie": "4.0.4" "universal-cookie": "4.0.4"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "16.2.3", "@commitlint/cli": "16.2.4",
"@commitlint/config-conventional": "16.2.1", "@commitlint/config-conventional": "16.2.4",
"@lhci/cli": "0.9.0", "@lhci/cli": "0.9.0",
"@saithodev/semantic-release-backmerge": "2.1.2", "@saithodev/semantic-release-backmerge": "2.1.2",
"@semantic-release/git": "10.0.1", "@semantic-release/git": "10.0.1",
"@tailwindcss/typography": "0.5.2", "@tailwindcss/typography": "0.5.2",
"@testing-library/jest-dom": "5.16.4", "@testing-library/jest-dom": "5.16.4",
"@testing-library/react": "12.1.4", "@testing-library/react": "13.1.1",
"@types/jest": "27.4.1", "@types/jest": "27.5.0",
"@types/node": "17.0.23", "@types/node": "17.0.31",
"@types/react": "17.0.43", "@types/react": "18.0.8",
"@types/unist": "2.0.6", "@types/unist": "2.0.6",
"@typescript-eslint/eslint-plugin": "5.18.0", "@typescript-eslint/eslint-plugin": "5.22.0",
"autoprefixer": "10.4.4", "autoprefixer": "10.4.7",
"cypress": "9.5.3", "cypress": "9.6.0",
"editorconfig-checker": "4.0.2", "editorconfig-checker": "4.0.2",
"eslint": "8.13.0", "eslint": "8.14.0",
"eslint-config-conventions": "2.0.0", "eslint-config-conventions": "2.0.0",
"eslint-config-next": "12.1.4", "eslint-config-next": "12.1.6",
"eslint-config-prettier": "8.5.0", "eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0", "eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.0.0", "eslint-plugin-prettier": "4.0.0",
@ -87,16 +87,16 @@
"husky": "7.0.4", "husky": "7.0.4",
"jest": "27.5.1", "jest": "27.5.1",
"jsonresume-theme-custom": "file:./jsonresume-theme-custom", "jsonresume-theme-custom": "file:./jsonresume-theme-custom",
"lint-staged": "12.3.7", "lint-staged": "12.4.1",
"markdownlint-cli": "0.31.1", "markdownlint-cli": "0.31.1",
"next-secure-headers": "2.2.0", "next-secure-headers": "2.2.0",
"postcss": "8.4.12", "postcss": "8.4.13",
"prettier": "2.6.2", "prettier": "2.6.2",
"prettier-plugin-tailwindcss": "0.1.8", "prettier-plugin-tailwindcss": "0.1.10",
"semantic-release": "19.0.2", "semantic-release": "19.0.2",
"start-server-and-test": "1.14.0", "start-server-and-test": "1.14.0",
"tailwindcss": "3.0.23", "tailwindcss": "3.0.24",
"typescript": "4.6.3", "typescript": "4.6.4",
"vercel": "24.0.1" "vercel": "24.2.0"
} }
} }

View File

@ -15,7 +15,6 @@
"education": [ "education": [
{ {
"startDate": "2022", "startDate": "2022",
"endDate": "2024",
"studyType": "Diplôme du Bachelor Universitaire de Technologie (BUT) Informatique", "studyType": "Diplôme du Bachelor Universitaire de Technologie (BUT) Informatique",
"institution": "IUT Robert Schuman à Illkirch-Graffenstaden", "institution": "IUT Robert Schuman à Illkirch-Graffenstaden",
"score": "En cours" "score": "En cours"
@ -41,8 +40,8 @@
"website": "https://www.nuitdelinfo.com/", "website": "https://www.nuitdelinfo.com/",
"name": "La Nuit de l'info 2021", "name": "La Nuit de l'info 2021",
"position": "Participation avec l'équipe <a href=\"https://www.nuitdelinfo.com/inscription/equipes/46\">Who are We</a>", "position": "Participation avec l'équipe <a href=\"https://www.nuitdelinfo.com/inscription/equipes/46\">Who are We</a>",
"startDate": "2021-07-07", "startDate": "2021-12-02",
"endDate": "2021-07-30" "endDate": "2021-12-03"
}, },
{ {
"summary": "Agent administratif en vue de faire face au sucroît temporaire d'activités liés à la numérisation des plans des postes sources <br /> actuellement sous format papier calque suite à la libération des locaux des archives.", "summary": "Agent administratif en vue de faire face au sucroît temporaire d'activités liés à la numérisation des plans des postes sources <br /> actuellement sous format papier calque suite à la libération des locaux des archives.",