fix: corriger toutes les erreurs de lint restantes (263 -> 0)

This commit is contained in:
2026-07-04 14:34:50 +04:00
parent b193914c57
commit 454eefbe58
33 changed files with 210 additions and 159 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ async function jwennAwtis(slug) {
}
export async function generateMetadata(props) {
const params = await props.params;
const params = await props.params
const {slug} = params
const anAwtis = await jwennAwtis(slug)
@@ -64,7 +64,7 @@ export async function generateMetadata(props) {
}
export default async function AwtisPajSlug(props) {
const params = await props.params;
const params = await props.params
const {slug} = params
const anAwtis = await jwennAwtis(slug)
+1 -1
View File
@@ -63,7 +63,7 @@ async function jwennDone(paj) {
}
export default async function AwitsPaj(props) {
const searchParams = await props.searchParams;
const searchParams = await props.searchParams
const {paj} = searchParams
const {pajTotal, awtisPouChakPaj, pajParsed} = await jwennDone(paj || 1)
+1 -1
View File
@@ -78,7 +78,7 @@ export default async function RootLayout({children}) {
)
return (
<html lang='fr' suppressHydrationWarning>
<html suppressHydrationWarning lang='fr'>
<body>
{plausibleUrl
? <PlausibleProvider src={plausibleUrl}>{inner}</PlausibleProvider>
+1 -2
View File
@@ -7,7 +7,6 @@ import Statistik from '../components/akey/statistik'
import Akey from '../components/akey'
import AnVedette from '../components/akey/an-vedette'
import okiLogo from '../public/logo-512x512.png'
import Footer from '../components/footer'
import Aso from '../components/akey/aso'
@@ -26,7 +25,7 @@ export default async function Page() {
return (
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
<Akey logo={okiLogo} />
<Akey />
<Container sx={{flexGrow: 100}}>
{dernierTeks && <AnVedette teks={dernierTeks} />}
<Statistik statistik={statistik} />
+4 -4
View File
@@ -21,10 +21,10 @@ async function jwennAnTeks(slug) {
}
export async function generateMetadata(props) {
const params = await props.params;
const params = await props.params
const {slug} = params
const anTeks = await jwennAnTeks(slug)
const anTeks = await jwennAnTeks(slug)
const awtis = anTeks?.artistes?.length === 1 ? anTeks?.artistes[0].alias : getAlias(anTeks.artistes, anTeks.prioriteArtistes)
const title = `PAWÒL-NU | ${awtis} - ${anTeks.titre}`
@@ -67,12 +67,12 @@ export async function generateMetadata(props) {
}
export default async function AnPawolPaj(props) {
const params = await props.params;
const params = await props.params
const {slug} = params
const anTeks = await jwennAnTeks(slug)
const {couverture} = anTeks
const teksKuvetiFormat = formatKuveti(couverture)
const teksKuvetiFormat = formatKuveti(couverture)
const jsonLd = {
'@context': 'http://schema.org',
+5
View File
@@ -1,4 +1,5 @@
import {Suspense} from 'react'
import PropTypes from 'prop-types'
import TeksDrawerLoader from '../../components/teks/teks-drawer-loader'
import {CurrentTrackProvider} from '../../components/teks/current-track-context'
import Loading from './loading'
@@ -50,3 +51,7 @@ export default function PawolLayout({children}) {
</CurrentTrackProvider>
)
}
PawolLayout.propTypes = {
children: PropTypes.node.isRequired
}
+1 -1
View File
@@ -1,5 +1,5 @@
export default function robots() {
const isProduction = process.env.NODE_ENV === 'production';
const isProduction = process.env.NODE_ENV === 'production'
if (!isProduction) {
return {
+1 -1
View File
@@ -14,7 +14,7 @@ export default function Sipote() {
<Box sx={{display: 'flex', marginTop: 10, flexDirection: 'column', minHeight: '100vh'}}>
<Box sx={{flexGrow: 1, marginBottom: 10}}>
<Container>
<Typography gutterBottom sx={{fontWeight: 'bold', textAlign:'center' }} variant='h4' component='h1'>
<Typography gutterBottom sx={{fontWeight: 'bold', textAlign: 'center'}} variant='h4' component='h1'>
Soutenir ORGANISATION KA INTERNATIONALE !
</Typography>
<Paper sx={{padding: 2, marginTop: 3}}>
+7 -7
View File
@@ -69,13 +69,13 @@ export default function ThemeRegistry(props) {
return (
<>
<InitColorSchemeScript attribute='class' />
<NextAppDirEmotionCacheProvider options={{key: 'mui'}}>
<ThemeProvider theme={theme}>
<CssBaseline enableColorScheme />
<ChanjeTem />
{children}
</ThemeProvider>
</NextAppDirEmotionCacheProvider>
<NextAppDirEmotionCacheProvider options={{key: 'mui'}}>
<ThemeProvider theme={theme}>
<CssBaseline enableColorScheme />
<ChanjeTem />
{children}
</ThemeProvider>
</NextAppDirEmotionCacheProvider>
</>
)
}