mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
Compare commits
5 Commits
dd09092842
...
0f44e64c0c
Author | SHA1 | Date | |
---|---|---|---|
|
0f44e64c0c | ||
84c192bbef | |||
6f78a0686c | |||
2897d181c5 | |||
f94ce7d7bc |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, develop]
|
branches: [main, develop]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, develop]
|
branches: [main, develop]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -2,7 +2,7 @@ name: "Release"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [develop]
|
branches: [develop]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [master, develop]
|
branches: [main, develop]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-unit:
|
test-unit:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"branches": ["master"],
|
"branches": ["main"],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
[
|
[
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
@ -30,7 +30,7 @@
|
|||||||
[
|
[
|
||||||
"@saithodev/semantic-release-backmerge",
|
"@saithodev/semantic-release-backmerge",
|
||||||
{
|
{
|
||||||
"branches": [{ "from": "master", "to": "develop" }],
|
"branches": [{ "from": "main", "to": "develop" }],
|
||||||
"backmergeStrategy": "merge"
|
"backmergeStrategy": "merge"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM node:20.12.2 AS builder-dependencies
|
FROM node:20.15.1 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.12.2 AS builder
|
FROM node:20.15.1 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.12.2-slim AS runner
|
FROM node:20.15.1-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
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
import { useI18n } from "@/i18n/i18n.client"
|
import Image from "next/image"
|
||||||
|
|
||||||
import type { CookiesStore } from "@/utils/constants"
|
import type { CookiesStore } from "@/utils/constants"
|
||||||
|
import { useI18n } from "@/i18n/i18n.client"
|
||||||
|
|
||||||
export interface LocaleFlagProps {
|
export interface LocaleFlagProps {
|
||||||
locale: string
|
locale: string
|
||||||
@ -12,8 +14,17 @@ 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">
|
<>
|
||||||
{i18n.translate(`common.${locale}`)}
|
<Image
|
||||||
</p>
|
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}`)}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "theoludwig",
|
"name": "theoludwig",
|
||||||
"version": "3.3.1",
|
"version": "3.3.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "theoludwig",
|
"name": "theoludwig",
|
||||||
"version": "3.3.1",
|
"version": "3.3.2",
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/montserrat": "5.0.18",
|
"@fontsource/montserrat": "5.0.18",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "theoludwig",
|
"name": "theoludwig",
|
||||||
"version": "3.3.1",
|
"version": "3.3.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
Reference in New Issue
Block a user