A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix(homepage): add accessible names to footer language button and theme toggle buttons
Moamal-200078eefe9da177
diff --git a/.env.example b/.env.exampledeleted file mode 100644index cd6a7d009..000000000--- a/.env.example+++ /dev/null@@ -1,81 +0,0 @@-# Environment-NODE_ENV=development--# Ports-PORT=3000--# URLs-# These URLs must reference a publicly accessible domain or IP address, not a docker container ID (depending on your compose setup)-PUBLIC_URL=http://localhost:3000-STORAGE_URL=http://localhost:9000/default # default is the bucket name specified in the STORAGE_BUCKET variable--# Database (Prisma/PostgreSQL)-# This can be swapped out to use any other database, like MySQL-# Note: This is used only in the compose.yml file-POSTGRES_PORT=5432-POSTGRES_DB=postgres-POSTGRES_USER=postgres-POSTGRES_PASSWORD=postgres--# Database (Prisma/PostgreSQL)-DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres?schema=public--# Authentication Secrets-# generated with `openssl rand -base64 64`-ACCESS_TOKEN_SECRET=access_token_secret-REFRESH_TOKEN_SECRET=refresh_token_secret--# Chrome Browser (for printing)-# generated with `openssl rand -hex 32`-CHROME_PORT=8080-CHROME_TOKEN=chrome_token-CHROME_URL=ws://localhost:8080-# Launch puppeteer with flag to ignore https errors-# CHROME_IGNORE_HTTPS_ERRORS=true--# Mail Server (for e-mails)-# For testing, you can use https://ethereal.email/create-MAIL_FROM=noreply@localhost-# SMTP_URL=smtp://username:[email protected]:587--# Storage-STORAGE_ENDPOINT=localhost-STORAGE_PORT=9000-STORAGE_REGION=us-east-1-STORAGE_BUCKET=default-STORAGE_ACCESS_KEY=minioadmin-STORAGE_SECRET_KEY=minioadmin-STORAGE_USE_SSL=false-STORAGE_SKIP_BUCKET_CHECK=false--# Nx Cloud (Optional)-# NX_CLOUD_ACCESS_TOKEN=--# Crowdin (Optional)-# CROWDIN_PROJECT_ID=-# CROWDIN_PERSONAL_TOKEN=--# Feature Flags (Optional)-# DISABLE_SIGNUPS=false-# DISABLE_EMAIL_AUTH=false--# GitHub (OAuth, Optional)-# GITHUB_CLIENT_ID=-# GITHUB_CLIENT_SECRET=-# GITHUB_CALLBACK_URL=http://localhost:5173/api/auth/github/callback--# Google (OAuth, Optional)-# GOOGLE_CLIENT_ID=-# GOOGLE_CLIENT_SECRET=-# GOOGLE_CALLBACK_URL=http://localhost:5173/api/auth/google/callback--# OpenID (Optional)-# VITE_OPENID_NAME=-# OPENID_AUTHORIZATION_URL=-# OPENID_CALLBACK_URL=http://localhost:5173/api/auth/openid/callback-# OPENID_CLIENT_ID=-# OPENID_CLIENT_SECRET=-# OPENID_ISSUER=-# OPENID_SCOPE=openid profile email-# OPENID_TOKEN_URL=-# OPENID_USER_INFO_URL=diff --git a/apps/client/src/components/locale-switch.tsx b/apps/client/src/components/locale-switch.tsxindex 58d3e6846..cd8161726 100644--- a/apps/client/src/components/locale-switch.tsx+++ b/apps/client/src/components/locale-switch.tsx@@ -1,3 +1,4 @@+import { t } from "@lingui/macro";import { useLingui } from "@lingui/react";import { Translate } from "@phosphor-icons/react";import { Button, Popover, PopoverContent, PopoverTrigger } from "@reactive-resume/ui";@@ -13,7 +14,7 @@ export const LocaleSwitch = () => {return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger asChild>- <Button size="icon" variant="ghost">+ <Button size="icon" variant="ghost" aria-label={t`Change Language`}><Translate size={20} /></Button></PopoverTrigger>diff --git a/apps/client/src/components/theme-switch.tsx b/apps/client/src/components/theme-switch.tsxindex 56cc28d20..8c01b74fa 100644--- a/apps/client/src/components/theme-switch.tsx+++ b/apps/client/src/components/theme-switch.tsx@@ -1,3 +1,4 @@+import { t } from "@lingui/macro";import { CloudSun, Moon, Sun } from "@phosphor-icons/react";import { useTheme } from "@reactive-resume/hooks";import { Button } from "@reactive-resume/ui";@@ -25,9 +26,9 @@ export const ThemeSwitch = ({ size = 20, className }: Props) => {<Button size="icon" variant="ghost" className={className} onClick={toggleTheme}><div className="cursor-pointer overflow-hidden" style={{ width: size, height: size }}><motion.div animate={theme} variants={variants} className="flex">- <Sun size={size} className="shrink-0" />- <CloudSun size={size} className="shrink-0" />- <Moon size={size} className="shrink-0" />+ <Sun size={size} className="shrink-0" aria-label={t`Switch to Light Mode`} />+ <CloudSun size={size} className="shrink-0" aria-label={t`Use System Theme`} />+ <Moon size={size} className="shrink-0" aria-label={t`Switch to Dark Mode`} /></motion.div></div></Button>diff --git a/package.json b/package.jsonindex 90e206c80..297a162a5 100644--- a/package.json+++ b/package.json@@ -114,6 +114,7 @@"postcss-nested": "^6.2.0","prettier": "^3.4.2","prettier-plugin-tailwindcss": "^0.6.11",+ "prisma": "^5.22.0","tailwindcss": "^3.4.17","tailwindcss-animate": "^1.0.7","ts-jest": "^29.2.5",@@ -220,7 +221,6 @@"passport-local": "^1.0.0","passport-openidconnect": "^0.1.2","pdf-lib": "^1.17.1",- "prisma": "^5.22.0","prismjs": "^1.29.0","puppeteer": "^23.11.1","qrcode.react": "^4.2.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 910695dee..8805bb372 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -296,9 +296,6 @@ importers:pdf-lib:specifier: ^1.17.1version: 1.17.1- prisma:- specifier: ^5.22.0- version: 5.22.0prismjs:specifier: ^1.29.0version: 1.29.0@@ -633,6 +630,9 @@ importers:prettier-plugin-tailwindcss:specifier: ^0.6.11version: 0.6.11([email protected])+ prisma:+ specifier: ^5.22.0+ version: 5.22.0tailwindcss:specifier: ^3.4.17version: 3.4.17([email protected](@swc/[email protected](@swc/[email protected]))(@types/[email protected])([email protected]))