mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-04-24 05:16:00 +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
40 lines
1,002 B
JavaScript
40 lines
1,002 B
JavaScript
import Box from '@elementor/ui/Box';
|
|
import { BottomBar } from '@ea11y/components';
|
|
import SkipToContentSettings from '@ea11y/components/skip-to-content-settings';
|
|
import { MenuSettings, WidgetPreview } from '@ea11y/layouts';
|
|
import {
|
|
StyledBox,
|
|
StyledContainer,
|
|
StyledTitle,
|
|
} from '@ea11y/pages/pages.styles';
|
|
import { eventNames, mixpanelService } from '@ea11y/services';
|
|
import { useEffect } from '@wordpress/element';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
const Menu = () => {
|
|
useEffect(() => {
|
|
mixpanelService.sendEvent(eventNames.pageView, {
|
|
page: 'Capabilities',
|
|
});
|
|
}, []);
|
|
|
|
return (
|
|
<StyledBox>
|
|
<StyledContainer>
|
|
<StyledTitle variant="h4" color="text.primary">
|
|
{__('Capabilities', 'pojo-accessibility')}
|
|
</StyledTitle>
|
|
|
|
<Box display="grid" gridTemplateColumns="repeat(2, 1fr)" gap={4}>
|
|
<MenuSettings />
|
|
<WidgetPreview />
|
|
</Box>
|
|
|
|
<SkipToContentSettings />
|
|
</StyledContainer>
|
|
<BottomBar />
|
|
</StyledBox>
|
|
);
|
|
};
|
|
|
|
export default Menu;
|