blueprints.yaml 11 KB

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