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