| 1 |
/** |
| 2 |
* WordPress dependeincies |
| 3 |
*/ |
| 4 |
import { __ } from '@wordpress/i18n'; |
| 5 |
import { registerBlockType } from '@wordpress/blocks'; |
| 6 |
|
| 7 |
/** |
| 8 |
* Internal dependencies |
| 9 |
*/ |
| 10 |
import Edit from './edit' |
| 11 |
import attributes from './attributes' |
| 12 |
import icon from './icon' |
| 13 |
/** |
| 14 |
* Import styles |
| 15 |
*/ |
| 16 |
import './style.scss' |
| 17 |
|
| 18 |
registerBlockType('betterdocs/categorygrid', { |
| 19 |
title: __('BetterDocs Category Grid', 'betterdocs'), |
| 20 |
description: __('Represent knowledge base categories with amazing grid view.', 'betterdocs'), |
| 21 |
category: 'betterdocs', |
| 22 |
attributes, |
| 23 |
icon, |
| 24 |
keywords: [ |
| 25 |
__('betterdocs', 'betterdocs'), |
| 26 |
__('category grid', 'betterdocs'), |
| 27 |
], |
| 28 |
edit: Edit, |
| 29 |
save: () => null, |
| 30 |
example: { |
| 31 |
viewportWidth: 1200, |
| 32 |
}, |
| 33 |
}) |
| 34 |
|