7 Commits

Author SHA1 Message Date
Arnie f71449985d Use new cmd for nix builds
continuous-integration/drone/tag Build is passing
2024-10-21 14:22:40 +02:00
Arnie 438f83e217 Update CV
continuous-integration/drone/tag Build is failing
2024-10-21 11:37:59 +02:00
Arnie 1d67745c69 Flakeify 2024-10-21 11:19:42 +02:00
Arnie b183c239b3 Extract npm deps hash calculation to a separate command 2023-06-02 14:24:29 +02:00
Arnie 4b48f20371 Update vendor sha for golang 2023-06-02 14:24:14 +02:00
Arnie 5ef48d262b Automatically calculate npm deps and update it 2023-06-02 14:17:03 +02:00
Arnie 1d68d0f91f Update nix derivation 2023-06-02 13:55:58 +02:00
11 changed files with 383 additions and 290 deletions
+27 -3
View File
@@ -27,8 +27,20 @@ steps:
volumes: volumes:
- name: deps - name: deps
path: /nix/store path: /nix/store
environment:
DRONE_SSH_KEY:
from_secret: drone_ssh_key
GITEA_KNOWN_HOSTS:
from_secret: gitea_known_hosts
SSH_CONFIG:
from_secret: ssh_config
commands: commands:
- nix-build --argstr version ${DRONE_TAG} --argstr rev ${DRONE_COMMIT} --argstr repoUrl ${DRONE_REPO_LINK} - mkdir /root/.ssh
- echo "$DRONE_SSH_KEY" > /root/.ssh/id_ed25519
- chmod 400 /root/.ssh/id_ed25519
- echo "$SSH_CONFIG" > /root/.ssh/config
- echo "$GITEA_KNOWN_HOSTS" > /root/.ssh/known_hosts
- nix --extra-experimental-features nix-command --extra-experimental-features flakes build .#image
- name: publish - name: publish
image: docker:dind image: docker:dind
@@ -46,7 +58,7 @@ steps:
- sleep 5 - sleep 5
- ./result | docker load - ./result | docker load
- echo $$REGISTRY_PASSWORD | docker login -u $$REGISTRY_USER --password-stdin dr.cechis.cz - echo $$REGISTRY_PASSWORD | docker login -u $$REGISTRY_USER --password-stdin dr.cechis.cz
- docker tag cv:${DRONE_TAG} dr.cechis.cz/c3c/cv:${DRONE_TAG} - docker tag cv:current dr.cechis.cz/c3c/cv:${DRONE_TAG}
- docker push dr.cechis.cz/c3c/cv:${DRONE_TAG} - docker push dr.cechis.cz/c3c/cv:${DRONE_TAG}
depends_on: depends_on:
- build - build
@@ -85,8 +97,20 @@ services:
- name: dockersock - name: dockersock
path: /var/run path: /var/run
---
kind: secret
name: drone_ssh_key
data: 12kJDhu2Tb/25dBS+1HrXwn4tSuhD0S5F+z9WzIkNVl2MMbDmOlsV2XPhF1YgINsczyU7ceIWEp+tJI1X3+uMCDyuCU3zxVV4SOe3gc/2zdZ9fewz2uFxGDk6xHm/y1y9gmDfAt+//UjjjDgtGJKEKJX6r9D9diLyiF+P6m/zZCyRnTZv3SDvLv0PduOonEj/jWVVORjuBoKkshniygqqkfHL/v3TmIEvdZ0uQMCXEKKs0fEi+qOv2gpjt+tykHdlf57zSRUeDHIarKrlslGIae9HBq40CcVHLzbFMnCXpRA4wxxGbcsNnu0263fufZ169ef2Aqntgvqjxt7c0tppnI9GxMzCShBa3dHXh2mAs7irFaEAGJKtCXJ6ETMeS6/Li0Yyf1cNvW2dLVgtWGUggkW8Dbl0hD2ZqO26mu1lbxJ1v25JN0U6meNXhKFMxJDMSz+/kmPW6miMpJh3YSW7YIVZHcUrS4RoiJuYdOPD8OUcAJrHbCin3W78glqYSM1P5z0LowSlP12fNg0eYZ+5m1gML15j8DZ92PwKPKAM2WEVivfgs873cs3PVoeM8m9p3xd0qm0
---
kind: secret
name: gitea_known_hosts
data: r9Bi+OWiiOtFustCnv/oUn2ULPCHZwQKlhZ3IroztOaHsTy/RJiTsqm9Ntachs8by+skida+21YVry1oyabrbXcnClyejEuqgTKhB8fSm4Oy3GW35gZVoxRCOdYfteFgPAvX2iOpxzREwiOzhw9hcGSFNwZG5Iij+Ylp1/dD5fDc3SAczWE8M7A1mACwe2sBFv0EiG+SXOsHjH+n9P64EV52R4F7y+kSQmQ/Frjv1ZjtcbhVyP1LsLn3xhbotOI8ug0sxybRH2Mf48xC1wahdJJ54eoTDLFWBrOsopbZEVIC3wPHRSKjouSTPyzysb6QPnJdEYzQCwCNOJ4JNDrH5txVft7yLc6egyiIpiFE3IUfZHGWKeZiraqkUc3WjRIyX4+7v89HWmLlTPG08I3hBFR5aESu4NGPOp72fGjc3YKRze/nBuKDM5RXVH2AH3J9VLGD+6pfnllz9cgmHP3CEaS+8XC0rnOIpBKlNZWQJrApiWeBnLMdopy5E9ri1dPPmkvJjxaLyJ/23r35gz9RUUj/ws1AlGCIo3sM04XCXbLJbC1mgM1YDcRr6GMVztHMiMA4z0zCDzYHlQzTuSRPUl1Ygb/lyXBwVnvaajZDoyHju0D5Ie8kajcjlRxAMDcLZFlPTBJLuLp89WN9JEyKMss2L5kH0Ku7IDn3tZ7w4Ix9YJ4tN7WnjszZsks+lUbOwy5w4bKjiwwS7S9haiN2gMQ8TwCwzXIfynFS9c5xnOEzvDYTCjz04/1YbuSsYCM4HjR/ObpQWGo+1Zs5iUC9Lrhv9EaOO2q/8O7kpbqJURePN2F8f6lGRKe/aR8VGhrRrdd+YuKchL+BQaJK7q9d7m2ov3m+njNGO8/wzgUmB5GjALfYZ1nNVPta/+aMhVPrIc2iHMwlsGCx9pMClen0gtKic6MZhRWIZWxbxjoF4n9PNcBdcUW4/VvCLJRokAVHfxIH1/epH1hBrFRrDfI3hmFw8BXXIIEk4PDi1KydbJilbF3OvSOradcdzXlwIOOW2zqiq0tkeqjPrApdcCM6hkETkKgRfV9B9Ia9Ses3iy/v1bBN9Db8WjDu+KqoHfZrSkZGF2UlMjXQYLKoAPtH6ShlnaGHeeDZLk/+El6smOgeyUN6WJjKPPyBpSEZzbFfIZh7kkrqNmrkxh8ZdVlYloAuwzbCKzxCxHxDsGK5
---
kind: secret
name: ssh_config
data: 30Q8ofMygsDpqq4BcCtdv16/EWguc+mi2fYRszfZtmhe4PrIud4lxlOW5KJvyRVo7EZ2KzlZhHmGWGJKyA==
--- ---
kind: signature kind: signature
hmac: 8db89c3a13466a543ec8edb72923c4985aae191b0b6de8c324bb24116a7684e9 hmac: 3d73eb044fd8a4fa566e7c19e0302b6db2e888f29784353de22a3937f49bdfec
... ...
+1
View File
@@ -12,6 +12,7 @@
# Frontend # Frontend
/app/frontend/node_modules /app/frontend/node_modules
/app/frontend/dist
/app/frontend/.pnp /app/frontend/.pnp
/app/frontend/.pnp.js /app/frontend/.pnp.js
/app/frontend/.dependency-graph /app/frontend/.dependency-graph
-24
View File
@@ -1,24 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
+79 -25
View File
@@ -11,28 +11,19 @@ const messages = defineMessages({
defaultMessage: "Skills", defaultMessage: "Skills",
id: "Experience.skills", id: "Experience.skills",
}, },
yourpass: {
defaultMessage: "July 2021 - Present ({count} years)",
id: "Experience.yourpass",
},
yoursystem: {
defaultMessage: "February 2016 - December 2021 (5 years)",
id: "Experience.yoursystem",
},
past: {
defaultMessage: "Birth - February 2016",
id: "Experience.past",
},
pastDescription: {
defaultMessage:
"Working on smaller projects such as chats, forum based websites, web based presentations, most notably a system for handling the driver training center and driving school agenda... Tinkering...",
id: "Experience.pastDescription",
},
}); });
const approxCurrentYears = Math.round( const approxCurrentYears = {
InvestBay: Math.round(
(Date.now() - new Date("2024-02-01").getTime()) / 1000 / 60 / 60 / 24 / 365
),
YourPass: Math.round(
(Date.now() - new Date("2021-06-01").getTime()) / 1000 / 60 / 60 / 24 / 365 (Date.now() - new Date("2021-06-01").getTime()) / 1000 / 60 / 60 / 24 / 365
); ),
YourSystemSysOps: Math.round(
(Date.now() - new Date("2022-01-01").getTime()) / 1000 / 60 / 60 / 24 / 365
),
};
const yourpassSkills = [ const yourpassSkills = [
"DevOps", "DevOps",
@@ -79,13 +70,40 @@ const Experience: React.FC = () => {
return ( return (
<> <>
<Headline level={3}>INVESTBAY s.r.o.</Headline>
<SubHeadline level={4}>DevOps Architect</SubHeadline>
<Content>
<Paragraph>
{intl.formatMessage(
{
defaultMessage: "February 2024 - Present",
id: "Experience.investbay",
},
{
// not used atm
count: approxCurrentYears.InvestBay,
}
)}
</Paragraph>
<Paragraph>
<strong>{intl.formatMessage(messages.skills)}:</strong>{" "}
{yourpassSkills.join(" · ")}
</Paragraph>
</Content>
<Headline level={3}>YOUR PASS s.r.o.</Headline> <Headline level={3}>YOUR PASS s.r.o.</Headline>
<SubHeadline level={4}>DevOps Engineer</SubHeadline> <SubHeadline level={4}>DevOps Engineer</SubHeadline>
<Content> <Content>
<Paragraph> <Paragraph>
{intl.formatMessage(messages.yourpass, { {intl.formatMessage(
count: approxCurrentYears, {
})} defaultMessage: "July 2021 - Present ({count} years)",
id: "Experience.yourpass",
},
{
count: approxCurrentYears.YourPass,
}
)}
</Paragraph> </Paragraph>
<Paragraph> <Paragraph>
<strong>{intl.formatMessage(messages.skills)}:</strong>{" "} <strong>{intl.formatMessage(messages.skills)}:</strong>{" "}
@@ -96,10 +114,35 @@ const Experience: React.FC = () => {
<Spacer /> <Spacer />
<Headline level={3}>YOUR SYSTEM s.r.o.</Headline> <Headline level={3}>YOUR SYSTEM s.r.o.</Headline>
<SubHeadline level={4}>SysOps</SubHeadline>
<Content>
<Paragraph>
{intl.formatMessage(
{
defaultMessage: "January 2022 - Present ({count} years)",
id: "Experience.yoursystem",
},
{
count: approxCurrentYears.YourSystemSysOps,
}
)}
</Paragraph>
<Paragraph>
<strong>{intl.formatMessage(messages.skills)}:</strong>{" "}
{yoursystemSkills.join(" · ")}
</Paragraph>
</Content>
<SubHeadline level={4}>Lead Developer/Architect</SubHeadline> <SubHeadline level={4}>Lead Developer/Architect</SubHeadline>
<Content> <Content>
<Paragraph>{intl.formatMessage(messages.yoursystem)}</Paragraph> <Paragraph>
{intl.formatMessage({
defaultMessage: "February 2016 - December 2021 (5 years)",
id: "Experience.yoursystem",
})}
</Paragraph>
<Paragraph> <Paragraph>
<strong>{intl.formatMessage(messages.skills)}:</strong>{" "} <strong>{intl.formatMessage(messages.skills)}:</strong>{" "}
{yoursystemSkills.join(" · ")} {yoursystemSkills.join(" · ")}
@@ -110,8 +153,19 @@ const Experience: React.FC = () => {
<SubHeadline level={4}>Developer</SubHeadline> <SubHeadline level={4}>Developer</SubHeadline>
<Content> <Content>
<Paragraph>{intl.formatMessage(messages.past)}</Paragraph> <Paragraph>
<Paragraph>{intl.formatMessage(messages.pastDescription)}</Paragraph> {intl.formatMessage({
defaultMessage: "Birth - February 2016",
id: "Experience.past",
})}
</Paragraph>
<Paragraph>
{intl.formatMessage({
defaultMessage:
"Working on smaller projects such as chats, forum based websites, web based presentations, most notably a system for handling the driver training center and driving school agenda... Tinkering...",
id: "Experience.pastDescription",
})}
</Paragraph>
</Content> </Content>
</> </>
); );
+41 -49
View File
@@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { defineMessages, useIntl } from "react-intl"; import { useIntl } from "react-intl";
import { SubHeadline } from "../common/Headline"; import { SubHeadline } from "../common/Headline";
import { List, ListItem } from "../common/List"; import { List, ListItem } from "../common/List";
@@ -7,43 +7,6 @@ import { Spacer } from "../common/Spacer";
import { Paragraph } from "../common/Text"; import { Paragraph } from "../common/Text";
import Skill from "./Skill"; import Skill from "./Skill";
const messages = defineMessages({
backendDevelopment: {
defaultMessage:
"Deep knowledge of backend operations, mostly supporting web based applications using various technologies, programming languages and frameworks.",
id: "Skills.backendDevelopment",
},
backendDevelopmentAdditional: {
defaultMessage:
"In recent years, the main focus was on Go to write tooling and backend services.",
id: "Skills.backendDevelopment",
},
devops: {
defaultMessage:
"Several years of experience developing, maintaining and adhering to the DevOps practices to streamline organization's processes across both backend and frontend development.",
id: "Skills.devops",
},
frontendDevelopment: {
defaultMessage:
"Extensive experience in frontend development spanning back to the early 2000s.",
id: "Skills.frontendDevelopment",
},
infrastructureOperations: {
defaultMessage:
"Throughout my career, I have gained valuable experience in developing and maintaining high-load infrastructures over several years.",
id: "Skills.infrastructureOperations",
},
infrastructureOperationsAdditional: {
defaultMessage:
"Following the OCI (Open Container Initiative) and leveraging Docker and Kubernetes to create highly available deployments, primarily on the AWS platform, was a challenging and enjoyable experience, that has greatly enhanced my skills in this area.",
id: "Skills.infrastructureOperationsAdditional",
},
otherNotableSkills: {
defaultMessage: "Other notable skills",
id: "Skills.otherNotableSkills",
},
});
type OtherSkill = { type OtherSkill = {
title: string; title: string;
description?: string; description?: string;
@@ -51,13 +14,13 @@ type OtherSkill = {
const otherSkills: OtherSkill[] = [ const otherSkills: OtherSkill[] = [
{ {
title: "Primary languages", title: "Strong proficiency in",
description: "Go, Typescript (and Javascript)", description: "Go, Typescript (and Javascript), Bash, IaaC tools",
}, },
{ {
title: "Infrastructure based skills", title: "Infrastructure related skills",
description: description:
"Kubernetes and AWS EKS, Containerized applications, Linux system administration, Amazon Web Services - good understanding of Networking, RDS, Queues", "Kubernetes and AWS EKS, Containerized applications, Linux system administration, Amazon Web Services - good understanding of Networking, RDS, Queues. Notable experience with GCP/Azure.",
}, },
{ {
title: "Databases", title: "Databases",
@@ -88,21 +51,50 @@ const Skills: React.FC = () => {
return ( return (
<> <>
<Skill title="DevOps">{intl.formatMessage(messages.devops)}</Skill> <Skill title="DevOps">
{intl.formatMessage({
defaultMessage:
"Several years of experience developing, maintaining and adhering to the DevOps practices to streamline organization's processes across both backend and frontend development.",
id: "Skills.devops",
})}
</Skill>
<Skill title="Front-End Development"> <Skill title="Front-End Development">
{intl.formatMessage(messages.frontendDevelopment)} {intl.formatMessage({
defaultMessage:
"Extensive experience in frontend development spanning back to the early 2000s.",
id: "Skills.frontendDevelopment",
})}
</Skill> </Skill>
<Skill title="Back-End Development"> <Skill title="Back-End Development">
{intl.formatMessage(messages.backendDevelopment)} {intl.formatMessage({
{intl.formatMessage(messages.backendDevelopmentAdditional)} defaultMessage:
"Deep knowledge of backend operations, mostly supporting web based applications using various technologies, programming languages and frameworks.",
id: "Skills.backendDevelopment",
})}
{intl.formatMessage({
defaultMessage:
"In recent years, the main focus was on Go to write tooling and backend services.",
id: "Skills.backendDevelopment",
})}
</Skill> </Skill>
<Skill title="Infrastructure operations"> <Skill title="Infrastructure operations">
{intl.formatMessage(messages.infrastructureOperations)} {intl.formatMessage({
{intl.formatMessage(messages.infrastructureOperationsAdditional)} defaultMessage:
"Throughout my career, I have gained valuable experience in developing and maintaining high-load infrastructures over several years.",
id: "Skills.infrastructureOperations",
})}
{intl.formatMessage({
defaultMessage:
"Following the OCI (Open Container Initiative) and leveraging Docker and Kubernetes to create highly available deployments, primarily on the AWS platform, was a challenging and enjoyable experience, that has greatly enhanced my skills in this area.",
id: "Skills.infrastructureOperationsAdditional",
})}
</Skill> </Skill>
<Spacer withDivider /> <Spacer withDivider />
<SubHeadline level={4}> <SubHeadline level={4}>
{intl.formatMessage(messages.otherNotableSkills)} {intl.formatMessage({
defaultMessage: "Other notable skills",
id: "Skills.otherNotableSkills",
})}
</SubHeadline> </SubHeadline>
<List> <List>
{otherSkills.map((s) => ( {otherSkills.map((s) => (
@@ -1,5 +1,5 @@
import React, { useEffect, useRef } from "react"; import React, { useEffect, useRef } from "react";
import { defineMessages, useIntl } from "react-intl"; import { useIntl } from "react-intl";
import { CONTACT_EMAIL, CONTACT_PHONE } from "../../config/environment"; import { CONTACT_EMAIL, CONTACT_PHONE } from "../../config/environment";
import { Contact } from "../common/Contact"; import { Contact } from "../common/Contact";
@@ -7,29 +7,6 @@ import { List, ListItem } from "../common/List";
import { Spacer } from "../common/Spacer"; import { Spacer } from "../common/Spacer";
import NavigationHeadline from "./NavigationHeadline"; import NavigationHeadline from "./NavigationHeadline";
const messages = defineMessages({
certifications: {
defaultMessage: "Certifications",
id: "Navigation.certifications",
},
contact: {
defaultMessage: "Contact",
id: "Navigation.contact",
},
experience: {
defaultMessage: "Experience",
id: "Navigation.experience",
},
objective: {
defaultMessage: "Objective",
id: "Navigation.objective",
},
topSkills: {
defaultMessage: "Top Skills",
id: "Navigation.topSkills",
},
});
const getTopOffset = (input: HTMLElement) => { const getTopOffset = (input: HTMLElement) => {
let el: HTMLElement | Element | null = input; let el: HTMLElement | Element | null = input;
let o = 0; let o = 0;
@@ -110,7 +87,10 @@ const MainNavigation: React.FC = () => {
return ( return (
<div ref={ref}> <div ref={ref}>
<NavigationHeadline> <NavigationHeadline>
{intl.formatMessage(messages.contact)} {intl.formatMessage({
defaultMessage: "Contact",
id: "Navigation.contact",
})}
</NavigationHeadline> </NavigationHeadline>
<Spacer /> <Spacer />
@@ -118,28 +98,40 @@ const MainNavigation: React.FC = () => {
<Contact email={CONTACT_EMAIL} phoneNumber={CONTACT_PHONE} /> <Contact email={CONTACT_EMAIL} phoneNumber={CONTACT_PHONE} />
<NavigationHeadline href="#objective"> <NavigationHeadline href="#objective">
{intl.formatMessage(messages.objective)} {intl.formatMessage({
defaultMessage: "Objective",
id: "Navigation.objective",
})}
</NavigationHeadline> </NavigationHeadline>
<NavigationHeadline href="#skills"> <NavigationHeadline href="#skills">
{intl.formatMessage(messages.topSkills)} {intl.formatMessage({
defaultMessage: "Top Skills",
id: "Navigation.topSkills",
})}
</NavigationHeadline> </NavigationHeadline>
<Spacer /> <Spacer />
<List> <List>
<ListItem>DevOps</ListItem> <ListItem>DevOps</ListItem>
<ListItem>Front-End Development</ListItem>
<ListItem>Back-End Development</ListItem>
<ListItem>Kubernetes</ListItem> <ListItem>Kubernetes</ListItem>
<ListItem>Typescript</ListItem> <ListItem>Linux</ListItem>
<ListItem>Go</ListItem> <ListItem>Go</ListItem>
<ListItem>Typescript</ListItem>
<ListItem>Back-End Development</ListItem>
<ListItem>Front-End Development</ListItem>
<ListItem>Scripting:</ListItem>
<ListItem>Bash, Python, Lua</ListItem>
</List> </List>
<Spacer spacing={0} withDivider /> <Spacer spacing={0} withDivider />
<NavigationHeadline> <NavigationHeadline>
{intl.formatMessage(messages.certifications)} {intl.formatMessage({
defaultMessage: "Certifications",
id: "Navigation.certifications",
})}
</NavigationHeadline> </NavigationHeadline>
<Spacer /> <Spacer />
@@ -152,7 +144,10 @@ const MainNavigation: React.FC = () => {
<Spacer spacing={0} withDivider /> <Spacer spacing={0} withDivider />
<NavigationHeadline href="#experience"> <NavigationHeadline href="#experience">
{intl.formatMessage(messages.experience)} {intl.formatMessage({
defaultMessage: "Experience",
id: "Navigation.experience",
})}
</NavigationHeadline> </NavigationHeadline>
</div> </div>
); );
+15 -19
View File
@@ -1,6 +1,6 @@
import styled from "@emotion/styled"; import styled from "@emotion/styled";
import React from "react"; import React from "react";
import { defineMessages, useIntl } from "react-intl"; import { useIntl } from "react-intl";
import { Experience, Skills, Summary } from "../components/CV"; import { Experience, Skills, Summary } from "../components/CV";
import MainLayout from "../components/Layout/MainLayout"; import MainLayout from "../components/Layout/MainLayout";
@@ -11,21 +11,6 @@ import { Headline, SubHeadline } from "../components/common/Headline";
import { Spacer } from "../components/common/Spacer"; import { Spacer } from "../components/common/Spacer";
import { CONTACT_EMAIL, CONTACT_PHONE, POSITION } from "../config/environment"; import { CONTACT_EMAIL, CONTACT_PHONE, POSITION } from "../config/environment";
const messages = defineMessages({
experienceTitle: {
defaultMessage: "Experience",
id: "Dashboard.experienceTitle",
},
location: {
defaultMessage: "Central Bohemia, Czechia",
id: "Dashboard.location",
},
skillsTitle: {
defaultMessage: "Skills",
id: "Dashboard.skillsTitle",
},
});
const HiddenWithNav = styled("div")({ const HiddenWithNav = styled("div")({
display: "none", display: "none",
[hideNavigationMQ]: { [hideNavigationMQ]: {
@@ -41,7 +26,10 @@ const Dashboard: React.FC = () => {
<Headline level={1}>Lukáš Čech</Headline> <Headline level={1}>Lukáš Čech</Headline>
<SubHeadline level={2}>{POSITION}</SubHeadline> <SubHeadline level={2}>{POSITION}</SubHeadline>
<SubHeadline level={4}> <SubHeadline level={4}>
{intl.formatMessage(messages.location)} {intl.formatMessage({
defaultMessage: "Central Bohemia, Czechia",
id: "Dashboard.location",
})}
</SubHeadline> </SubHeadline>
<HiddenWithNav> <HiddenWithNav>
@@ -58,7 +46,12 @@ const Dashboard: React.FC = () => {
<div id="skills" /> <div id="skills" />
<Spacer withDivider /> <Spacer withDivider />
<Headline level={2}>{intl.formatMessage(messages.skillsTitle)}</Headline> <Headline level={2}>
{intl.formatMessage({
defaultMessage: "Skills",
id: "Dashboard.skillsTitle",
})}
</Headline>
<Spacer /> <Spacer />
<Content> <Content>
<Skills /> <Skills />
@@ -68,7 +61,10 @@ const Dashboard: React.FC = () => {
<Spacer withDivider /> <Spacer withDivider />
<Headline level={2}> <Headline level={2}>
{intl.formatMessage(messages.experienceTitle)} {intl.formatMessage({
defaultMessage: "Experience",
id: "Dashboard.experienceTitle",
})}
</Headline> </Headline>
<Spacer /> <Spacer />
<Content> <Content>
+7 -9
View File
@@ -1,16 +1,9 @@
import styled from "@emotion/styled"; import styled from "@emotion/styled";
import React from "react"; import React from "react";
import { defineMessages, useIntl } from "react-intl"; import { useIntl } from "react-intl";
import { Link } from "../components/common/Link"; import { Link } from "../components/common/Link";
const messages = defineMessages({
notFound: {
defaultMessage: "Nothing to see here",
id: "Router.NotFound",
},
});
const Root = styled("div")({ const Root = styled("div")({
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
@@ -25,7 +18,12 @@ const NotFound = () => {
return ( return (
<Root> <Root>
<p>{intl.formatMessage(messages.notFound)}</p> <p>
{intl.formatMessage({
defaultMessage: "Nothing to see here",
id: "Router.NotFound",
})}
</p>
<Link to="/">Go home</Link> <Link to="/">Go home</Link>
</Root> </Root>
); );
-128
View File
@@ -1,128 +0,0 @@
{ system ? builtins.currentSystem
, version ? "latest"
, rev ? ""
, commitTime ? "1970-01-01T00:00:00+00:00"
, repoUrl ? ""
}:
let
nixpkgs = builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/4ecab3273592f27479a583fb6d975d4aba3486fe.tar.gz";
sha256 = "10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf";
};
pkgs = import nixpkgs { inherit system; };
devshell = import
(pkgs.fetchFromGitHub {
owner = "numtide";
repo = "devshell";
rev = "5143ea68647c4cf5227e4ad2100db6671fc4c369";
sha256 = "sha256-9goJTd05yOyD/McaMqZ4BUB8JW+mZMnZQJZ7VQ6C/Lw=";
})
{ nixpkgs = pkgs; };
nodejs = pkgs.nodejs_20;
go = pkgs.go_1_20;
dream2nix = pkgs.dream2nix;
buildGoModule = pkgs.buildGoModule.override { inherit go; };
golangci-lint = pkgs.golangci-lint.override { inherit buildGoModule; };
src = pkgs.lib.cleanSource ./.;
uiSrc = pkgs.lib.cleanSource ./app/frontend;
package = pkgs.buildNpmPackage {
name = "ui";
buildInputs = [
nodejs
];
pname = "ui";
src = uiSrc;
buildPhase = ''
npm run check
npm run build
mkdir $out
cp -a dist $out
'';
npmInstallFlags = "--no-audit --no-progress --no-fund";
npmDepsHash = "sha256-p4rTpy0t8aajbubvtF1TA83/FFqvfKEOPBb5T0ZRfQY=";
npmPackFlags = [ "--ignore-scripts" ];
};
server = buildGoModule {
inherit src version;
pname = "cv";
postPatch = ''
rm -rf app/server/internal/files/data/public
mkdir -p app/server/internal/files/data/public
touch app/server/internal/files/data/public/.gitkeep
cp -Tr ${package}/dist/ app/server/internal/files/data/public/
chmod +w -R app/server/internal/files/data/public
sed -i 's#<script#<script nonce="{{ .CspNonce }}"#g' app/server/internal/files/data/public/index.html
'';
CGO_ENABLED = 0;
ldflags = "-s -w -X gopkg.c3c.cz/cv/app/server/internal/version.Tag=${version} -X gopkg.c3c.cz/cv/app/server/internal/version.Commit=${rev} -X gopkg.c3c.cz/cv/app/server/internal/version.commitTime=${commitTime} -X gopkg.c3c.cz/cv/app/server/internal/version.repoUrl=${repoUrl}";
subPackages = [ "app/server" ];
vendorSha256 = "sha256-BkwXD8n62+p639vTLwXpCiY8cqYtCjWxaa5tuw78u5g=";
overrideModAttrs = (_: {
impureEnvVars = pkgs.lib.fetchers.proxyImpureEnvVars ++ [ "GIT_PROXY_COMMAND" "SOCKS_SERVER" "GOPROXY" ];
});
};
in
{
image = pkgs.dockerTools.streamLayeredImage {
name = "cv";
tag = version;
config = {
Env = [ "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ];
Entrypoint = [ "${server}/bin/server" ];
};
};
shell = devshell.mkShell {
devshell = {
name = "c3c-cv";
packages = [
go
golangci-lint
nodejs
# keep pinned nixpkgs so they are not garbage collected
pkgs.path
];
};
commands = [
{
name = "lint";
help = "run golangci-lint and npm run check";
command = ''
cd ''$PRJ_ROOT
golangci-lint run --sort-results --out-format tab
npm --prefix app/frontend run check
'';
}
{
name = "fmt";
help = "Format and fix found issues";
command = ''
cd ''$PRJ_ROOT
golangci-lint run --sort-results --out-format tab --fix
npm --prefix app/frontend run fix
'';
}
{
name = "dev";
help = "Starts the javascript project in dev";
command = ''
npm --prefix ''$PRJ_ROOT/app/frontend run dev
'';
}
];
};
}
Generated
+67
View File
@@ -0,0 +1,67 @@
{
"nodes": {
"devshell": {
"inputs": {
"nixpkgs": [
"nix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1728330715,
"narHash": "sha256-xRJ2nPOXb//u1jaBnDP56M7v5ldavjbtR6lfGqSvcKg=",
"owner": "numtide",
"repo": "devshell",
"rev": "dd6b80932022cea34a019e2bb32f6fa9e494dfef",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "devshell",
"type": "github"
}
},
"nix": {
"inputs": {
"devshell": "devshell",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1729027123,
"narHash": "sha256-LjD40ya8efdhxQ26Zy/LkLDOriZIHJZqutAorvPIka8=",
"ref": "refs/heads/main",
"rev": "d3596fc7e933c171a284771f7f72342d33ad6508",
"revCount": 5,
"type": "git",
"url": "ssh://git@git.c3c.cz/C3C/nix"
},
"original": {
"type": "git",
"url": "ssh://git@git.c3c.cz/C3C/nix"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1728538411,
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nix": "nix"
}
}
},
"root": "root",
"version": 7
}
+118
View File
@@ -0,0 +1,118 @@
{
inputs = {
nix.url = "git+ssh://git@git.c3c.cz/C3C/nix";
};
outputs =
{ self, nix }:
{
formatter = nix.formatter;
packages = nix.lib.forAllSystems (pkgs:
let
version = "rev-${self.shortRev or self.dirtyShortRev}";
package = builtins.fromJSON (builtins.readFile ./app/frontend/package.json);
in
rec {
ui = pkgs.buildNpmPackage {
inherit version;
pname = "cv";
src = ./app/frontend;
npmInstallFlags = "--no-audit --no-progress --no-fund";
npmDepsHash = "sha256-p4rTpy0t8aajbubvtF1TA83/FFqvfKEOPBb5T0ZRfQY=";
npmPackFlags = [ "--ignore-scripts" ];
};
server = pkgs.buildGoModule {
inherit version;
pname = "cv";
CGO_ENABLED = 0;
src = ./.;
subPackages = [ "app/server" ];
postPatch = ''
rm -rf app/server/internal/files/data/public
mkdir -p app/server/internal/files/data/public
touch app/server/internal/files/data/public/.gitkeep
cp -Tr ${ui}/lib/node_modules/${package.name}/dist app/server/internal/files/data/public/
chmod +w -R app/server/internal/files/data/public
sed -i 's#<script#<script nonce="{{ .CspNonce }}"#g' app/server/internal/files/data/public/index.html
'';
ldflags = [
"-s"
"-w"
"-X gopkg.c3c.cz/cv/app/server/internal/version.Tag=${version}"
"-X gopkg.c3c.cz/cv/app/server/internal/version.Commit=${self.rev or self.dirtyRev}"
"-X gopkg.c3c.cz/cv/app/server/internal/version.commitTime=${builtins.toString (self.lastModified or 0)}"
];
vendorHash = "sha256-44xcyVk5KcurQLkVJv1MeAj+Pfcu53664pvVgHdyv3E=";
};
image = pkgs.dockerTools.streamLayeredImage {
name = "cv";
tag = "current";
config = {
Env = [ "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ];
Entrypoint = [ "${server}/bin/server" ];
};
};
}
);
devShells = nix.lib.forAllSystems (pkgs: {
default = pkgs.devshell.mkShell {
name = "c3c-cv";
packages = [
pkgs.go
pkgs.nodejs_22
];
commands = [
{
name = "lint";
help = "run linters";
command = ''
${nix.lib.cd_root}
${pkgs.golangci-lint}/bin/golangci-lint run --sort-results --out-format tab --config ${nix.lib.golangci-config-file} ./...
npm --prefix app/frontend run check
'';
}
{
name = "fix";
help = "format & fix found issues";
command = ''
${nix.lib.cd_root}
nix fmt .
${pkgs.golangci-lint}/bin/golangci-lint run --sort-results --out-format tab --config ${nix.lib.golangci-config-file} --fix --issues-exit-code 0 ./...
npm --prefix app/frontend run fix
'';
}
{
name = "update-npm-deps-hash";
help = "Calculates and updates the npmDepsHash in default.nix";
command = ''
${nix.lib.cd_root}
echo "Calculating npm deps"
# STDERR is poluted by the installed nodules, silencing
HASH=''$(${pkgs.prefetch-npm-deps}/bin/prefetch-npm-deps ''$PRJ_ROOT/app/frontend/package-lock.json 2> /dev/null)
[[ ''$HASH = sha256* ]] && echo "Hash is ''$HASH"
[[ ''$HASH != sha256* ]] && echo "Failed" && exit 137
# Replace the first occurence of npmDepsHash with the new calculated hash in this file
sed -i "0,/npmDepsHash =/{s@npmDepsHash = .*@npmDepsHash = \"''$HASH\";@}" ./flake.nix
'';
}
{
name = "dev";
help = "Starts the javascript project in dev";
command = ''
npm --prefix ''$PRJ_ROOT/app/frontend run dev
'';
}
];
};
});
};
}