deprecated
2 months ago
block.json
1 month ago
edit.js
3 weeks ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 months ago
style.scss
2 months ago
index.js
50 lines
| 1 | /** |
| 2 | * staff block type |
| 3 | */ |
| 4 | |
| 5 | /** |
| 6 | * Internal dependencies |
| 7 | */ |
| 8 | import { |
| 9 | iconPicture, |
| 10 | profileTitle, |
| 11 | position, |
| 12 | profileName, |
| 13 | profileLifeTime, |
| 14 | content, |
| 15 | } from '@vkblocks/utils/example-data'; |
| 16 | import { ReactComponent as Icon } from './icon.svg'; |
| 17 | |
| 18 | import edit from './edit'; |
| 19 | import save from './save'; |
| 20 | import deprecated from './deprecated/index'; |
| 21 | import metadata from './block.json'; |
| 22 | |
| 23 | const { name } = metadata; |
| 24 | |
| 25 | export { metadata, name }; |
| 26 | |
| 27 | export const settings = { |
| 28 | icon: <Icon />, |
| 29 | example: { |
| 30 | attributes: { |
| 31 | vk_staff_text_name: profileName, |
| 32 | vk_staff_text_caption: profileLifeTime, |
| 33 | vk_staff_text_role: position, |
| 34 | vk_staff_text_profileTitle: profileTitle, |
| 35 | vk_staff_text_profileText: content, |
| 36 | vk_staff_photo_image: iconPicture, |
| 37 | vk_staff_layout: 'default', |
| 38 | vk_staff_nameColor: 'inherit', |
| 39 | vk_staff_captionColor: 'inherit', |
| 40 | vk_staff_positionColor: 'inherit', |
| 41 | vk_staff_profileTitleColor: 'inherit', |
| 42 | vk_staff_profileTextColor: 'inherit', |
| 43 | vk_staff_photoBorder: 'default', |
| 44 | }, |
| 45 | }, |
| 46 | edit, |
| 47 | save, |
| 48 | deprecated, |
| 49 | }; |
| 50 |