deprecated
2 months ago
block.json
1 month ago
edit.js
2 months 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
54 lines
| 1 | /** |
| 2 | * PR Block block type |
| 3 | * |
| 4 | */ |
| 5 | import { ReactComponent as Icon } from './icon.svg'; |
| 6 | import { |
| 7 | iconName, |
| 8 | iconUser, |
| 9 | title, |
| 10 | baseColor, |
| 11 | url, |
| 12 | } from '@vkblocks/utils/example-data'; |
| 13 | import metadata from './block.json'; |
| 14 | import edit from './edit'; |
| 15 | import save from './save'; |
| 16 | import { deprecated } from './deprecated/'; |
| 17 | |
| 18 | const { name } = metadata; |
| 19 | |
| 20 | export { metadata, name }; |
| 21 | |
| 22 | export const settings = { |
| 23 | icon: <Icon />, |
| 24 | example: { |
| 25 | heading1: iconName, |
| 26 | heading2: iconName, |
| 27 | heading3: iconName, |
| 28 | content1: title, |
| 29 | content2: title, |
| 30 | content3: title, |
| 31 | url1: url, |
| 32 | url2: url, |
| 33 | url3: url, |
| 34 | urlOpenType1: false, |
| 35 | urlOpenType2: false, |
| 36 | urlOpenType3: false, |
| 37 | icon1: iconUser, |
| 38 | icon2: iconUser, |
| 39 | icon3: iconUser, |
| 40 | color1: baseColor, |
| 41 | color2: baseColor, |
| 42 | color3: baseColor, |
| 43 | bgType1: '0', |
| 44 | bgType2: '0', |
| 45 | bgType3: '0', |
| 46 | insertImage1: '', |
| 47 | insertImage2: '', |
| 48 | insertImage3: '', |
| 49 | }, |
| 50 | edit, |
| 51 | save, |
| 52 | deprecated, |
| 53 | }; |
| 54 |