1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

Compare commits

...

2 Commits

38 changed files with 1933 additions and 2647 deletions

View File

@ -22,7 +22,7 @@ jobs:
- uses: "pnpm/action-setup@v4.1.0" - uses: "pnpm/action-setup@v4.1.0"
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@v4.2.0" uses: "actions/setup-node@v4.4.0"
with: with:
node-version: "24.x" node-version: "24.x"
cache: "pnpm" cache: "pnpm"

View File

@ -11,6 +11,8 @@ jobs:
timeout-minutes: 30 timeout-minutes: 30
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
env: env:
CI: "1"
TZ: "Europe/Paris"
DO_NOT_TRACK: "1" DO_NOT_TRACK: "1"
TURBO_TELEMETRY_DISABLED: "1" TURBO_TELEMETRY_DISABLED: "1"
NEXT_TELEMETRY_DISABLED: "1" NEXT_TELEMETRY_DISABLED: "1"
@ -20,7 +22,7 @@ jobs:
- uses: "pnpm/action-setup@v4.1.0" - uses: "pnpm/action-setup@v4.1.0"
- name: "Setup Node.js" - name: "Setup Node.js"
uses: "actions/setup-node@v4.2.0" uses: "actions/setup-node@v4.4.0"
with: with:
node-version: "24.x" node-version: "24.x"
cache: "pnpm" cache: "pnpm"

View File

@ -1,4 +1,4 @@
import relativeLinksRule, { markdownIt } from "markdownlint-rule-relative-links" import relativeLinksRule from "markdownlint-rule-relative-links"
const config = { const config = {
config: { config: {
@ -11,9 +11,6 @@ const config = {
globs: ["**/*.md"], globs: ["**/*.md"],
ignores: ["**/node_modules"], ignores: ["**/node_modules"],
customRules: [relativeLinksRule], customRules: [relativeLinksRule],
markdownItFactory: () => {
return markdownIt
},
} }
export default config export default config

View File

@ -20,7 +20,7 @@
"scope": "typescriptreact", "scope": "typescriptreact",
"prefix": "rfcs", "prefix": "rfcs",
"body": [ "body": [
"import type { Meta, StoryObj } from \"@storybook/react\"", "import type { Meta, StoryObj } from \"@storybook/nextjs\"",
"", "",
"import { ${1:ComponentName} as ${1:ComponentName}Component } from \"./${1:ComponentName}.tsx\"", "import { ${1:ComponentName} as ${1:ComponentName}Component } from \"./${1:ComponentName}.tsx\"",
"", "",

View File

@ -9,6 +9,7 @@
"source.fixAll": "explicit", "source.fixAll": "explicit",
"source.organizeImports": "never" "source.organizeImports": "never"
}, },
"tailwindCSS.experimental.configFile": "./configs/config-tailwind/styles.css",
"tailwindCSS.experimental.classRegex": [ "tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] ["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]

View File

@ -32,7 +32,7 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv
### Prerequisites ### Prerequisites
- [Node.js](https://nodejs.org/) >= v24.0.0 [(`nvm install 24`)](https://nvm.sh) - [Node.js](https://nodejs.org/) >= v24.0.0 [(`nvm install 24`)](https://nvm.sh)
- [pnpm](https://pnpm.io/) v10.10.0 [(`npm install --global corepack@0.32.0 && corepack enable`)](https://github.com/nodejs/corepack) - [pnpm](https://pnpm.io/) v10.11.0 [(`npm install --global corepack@0.32.0 && corepack enable`)](https://github.com/nodejs/corepack)
- [Docker](https://www.docker.com/) - [Docker](https://www.docker.com/)
### Installation ### Installation

View File

@ -14,11 +14,8 @@ const config: StorybookConfig = {
], ],
addons: [ addons: [
"@chromatic-com/storybook", "@chromatic-com/storybook",
"@storybook/addon-essentials", "@storybook/addon-docs",
"@storybook/addon-storysource",
"@storybook/addon-a11y", "@storybook/addon-a11y",
"@storybook/addon-interactions",
"storybook-dark-mode",
], ],
framework: { framework: {
name: "@storybook/nextjs", name: "@storybook/nextjs",

View File

@ -2,18 +2,21 @@ import "@repo/config-tailwind/styles.css"
import "./storybook-css-overrides.css" import "./storybook-css-overrides.css"
import i18nMessages from "@repo/i18n/translations/en-US.json" import i18nMessages from "@repo/i18n/translations/en-US.json"
import { LOCALE_DEFAULT, TIMEZONE } from "@repo/utils/constants" import { LOCALE_DEFAULT, TIMEZONE } from "@repo/utils/constants"
import type { Preview } from "@storybook/react" import type { Preview } from "@storybook/nextjs"
import { NextIntlClientProvider } from "next-intl" import { NextIntlClientProvider } from "next-intl"
import { ThemeProvider as NextThemeProvider } from "next-themes" import { ThemeProvider as NextThemeProvider } from "next-themes"
import React from "react" import React from "react"
const preview: Preview = { const preview: Preview = {
globals: { initialGlobals: {
a11y: { a11y: {
manual: true, manual: true,
}, },
}, },
parameters: { parameters: {
docs: {
codePanel: true,
},
nextjs: { nextjs: {
appDirectory: true, appDirectory: true,
}, },

View File

@ -30,15 +30,10 @@
"@repo/config-typescript": "workspace:*", "@repo/config-typescript": "workspace:*",
"@chromatic-com/storybook": "catalog:", "@chromatic-com/storybook": "catalog:",
"@playwright/test": "catalog:", "@playwright/test": "catalog:",
"@storybook/addon-essentials": "catalog:", "@storybook/addon-docs": "catalog:",
"@storybook/addon-storysource": "catalog:",
"@storybook/addon-a11y": "catalog:", "@storybook/addon-a11y": "catalog:",
"@storybook/addon-interactions": "catalog:",
"@storybook/addon-themes": "catalog:", "@storybook/addon-themes": "catalog:",
"@storybook/blocks": "catalog:",
"@storybook/nextjs": "catalog:", "@storybook/nextjs": "catalog:",
"@storybook/react": "catalog:",
"@storybook/test": "catalog:",
"@storybook/test-runner": "catalog:", "@storybook/test-runner": "catalog:",
"@types/node": "catalog:", "@types/node": "catalog:",
"@types/react": "catalog:", "@types/react": "catalog:",
@ -48,7 +43,6 @@
"eslint": "catalog:", "eslint": "catalog:",
"start-server-and-test": "catalog:", "start-server-and-test": "catalog:",
"storybook": "catalog:", "storybook": "catalog:",
"storybook-dark-mode": "catalog:",
"postcss": "catalog:", "postcss": "catalog:",
"tailwindcss": "catalog:", "tailwindcss": "catalog:",
"@tailwindcss/postcss": "catalog:", "@tailwindcss/postcss": "catalog:",

View File

@ -1,4 +1,9 @@
import { Meta, Title, ColorPalette, ColorItem } from "@storybook/blocks" import {
Meta,
Title,
ColorPalette,
ColorItem,
} from "@storybook/addon-docs/blocks"
import tailwindConfig from "@repo/config-tailwind" import tailwindConfig from "@repo/config-tailwind"
<Meta title="Design System/Colors" /> <Meta title="Design System/Colors" />

View File

@ -1,4 +1,4 @@
FROM node:24.0.0-slim AS node-pnpm FROM node:24.1.0-slim AS node-pnpm
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
RUN npm install --global corepack@0.32.0 && corepack enable RUN npm install --global corepack@0.32.0 && corepack enable

View File

@ -21,6 +21,6 @@ export const config = {
* - _next/image (image optimization files) * - _next/image (image optimization files)
* - favicon.ico (favicon file) * - favicon.ico (favicon file)
*/ */
"/((?!api|_next/static|_next/image|images|favicon.ico).*)", "/((?!api|_next/static|_next/image|images|favicon.ico|robots.txt).*)",
], ],
} }

View File

@ -8,7 +8,6 @@ const nextConfig = {
images: { images: {
unoptimized: true, unoptimized: true,
}, },
compress: false,
eslint: { eslint: {
ignoreDuringBuilds: true, ignoreDuringBuilds: true,
}, },

View File

@ -12,9 +12,6 @@ export default typescriptESLint.config(
{ {
name: "config-eslint/nextjs", name: "config-eslint/nextjs",
settings: { settings: {
tailwindcss: {
callees: ["classNames", "cva"],
},
react: { react: {
version: "detect", version: "detect",
}, },

View File

@ -1,3 +1,5 @@
import type { Config } from "tailwindcss" import type { Config } from "tailwindcss"
export default Config declare const config: Config
export default config

View File

@ -1,10 +1,11 @@
@import "tailwindcss"; @import "tailwindcss";
@config "./tailwind.config.js"; @config "./tailwind.config.js";
@source "../../packages/ui"; @source "../../apps/website/app";
@source "../../packages/blog"; @source "../../apps/website/components";
@source "../../apps/website";
@source "../../apps/storybook/.storybook"; @source "../../apps/storybook/.storybook";
@source "../../packages/ui/src";
@source "../../packages/blog/src";
@import "@fontsource/montserrat/400.css" layer(base); @import "@fontsource/montserrat/400.css" layer(base);
@import "@fontsource/montserrat/500.css" layer(base); @import "@fontsource/montserrat/500.css" layer(base);

View File

@ -3,7 +3,7 @@
"version": "0.0.0-develop", "version": "0.0.0-develop",
"private": true, "private": true,
"type": "module", "type": "module",
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39", "packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
"engines": { "engines": {
"node": ">=24.0.0" "node": ">=24.0.0"
}, },

View File

@ -43,9 +43,8 @@
"@types/react": "catalog:", "@types/react": "catalog:",
"@types/react-dom": "catalog:", "@types/react-dom": "catalog:",
"@total-typescript/ts-reset": "catalog:", "@total-typescript/ts-reset": "catalog:",
"@storybook/blocks": "catalog:", "storybook": "catalog:",
"@storybook/react": "catalog:", "@storybook/nextjs": "catalog:",
"@storybook/test": "catalog:",
"eslint": "catalog:", "eslint": "catalog:",
"postcss": "catalog:", "postcss": "catalog:",
"tailwindcss": "catalog:", "tailwindcss": "catalog:",

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { BLOG_POST_MOCK } from "../BlogPost.ts" import { BLOG_POST_MOCK } from "../BlogPost.ts"
import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI.tsx" import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { BLOG_POST_MOCK } from "../BlogPost.ts" import { BLOG_POST_MOCK } from "../BlogPost.ts"
import { BlogPosts as BlogPostsComponent } from "../BlogPosts.tsx" import { BlogPosts as BlogPostsComponent } from "../BlogPosts.tsx"

View File

@ -45,9 +45,8 @@
"@types/react": "catalog:", "@types/react": "catalog:",
"@types/react-dom": "catalog:", "@types/react-dom": "catalog:",
"@total-typescript/ts-reset": "catalog:", "@total-typescript/ts-reset": "catalog:",
"@storybook/blocks": "catalog:", "storybook": "catalog:",
"@storybook/react": "catalog:", "@storybook/nextjs": "catalog:",
"@storybook/test": "catalog:",
"eslint": "catalog:", "eslint": "catalog:",
"postcss": "catalog:", "postcss": "catalog:",
"tailwindcss": "catalog:", "tailwindcss": "catalog:",

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { CurriculumVitae as CurriculumVitaeComponent } from "./CurriculumVitae.tsx" import { CurriculumVitae as CurriculumVitaeComponent } from "./CurriculumVitae.tsx"

View File

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { expect, fn, userEvent, within } from "@storybook/test" import { expect, fn, userEvent, within } from "storybook/test"
import { FaCheck } from "react-icons/fa" import { FaCheck } from "react-icons/fa"
import type { ButtonLinkProps } from "./Button.tsx" import type { ButtonLinkProps } from "./Button.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Link } from "./Link.tsx" import { Link } from "./Link.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Spinner } from "./Spinner.tsx" import { Spinner } from "./Spinner.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import type { TypographyProps } from "./Typography.tsx" import type { TypographyProps } from "./Typography.tsx"
import { Typography } from "./Typography.tsx" import { Typography } from "./Typography.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { ErrorNotFound as ErrorNotFoundComponent } from "./ErrorNotFound.tsx" import { ErrorNotFound as ErrorNotFoundComponent } from "./ErrorNotFound.tsx"

View File

@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { expect, fn, userEvent, within } from "@storybook/test" import { expect, fn, userEvent, within } from "storybook/test"
import { ErrorServer as ErrorServerComponent } from "./ErrorServer.tsx" import { ErrorServer as ErrorServerComponent } from "./ErrorServer.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { About as AboutComponent } from "./About.tsx" import { About as AboutComponent } from "./About.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Interests as InterestsComponent } from "./Interests.tsx" import { Interests as InterestsComponent } from "./Interests.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { OpenSource as OpenSourceComponent } from "./OpenSource.tsx" import { OpenSource as OpenSourceComponent } from "./OpenSource.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Portfolio as PortfolioComponent } from "./Portfolio.tsx" import { Portfolio as PortfolioComponent } from "./Portfolio.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Skills as SkillsComponent } from "./Skills.tsx" import { Skills as SkillsComponent } from "./Skills.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Footer as FooterComponent } from "./Footer.tsx" import { Footer as FooterComponent } from "./Footer.tsx"

View File

@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react" import type { Meta, StoryObj } from "@storybook/nextjs"
import { Header as HeaderComponent } from "./Header.tsx" import { Header as HeaderComponent } from "./Header.tsx"

View File

@ -13,7 +13,6 @@ export type Primitive =
export type Satisfies<U, T extends U> = T export type Satisfies<U, T extends U> = T
export type OmitStrict<T, K extends keyof T> = Omit<T, K> export type OmitStrict<T, K extends keyof T> = Omit<T, K>
export type PickStrict<T, K extends keyof T> = Pick<T, K>
export type OverrideStrict< export type OverrideStrict<
Type, Type,

4425
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -17,8 +17,8 @@ catalog:
"react": "19.1.0" "react": "19.1.0"
"react-dom": "19.1.0" "react-dom": "19.1.0"
"react-icons": "5.5.0" "react-icons": "5.5.0"
"@types/react": "19.1.3" "@types/react": "19.1.6"
"@types/react-dom": "19.1.3" "@types/react-dom": "19.1.5"
# Blog # Blog
"@giscus/react": "3.1.0" "@giscus/react": "3.1.0"
@ -35,25 +35,25 @@ catalog:
"@shikijs/rehype": "1.24.0" "@shikijs/rehype": "1.24.0"
# Markdown Lint # Markdown Lint
"markdownlint-cli2": "0.18.0" "markdownlint-cli2": "0.18.1"
"markdownlint": "0.38.0" "markdownlint": "0.38.0"
"markdownlint-rule-relative-links": "4.1.0" "markdownlint-rule-relative-links": "4.2.0"
# TypeScript # TypeScript
"typescript": "5.8.3" "typescript": "5.8.3"
"@total-typescript/ts-reset": "0.6.1" "@total-typescript/ts-reset": "0.6.1"
"@types/node": "22.15.17" "@types/node": "22.15.24"
# ESLint # ESLint
"globals": "16.1.0" "globals": "16.2.0"
"typescript-eslint": "8.32.0" "typescript-eslint": "8.33.0"
"@eslint/eslintrc": "3.3.1" "@eslint/eslintrc": "3.3.1"
"eslint": "9.26.0" "eslint": "9.27.0"
"eslint-config-conventions": "19.2.0" "eslint-config-conventions": "19.2.0"
"eslint-plugin-promise": "7.2.1" "eslint-plugin-promise": "7.2.1"
"eslint-plugin-unicorn": "59.0.1" "eslint-plugin-unicorn": "59.0.1"
"eslint-config-next": *next "eslint-config-next": *next
"eslint-plugin-import-x": "4.11.1" "eslint-plugin-import-x": "4.13.3"
# Prettier # Prettier
"prettier": "3.5.3" "prettier": "3.5.3"
@ -61,35 +61,29 @@ catalog:
"editorconfig-checker": "6.0.1" "editorconfig-checker": "6.0.1"
# Storybook # Storybook
"storybook": &storybook "8.6.12" "storybook": &storybook "9.0.0"
"@storybook/addon-essentials": *storybook "@storybook/addon-docs": *storybook
"@storybook/addon-storysource": *storybook
"@storybook/addon-a11y": *storybook "@storybook/addon-a11y": *storybook
"@storybook/addon-interactions": *storybook
"@storybook/blocks": *storybook
"@storybook/nextjs": *storybook "@storybook/nextjs": *storybook
"@storybook/react": *storybook
"@storybook/test": *storybook
"@storybook/addon-themes": *storybook "@storybook/addon-themes": *storybook
"@storybook/test-runner": "0.22.0" "@storybook/test-runner": "0.22.0"
"@chromatic-com/storybook": "3.2.6" "@chromatic-com/storybook": "4.0.0"
"chromatic": "11.28.2" "chromatic": "12.0.0"
"storybook-dark-mode": "4.0.2"
# Testing # Testing
"playwright": &playwright "1.52.0" "playwright": &playwright "1.52.0"
"@playwright/test": *playwright "@playwright/test": *playwright
"axe-playwright": "2.1.0" "axe-playwright": "2.1.0"
"start-server-and-test": "2.0.11" "start-server-and-test": "2.0.12"
# CSS # CSS
"postcss": "8.5.3" "postcss": "8.5.4"
"@tailwindcss/postcss": "4.1.6" "@tailwindcss/postcss": "4.1.8"
"@tailwindcss/typography": "0.5.16" "@tailwindcss/typography": "0.5.16"
"tailwindcss": "4.1.6" "tailwindcss": "4.1.8"
"tailwind-merge": "3.2.0" "tailwind-merge": "3.3.0"
"clsx": "2.1.1" "clsx": "2.1.1"
"cva": "1.0.0-beta.3" "cva": "1.0.0-beta.4"
"@fontsource/montserrat": "5.2.5" "@fontsource/montserrat": "5.2.5"
onlyBuiltDependencies: onlyBuiltDependencies: