blueprints.yaml 12 KB

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