mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
Compare commits
No commits in common. "12f1d6cdf282fef65ad4f478d8531b30b1b265a8" and "6853ac68843676eee3ab487b88cc1fed43b8a6cb" have entirely different histories.
12f1d6cdf2
...
6853ac6884
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -40,4 +40,4 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4.1.7"
|
- uses: "actions/checkout@v4.1.7"
|
||||||
|
|
||||||
- uses: "wagoid/commitlint-github-action@v6.1.2"
|
- uses: "wagoid/commitlint-github-action@v6.0.1"
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: "Import GPG key"
|
- name: "Import GPG key"
|
||||||
uses: "crazy-max/ghaction-import-gpg@v6.1.0"
|
uses: "crazy-max/ghaction-import-gpg@v6.0.0"
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
git_user_signingkey: true
|
git_user_signingkey: true
|
||||||
|
1
.vscode/extensions.json
vendored
1
.vscode/extensions.json
vendored
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
|
"Vercel.turbo-vsc",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
|
2
.vscode/react.code-snippets
vendored
2
.vscode/react.code-snippets
vendored
@ -22,7 +22,7 @@
|
|||||||
"body": [
|
"body": [
|
||||||
"import type { Meta, StoryObj } from \"@storybook/react\"",
|
"import type { Meta, StoryObj } from \"@storybook/react\"",
|
||||||
"",
|
"",
|
||||||
"import { ${1:ComponentName} as ${1:ComponentName}Component } from \"./${1:ComponentName}.tsx\"",
|
"import { ${1:ComponentName} as ${1:ComponentName}Component } from \"./${1:ComponentName}\"",
|
||||||
"",
|
"",
|
||||||
"const meta = {",
|
"const meta = {",
|
||||||
" title: \"${1:ComponentName}\",",
|
" title: \"${1:ComponentName}\",",
|
||||||
|
@ -32,7 +32,7 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv
|
|||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- [Node.js](https://nodejs.org/) >= 22.0.0
|
- [Node.js](https://nodejs.org/) >= 22.0.0
|
||||||
- [pnpm](https://pnpm.io/) >= 9.10.0
|
- [pnpm](https://pnpm.io/) >= 9.5.0
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
@ -40,9 +40,6 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv
|
|||||||
# Clone the repository
|
# Clone the repository
|
||||||
git clone git@github.com:theoludwig/theoludwig.git
|
git clone git@github.com:theoludwig/theoludwig.git
|
||||||
|
|
||||||
# Go to the project root
|
|
||||||
cd theoludwig
|
|
||||||
|
|
||||||
# Configure environment variables
|
# Configure environment variables
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
cp apps/website/.env.example apps/website/.env
|
cp apps/website/.env.example apps/website/.env
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import "@repo/config-tailwind/styles.css"
|
import "@repo/config-tailwind/styles.css"
|
||||||
import { defaultTranslationValues } from "@repo/i18n/config"
|
import { defaultTranslationValues, Locale } from "@repo/i18n/config"
|
||||||
import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json"
|
import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json"
|
||||||
import type { Locale } from "@repo/utils/constants"
|
|
||||||
import type { Preview } from "@storybook/react"
|
import type { Preview } from "@storybook/react"
|
||||||
import { NextIntlClientProvider } from "next-intl"
|
import { NextIntlClientProvider } from "next-intl"
|
||||||
import { ThemeProvider as NextThemeProvider } from "next-themes"
|
import { ThemeProvider as NextThemeProvider } from "next-themes"
|
||||||
|
@ -5,6 +5,7 @@ import { checkA11y, configureAxe, injectAxe } from "axe-playwright"
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api
|
* See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api
|
||||||
|
* to learn more about the test-runner hooks API.
|
||||||
*/
|
*/
|
||||||
const config: TestRunnerConfig = {
|
const config: TestRunnerConfig = {
|
||||||
async preVisit(page) {
|
async preVisit(page) {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
"@repo/config-tailwind": "workspace:*",
|
"@repo/config-tailwind": "workspace:*",
|
||||||
"@repo/i18n": "workspace:*",
|
"@repo/i18n": "workspace:*",
|
||||||
"@repo/ui": "workspace:*",
|
"@repo/ui": "workspace:*",
|
||||||
"@repo/utils": "workspace:*",
|
|
||||||
"@repo/blog": "workspace:*",
|
"@repo/blog": "workspace:*",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"next-intl": "catalog:",
|
"next-intl": "catalog:",
|
||||||
|
@ -2,7 +2,7 @@ import sharedConfig from "@repo/config-tailwind"
|
|||||||
|
|
||||||
/** @type {Pick<import('tailwindcss').Config, "presets" | "content">} */
|
/** @type {Pick<import('tailwindcss').Config, "presets" | "content">} */
|
||||||
const config = {
|
const config = {
|
||||||
content: [".storybook/preview.tsx", "../../packages/*/src/**/*.tsx"],
|
content: [".storybook/preview.tsx", "../../packages/**/*.tsx"],
|
||||||
presets: [sharedConfig],
|
presets: [sharedConfig],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
TZ=UTC
|
|
||||||
HOSTNAME=0.0.0.0
|
HOSTNAME=0.0.0.0
|
||||||
PORT=3000
|
PORT=3000
|
||||||
NEXT_TELEMETRY_DISABLED=1
|
NEXT_TELEMETRY_DISABLED=1
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": ["@repo/eslint-config/nextjs/.eslintrc.json"],
|
"extends": ["@repo/eslint-config/nextjs/.eslintrc.json"],
|
||||||
|
"ignorePatterns": ["public/"],
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": ["*.ts", "*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
|
@ -2,13 +2,11 @@ FROM node:22.4.1-slim AS node-pnpm
|
|||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
ENV TURBO_TELEMETRY_DISABLED=1
|
|
||||||
ENV DO_NOT_TRACK=1
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
FROM node-pnpm AS builder
|
FROM node-pnpm AS builder
|
||||||
|
RUN pnpm install --global turbo@2.0.10
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN pnpm install --global turbo@2.1.1
|
|
||||||
RUN turbo prune @repo/website --docker
|
RUN turbo prune @repo/website --docker
|
||||||
|
|
||||||
FROM node-pnpm AS installer
|
FROM node-pnpm AS installer
|
||||||
|
@ -3,7 +3,7 @@ import { notFound } from "next/navigation"
|
|||||||
|
|
||||||
import { getBlogPostBySlug, getBlogPosts } from "@repo/blog"
|
import { getBlogPostBySlug, getBlogPosts } from "@repo/blog"
|
||||||
import { BlogPostUI } from "@repo/blog/BlogPostUI"
|
import { BlogPostUI } from "@repo/blog/BlogPostUI"
|
||||||
import type { Locale } from "@repo/utils/constants"
|
import type { Locale } from "@repo/i18n/config"
|
||||||
import { unstable_setRequestLocale } from "next-intl/server"
|
import { unstable_setRequestLocale } from "next-intl/server"
|
||||||
|
|
||||||
interface BlogPostPageProps {
|
interface BlogPostPageProps {
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import { getBlogPosts } from "@repo/blog"
|
import { getBlogPosts } from "@repo/blog"
|
||||||
import { BlogPosts } from "@repo/blog/BlogPosts"
|
import { BlogPosts } from "@repo/blog/BlogPosts"
|
||||||
import { type LocaleProps } from "@repo/i18n/config"
|
import { LOCALE_DEFAULT, type LocaleProps } from "@repo/i18n/config"
|
||||||
import { MainLayout } from "@repo/ui/Layout/MainLayout"
|
import { MainLayout } from "@repo/ui/Layout/MainLayout"
|
||||||
import {
|
import {
|
||||||
Section,
|
Section,
|
||||||
SectionDescription,
|
SectionDescription,
|
||||||
SectionTitle,
|
SectionTitle,
|
||||||
} from "@repo/ui/Layout/Section"
|
} from "@repo/ui/Layout/Section"
|
||||||
import { LOCALE_DEFAULT } from "@repo/utils/constants"
|
|
||||||
import type { Metadata } from "next"
|
import type { Metadata } from "next"
|
||||||
import { unstable_setRequestLocale } from "next-intl/server"
|
import { unstable_setRequestLocale } from "next-intl/server"
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import "@repo/config-tailwind/styles.css"
|
import "@repo/config-tailwind/styles.css"
|
||||||
import type { LocaleProps } from "@repo/i18n/config"
|
import type { Locale, LocaleProps } from "@repo/i18n/config"
|
||||||
import type { Locale } from "@repo/utils/constants"
|
import { LOCALES } from "@repo/i18n/config"
|
||||||
import { LOCALES } from "@repo/utils/constants"
|
|
||||||
import type { Metadata } from "next"
|
import type { Metadata } from "next"
|
||||||
import { NextIntlClientProvider } from "next-intl"
|
import { NextIntlClientProvider } from "next-intl"
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { LOCALES, LOCALE_DEFAULT, LOCALE_PREFIX } from "@repo/utils/constants"
|
import { LOCALES, LOCALE_DEFAULT, LOCALE_PREFIX } from "@repo/i18n/config"
|
||||||
import createMiddleware from "next-intl/middleware"
|
import createMiddleware from "next-intl/middleware"
|
||||||
|
|
||||||
export default createMiddleware({
|
export default createMiddleware({
|
||||||
|
@ -2,7 +2,7 @@ import sharedConfig from "@repo/config-tailwind"
|
|||||||
|
|
||||||
/** @type {Pick<import('tailwindcss').Config, "presets" | "content">} */
|
/** @type {Pick<import('tailwindcss').Config, "presets" | "content">} */
|
||||||
const config = {
|
const config = {
|
||||||
content: ["./app/**/*.tsx", "../../packages/*/src/**/*.tsx"],
|
content: ["./**/*.tsx", "../../packages/**/*.tsx"],
|
||||||
presets: [sharedConfig],
|
presets: [sharedConfig],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,16 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||||
"types": ["@total-typescript/ts-reset", "@repo/i18n/messages.d.ts"],
|
"types": ["@total-typescript/ts-reset", "@repo/i18n/messages.d.ts"],
|
||||||
|
"incremental": true,
|
||||||
|
"noEmit": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
|
"jsx": "preserve",
|
||||||
"paths": {
|
"paths": {
|
||||||
"#*": ["./*"]
|
"#*": ["./*"]
|
||||||
},
|
},
|
||||||
|
12
package.json
12
package.json
@ -3,10 +3,10 @@
|
|||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "pnpm@9.10.0+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c",
|
"packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22.0.0",
|
"node": ">=22.0.0",
|
||||||
"pnpm": ">=9.10.0"
|
"pnpm": ">=9.5.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
@ -27,13 +27,13 @@
|
|||||||
"editorconfig-checker": "5.1.8",
|
"editorconfig-checker": "5.1.8",
|
||||||
"playwright": "catalog:",
|
"playwright": "catalog:",
|
||||||
"prettier": "3.3.3",
|
"prettier": "3.3.3",
|
||||||
"prettier-plugin-tailwindcss": "0.6.6",
|
"prettier-plugin-tailwindcss": "0.6.5",
|
||||||
"markdownlint-cli2": "0.14.0",
|
"markdownlint-cli2": "0.13.0",
|
||||||
"markdownlint": "0.35.0",
|
"markdownlint": "0.34.0",
|
||||||
"markdownlint-rule-relative-links": "3.0.0",
|
"markdownlint-rule-relative-links": "3.0.0",
|
||||||
"replace-in-files-cli": "3.0.0",
|
"replace-in-files-cli": "3.0.0",
|
||||||
"semantic-release": "23.1.1",
|
"semantic-release": "23.1.1",
|
||||||
"turbo": "2.1.1",
|
"turbo": "2.0.10",
|
||||||
"typescript": "catalog:"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ import remarkMath from "remark-math"
|
|||||||
|
|
||||||
import { Link } from "@repo/i18n/navigation"
|
import { Link } from "@repo/i18n/navigation"
|
||||||
import "katex/dist/katex.min.css"
|
import "katex/dist/katex.min.css"
|
||||||
import { BlogPostComments } from "./BlogPostComments.tsx"
|
import { BlogPostComments } from "./BlogPostComments"
|
||||||
|
|
||||||
const Heading: React.FC<
|
const Heading: React.FC<
|
||||||
React.DetailedHTMLProps<
|
React.DetailedHTMLProps<
|
||||||
|
@ -3,8 +3,8 @@ import "katex/dist/katex.min.css"
|
|||||||
|
|
||||||
import { Typography } from "@repo/ui/Design/Typography"
|
import { Typography } from "@repo/ui/Design/Typography"
|
||||||
import { MainLayout } from "@repo/ui/Layout/MainLayout"
|
import { MainLayout } from "@repo/ui/Layout/MainLayout"
|
||||||
import type { BlogPost } from "./BlogPost.tsx"
|
import type { BlogPost } from "./BlogPost"
|
||||||
import { BlogPostContent } from "./BlogPostContent.tsx"
|
import { BlogPostContent } from "./BlogPostContent"
|
||||||
|
|
||||||
export interface BlogPostUIProps {
|
export interface BlogPostUIProps {
|
||||||
blogPost: BlogPost
|
blogPost: BlogPost
|
||||||
|
@ -2,7 +2,7 @@ import { Link } from "@repo/i18n/navigation"
|
|||||||
import { Typography } from "@repo/ui/Design/Typography"
|
import { Typography } from "@repo/ui/Design/Typography"
|
||||||
import { Section, SectionContent } from "@repo/ui/Layout/Section"
|
import { Section, SectionContent } from "@repo/ui/Layout/Section"
|
||||||
import { getISODate } from "@repo/utils/dates"
|
import { getISODate } from "@repo/utils/dates"
|
||||||
import type { BlogPost } from "./BlogPost.tsx"
|
import type { BlogPost } from "./BlogPost"
|
||||||
|
|
||||||
export interface BlogPostsProps {
|
export interface BlogPostsProps {
|
||||||
posts: BlogPost[]
|
posts: BlogPost[]
|
||||||
|
@ -2,7 +2,7 @@ import fs from "node:fs"
|
|||||||
import path from "node:path"
|
import path from "node:path"
|
||||||
|
|
||||||
import matter from "gray-matter"
|
import matter from "gray-matter"
|
||||||
import type { BlogPost, FrontMatter } from "./BlogPost.tsx"
|
import type { BlogPost, FrontMatter } from "./BlogPost"
|
||||||
|
|
||||||
export const BLOG_POSTS_PATH = path.join(
|
export const BLOG_POSTS_PATH = path.join(
|
||||||
process.cwd(),
|
process.cwd(),
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { BLOG_POST_MOCK } from "../BlogPost.ts"
|
import { BLOG_POST_MOCK } from "../BlogPost"
|
||||||
import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI.tsx"
|
import { BlogPostUI as BlogPostUIComponent } from "../BlogPostUI"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Blog/BlogPostUI",
|
title: "Blog/BlogPostUI",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { BLOG_POST_MOCK } from "../BlogPost.ts"
|
import { BLOG_POST_MOCK } from "../BlogPost"
|
||||||
import { BlogPosts as BlogPostsComponent } from "../BlogPosts.tsx"
|
import { BlogPosts as BlogPostsComponent } from "../BlogPosts"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Blog/BlogPosts",
|
title: "Blog/BlogPosts",
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||||
"types": [
|
"types": [
|
||||||
"@total-typescript/ts-reset",
|
"@total-typescript/ts-reset",
|
||||||
"@types/node",
|
"@repo/i18n/messages.d.ts",
|
||||||
"@repo/i18n/messages.d.ts"
|
"@types/node"
|
||||||
]
|
],
|
||||||
|
"jsx": "preserve",
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": ["conventions"],
|
"extends": ["conventions"]
|
||||||
"plugins": ["import-x"],
|
|
||||||
"rules": {
|
|
||||||
"import-x/no-absolute-path": "error",
|
|
||||||
"import-x/no-webpack-loader-syntax": "error",
|
|
||||||
"import-x/no-self-import": "error",
|
|
||||||
"import-x/no-useless-path-segments": "error",
|
|
||||||
"import-x/export": "error",
|
|
||||||
"import-x/no-duplicates": "error",
|
|
||||||
"import-x/no-named-default": "error",
|
|
||||||
"import-x/no-empty-named-blocks": "error",
|
|
||||||
"import-x/no-anonymous-default-export": "error",
|
|
||||||
"import-x/extensions": [
|
|
||||||
"error",
|
|
||||||
"ignorePackages",
|
|
||||||
{
|
|
||||||
"ts": "always",
|
|
||||||
"tsx": "always",
|
|
||||||
"js": "never",
|
|
||||||
"jsx": "never"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"../.eslintrc.json",
|
"conventions",
|
||||||
"next/core-web-vitals",
|
"next/core-web-vitals",
|
||||||
"plugin:tailwindcss/recommended",
|
"plugin:tailwindcss/recommended",
|
||||||
"plugin:storybook/recommended"
|
"plugin:storybook/recommended"
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
"eslint-config-next": "catalog:",
|
"eslint-config-next": "catalog:",
|
||||||
"eslint-plugin-storybook": "catalog:",
|
"eslint-plugin-storybook": "catalog:",
|
||||||
"eslint-plugin-tailwindcss": "catalog:",
|
"eslint-plugin-tailwindcss": "catalog:",
|
||||||
"eslint-plugin-import-x": "catalog:",
|
|
||||||
"typescript": "catalog:"
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"lib": ["ESNext"]
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,28 +6,15 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noImplicitOverride": true,
|
"noImplicitOverride": true,
|
||||||
"noImplicitReturns": true,
|
"noImplicitReturns": true,
|
||||||
"noImplicitThis": true,
|
|
||||||
"noImplicitAny": true,
|
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
"noPropertyAccessFromIndexSignature": true,
|
||||||
"noUncheckedIndexedAccess": true,
|
"noUncheckedIndexedAccess": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
|
|
||||||
"verbatimModuleSyntax": true,
|
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"allowImportingTsExtensions": true,
|
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"incremental": true,
|
"incremental": true
|
||||||
"noEmit": true,
|
|
||||||
|
|
||||||
"target": "ESNext",
|
|
||||||
"module": "ESNext",
|
|
||||||
"moduleResolution": "Bundler",
|
|
||||||
"resolveJsonModule": true,
|
|
||||||
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"emitDecoratorMetadata": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
"test": "vitest run"
|
"test": "vitest run"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@repo/utils": "workspace:*",
|
|
||||||
"deepmerge": "catalog:",
|
"deepmerge": "catalog:",
|
||||||
"next": "catalog:",
|
"next": "catalog:",
|
||||||
"next-intl": "catalog:",
|
"next-intl": "catalog:",
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
import type { Locale } from "@repo/utils/constants"
|
|
||||||
import type { RichTranslationValues } from "next-intl"
|
import type { RichTranslationValues } from "next-intl"
|
||||||
|
|
||||||
|
export const LOCALES = ["en-US", "fr-FR"] as const
|
||||||
|
export type Locale = (typeof LOCALES)[number]
|
||||||
|
export const LOCALE_DEFAULT = "en-US" satisfies Locale
|
||||||
|
export const LOCALE_PREFIX = "never"
|
||||||
|
|
||||||
export interface LocaleProps {
|
export interface LocaleProps {
|
||||||
params: {
|
params: {
|
||||||
locale: Locale
|
locale: Locale
|
||||||
|
@ -3,9 +3,8 @@ import type { AbstractIntlMessages } from "next-intl"
|
|||||||
import { getRequestConfig } from "next-intl/server"
|
import { getRequestConfig } from "next-intl/server"
|
||||||
import { notFound } from "next/navigation"
|
import { notFound } from "next/navigation"
|
||||||
|
|
||||||
import type { Locale } from "@repo/utils/constants"
|
import type { Locale } from "./config"
|
||||||
import { LOCALE_DEFAULT, LOCALES } from "@repo/utils/constants"
|
import { defaultTranslationValues, LOCALE_DEFAULT, LOCALES } from "./config"
|
||||||
import { defaultTranslationValues } from "./config.tsx"
|
|
||||||
|
|
||||||
export default getRequestConfig(async ({ locale }) => {
|
export default getRequestConfig(async ({ locale }) => {
|
||||||
if (!LOCALES.includes(locale as Locale)) {
|
if (!LOCALES.includes(locale as Locale)) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { createSharedPathnamesNavigation } from "next-intl/navigation"
|
import { createSharedPathnamesNavigation } from "next-intl/navigation"
|
||||||
|
|
||||||
import { LOCALES, LOCALE_PREFIX } from "@repo/utils/constants"
|
import { LOCALES, LOCALE_PREFIX } from "./config"
|
||||||
|
|
||||||
export const { Link, redirect, usePathname, useRouter, permanentRedirect } =
|
export const { Link, redirect, usePathname, useRouter, permanentRedirect } =
|
||||||
createSharedPathnamesNavigation({
|
createSharedPathnamesNavigation({
|
||||||
|
@ -82,17 +82,6 @@
|
|||||||
},
|
},
|
||||||
"education": {
|
"education": {
|
||||||
"title": "Studies",
|
"title": "Studies",
|
||||||
"cnam": {
|
|
||||||
"study-type": "Engineer in Computer Science and Information Systems (IS)",
|
|
||||||
"institution": "Conservatoire National des Arts et Métiers (CNAM), in Eckbolsheim - UIMM Alsace - ITII Alsace",
|
|
||||||
"years": {
|
|
||||||
"2024-2025": {
|
|
||||||
"title": "2024 - 2025",
|
|
||||||
"description": "1st year",
|
|
||||||
"courses": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"iut": {
|
"iut": {
|
||||||
"study-type": "University Bachelor of Technology (BUT) Computer Science",
|
"study-type": "University Bachelor of Technology (BUT) Computer Science",
|
||||||
"institution": "IUT Robert Schuman in Illkirch-Graffenstaden",
|
"institution": "IUT Robert Schuman in Illkirch-Graffenstaden",
|
||||||
@ -146,7 +135,7 @@
|
|||||||
"ircad": {
|
"ircad": {
|
||||||
"summary": "Development of WebSurg, a virtual university dedicated to medical-surgical training, in React.js/Next.js and API Platform with Symfony.",
|
"summary": "Development of WebSurg, a virtual university dedicated to medical-surgical training, in React.js/Next.js and API Platform with Symfony.",
|
||||||
"position": "Full Stack Web Developer Apprentice",
|
"position": "Full Stack Web Developer Apprentice",
|
||||||
"duration": "4 ans"
|
"duration": "1 year"
|
||||||
},
|
},
|
||||||
"numerize": {
|
"numerize": {
|
||||||
"summary": "Development of an DMS (Document Management System) tool in React.js, Laravel and GraphQL.",
|
"summary": "Development of an DMS (Document Management System) tool in React.js, Laravel and GraphQL.",
|
||||||
|
@ -82,17 +82,6 @@
|
|||||||
},
|
},
|
||||||
"education": {
|
"education": {
|
||||||
"title": "Études",
|
"title": "Études",
|
||||||
"cnam": {
|
|
||||||
"study-type": "Ingénieur en Informatique et Systèmes d'Information (SI)",
|
|
||||||
"institution": "Conservatoire National des Arts et Métiers (CNAM) à Eckbolsheim - UIMM Alsace - ITII Alsace",
|
|
||||||
"years": {
|
|
||||||
"2024-2025": {
|
|
||||||
"title": "2024 - 2025",
|
|
||||||
"description": "1ère année",
|
|
||||||
"courses": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"iut": {
|
"iut": {
|
||||||
"study-type": "Bachelor Universitaire de Technologie (BUT) Informatique",
|
"study-type": "Bachelor Universitaire de Technologie (BUT) Informatique",
|
||||||
"institution": "IUT Robert Schuman à Illkirch-Graffenstaden",
|
"institution": "IUT Robert Schuman à Illkirch-Graffenstaden",
|
||||||
@ -146,7 +135,7 @@
|
|||||||
"ircad": {
|
"ircad": {
|
||||||
"summary": "Développement de WebSurg, une université virtuelle consacrée à la formation médico-chirurgicale, en React.js/Next.js et API Platform avec Symfony.",
|
"summary": "Développement de WebSurg, une université virtuelle consacrée à la formation médico-chirurgicale, en React.js/Next.js et API Platform avec Symfony.",
|
||||||
"position": "Apprenti Développeur Web Full Stack",
|
"position": "Apprenti Développeur Web Full Stack",
|
||||||
"duration": "4 ans"
|
"duration": "1 an"
|
||||||
},
|
},
|
||||||
"numerize": {
|
"numerize": {
|
||||||
"summary": "Développement d'un outil GED (Gestion Électronique de Documents) en React.js, Laravel et GraphQL.",
|
"summary": "Développement d'un outil GED (Gestion Électronique de Documents) en React.js, Laravel et GraphQL.",
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||||
"types": ["@total-typescript/ts-reset"]
|
"types": ["@total-typescript/ts-reset"],
|
||||||
|
"jsx": "preserve",
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { act, renderHook } from "@testing-library/react"
|
import { act, renderHook } from "@testing-library/react"
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest"
|
import { describe, expect, it } from "vitest"
|
||||||
import { useBoolean } from "../useBoolean.ts"
|
import { useBoolean } from "../useBoolean"
|
||||||
|
|
||||||
describe("useBoolean", () => {
|
describe("useBoolean", () => {
|
||||||
const initialValues = [true, false]
|
const initialValues = [true, false]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { renderHook } from "@testing-library/react"
|
import { renderHook } from "@testing-library/react"
|
||||||
|
|
||||||
import { describe, expect, it } from "vitest"
|
import { describe, expect, it } from "vitest"
|
||||||
import { useIsMounted } from "../useIsMounted.ts"
|
import { useIsMounted } from "../useIsMounted"
|
||||||
|
|
||||||
describe("useIsMounted", () => {
|
describe("useIsMounted", () => {
|
||||||
it("should return true", () => {
|
it("should return true", () => {
|
||||||
|
@ -1,7 +1,17 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||||
"types": ["@total-typescript/ts-reset"]
|
"types": [
|
||||||
|
"@total-typescript/ts-reset",
|
||||||
|
"@vitest/browser/providers/playwright"
|
||||||
|
],
|
||||||
|
"jsx": "preserve",
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { CurriculumVitae as CurriculumVitaeComponent } from "./CurriculumVitae.tsx"
|
import { CurriculumVitae as CurriculumVitaeComponent } from "./CurriculumVitae"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Curriculum Vitae/CurriculumVitae",
|
title: "Curriculum Vitae/CurriculumVitae",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { CurriculumVitaeAbout } from "./CurriculumVitaeAbout.tsx"
|
import { CurriculumVitaeAbout } from "./CurriculumVitaeAbout"
|
||||||
import { CurriculumVitaeEducation } from "./CurriculumVitaeEducation.tsx"
|
import { CurriculumVitaeEducation } from "./CurriculumVitaeEducation"
|
||||||
import { CurriculumVitaeInterests } from "./CurriculumVitaeInterests.tsx"
|
import { CurriculumVitaeInterests } from "./CurriculumVitaeInterests"
|
||||||
import { CurriculumVitaeProfile } from "./CurriculumVitaeProfile.tsx"
|
import { CurriculumVitaeProfile } from "./CurriculumVitaeProfile"
|
||||||
import { CurriculumVitaeSkills } from "./CurriculumVitaeSkills.tsx"
|
import { CurriculumVitaeSkills } from "./CurriculumVitaeSkills"
|
||||||
import { CurriculumVitaeWork } from "./CurriculumVitaeWork.tsx"
|
import { CurriculumVitaeWork } from "./CurriculumVitaeWork"
|
||||||
|
|
||||||
export interface CurriculumVitaeProps {}
|
export interface CurriculumVitaeProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { FaUser } from "react-icons/fa"
|
import { FaUser } from "react-icons/fa"
|
||||||
import { CurriculumVitaeSection } from "./CurriculumVitaeSection.tsx"
|
import { CurriculumVitaeSection } from "./CurriculumVitaeSection"
|
||||||
|
|
||||||
export interface CurriculumVitaeAboutProps {}
|
export interface CurriculumVitaeAboutProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { FaGraduationCap } from "react-icons/fa"
|
import { FaGraduationCap } from "react-icons/fa"
|
||||||
import { CurriculumVitaeSection } from "./CurriculumVitaeSection.tsx"
|
import { CurriculumVitaeSection } from "./CurriculumVitaeSection"
|
||||||
|
|
||||||
export interface CurriculumVitaeEducationProps {}
|
export interface CurriculumVitaeEducationProps {}
|
||||||
|
|
||||||
@ -10,13 +10,6 @@ export const CurriculumVitaeEducation: React.FC<
|
|||||||
const t = useTranslations()
|
const t = useTranslations()
|
||||||
|
|
||||||
const educations = [
|
const educations = [
|
||||||
{
|
|
||||||
years: t("curriculum-vitae.education.cnam.years.2024-2025.title"),
|
|
||||||
studyType: t("curriculum-vitae.education.cnam.study-type"),
|
|
||||||
institution: t("curriculum-vitae.education.cnam.institution"),
|
|
||||||
score: t("curriculum-vitae.education.cnam.years.2024-2025.description"),
|
|
||||||
courses: [],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
years: t("curriculum-vitae.education.iut.years.2023-2024.title"),
|
years: t("curriculum-vitae.education.iut.years.2023-2024.title"),
|
||||||
studyType: t("curriculum-vitae.education.iut.study-type"),
|
studyType: t("curriculum-vitae.education.iut.study-type"),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { FaHeart } from "react-icons/fa"
|
import { FaHeart } from "react-icons/fa"
|
||||||
import { CurriculumVitaeSection } from "./CurriculumVitaeSection.tsx"
|
import { CurriculumVitaeSection } from "./CurriculumVitaeSection"
|
||||||
|
|
||||||
export interface CurriculumVitaeInterestsProps {}
|
export interface CurriculumVitaeInterestsProps {}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { Link } from "@repo/i18n/navigation"
|
import { Link } from "@repo/i18n/navigation"
|
||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
import { BirthDate } from "../Home/About/AboutList/BirthDate.tsx"
|
import { BirthDate } from "../Home/About/AboutList/BirthDate"
|
||||||
import { Locales } from "../Layout/Header/Locales/Locales.tsx"
|
import { Locales } from "../Layout/Header/Locales/Locales"
|
||||||
|
|
||||||
export interface CurriculumVitaeProfileProps {}
|
export interface CurriculumVitaeProfileProps {}
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ import { FaToolbox } from "react-icons/fa"
|
|||||||
import {
|
import {
|
||||||
SKILL_CATEGORIES,
|
SKILL_CATEGORIES,
|
||||||
SKILL_NAMES_BY_CATEGORY,
|
SKILL_NAMES_BY_CATEGORY,
|
||||||
} from "../Home/Skills/skills.ts"
|
} from "../Home/Skills/skills"
|
||||||
import { CurriculumVitaeSection } from "./CurriculumVitaeSection.tsx"
|
import { CurriculumVitaeSection } from "./CurriculumVitaeSection"
|
||||||
|
|
||||||
export interface CurriculumVitaeSkillsProps {}
|
export interface CurriculumVitaeSkillsProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { MdWork } from "react-icons/md"
|
import { MdWork } from "react-icons/md"
|
||||||
import { CurriculumVitaeSection } from "./CurriculumVitaeSection.tsx"
|
import { CurriculumVitaeSection } from "./CurriculumVitaeSection"
|
||||||
|
|
||||||
export interface CurriculumVitaeWorkProps {}
|
export interface CurriculumVitaeWorkProps {}
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ export const CurriculumVitaeWork: React.FC<CurriculumVitaeWorkProps> = () => {
|
|||||||
name: "IRCAD",
|
name: "IRCAD",
|
||||||
location: "1 Place de l'Hôpital, FR-67000 Strasbourg",
|
location: "1 Place de l'Hôpital, FR-67000 Strasbourg",
|
||||||
position: t("curriculum-vitae.work.ircad.position"),
|
position: t("curriculum-vitae.work.ircad.position"),
|
||||||
dates: "28/08/2023 - 31/08/2027",
|
dates: "28/08/2023 - 02/09/2024",
|
||||||
duration: t("curriculum-vitae.work.ircad.duration"),
|
duration: t("curriculum-vitae.work.ircad.duration"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2,8 +2,8 @@ import type { Meta, StoryObj } from "@storybook/react"
|
|||||||
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"
|
||||||
import { Button } from "./Button.tsx"
|
import { Button } from "./Button"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Design System/Button",
|
title: "Design System/Button",
|
||||||
|
@ -3,8 +3,8 @@ import { Link as NextLink } from "@repo/i18n/navigation"
|
|||||||
import type { VariantProps } from "cva"
|
import type { VariantProps } from "cva"
|
||||||
import { cva } from "cva"
|
import { cva } from "cva"
|
||||||
|
|
||||||
import { Spinner } from "../Spinner/Spinner.tsx"
|
import { Spinner } from "../Spinner/Spinner"
|
||||||
import { Ripple } from "./Ripple.tsx"
|
import { Ripple } from "./Ripple"
|
||||||
|
|
||||||
const buttonVariants = cva({
|
const buttonVariants = cva({
|
||||||
base: "relative inline-flex items-center justify-center overflow-hidden rounded-md text-base font-semibold transition duration-150 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
base: "relative inline-flex items-center justify-center overflow-hidden rounded-md text-base font-semibold transition duration-150 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Link } from "./Link.tsx"
|
import { Link } from "./Link"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Design System/Link",
|
title: "Design System/Link",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Spinner } from "./Spinner.tsx"
|
import { Spinner } from "./Spinner"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Design System/Spinner",
|
title: "Design System/Spinner",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import type { TypographyProps } from "./Typography.tsx"
|
import type { TypographyProps } from "./Typography"
|
||||||
import { Typography } from "./Typography.tsx"
|
import { Typography } from "./Typography"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Design System/Typography",
|
title: "Design System/Typography",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { ErrorNotFound as ErrorNotFoundComponent } from "./ErrorNotFound.tsx"
|
import { ErrorNotFound as ErrorNotFoundComponent } from "./ErrorNotFound"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Errors/ErrorNotFound",
|
title: "Errors/ErrorNotFound",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { Link } from "../../Design/Link/Link.tsx"
|
import { Link } from "../../Design/Link/Link"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
import { MainLayout } from "../../Layout/MainLayout/MainLayout.tsx"
|
import { MainLayout } from "../../Layout/MainLayout/MainLayout"
|
||||||
import { Section } from "../../Layout/Section/Section.tsx"
|
import { Section } from "../../Layout/Section/Section"
|
||||||
|
|
||||||
export interface ErrorNotFoundProps {}
|
export interface ErrorNotFoundProps {}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
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"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Errors/ErrorServer",
|
title: "Errors/ErrorServer",
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { useEffect } from "react"
|
import { useEffect } from "react"
|
||||||
import { Button } from "../../Design/Button/Button.tsx"
|
import { Button } from "../../Design/Button/Button"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
import { MainLayout } from "../../Layout/MainLayout/MainLayout.tsx"
|
import { MainLayout } from "../../Layout/MainLayout/MainLayout"
|
||||||
import { Section } from "../../Layout/Section/Section.tsx"
|
import { Section } from "../../Layout/Section/Section"
|
||||||
|
|
||||||
export interface ErrorServerProps {
|
export interface ErrorServerProps {
|
||||||
error: Error & { digest?: string }
|
error: Error & { digest?: string }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { About as AboutComponent } from "./About.tsx"
|
import { About as AboutComponent } from "./About"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Home/About",
|
title: "Home/About",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { Section, SectionContent } from "../../Layout/Section/Section.tsx"
|
import { Section, SectionContent } from "../../Layout/Section/Section"
|
||||||
import { AboutDescription } from "./AboutDescription.tsx"
|
import { AboutDescription } from "./AboutDescription"
|
||||||
import { AboutIntroduction } from "./AboutIntroduction.tsx"
|
import { AboutIntroduction } from "./AboutIntroduction"
|
||||||
import { AboutList } from "./AboutList/AboutList.tsx"
|
import { AboutList } from "./AboutList/AboutList"
|
||||||
import { AboutLogo } from "./AboutLogo.tsx"
|
import { AboutLogo } from "./AboutLogo"
|
||||||
import { SocialMediaList } from "./SocialMediaList/SocialMediaList.tsx"
|
import { SocialMediaList } from "./SocialMediaList/SocialMediaList"
|
||||||
|
|
||||||
export interface AboutProps {}
|
export interface AboutProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { Button } from "../../Design/Button/Button.tsx"
|
import { Button } from "../../Design/Button/Button"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
|
|
||||||
export interface AboutDescriptionProps {}
|
export interface AboutDescriptionProps {}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
|
|
||||||
export interface AboutIntroductionProps {}
|
export interface AboutIntroductionProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { AboutItem } from "./AboutItem.tsx"
|
import { AboutItem } from "./AboutItem"
|
||||||
import { BirthDate } from "./BirthDate.tsx"
|
import { BirthDate } from "./BirthDate"
|
||||||
|
|
||||||
export interface AboutListProps {}
|
export interface AboutListProps {}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const EmailIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const EmailIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const GitHubIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const GitHubIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const GitLabIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const GitLabIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const NPMIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const NPMIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const TwitchIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const TwitchIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const TwitterIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const TwitterIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Icon } from "./Icon.tsx"
|
import { Icon } from "./Icon"
|
||||||
|
|
||||||
export const YouTubeIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
export const YouTubeIcon: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {
|
||||||
return (
|
return (
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { EmailIcon } from "./SocialMediaIcons/EmailIcon.tsx"
|
import { EmailIcon } from "./SocialMediaIcons/EmailIcon"
|
||||||
import { GitHubIcon } from "./SocialMediaIcons/GitHubIcon.tsx"
|
import { GitHubIcon } from "./SocialMediaIcons/GitHubIcon"
|
||||||
import { GitLabIcon } from "./SocialMediaIcons/GitLabIcon.tsx"
|
import { GitLabIcon } from "./SocialMediaIcons/GitLabIcon"
|
||||||
import { NPMIcon } from "./SocialMediaIcons/NPMIcon.tsx"
|
import { NPMIcon } from "./SocialMediaIcons/NPMIcon"
|
||||||
import { TwitchIcon } from "./SocialMediaIcons/TwitchIcon.tsx"
|
import { TwitchIcon } from "./SocialMediaIcons/TwitchIcon"
|
||||||
import { TwitterIcon } from "./SocialMediaIcons/TwitterIcon.tsx"
|
import { TwitterIcon } from "./SocialMediaIcons/TwitterIcon"
|
||||||
import { YouTubeIcon } from "./SocialMediaIcons/YouTubeIcon.tsx"
|
import { YouTubeIcon } from "./SocialMediaIcons/YouTubeIcon"
|
||||||
import { SocialMediaItem } from "./SocialMediaItem.tsx"
|
import { SocialMediaItem } from "./SocialMediaItem"
|
||||||
|
|
||||||
export interface SocialMediaListProps {}
|
export interface SocialMediaListProps {}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
|
|
||||||
export interface InterestItemProps {
|
export interface InterestItemProps {
|
||||||
title: string
|
title: string
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Interests as InterestsComponent } from "./Interests.tsx"
|
import { Interests as InterestsComponent } from "./Interests"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Home/Interests",
|
title: "Home/Interests",
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import { GIT_REPO_LINK } from "@repo/utils/constants"
|
import { GIT_REPO_LINK } from "@repo/utils/constants"
|
||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { FaGit, FaMicrochip } from "react-icons/fa"
|
import { FaGit, FaMicrochip } from "react-icons/fa"
|
||||||
import { Link } from "../../Design/Link/Link.tsx"
|
import { Link } from "../../Design/Link/Link"
|
||||||
import {
|
import {
|
||||||
Section,
|
Section,
|
||||||
SectionContent,
|
SectionContent,
|
||||||
SectionTitle,
|
SectionTitle,
|
||||||
} from "../../Layout/Section/Section.tsx"
|
} from "../../Layout/Section/Section"
|
||||||
import { InterestItem } from "./InterestItem.tsx"
|
import { InterestItem } from "./InterestItem"
|
||||||
|
|
||||||
export interface InterestsProps {}
|
export interface InterestsProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { OpenSource as OpenSourceComponent } from "./OpenSource.tsx"
|
import { OpenSource as OpenSourceComponent } from "./OpenSource"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Home/OpenSource",
|
title: "Home/OpenSource",
|
||||||
|
@ -3,8 +3,8 @@ import {
|
|||||||
Section,
|
Section,
|
||||||
SectionDescription,
|
SectionDescription,
|
||||||
SectionTitle,
|
SectionTitle,
|
||||||
} from "../../Layout/Section/Section.tsx"
|
} from "../../Layout/Section/Section"
|
||||||
import { Repository } from "./Repository.tsx"
|
import { Repository } from "./Repository"
|
||||||
|
|
||||||
export interface OpenSourceProps {}
|
export interface OpenSourceProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
import { SectionContent } from "../../Layout/Section/Section.tsx"
|
import { SectionContent } from "../../Layout/Section/Section"
|
||||||
import { GitHubIcon } from "../About/SocialMediaList/SocialMediaIcons/GitHubIcon.tsx"
|
import { GitHubIcon } from "../About/SocialMediaList/SocialMediaIcons/GitHubIcon"
|
||||||
|
|
||||||
export interface RepositoryProps {
|
export interface RepositoryProps {
|
||||||
name: string
|
name: string
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Portfolio as PortfolioComponent } from "./Portfolio.tsx"
|
import { Portfolio as PortfolioComponent } from "./Portfolio"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Home/Portfolio",
|
title: "Home/Portfolio",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { Section, SectionTitle } from "../../Layout/Section/Section.tsx"
|
import { Section, SectionTitle } from "../../Layout/Section/Section"
|
||||||
import { PortfolioItem, type PortfolioProject } from "./PortfolioItem.tsx"
|
import { PortfolioItem, type PortfolioProject } from "./PortfolioItem"
|
||||||
|
|
||||||
export interface PortfolioProps {}
|
export interface PortfolioProps {}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
import { SectionContent } from "../../Layout/Section/Section.tsx"
|
import { SectionContent } from "../../Layout/Section/Section"
|
||||||
|
|
||||||
export interface PortfolioProject {
|
export interface PortfolioProject {
|
||||||
id: string
|
id: string
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
import { useMemo } from "react"
|
import { useMemo } from "react"
|
||||||
import { Link } from "../../Design/Link/Link.tsx"
|
import { Link } from "../../Design/Link/Link"
|
||||||
import { useTheme } from "../../Layout/Header/SwitchTheme.tsx"
|
import { useTheme } from "../../Layout/Header/SwitchTheme"
|
||||||
import type { SkillName } from "./skills.ts"
|
import type { SkillName } from "./skills"
|
||||||
import { SKILLS } from "./skills.ts"
|
import { SKILLS } from "./skills"
|
||||||
|
|
||||||
export interface SkillItemProps {
|
export interface SkillItemProps {
|
||||||
skillName: SkillName
|
skillName: SkillName
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Skills as SkillsComponent } from "./Skills.tsx"
|
import { Skills as SkillsComponent } from "./Skills"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Home/Skills",
|
title: "Home/Skills",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import { Section, SectionTitle } from "../../Layout/Section/Section.tsx"
|
import { Section, SectionTitle } from "../../Layout/Section/Section"
|
||||||
import { SkillItem } from "./SkillItem.tsx"
|
import { SkillItem } from "./SkillItem"
|
||||||
import { SkillsSection } from "./SkillsSection.tsx"
|
import { SkillsSection } from "./SkillsSection"
|
||||||
import { SKILL_CATEGORIES, SKILL_NAMES_BY_CATEGORY } from "./skills.ts"
|
import { SKILL_CATEGORIES, SKILL_NAMES_BY_CATEGORY } from "./skills"
|
||||||
|
|
||||||
export interface SkillsProps {}
|
export interface SkillsProps {}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
import { SectionContent } from "../../Layout/Section/Section.tsx"
|
import { SectionContent } from "../../Layout/Section/Section"
|
||||||
|
|
||||||
export interface SkillsSectionProps extends React.PropsWithChildren {
|
export interface SkillsSectionProps extends React.PropsWithChildren {
|
||||||
title: string
|
title: string
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Footer as FooterComponent } from "./Footer.tsx"
|
import { Footer as FooterComponent } from "./Footer"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Layout/Footer",
|
title: "Layout/Footer",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
|
|
||||||
import { GIT_REPO_LINK } from "@repo/utils/constants"
|
import { GIT_REPO_LINK } from "@repo/utils/constants"
|
||||||
import { Link } from "../../Design/Link/Link.tsx"
|
import { Link } from "../../Design/Link/Link"
|
||||||
|
|
||||||
export interface FooterProps {
|
export interface FooterProps {
|
||||||
version: string
|
version: string
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { Meta, StoryObj } from "@storybook/react"
|
import type { Meta, StoryObj } from "@storybook/react"
|
||||||
|
|
||||||
import { Header as HeaderComponent } from "./Header.tsx"
|
import { Header as HeaderComponent } from "./Header"
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: "Layout/Header",
|
title: "Layout/Header",
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
import { Link } from "../../Design/Link/Link.tsx"
|
import { Link } from "../../Design/Link/Link"
|
||||||
import { Locales } from "./Locales/Locales.tsx"
|
import { Locales } from "./Locales/Locales"
|
||||||
import { SwitchTheme } from "./SwitchTheme.tsx"
|
import { SwitchTheme } from "./SwitchTheme"
|
||||||
|
|
||||||
export interface HeaderProps {}
|
export interface HeaderProps {}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { Locale } from "@repo/utils/constants"
|
import type { Locale } from "@repo/i18n/config"
|
||||||
import { useTranslations } from "next-intl"
|
import { useTranslations } from "next-intl"
|
||||||
import Image from "next/image"
|
import Image from "next/image"
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { classNames } from "@repo/config-tailwind/classNames"
|
import { classNames } from "@repo/config-tailwind/classNames"
|
||||||
|
import type { Locale } from "@repo/i18n/config"
|
||||||
|
import { LOCALES } from "@repo/i18n/config"
|
||||||
import { usePathname, useRouter } from "@repo/i18n/navigation"
|
import { usePathname, useRouter } from "@repo/i18n/navigation"
|
||||||
import type { Locale } from "@repo/utils/constants"
|
|
||||||
import { LOCALES } from "@repo/utils/constants"
|
|
||||||
import { useLocale } from "next-intl"
|
import { useLocale } from "next-intl"
|
||||||
import { useEffect, useRef } from "react"
|
import { useEffect, useRef } from "react"
|
||||||
|
|
||||||
import { useBoolean } from "@repo/react-hooks/useBoolean"
|
import { useBoolean } from "@repo/react-hooks/useBoolean"
|
||||||
import { Arrow } from "./Arrow.tsx"
|
import { Arrow } from "./Arrow"
|
||||||
import { LocaleFlag } from "./LocaleFlag.tsx"
|
import { LocaleFlag } from "./LocaleFlag"
|
||||||
|
|
||||||
export interface LocalesProps {}
|
export interface LocalesProps {}
|
||||||
|
|
||||||
|
@ -2,13 +2,15 @@
|
|||||||
|
|
||||||
import { classNames } from "@repo/config-tailwind/classNames"
|
import { classNames } from "@repo/config-tailwind/classNames"
|
||||||
import { useIsMounted } from "@repo/react-hooks/useIsMounted"
|
import { useIsMounted } from "@repo/react-hooks/useIsMounted"
|
||||||
import type { Theme } from "@repo/utils/constants"
|
|
||||||
import { THEME_DEFAULT } from "@repo/utils/constants"
|
|
||||||
import {
|
import {
|
||||||
ThemeProvider as NextThemeProvider,
|
ThemeProvider as NextThemeProvider,
|
||||||
useTheme as useNextTheme,
|
useTheme as useNextTheme,
|
||||||
} from "next-themes"
|
} from "next-themes"
|
||||||
|
|
||||||
|
export const THEMES = ["light", "dark"] as const
|
||||||
|
export type Theme = (typeof THEMES)[number]
|
||||||
|
export const THEME_DEFAULT = "dark" as Theme
|
||||||
|
|
||||||
export interface ThemeProviderProps extends React.PropsWithChildren {
|
export interface ThemeProviderProps extends React.PropsWithChildren {
|
||||||
forcedTheme?: Theme
|
forcedTheme?: Theme
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { classNames } from "@repo/config-tailwind/classNames"
|
import { classNames } from "@repo/config-tailwind/classNames"
|
||||||
import type { TypographyProps } from "../../Design/Typography/Typography.tsx"
|
import type { TypographyProps } from "../../Design/Typography/Typography"
|
||||||
import { Typography } from "../../Design/Typography/Typography.tsx"
|
import { Typography } from "../../Design/Typography/Typography"
|
||||||
|
|
||||||
export * from "./RevealFade.tsx"
|
export * from "./RevealFade"
|
||||||
|
|
||||||
export interface SectionProps
|
export interface SectionProps
|
||||||
extends React.ComponentPropsWithoutRef<"section"> {
|
extends React.ComponentPropsWithoutRef<"section"> {
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
||||||
"types": ["@total-typescript/ts-reset", "@repo/i18n/messages.d.ts"]
|
"types": ["@total-typescript/ts-reset", "@repo/i18n/messages.d.ts"],
|
||||||
|
"jsx": "preserve",
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,15 +7,6 @@ export const VERSION =
|
|||||||
|
|
||||||
export const GIT_REPO_LINK = "https://github.com/theoludwig/theoludwig"
|
export const GIT_REPO_LINK = "https://github.com/theoludwig/theoludwig"
|
||||||
|
|
||||||
export const LOCALES = ["en-US", "fr-FR"] as const
|
|
||||||
export type Locale = (typeof LOCALES)[number]
|
|
||||||
export const LOCALE_DEFAULT = "en-US" satisfies Locale
|
|
||||||
export const LOCALE_PREFIX = "never"
|
|
||||||
|
|
||||||
export const THEMES = ["light", "dark"] as const
|
|
||||||
export type Theme = (typeof THEMES)[number]
|
|
||||||
export const THEME_DEFAULT = "light" as Theme
|
|
||||||
|
|
||||||
export const BIRTH_DATE_DAY = "31"
|
export const BIRTH_DATE_DAY = "31"
|
||||||
export const BIRTH_DATE_MONTH = "03"
|
export const BIRTH_DATE_MONTH = "03"
|
||||||
export const BIRTH_DATE_YEAR = "2003"
|
export const BIRTH_DATE_YEAR = "2003"
|
||||||
|
@ -12,7 +12,7 @@ describe("VERSION", () => {
|
|||||||
vi.stubEnv("NODE_ENV", "development")
|
vi.stubEnv("NODE_ENV", "development")
|
||||||
|
|
||||||
// Act - When
|
// Act - When
|
||||||
const { VERSION } = await import("../constants.ts")
|
const { VERSION } = await import("../constants.js")
|
||||||
|
|
||||||
// Assert - Then
|
// Assert - Then
|
||||||
const expected = "0.0.0-development"
|
const expected = "0.0.0-development"
|
||||||
@ -27,7 +27,7 @@ describe("VERSION", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Act - When
|
// Act - When
|
||||||
const { VERSION } = await import("../constants.ts")
|
const { VERSION } = await import("../constants.js")
|
||||||
|
|
||||||
// Assert - Then
|
// Assert - Then
|
||||||
const expected = "1.0.0"
|
const expected = "1.0.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"
|
||||||
|
|
||||||
import { getAge, getISODate } from "../dates.ts"
|
import { getAge, getISODate } from "../dates.js"
|
||||||
|
|
||||||
describe("getISODate", () => {
|
describe("getISODate", () => {
|
||||||
it("should return the correct date in ISO format (e.g: 2012-05-23)", () => {
|
it("should return the correct date in ISO format (e.g: 2012-05-23)", () => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it } from "vitest"
|
import { describe, expect, it } from "vitest"
|
||||||
|
|
||||||
import { capitalize } from "../strings.ts"
|
import { capitalize } from "../strings.js"
|
||||||
|
|
||||||
describe("capitalize", () => {
|
describe("capitalize", () => {
|
||||||
it("should capitalize the first letter of a string", () => {
|
it("should capitalize the first letter of a string", () => {
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
"extends": "@repo/config-typescript/tsconfig.json",
|
"extends": "@repo/config-typescript/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "NodeNext",
|
||||||
|
"moduleResolution": "NodeNext",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"lib": ["ESNext"],
|
"lib": ["ESNext"],
|
||||||
"types": ["@types/node", "@total-typescript/ts-reset"]
|
"types": ["@types/node", "@total-typescript/ts-reset"],
|
||||||
|
|
||||||
|
"noEmit": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4557
pnpm-lock.yaml
generated
4557
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -7,15 +7,15 @@ catalog:
|
|||||||
"deepmerge": "4.3.1"
|
"deepmerge": "4.3.1"
|
||||||
|
|
||||||
# React.js/Next.js
|
# React.js/Next.js
|
||||||
"next": "14.2.7"
|
"next": "14.2.5"
|
||||||
"next-intl": "3.19.1"
|
"next-intl": "3.17.2"
|
||||||
"next-themes": "0.3.0"
|
"next-themes": "0.3.0"
|
||||||
"react": "18.3.1"
|
"react": "18.3.1"
|
||||||
"react-dom": "18.3.1"
|
"react-dom": "18.3.1"
|
||||||
"react-icons": "5.3.0"
|
"react-icons": "5.2.1"
|
||||||
"@types/react": "18.3.5"
|
"@types/react": "18.3.3"
|
||||||
"@types/react-dom": "18.3.0"
|
"@types/react-dom": "18.3.0"
|
||||||
"sharp": "0.33.5"
|
"sharp": "0.33.4"
|
||||||
|
|
||||||
# Blog
|
# Blog
|
||||||
"@giscus/react": "3.0.0"
|
"@giscus/react": "3.0.0"
|
||||||
@ -23,65 +23,64 @@ catalog:
|
|||||||
"katex": "0.16.11"
|
"katex": "0.16.11"
|
||||||
"next-mdx-remote": "5.0.0"
|
"next-mdx-remote": "5.0.0"
|
||||||
"@mdx-js/mdx": "3.0.1"
|
"@mdx-js/mdx": "3.0.1"
|
||||||
"rehype-katex": "7.0.1"
|
"rehype-katex": "7.0.0"
|
||||||
"rehype-raw": "7.0.0"
|
"rehype-raw": "7.0.0"
|
||||||
"rehype-slug": "6.0.0"
|
"rehype-slug": "6.0.0"
|
||||||
"remark-gfm": "4.0.0"
|
"remark-gfm": "4.0.0"
|
||||||
"remark-math": "6.0.0"
|
"remark-math": "6.0.0"
|
||||||
"shiki": "1.17.0"
|
"shiki": "1.12.0"
|
||||||
"@shikijs/rehype": "1.17.0"
|
"@shikijs/rehype": "1.12.0"
|
||||||
|
|
||||||
# TypeScript
|
# TypeScript
|
||||||
"typescript": "5.5.4"
|
"typescript": "5.5.4"
|
||||||
"@total-typescript/ts-reset": "0.6.1"
|
"@total-typescript/ts-reset": "0.5.1"
|
||||||
"@types/node": "22.5.4"
|
"@types/node": "22.0.0"
|
||||||
|
|
||||||
# ESLint
|
# ESLint
|
||||||
"@typescript-eslint/eslint-plugin": "7.18.0"
|
"@typescript-eslint/eslint-plugin": "7.18.0"
|
||||||
"@typescript-eslint/parser": "7.18.0"
|
"@typescript-eslint/parser": "7.18.0"
|
||||||
"eslint": "8.57.0"
|
"eslint": "8.57.0"
|
||||||
"eslint-config-conventions": "14.4.0"
|
"eslint-config-conventions": "14.4.0"
|
||||||
"eslint-plugin-promise": "7.1.0"
|
"eslint-plugin-promise": "7.0.0"
|
||||||
"eslint-plugin-unicorn": "55.0.0"
|
"eslint-plugin-unicorn": "55.0.0"
|
||||||
"eslint-config-next": "14.2.7"
|
"eslint-config-next": "14.2.5"
|
||||||
"eslint-plugin-storybook": "0.8.0"
|
"eslint-plugin-storybook": "0.8.0"
|
||||||
"eslint-plugin-tailwindcss": "3.17.4"
|
"eslint-plugin-tailwindcss": "3.17.4"
|
||||||
"eslint-plugin-import-x": "3.1.0"
|
|
||||||
|
|
||||||
# Storybook
|
# Storybook
|
||||||
"@chromatic-com/storybook": "2.0.1"
|
"@chromatic-com/storybook": "1.6.1"
|
||||||
"@storybook/addon-a11y": "8.3.0"
|
"@storybook/addon-a11y": "8.2.6"
|
||||||
"@storybook/addon-essentials": "8.3.0"
|
"@storybook/addon-essentials": "8.2.6"
|
||||||
"@storybook/addon-interactions": "8.3.0"
|
"@storybook/addon-interactions": "8.2.6"
|
||||||
"@storybook/addon-links": "8.3.0"
|
"@storybook/addon-links": "8.2.6"
|
||||||
"@storybook/addon-storysource": "8.3.0"
|
"@storybook/addon-storysource": "8.2.6"
|
||||||
"@storybook/addon-themes": "8.3.0"
|
"@storybook/addon-themes": "8.2.6"
|
||||||
"@storybook/blocks": "8.3.0"
|
"@storybook/blocks": "8.2.6"
|
||||||
"@storybook/nextjs": "8.3.0"
|
"@storybook/nextjs": "8.2.6"
|
||||||
"@storybook/react": "8.3.0"
|
"@storybook/react": "8.2.6"
|
||||||
"@storybook/test": "8.3.0"
|
"@storybook/test": "8.2.6"
|
||||||
"@storybook/test-runner": "0.19.1"
|
"@storybook/test-runner": "0.19.1"
|
||||||
"chromatic": "11.9.0"
|
"chromatic": "11.5.6"
|
||||||
"http-server": "14.1.1"
|
"http-server": "14.1.1"
|
||||||
"storybook": "8.3.0"
|
"storybook": "8.2.6"
|
||||||
"storybook-dark-mode": "4.0.2"
|
"storybook-dark-mode": "4.0.2"
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
"playwright": "1.47.0"
|
"playwright": "1.45.3"
|
||||||
"@playwright/test": "1.47.0"
|
"@playwright/test": "1.45.3"
|
||||||
"axe-playwright": "2.0.2"
|
"axe-playwright": "2.0.1"
|
||||||
"start-server-and-test": "2.0.7"
|
"start-server-and-test": "2.0.5"
|
||||||
"@vitest/browser": "2.0.5"
|
"@vitest/browser": "2.0.4"
|
||||||
"@vitest/coverage-istanbul": "2.0.5"
|
"@vitest/coverage-istanbul": "2.0.4"
|
||||||
"@vitest/ui": "2.0.5"
|
"@vitest/ui": "2.0.4"
|
||||||
"vitest": "2.0.5"
|
"vitest": "2.0.4"
|
||||||
"@testing-library/react": "16.0.1"
|
"@testing-library/react": "16.0.0"
|
||||||
|
|
||||||
# CSS
|
# CSS
|
||||||
"postcss": "8.4.45"
|
"postcss": "8.4.40"
|
||||||
"tailwindcss": "3.4.11"
|
"tailwindcss": "3.4.7"
|
||||||
"@tailwindcss/typography": "0.5.15"
|
"@tailwindcss/typography": "0.5.13"
|
||||||
"@fontsource/montserrat": "5.0.20"
|
"@fontsource/montserrat": "5.0.18"
|
||||||
"clsx": "2.1.0"
|
"clsx": "2.1.0"
|
||||||
"cva": "1.0.0-beta.1"
|
"cva": "1.0.0-beta.1"
|
||||||
"tailwind-merge": "2.5.2"
|
"tailwind-merge": "2.4.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user