05a75baa2680260d3d7a8c36a9e1c876.yaml.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. return [
  3. '@class' => 'Grav\\Common\\File\\CompiledYamlFile',
  4. 'filename' => '/var/www/html/system/blueprints/config/scheduler.yaml',
  5. 'modified' => 1591823779,
  6. 'data' => [
  7. 'title' => 'PLUGIN_ADMIN.SCHEDULER',
  8. 'form' => [
  9. 'validation' => 'loose',
  10. 'fields' => [
  11. 'status_title' => [
  12. 'type' => 'section',
  13. 'title' => 'PLUGIN_ADMIN.SCHEDULER_STATUS',
  14. 'underline' => true
  15. ],
  16. 'status' => [
  17. 'type' => 'cronstatus',
  18. 'validate' => [
  19. 'type' => 'commalist'
  20. ]
  21. ],
  22. 'jobs_title' => [
  23. 'type' => 'section',
  24. 'title' => 'PLUGIN_ADMIN.SCHEDULER_JOBS',
  25. 'underline' => true
  26. ],
  27. 'custom_jobs' => [
  28. 'type' => 'list',
  29. 'style' => 'vertical',
  30. 'label' => NULL,
  31. 'classes' => 'cron-job-list compact',
  32. 'key' => 'id',
  33. 'fields' => [
  34. '.id' => [
  35. 'type' => 'key',
  36. 'label' => 'ID',
  37. 'placeholder' => 'process-name',
  38. 'validate' => [
  39. 'required' => true,
  40. 'pattern' => '[a-zа-я0-9_\\-]+',
  41. 'max' => 20,
  42. 'message' => 'ID must be lowercase with dashes/underscores only and less than 20 characters'
  43. ]
  44. ],
  45. '.command' => [
  46. 'type' => 'text',
  47. 'label' => 'PLUGIN_ADMIN.COMMAND',
  48. 'placeholder' => 'cd ~;ls -lah;',
  49. 'validate' => [
  50. 'required' => true
  51. ]
  52. ],
  53. '.args' => [
  54. 'type' => 'text',
  55. 'label' => 'PLUGIN_ADMIN.EXTRA_ARGUMENTS'
  56. ],
  57. '.at' => [
  58. 'type' => 'cron',
  59. 'label' => 'PLUGIN_ADMIN.SCHEDULER_RUNAT',
  60. 'help' => 'PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP',
  61. 'placeholder' => '* * * * *',
  62. 'validate' => [
  63. 'required' => true
  64. ]
  65. ],
  66. '.output' => [
  67. 'type' => 'text',
  68. 'label' => 'PLUGIN_ADMIN.SCHEDULER_OUTPUT',
  69. 'help' => 'PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP',
  70. 'placeholder' => 'logs/ls-cron.out'
  71. ],
  72. '.output_mode' => [
  73. 'type' => 'select',
  74. 'label' => 'PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE',
  75. 'help' => 'PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP',
  76. 'default' => 'append',
  77. 'options' => [
  78. 'append' => 'Append',
  79. 'overwrite' => 'Overwrite'
  80. ]
  81. ],
  82. '.email' => [
  83. 'type' => 'text',
  84. 'label' => 'PLUGIN_ADMIN.SCHEDULER_EMAIL',
  85. 'help' => 'PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP',
  86. 'placeholder' => 'notifications@yoursite.com'
  87. ]
  88. ]
  89. ]
  90. ]
  91. ]
  92. ]
  93. ];