Typos 'texte' => 'parole'
This commit is contained in:
@@ -77,7 +77,7 @@ export default function AwtisDetay({anAwtis}) {
|
|||||||
aria-controls='panel-teks-content'
|
aria-controls='panel-teks-content'
|
||||||
id='panel-teks-header'
|
id='panel-teks-header'
|
||||||
>
|
>
|
||||||
<Typography marginRight={2} textAlign='center' variant='body1' component='h2'><strong>Liste des textes</strong></Typography>
|
<Typography marginRight={2} textAlign='center' variant='body1' component='h2'><strong>Liste des paroles</strong></Typography>
|
||||||
<Chip color='primary' label={paroles.data.length} size='small' variant='contained' />
|
<Chip color='primary' label={paroles.data.length} size='small' variant='contained' />
|
||||||
</AccordionSummary>
|
</AccordionSummary>
|
||||||
<AccordionDetails>
|
<AccordionDetails>
|
||||||
@@ -86,7 +86,7 @@ export default function AwtisDetay({anAwtis}) {
|
|||||||
</Accordion>
|
</Accordion>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Texte</strong></Typography>
|
<Typography gutterBottom textAlign='center' variant='body1' component='h2'><strong>Parole</strong></Typography>
|
||||||
<Paper>
|
<Paper>
|
||||||
<MizikLis paroles={paroles.data} />
|
<MizikLis paroles={paroles.data} />
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ export default function AwtisKat({artiste}) {
|
|||||||
{alias}
|
{alias}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography align='center' variant='body2' color='textSecondary' component='h5'>
|
<Typography align='center' variant='body2' color='textSecondary' component='h5'>
|
||||||
{`${paroles.data.length} ${paroles.data.length > 1 ? 'textes' : 'texte'}`}
|
{`${paroles.data.length} ${paroles.data.length > 1 ? 'paroles' : 'parole'}`}
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</CardActionArea>
|
</CardActionArea>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function Chwa(props) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onClose={handleClose}>
|
<Dialog open={open} onClose={handleClose}>
|
||||||
<DialogTitle>Choisir le texte à modifier</DialogTitle>
|
<DialogTitle>Choisir la parole à modifier</DialogTitle>
|
||||||
{loading ? (
|
{loading ? (
|
||||||
<Container sx={{textAlign: 'center', marginBottom: 1}}>
|
<Container sx={{textAlign: 'center', marginBottom: 1}}>
|
||||||
<CircularProgress size={20} sx={{color: '#29d'}} />
|
<CircularProgress size={20} sx={{color: '#29d'}} />
|
||||||
@@ -94,7 +94,7 @@ export default function ChwaTeks({selectedTeks, setSelectedTeks}) {
|
|||||||
return (
|
return (
|
||||||
<Container sx={{textAlign: 'center', marginBottom: 1}} maxWidth='sm'>
|
<Container sx={{textAlign: 'center', marginBottom: 1}} maxWidth='sm'>
|
||||||
<Button variant='outlined' onClick={handleClickOpen}>
|
<Button variant='outlined' onClick={handleClickOpen}>
|
||||||
Modifier mes textes
|
Modifier mes paroles
|
||||||
</Button>
|
</Button>
|
||||||
<Chwa
|
<Chwa
|
||||||
selectedTeks={selectedTeks}
|
selectedTeks={selectedTeks}
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ function EkriTeks({canAutoTranslate, selectedTeks, setSelectedTeks}) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const {data} = teksResponse
|
const {data} = teksResponse
|
||||||
setSuccess(`Le texte "${data.tit}" a été modifié avec succès. Il apparaîtra sur le site après validation.`)
|
setSuccess(`Le morceau "${data.tit}" a été modifié avec succès. Il apparaîtra sur le site après validation.`)
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setError(error?.response?.data)
|
setError(error?.response?.data)
|
||||||
@@ -288,7 +288,7 @@ function EkriTeks({canAutoTranslate, selectedTeks, setSelectedTeks}) {
|
|||||||
<StyledContainer maxWidth='sm'>
|
<StyledContainer maxWidth='sm'>
|
||||||
<Box sx={{textAlign: 'center', marginBottom: 2}}>
|
<Box sx={{textAlign: 'center', marginBottom: 2}}>
|
||||||
<Typography display='inline' variant='h6' component='h1'>
|
<Typography display='inline' variant='h6' component='h1'>
|
||||||
Soumettre un texte
|
Soumettre une parole
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<form noValidate autoComplete='off'>
|
<form noValidate autoComplete='off'>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import {Button} from '@mui/material'
|
|||||||
|
|
||||||
export default function MontreTeks({handleClick}) {
|
export default function MontreTeks({handleClick}) {
|
||||||
return (
|
return (
|
||||||
<Box sx={{'& > :not(style)': {m: 1.7}}}>
|
<Box sx={{'& > :not(style)': {m: 0.5}}}>
|
||||||
<Button variant='text' onClick={handleClick}>Afficher tous les textes</Button>
|
<Button variant='text' onClick={handleClick}>Afficher toutes les paroles</Button>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default function Pataje({parole, setError, setSuccess}) {
|
|||||||
const alias = artistes.data.map(({attributes}) => attributes.alias)
|
const alias = artistes.data.map(({attributes}) => attributes.alias)
|
||||||
const renderAwtis = new Intl.ListFormat('fr').format(alias)
|
const renderAwtis = new Intl.ListFormat('fr').format(alias)
|
||||||
|
|
||||||
const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (texte soumis par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${parole} (Paroles et Traductions)`
|
const text = parole.user || parole.userAdmin ? `${renderAwtis} - ${titre} (Paroles et Traductions) - (parole soumise par ${parole?.user?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.username || parole.userAdmin?.data?.attributes?.firstname})` : `${renderAwtis} - ${parole} (Paroles et Traductions)`
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export default function TeksDrawer({parole, paroleId, slug, denyeTeks}) {
|
|||||||
</Stream>
|
</Stream>
|
||||||
) : (
|
) : (
|
||||||
<Typography noWrap variant='h6'>
|
<Typography noWrap variant='h6'>
|
||||||
Derniers textes
|
Dernières paroles
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
|
|||||||
@@ -68,12 +68,12 @@ export default function TeksKat({parole}) {
|
|||||||
<Typography variant='caption'>
|
<Typography variant='caption'>
|
||||||
{parole.user && (
|
{parole.user && (
|
||||||
<>
|
<>
|
||||||
(<i>texte soumis par {parole.user.username}</i>)
|
(<i>parole soumise par {parole.user.username}</i>)
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{parole.userAdmin && !parole.user && (
|
{parole.userAdmin && !parole.user && (
|
||||||
<>
|
<>
|
||||||
(<i>texte soumis par {parole.userAdmin}</i>)
|
(<i>parole soumise par {parole.userAdmin}</i>)
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -84,7 +84,7 @@ export default function TeksKat({parole}) {
|
|||||||
{annee}
|
{annee}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography align='center' style={{marginTop: '0.5em'}} variant='body1' color='textSecondary' component='p'>
|
<Typography align='center' style={{marginTop: '0.5em'}} variant='body1' color='textSecondary' component='p'>
|
||||||
Publié le : {datPiblikasyon}
|
Publiée le : {datPiblikasyon}
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</CardActionArea>
|
</CardActionArea>
|
||||||
|
|||||||
@@ -158,12 +158,12 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
</Typography>
|
</Typography>
|
||||||
{parole?.user?.data && (
|
{parole?.user?.data && (
|
||||||
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
||||||
<i>texte soumis par {parole.user.data.attributes.username}</i>
|
<i>parole soumise par {parole.user.data.attributes.username}</i>
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
{parole?.userAdmin?.data && !parole.user.data && (
|
{parole?.userAdmin?.data && !parole.user.data && (
|
||||||
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
||||||
<i>texte soumis par {parole.userAdmin.data.attributes.username || parole.userAdmin.data.attributes.firstname}</i>
|
<i>parole soumise par {parole.userAdmin.data.attributes.username || parole.userAdmin.data.attributes.firstname}</i>
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ export default function Home({errorCode, errorMessage, stats}) {
|
|||||||
<Chip sx={{fontWeight: 'bold'}} color='primary' icon={<ArrowCircleDownIcon />} label='Statistiques' variant='outlined' />
|
<Chip sx={{fontWeight: 'bold'}} color='primary' icon={<ArrowCircleDownIcon />} label='Statistiques' variant='outlined' />
|
||||||
</Divider>
|
</Divider>
|
||||||
<Grid container spacing={2} sx={{marginBottom: 3}}>
|
<Grid container spacing={2} sx={{marginBottom: 3}}>
|
||||||
<KatKayLa tit='Textes' kantite={stats.countParole} href='/paroles' as='/paroles' />
|
<KatKayLa tit='Paroles' kantite={stats.countParole} href='/paroles' as='/paroles' />
|
||||||
<KatKayLa tit='Artistes' kantite={stats.countArtiste} href='/awtis?paj&paj=1' as='/awtis/paj/1' />
|
<KatKayLa tit='Artistes' kantite={stats.countArtiste} href='/awtis?paj&paj=1' as='/awtis/paj/1' />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
Reference in New Issue
Block a user