edit DahboardLimitsSection
This commit is contained in:
@@ -35,7 +35,7 @@ export default function DahboardLimitsSection() {
|
|||||||
<div className="progress-bar low" style={{ width: '0%' }}></div>
|
<div className="progress-bar low" style={{ width: '0%' }}></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="progress-bar-value">
|
<div className="progress-bar-value">
|
||||||
5%
|
{getProcents(filesInfo?.all_files_check, 10000)}%
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -7,24 +7,33 @@ import 'swiper/css';
|
|||||||
import 'swiper/css/pagination';
|
import 'swiper/css/pagination';
|
||||||
import testImage from '@/app/src/image-preview.png'
|
import testImage from '@/app/src/image-preview.png'
|
||||||
import { useRef } from 'react';
|
import { useRef } from 'react';
|
||||||
|
import { useTranslations } from 'next-intl';
|
||||||
|
import Link from 'next/link';
|
||||||
|
|
||||||
export default function ViolationsCarousel() {
|
export default function ViolationsCarousel() {
|
||||||
const paginationRef = useRef(null);
|
const paginationRef = useRef(null);
|
||||||
|
const t = useTranslations('Global');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="content-section">
|
<div className="content-section">
|
||||||
<div className="section-header">
|
<div className="section-header">
|
||||||
<h3 className="section-title">Нарушения</h3>
|
<h3 className="section-title">Нарушения</h3>
|
||||||
<a href="pages/violations.php" className="view-all-link">Смотреть все →</a>
|
<Link
|
||||||
|
href="violations"
|
||||||
|
className="view-all-link"
|
||||||
|
>
|
||||||
|
Смотреть все
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="violations-carousel">
|
<div>
|
||||||
|
{t('are-no-violations')}
|
||||||
|
</div>
|
||||||
|
{/* <div className="violations-carousel">
|
||||||
<Swiper
|
<Swiper
|
||||||
spaceBetween={50}
|
spaceBetween={50}
|
||||||
slidesPerView={1}
|
slidesPerView={1}
|
||||||
modules={[Pagination, Autoplay]}
|
modules={[Pagination, Autoplay]}
|
||||||
pagination={{
|
pagination={{
|
||||||
/* dynamicBullets: true, */
|
|
||||||
/* el: paginationRef.current, */
|
|
||||||
clickable: true,
|
clickable: true,
|
||||||
el: '.custon-swiper-pagination'
|
el: '.custon-swiper-pagination'
|
||||||
}}
|
}}
|
||||||
@@ -33,7 +42,6 @@ export default function ViolationsCarousel() {
|
|||||||
delay: 3000,
|
delay: 3000,
|
||||||
disableOnInteraction: false,
|
disableOnInteraction: false,
|
||||||
}}
|
}}
|
||||||
/* width={300} */
|
|
||||||
>
|
>
|
||||||
<SwiperSlide>
|
<SwiperSlide>
|
||||||
<div className="violation-slide">
|
<div className="violation-slide">
|
||||||
@@ -260,7 +268,7 @@ export default function ViolationsCarousel() {
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> */}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -203,7 +203,8 @@
|
|||||||
"PROTECTED": "Protected",
|
"PROTECTED": "Protected",
|
||||||
"FAILED": "Failed",
|
"FAILED": "Failed",
|
||||||
"FAILED_SAVE": "Failed save",
|
"FAILED_SAVE": "Failed save",
|
||||||
"view": "View"
|
"view": "View",
|
||||||
|
"are-no-violations": "There are no violations"
|
||||||
},
|
},
|
||||||
"Login-register-form": {
|
"Login-register-form": {
|
||||||
"and": "and",
|
"and": "and",
|
||||||
|
|||||||
@@ -203,7 +203,8 @@
|
|||||||
"PROTECTED": "Защищено",
|
"PROTECTED": "Защищено",
|
||||||
"FAILED": "Ошибка",
|
"FAILED": "Ошибка",
|
||||||
"FAILED_SAVE": "Сохранение не удалось",
|
"FAILED_SAVE": "Сохранение не удалось",
|
||||||
"view": "Посмотреть"
|
"view": "Посмотреть",
|
||||||
|
"are-no-violations": "Нарушений нету"
|
||||||
},
|
},
|
||||||
"Login-register-form": {
|
"Login-register-form": {
|
||||||
"and": "и",
|
"and": "и",
|
||||||
|
|||||||
Reference in New Issue
Block a user