mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-05-01 20:11:34 +08:00
* [APP-1108][APP-1109][APP-1110] Add analytics backend logic * [APP-1108][APP-1109][APP-1110] Add analytics backend logic * Add nonce to the widget settings * Update routes and DB table * Fix comments * Fix comments * Fix comments * Fix comments * Fix comments * Fix comments * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1107] Add dashboard for analytics * [APP-1201] add accessibility rules * [APP-1107] fixed API endpoint * [APP-1107] fixed API endpoint * [APP-1107] fixed API endpoint * [APP-1107] add check for is_active * update to the latest * update to the latest * update to the latest * fix bugs, add changes * fix bugs, add changes * fix bugs, add changes * fix bugs, add changes
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
import Card from '@elementor/ui/Card';
|
|
import CardHeader from '@elementor/ui/CardHeader';
|
|
import Skeleton from '@elementor/ui/Skeleton';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { LineChartTitle } from '@ea11y/components/analytics/components/line-chart-title';
|
|
import ChartSkeleton from '@ea11y/icons/chart-skeleton';
|
|
import { StyledCardContent } from '@ea11y/pages/pages.styles';
|
|
|
|
export const LineChartSkeleton = ({ animated }) => (
|
|
<Card variant="outlined" sx={{ height: '100%' }}>
|
|
<CardHeader
|
|
title={
|
|
animated ? (
|
|
<Typography variant="subtitle1">
|
|
<Skeleton
|
|
width={150}
|
|
sx={{ p: 2 }}
|
|
animation={animated ? 'wave' : false}
|
|
variant="text"
|
|
/>
|
|
</Typography>
|
|
) : (
|
|
<LineChartTitle />
|
|
)
|
|
}
|
|
subheader={
|
|
!animated ? (
|
|
<Typography variant="h3" sx={{ height: '50px' }}>
|
|
--
|
|
</Typography>
|
|
) : null
|
|
}
|
|
sx={{ height: animated ? '100px' : 'auto', alignItems: 'start' }}
|
|
/>
|
|
<StyledCardContent sx={{ pt: 3, pr: 4 }}>
|
|
<ChartSkeleton width="489" height="194" />
|
|
</StyledCardContent>
|
|
</Card>
|
|
);
|