Compare commits

...

4 Commits

Author SHA1 Message Date
cedric d2b779f8de feat: config Plausible
Déploiement FRONT PROD / check (push) Successful in 2m7s
Déploiement FRONT PROD / deploy (push) Successful in 46s
2026-06-11 18:33:42 +04:00
cedric 9adc045a98 chore: add next-plausible lib 2026-06-11 18:33:31 +04:00
cedric f500b2eaa1 fix: change labola repo 2026-06-11 17:56:23 +04:00
cedric b018c2a917 feat: change language order 2026-06-11 17:56:01 +04:00
6 changed files with 30 additions and 15 deletions
+10 -1
View File
@@ -1,3 +1,4 @@
import Script from 'next/script'
import TopLoader from '../components/top-loader'
import Navigasyon from '../components/navigasyon'
import ThemeRegistry from './theme-registy'
@@ -50,9 +51,17 @@ const jsonLd = {
location: 'Guadeloupe'
}
export default async function RootLayout({children, Session}) {
export default async function RootLayout({children}) {
return (
<html lang='fr' suppressHydrationWarning>
<head>
<Script
defer
data-domain='pawol.nu'
src='https://plausible.io/js/pa-3sQidCSfiSOXQUh-4La0T.js'
strategy='afterInteractive'
/>
</head>
<body>
<TopLoader color='#ffeb3b' />
<ThemeRegistry>
+8 -8
View File
@@ -76,7 +76,7 @@ function AjouteTradiksyon({showSwitch, disableSwitch, tradiksyonOtomatik, setTra
aria-haspopup='true'
onClick={handleClick}
>
Ajouter une traduction <br /> 🇫🇷 🇬🇧 🇪🇸 🇩🇪 🇮🇹
Ajouter une traduction <br /> 🇺🇸 🇫🇷 🇪🇸 🇩🇪 🇮🇹
</Button>
<StyledMenu
keepMounted
@@ -88,6 +88,13 @@ function AjouteTradiksyon({showSwitch, disableSwitch, tradiksyonOtomatik, setTra
}}
onClose={handleClose}
>
<StyledMenuItem
id='en'
classes={{
root: classes.root
}}
onClick={handleClose}
>🇺🇸 Anglais (US)</StyledMenuItem>
<StyledMenuItem
id='fr'
classes={{
@@ -95,13 +102,6 @@ function AjouteTradiksyon({showSwitch, disableSwitch, tradiksyonOtomatik, setTra
}}
onClick={handleClose}
>🇫🇷 Français</StyledMenuItem>
<StyledMenuItem
id='en'
classes={{
root: classes.root
}}
onClick={handleClose}
>🇬🇧 Anglais</StyledMenuItem>
<StyledMenuItem
id='es'
classes={{
+5 -5
View File
@@ -83,14 +83,14 @@ const langToArray = parole => {
if (parole && parole.traductions) {
const {francais, anglais, espagnol, allemand, italien} = parole.traductions
if (francais) {
langArray.push({title: 'Traduction', flag: 'fr', lang: francais})
}
if (anglais) {
langArray.push({title: 'Translation', flag: 'en', lang: anglais})
}
if (francais) {
langArray.push({title: 'Traduction', flag: 'fr', lang: francais})
}
if (espagnol) {
langArray.push({title: 'Traducción', flag: 'es', lang: espagnol})
}
@@ -238,7 +238,7 @@ export default function Teks({parole}) {
)}
{flag === 'en' && (
<span>
🇬🇧
🇺🇸
</span>
)}
{flag === 'es' && (
+1 -1
View File
@@ -7,7 +7,7 @@ import XIcon from './icons/x'
import GiteaIcon from './icons/gitea'
import BlueskyIcon from './icons/bluesky'
const gitURL = process.env.NEXT_PUBLIC_GIT || 'https://labola.o-k-i.net/ORGANISATION-KA-INTERNATIONALE/api.pawol.nu'
const gitURL = process.env.NEXT_PUBLIC_GIT || 'https://labola.o-k-i.net/ORGANISATION-KA-INTERNATIONALE/pawol.nu'
const blueskyUrl = process.env.NEXT_PUBLIC_BLUESKY_URL || 'https://bsky.app/profile/organisationka.bsky.social'
const xmppContact = process.env.NEXT_PUBLIC_XMPP || 'oki@xmpp.cz'
const gadeUsername = process.env.NEXT_PUBLIC_GADE_USERNAME || 'oki'
+1
View File
@@ -43,6 +43,7 @@
"music-metadata-browser": "^2.5.11",
"next": "16.2.4",
"next-auth": "^5.0.0-beta.31",
"next-plausible": "^4.0.0",
"next-pwa": "5.6.0",
"nextjs-toploader": "^3.9.17",
"nodemailer": "^6.7.2",
+5
View File
@@ -7762,6 +7762,11 @@ next-auth@^5.0.0-beta.31:
dependencies:
"@auth/core" "0.41.2"
next-plausible@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/next-plausible/-/next-plausible-4.0.0.tgz#bc81be4f2c9ba4783f07b54d5fed5d4650c265aa"
integrity sha512-tC48VscREZ4fEvas9T4oj5qJwnpPlms0Wih1Unbgi/ozG08yN1w0IAPGp+/cHB8n6qzEAL5J0MlAS0FOr132jA==
next-pwa@5.6.0:
version "5.6.0"
resolved "https://registry.yarnpkg.com/next-pwa/-/next-pwa-5.6.0.tgz#f7b1960c4fdd7be4253eb9b41b612ac773392bf4"