blueprints.yaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. name: Admin Panel
  2. version: 1.9.10
  3. testing: false
  4. description: Adds an advanced administration panel to manage your site
  5. icon: empire
  6. author:
  7. name: Team Grav
  8. email: devs@getgrav.org
  9. url: http://getgrav.org
  10. homepage: https://github.com/getgrav/grav-plugin-admin
  11. keywords: admin, plugin, manager, panel
  12. bugs: https://github.com/getgrav/grav-plugin-admin/issues
  13. docs: https://github.com/getgrav/grav-plugin-admin/blob/develop/README.md
  14. license: MIT
  15. dependencies:
  16. - { name: grav, version: '>=1.6.8' }
  17. - { name: form, version: '>=3.0.0' }
  18. - { name: login, version: '>=3.0.0' }
  19. - { name: email, version: '>=3.0.0' }
  20. form:
  21. validation: loose
  22. fields:
  23. Basics:
  24. type: section
  25. title: Basics
  26. underline: false
  27. enabled:
  28. type: hidden
  29. label: PLUGIN_ADMIN.PLUGIN_STATUS
  30. highlight: 1
  31. default: 0
  32. options:
  33. 1: PLUGIN_ADMIN.ENABLED
  34. 0: PLUGIN_ADMIN.DISABLED
  35. validate:
  36. type: bool
  37. cache_enabled:
  38. type: toggle
  39. label: PLUGIN_ADMIN.ADMIN_CACHING
  40. help: PLUGIN_ADMIN.ADMIN_CACHING_HELP
  41. highlight: 0
  42. options:
  43. 1: PLUGIN_ADMIN.YES
  44. 0: PLUGIN_ADMIN.NO
  45. validate:
  46. type: bool
  47. twofa_enabled:
  48. type: toggle
  49. label: PLUGIN_LOGIN.2FA_TITLE
  50. help: PLUGIN_LOGIN.2FA_ENABLED_HELP
  51. default: 1
  52. highlight: 1
  53. options:
  54. 1: PLUGIN_ADMIN.YES
  55. 0: PLUGIN_ADMIN.NO
  56. validate:
  57. type: bool
  58. route:
  59. type: text
  60. label: Administrator path
  61. size: medium
  62. placeholder: "Default route for administrator (relative to base)"
  63. help: If you want to change the URL for the administrator, you can provide a path here
  64. logo_text:
  65. type: text
  66. label: Logo text
  67. size: medium
  68. placeholder: "Grav"
  69. help: Text to display in place of the default Grav logo
  70. content_padding:
  71. type: toggle
  72. label: PLUGIN_ADMIN.CONTENT_PADDING
  73. help: PLUGIN_ADMIN.CONTENT_PADDING_HELP
  74. highlight: 1
  75. options:
  76. 1: PLUGIN_ADMIN.YES
  77. 0: PLUGIN_ADMIN.NO
  78. validate:
  79. type: bool
  80. body_classes:
  81. type: text
  82. label: Body classes
  83. size: medium
  84. help: Add a space separated name of custom body classes
  85. sidebar.activate:
  86. type: select
  87. label: Sidebar Activation
  88. help: Control how the sidebar is activated
  89. size: small
  90. default: tab
  91. options:
  92. tab: Tab
  93. hover: Hover
  94. sidebar.hover_delay:
  95. type: text
  96. size: x-small
  97. append: millseconds
  98. label: Hover delay
  99. default: 500
  100. validate:
  101. type: number
  102. min: 1
  103. sidebar.size:
  104. type: select
  105. label: Sidebar Size
  106. help: Control the width of the sidebar
  107. size: medium
  108. default: auto
  109. options:
  110. auto: Automatic width
  111. small: Small width
  112. theme:
  113. type: hidden
  114. label: Theme
  115. default: grav
  116. edit_mode:
  117. type: select
  118. label: Edit mode
  119. size: small
  120. default: normal
  121. options:
  122. normal: Normal
  123. expert: Expert
  124. help: Auto will use blueprint if available, if none found, it will use "Expert" mode.
  125. frontend_preview_target:
  126. type: select
  127. label: Preview pages target
  128. size: medium
  129. default: inline
  130. options:
  131. inline: Inline in Admin
  132. _blank: New tab
  133. _self: Current tab
  134. pages.show_parents:
  135. type: select
  136. size: medium
  137. label: Parent dropdown
  138. highlight: 1
  139. options:
  140. both: Show slug and folder
  141. folder: Show folder
  142. fullpath: Show fullpath
  143. pages.parents_levels:
  144. type: text
  145. label: Parents Levels
  146. size: small
  147. help: The number of levels to show in parent select list
  148. pages.show_modular:
  149. type: toggle
  150. label: Modular parents
  151. highlight: 1
  152. default: 1
  153. options:
  154. 1: PLUGIN_ADMIN.ENABLED
  155. 0: PLUGIN_ADMIN.DISABLED
  156. validate:
  157. type: bool
  158. help: Show modular pages in the parent select list
  159. google_fonts:
  160. type: toggle
  161. label: Use Google Fonts
  162. highlight: 0
  163. default: 0
  164. options:
  165. 1: PLUGIN_ADMIN.ENABLED
  166. 0: PLUGIN_ADMIN.DISABLED
  167. validate:
  168. type: bool
  169. help: Use Google custom fonts. Disable this to use Helvetica. Useful when using Cyrillic and other languages with unsupported characters.
  170. show_beta_msg:
  171. type: hidden
  172. show_github_msg:
  173. type: toggle
  174. label: Show GitHub Link
  175. highlight: 1
  176. default: 1
  177. options:
  178. 1: PLUGIN_ADMIN.ENABLED
  179. 0: PLUGIN_ADMIN.DISABLED
  180. validate:
  181. type: bool
  182. help: Show the "Found an issue? Please report it on GitHub." message.
  183. pages_list_display_field:
  184. type: text
  185. size: small
  186. label: Pages List Display Field
  187. help: "Field of the page to use in the list of pages if present. Defaults/Fallback to title."
  188. enable_auto_updates_check:
  189. type: toggle
  190. label: Automatically check for updates
  191. highlight: 1
  192. default: 1
  193. options:
  194. 1: PLUGIN_ADMIN.ENABLED
  195. 0: PLUGIN_ADMIN.DISABLED
  196. validate:
  197. type: bool
  198. help: Shows an informative message, in the admin panel, when an update is available.
  199. session.timeout:
  200. type: text
  201. size: small
  202. label: Session Timeout
  203. append: secs
  204. help: "Sets the session timeout in seconds"
  205. validate:
  206. type: number
  207. min: 1
  208. warnings.delete_page:
  209. type: toggle
  210. label: Warn on page delete
  211. highlight: 1
  212. default: 1
  213. options:
  214. 1: PLUGIN_ADMIN.ENABLED
  215. 0: PLUGIN_ADMIN.DISABLED
  216. validate:
  217. type: bool
  218. help: Ask the user confirmation when deleting a page
  219. hide_page_types:
  220. type: array
  221. label: Hide page types in Admin
  222. value_only: true
  223. hide_modular_page_types:
  224. type: array
  225. label: Hide modular page types in Admin
  226. value_only: true
  227. log_viewer_files:
  228. type: selectize
  229. size: medium
  230. label: PLUGIN_ADMIN.LOG_VIEWER_FILES
  231. help: PLUGIN_ADMIN.LOG_VIEWER_FILES_HELP
  232. classes: fancy
  233. validate:
  234. type: commalist
  235. MediaResize:
  236. type: section
  237. title: Page Media Image Resizer
  238. underline: true
  239. MediaResizeNote:
  240. type: spacer
  241. text: PLUGIN_ADMIN.PAGEMEDIA_RESIZER
  242. markdown: true
  243. pagemedia.resize_width:
  244. type: number
  245. size: x-small
  246. append: pixels
  247. label: Resize Width
  248. default: 0
  249. validate:
  250. type: number
  251. help: Resize wide images down to the set value
  252. pagemedia.resize_height:
  253. type: number
  254. size: x-small
  255. append: pixels
  256. label: Resize Height
  257. default: 0
  258. validate:
  259. type: number
  260. help: Resize tall images down to the set value
  261. pagemedia.res_min_width:
  262. type: number
  263. size: x-small
  264. append: pixels
  265. label: Resolution Min Width
  266. default: 0
  267. validate:
  268. type: number
  269. help: The minimum width allowed for an image to be added
  270. pagemedia.res_min_height:
  271. type: number
  272. size: x-small
  273. append: pixels
  274. label: Resolution Min Height
  275. default: 0
  276. validate:
  277. type: number
  278. help: The minimum height allowed for an image to be added
  279. pagemedia.res_max_width:
  280. type: number
  281. size: x-small
  282. append: pixels
  283. label: Resolution Max Width
  284. default: 0
  285. validate:
  286. type: number
  287. help: The maximum width allowed for an image to be added
  288. pagemedia.res_max_height:
  289. type: number
  290. size: x-small
  291. append: pixels
  292. label: Resolution Max Height
  293. default: 0
  294. validate:
  295. type: number
  296. help: The maximum height allowed for an image to be added
  297. pagemedia.resize_quality:
  298. type: number
  299. size: x-small
  300. append: 0...1
  301. label: Resize Quality
  302. default: 0.8
  303. validate:
  304. type: number
  305. step: 0.01
  306. help: The quality to use when resizing an image. Between 0 and 1 value.
  307. Dashboard:
  308. type: section
  309. title: Dashboard
  310. underline: true
  311. widgets.dashboard-maintenance:
  312. type: toggle
  313. label: Maintenance Widget
  314. highlight: 1
  315. default: 1
  316. options:
  317. 1: PLUGIN_ADMIN.ENABLED
  318. 0: PLUGIN_ADMIN.DISABLED
  319. validate:
  320. type: bool
  321. help: Display dashboard maintenance widget
  322. widgets.dashboard-statistics:
  323. type: toggle
  324. label: Statistics Widget
  325. highlight: 1
  326. default: 1
  327. options:
  328. 1: PLUGIN_ADMIN.ENABLED
  329. 0: PLUGIN_ADMIN.DISABLED
  330. validate:
  331. type: bool
  332. help: Display dashboard statistics widget
  333. widgets.dashboard-notifications:
  334. type: toggle
  335. label: Notifications Feed Widget
  336. highlight: 1
  337. default: 1
  338. options:
  339. 1: PLUGIN_ADMIN.ENABLED
  340. 0: PLUGIN_ADMIN.DISABLED
  341. validate:
  342. type: bool
  343. help: Display dashboard notifications feed widget
  344. widgets.dashboard-feed:
  345. type: toggle
  346. label: News Feed Widget
  347. highlight: 1
  348. default: 1
  349. options:
  350. 1: PLUGIN_ADMIN.ENABLED
  351. 0: PLUGIN_ADMIN.DISABLED
  352. validate:
  353. type: bool
  354. help: Display dashboard news feed widget
  355. widgets.dashboard-pages:
  356. type: toggle
  357. label: Latest Pages Widget
  358. highlight: 1
  359. default: 1
  360. options:
  361. 1: PLUGIN_ADMIN.ENABLED
  362. 0: PLUGIN_ADMIN.DISABLED
  363. validate:
  364. type: bool
  365. help: Display dashboard latest pages widget
  366. Notifications:
  367. type: section
  368. title: Notifications
  369. underline: true
  370. notifications.feed:
  371. type: toggle
  372. label: Feed Notifications
  373. highlight: 1
  374. default: 1
  375. options:
  376. 1: PLUGIN_ADMIN.ENABLED
  377. 0: PLUGIN_ADMIN.DISABLED
  378. validate:
  379. type: bool
  380. help: Display feed-based notifications
  381. notifications.dashboard:
  382. type: toggle
  383. label: Dashboard Notifications
  384. highlight: 1
  385. default: 1
  386. options:
  387. 1: PLUGIN_ADMIN.ENABLED
  388. 0: PLUGIN_ADMIN.DISABLED
  389. validate:
  390. type: bool
  391. help: Display dashboard-based notifications
  392. notifications.plugins:
  393. type: toggle
  394. label: Plugins Notifications
  395. highlight: 1
  396. default: 1
  397. options:
  398. 1: PLUGIN_ADMIN.ENABLED
  399. 0: PLUGIN_ADMIN.DISABLED
  400. validate:
  401. type: bool
  402. help: Display plugins-targeted notifications
  403. notifications.themes:
  404. type: toggle
  405. label: Themes Notifications
  406. highlight: 1
  407. default: 1
  408. options:
  409. 1: PLUGIN_ADMIN.ENABLED
  410. 0: PLUGIN_ADMIN.DISABLED
  411. validate:
  412. type: bool
  413. help: Display themes-targeted notifications
  414. Popularity:
  415. type: section
  416. title: Popularity
  417. underline: true
  418. popularity.enabled:
  419. type: toggle
  420. label: Visitor tracking
  421. highlight: 1
  422. default: 1
  423. options:
  424. 1: PLUGIN_ADMIN.ENABLED
  425. 0: PLUGIN_ADMIN.DISABLED
  426. validate:
  427. type: bool
  428. help: Enable the visitors stats collecting feature
  429. dashboard.days_of_stats:
  430. type: text
  431. label: Days of stats
  432. append: days
  433. size: x-small
  434. default: 7
  435. help: Keep stats for the specified number of days, then drop them
  436. validate:
  437. type: int
  438. popularity.ignore:
  439. type: array
  440. label: Ignore
  441. size: large
  442. help: "URLs to ignore"
  443. default: ['/test*','/modular']
  444. value_only: true
  445. placeholder_value: /ignore-this-route
  446. popularity.history.daily:
  447. type: hidden
  448. label: Daily history
  449. default: 30
  450. popularity.history.monthly:
  451. type: hidden
  452. label: Monthly history
  453. default: 12
  454. popularity.history.visitors:
  455. type: hidden
  456. label: Visitors history
  457. default: 20