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

Compare commits

..

No commits in common. "0f44e64c0c04f22fd28aa5162231c1b11bafc90b" and "dd09092842367e8bc659b39bb67e9ab87c526259" have entirely different histories.

11 changed files with 20 additions and 31 deletions

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: [develop] branches: [develop]
pull_request: pull_request:
branches: [main, develop] branches: [master, develop]
jobs: jobs:
build: build:

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: [develop] branches: [develop]
pull_request: pull_request:
branches: [main, develop] branches: [master, develop]
jobs: jobs:
lint: lint:

View File

@ -2,7 +2,7 @@ name: "Release"
on: on:
push: push:
branches: [main] branches: [master]
jobs: jobs:
release: release:

View File

@ -4,7 +4,7 @@ on:
push: push:
branches: [develop] branches: [develop]
pull_request: pull_request:
branches: [main, develop] branches: [master, develop]
jobs: jobs:
test-unit: test-unit:

View File

@ -1,5 +1,5 @@
{ {
"branches": ["main"], "branches": ["master"],
"plugins": [ "plugins": [
[ [
"@semantic-release/commit-analyzer", "@semantic-release/commit-analyzer",
@ -30,7 +30,7 @@
[ [
"@saithodev/semantic-release-backmerge", "@saithodev/semantic-release-backmerge",
{ {
"branches": [{ "from": "main", "to": "develop" }], "branches": [{ "from": "master", "to": "develop" }],
"backmergeStrategy": "merge" "backmergeStrategy": "merge"
} }
] ]

View File

@ -1,9 +1,9 @@
FROM node:20.15.1 AS builder-dependencies FROM node:20.12.2 AS builder-dependencies
WORKDIR /usr/src/application WORKDIR /usr/src/application
COPY ./package*.json ./ COPY ./package*.json ./
RUN npm clean-install RUN npm clean-install
FROM node:20.15.1 AS builder FROM node:20.12.2 AS builder
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV IS_STANDALONE=true ENV IS_STANDALONE=true
WORKDIR /usr/src/application WORKDIR /usr/src/application
@ -11,7 +11,7 @@ COPY --from=builder-dependencies /usr/src/application/node_modules ./node_module
COPY ./ ./ COPY ./ ./
RUN npm run build RUN npm run build
FROM node:20.15.1-slim AS runner FROM node:20.12.2-slim AS runner
ENV NODE_ENV=production ENV NODE_ENV=production
ENV HOSTNAME=0.0.0.0 ENV HOSTNAME=0.0.0.0
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1

View File

@ -1,7 +1,5 @@
import Image from "next/image"
import type { CookiesStore } from "@/utils/constants"
import { useI18n } from "@/i18n/i18n.client" import { useI18n } from "@/i18n/i18n.client"
import type { CookiesStore } from "@/utils/constants"
export interface LocaleFlagProps { export interface LocaleFlagProps {
locale: string locale: string
@ -14,17 +12,8 @@ export const LocaleFlag = (props: LocaleFlagProps): JSX.Element => {
const i18n = useI18n(cookiesStore) const i18n = useI18n(cookiesStore)
return ( return (
<> <p data-cy="locale-flag-text" className="mx-2 text-lg font-semibold">
<Image
quality={100}
width={35}
height={35}
src={`/images/locales/${locale}.svg`}
alt={locale}
/>
<p data-cy="locale-flag-text" className="mx-2 text-base font-semibold">
{i18n.translate(`common.${locale}`)} {i18n.translate(`common.${locale}`)}
</p> </p>
</>
) )
} }

View File

@ -1,6 +1,6 @@
{ {
"en-US": "English", "en-US": "🇺🇸 English",
"fr-FR": "French", "fr-FR": "🇫🇷 French",
"all-rights-reserved": "All rights reserved", "all-rights-reserved": "All rights reserved",
"home": "Home" "home": "Home"
} }

View File

@ -1,6 +1,6 @@
{ {
"en-US": "Anglais", "en-US": "🇺🇸 Anglais",
"fr-FR": "Français", "fr-FR": "🇫🇷 Français",
"all-rights-reserved": "Tous droits réservés", "all-rights-reserved": "Tous droits réservés",
"home": "Accueil" "home": "Accueil"
} }

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "theoludwig", "name": "theoludwig",
"version": "3.3.2", "version": "3.3.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "theoludwig", "name": "theoludwig",
"version": "3.3.2", "version": "3.3.1",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@fontsource/montserrat": "5.0.18", "@fontsource/montserrat": "5.0.18",

View File

@ -1,6 +1,6 @@
{ {
"name": "theoludwig", "name": "theoludwig",
"version": "3.3.2", "version": "3.3.1",
"private": true, "private": true,
"repository": { "repository": {
"type": "git", "type": "git",