Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 7.29 KB | None | 0 0
  1.                 schemaCodeBlock: [ //TODO сделать дефолтную схему и ту которую плучаем с апи
  2.                     {
  3.                         alias: 'cases',
  4.                         placeholder: 'Кейсы',
  5.                         mainValue: 'Наши кейсы',
  6.                         multiplay: false,
  7.                         rules: {
  8.                             rules: {
  9.                                 required: true,
  10.                                 max: 120,
  11.                             }
  12.                         }
  13.                     },
  14.                     {
  15.                         alias: 'clients',
  16.                         placeholder: 'Клиенты',
  17.                         mainValue: 'Наши клиенты',
  18.                         multiplay: false,
  19.                         rules: {
  20.                             rules: {
  21.                                 required: true,
  22.                                 max: 120,
  23.                             }
  24.                         }
  25.                     },
  26.                     {
  27.                         alias: 'about',
  28.                         placeholder: 'О нас',
  29.                         mainValue: 'О нас говорят',
  30.                         multiplay: false,
  31.                         rules: {
  32.                             rules: {
  33.                                 required: true,
  34.                                 max: 120,
  35.                             }
  36.                         }
  37.                     },
  38.                     {
  39.                         alias: 'reviews',
  40.                         placeholder: 'Отзывы',
  41.                         mainValue: 'Отзывы о нашей работе',
  42.                         multiplay: false,
  43.                         rules: {
  44.                             rules: {
  45.                                 required: true,
  46.                                 max: 120,
  47.                             }
  48.                         }
  49.                     },
  50.                     {
  51.                         alias: 'about-lk',
  52.                         placeholder: 'О Лк',
  53.                         mainValue: {
  54.                             text: '',
  55.                             link_image: '',
  56.                             title: 'Личный кабинет клиента'
  57.                         },
  58.                         rules: {
  59.                             title: {
  60.                                 rules: {
  61.                                     required: true,
  62.                                     max: 120,
  63.                                 }
  64.                             },
  65.                             link_image: {
  66.                                 rules: {
  67.                                     regex: '^https?://(?:[a-z0-9\\-]+\\.)+[a-z]{2,6}(?:/[^/#?]+)+\\.(?:jpg|gif|png)$',
  68.                                     required: true,
  69.                                 }
  70.                             },
  71.                             text: {
  72.                                 rules: {
  73.                                     alias: 'text',
  74.                                     placeholder: 'текст',
  75.                                     required: true,
  76.                                     max: 1000,
  77.                                 }
  78.                             }
  79.                         },
  80.                         multiplay: false,
  81.                     },
  82.                     {
  83.                         alias: 'video',
  84.                         placeholder: 'Видео',
  85.                         mainValue: {
  86.                             title: '',
  87.                             link_background: '',
  88.                             link_video: ''
  89.                         },
  90.                         rules: {
  91.                             link_background: {
  92.                                 placeholder: 'img url',
  93.                                 rules: {
  94.                                     regex: '^https?://(?:[a-z0-9\\-]+\\.)+[a-z]{2,6}(?:/[^/#?]+)+\\.(?:jpg|jpeg|png)$',
  95.                                 }
  96.                             },
  97.                             link_video: {
  98.                                 placeholder: 'youtube url',
  99.                                 rules: {
  100.                                     required: true,
  101.                                     max: 1000,
  102.                                     regex: '^https?://(?:[a-z0-9\\-]+\\.)+[a-z]{2,6}(?:/[^/#?]+)+$',
  103.                                 }
  104.                             }
  105.                         },
  106.                         multiplay: false,
  107.                     },
  108.                     {
  109.                         alias: 'presentation',
  110.                         placeholder: 'Презентация',
  111.                         mainValue: {
  112.                             title: 'ее',
  113.                             link_presentation: 'ее',
  114.                         },
  115.                         rules: {
  116.                             title: {
  117.                                 placeholder: 'Наши достижения',
  118.                                 rules: {
  119.                                     required: true,
  120.                                     max: 120,
  121.                                 }
  122.                             },
  123.                             link_presentation: {
  124.                                 placeholder: 'pdf url',
  125.                                 rules: {
  126.                                     regex: '^https?://(?:[a-z0-9\\-]+\\.)+[a-z]{2,6}(?:/[^/#?]+)+\\.(?:pdf)$',
  127.                                     required: true,
  128.                                 }
  129.                             }
  130.                         },
  131.                         multiplay: false,
  132.                     },
  133.                     {
  134.                         alias: 'html',
  135.                         placeholder: 'HTML блок',
  136.                         mainValue: {
  137.                             title: '',
  138.                             text: '',
  139.                             background: [
  140.                                 {
  141.                                     title: 'Прозрачный',
  142.                                     value: 'transparent',
  143.                                 },
  144.                                 {
  145.                                     title: 'Голубой',
  146.                                     value: 'bluet',
  147.                                 },
  148.                                 {
  149.                                     title: 'Белый',
  150.                                     value: 'white',
  151.                                 },
  152.                             ],
  153.                         },
  154.                         rules: {
  155.                             title: {
  156.                                 placeholder: 'Наши достижения',
  157.                                 rules: {
  158.                                     required: true,
  159.                                     max: 120,
  160.                                 }
  161.                             },
  162.                             text: {
  163.                                 placeholder: 'Содержимое',
  164.                                 rules: {
  165.                                     required: true,
  166.                                     max: 1000
  167.                                 }
  168.                             }
  169.                         },
  170.                         multiplay: false,
  171.                     },
  172.                 ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement