first commit
This commit is contained in:
		
							
								
								
									
										125
									
								
								system/blueprints/config/backups.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										125
									
								
								system/blueprints/config/backups.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,125 @@ | ||||
| title: PLUGIN_ADMIN.BACKUPS | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|         history_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.BACKUPS_HISTORY | ||||
|             underline: true | ||||
|  | ||||
|         history: | ||||
|             type: backupshistory | ||||
|  | ||||
|         config_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.BACKUPS_PURGE_CONFIG | ||||
|             underline: true | ||||
|  | ||||
|         purge.trigger: | ||||
|             type: select | ||||
|             label: PLUGIN_ADMIN.BACKUPS_STORAGE_PURGE_TRIGGER | ||||
|             size: medium | ||||
|             default: space | ||||
|             options: | ||||
|                 space: Maximum Backup Space | ||||
|                 number: Maximum Number of Backups | ||||
|                 time: maximum Retention Time | ||||
|             validate: | ||||
|                 required: true | ||||
|  | ||||
|         purge.max_backups_count: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_COUNT | ||||
|             default: 25 | ||||
|             size: x-small | ||||
|             help: PLUGIN_ADMIN.BACKUPS_MAX_COUNT | ||||
|             validate: | ||||
|                 min: 0 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Must be a number 0 or greater | ||||
|  | ||||
|         purge.max_backups_space: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_SPACE | ||||
|             append: in GB | ||||
|             size: x-small | ||||
|             default: 5 | ||||
|             validate: | ||||
|                 min: 1 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Space must be 1GB or greater | ||||
|  | ||||
|         purge.max_backups_time: | ||||
|             type: number | ||||
|             label: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME | ||||
|             append: PLUGIN_ADMIN.BACKUPS_MAX_RETENTION_TIME_APPEND | ||||
|             size: x-small | ||||
|             default: 365 | ||||
|             validate: | ||||
|                 min: 7 | ||||
|                 type: number | ||||
|                 required: true | ||||
|                 message: Rentenion days must be 7 or greater | ||||
|  | ||||
|         profiles_title: | ||||
|           type: section | ||||
|           title: PLUGIN_ADMIN.BACKUPS_PROFILES | ||||
|           underline: true | ||||
|  | ||||
|         profiles: | ||||
|           type: list | ||||
|           style: vertical | ||||
|           label: | ||||
|           classes: backups-list compact | ||||
|           sort: false | ||||
|  | ||||
|           fields: | ||||
|             .name: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.NAME | ||||
|               placeholder: PLUGIN_ADMIN.BACKUPS_PROFILE_NAME | ||||
|               validate: | ||||
|                   max: 20 | ||||
|                   message: 'Name must be less than 20 characters' | ||||
|                   required: true | ||||
|             .root: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER | ||||
|               help: PLUGIN_ADMIN.BACKUPS_PROFILE_ROOT_FOLDER_HELP | ||||
|               placeholder: '/' | ||||
|               default: '/' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .exclude_paths: | ||||
|               type: textarea | ||||
|               label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS | ||||
|               rows: 5 | ||||
|               placeholder: "/backup\r/cache\r/images\r/logs\r/tmp" | ||||
|               help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_PATHS_HELP | ||||
|             .exclude_files: | ||||
|                 type: textarea | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES | ||||
|                 rows: 5 | ||||
|                 placeholder: ".DS_Store\r.git\r.svn\r.hg\r.idea\r.vscode\rnode_modules" | ||||
|                 help: PLUGIN_ADMIN.BACKUPS_PROFILE_EXCLUDE_FILES_HELP | ||||
|             .schedule: | ||||
|                 type: toggle | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE | ||||
|                 highlight: 1 | ||||
|                 default: 1 | ||||
|                 options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                 validate: | ||||
|                     type: bool | ||||
|             .schedule_at: | ||||
|                 type: cron | ||||
|                 label: PLUGIN_ADMIN.BACKUPS_PROFILE_SCHEDULE_AT | ||||
|                 default: '* 3 * * *' | ||||
|                 validate: | ||||
|                     required: true | ||||
|  | ||||
							
								
								
									
										5
									
								
								system/blueprints/config/media.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								system/blueprints/config/media.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| title: PLUGIN_ADMIN.MEDIA | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
							
								
								
									
										76
									
								
								system/blueprints/config/scheduler.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								system/blueprints/config/scheduler.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,76 @@ | ||||
| title: PLUGIN_ADMIN.SCHEDULER | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|  | ||||
|         status_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.SCHEDULER_STATUS | ||||
|             underline: true | ||||
|  | ||||
|         status: | ||||
|             type: cronstatus | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         jobs_title: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.SCHEDULER_JOBS | ||||
|             underline: true | ||||
|  | ||||
|         custom_jobs: | ||||
|           type: list | ||||
|           style: vertical | ||||
|           label: | ||||
|           classes: cron-job-list compact | ||||
|           key: id | ||||
|           fields: | ||||
|             .id: | ||||
|               type: key | ||||
|               label: ID | ||||
|               placeholder: 'process-name' | ||||
|               validate: | ||||
|                   required: true | ||||
|                   pattern: '[a-zа-я0-9_\-]+' | ||||
|                   max: 20 | ||||
|                   message: 'ID must be lowercase with dashes/underscores only and less than 20 characters' | ||||
|             .command: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.COMMAND | ||||
|               placeholder: 'cd ~;ls -lah;' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .args: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.EXTRA_ARGUMENTS | ||||
|             .at: | ||||
|               type: cron | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_RUNAT | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP | ||||
|               placeholder: '* * * * *' | ||||
|               validate: | ||||
|                   required: true | ||||
|             .output: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_OUTPUT | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP | ||||
|               placeholder: 'logs/ls-cron.out' | ||||
|             .output_mode: | ||||
|               type: select | ||||
|               label: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE | ||||
|               help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP | ||||
|               default: append | ||||
|               options: | ||||
|                   append: Append | ||||
|                   overwrite: Overwrite | ||||
|             .email: | ||||
|                 type: text | ||||
|                 label: PLUGIN_ADMIN.SCHEDULER_EMAIL | ||||
|                 help: PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP | ||||
|                 placeholder: 'notifications@yoursite.com' | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
							
								
								
									
										107
									
								
								system/blueprints/config/security.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										107
									
								
								system/blueprints/config/security.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,107 @@ | ||||
| title: PLUGIN_ADMIN.SECURITY | ||||
|  | ||||
| form: | ||||
|     validation: loose | ||||
|     fields: | ||||
|  | ||||
|         xss_section: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.XSS_SECURITY | ||||
|             underline: true | ||||
|  | ||||
|         xss_whitelist: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_WHITELIST_PERMISSIONS | ||||
|             help: PLUGIN_ADMIN.XSS_WHITELIST_PERMISSIONS_HELP | ||||
|             placeholder: 'admin.super' | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         xss_enabled.on_events: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_ON_EVENTS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.invalid_protocols: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_INVALID_PROTOCOLS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_invalid_protocols: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_INVALID_PROTOCOLS_LIST | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         xss_enabled.moz_binding: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_MOZ_BINDINGS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.html_inline_styles: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_HTML_INLINE_STYLES | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_enabled.dangerous_tags: | ||||
|             type: toggle | ||||
|             label: PLUGIN_ADMIN.XSS_DANGEROUS_TAGS | ||||
|             highlight: 1 | ||||
|             options: | ||||
|                 1: PLUGIN_ADMIN.YES | ||||
|                 0: PLUGIN_ADMIN.NO | ||||
|             default: true | ||||
|             validate: | ||||
|                 type: bool | ||||
|  | ||||
|         xss_dangerous_tags: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.XSS_DANGEROUS_TAGS_LIST | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
|         uploads_section: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.UPLOADS_SECURITY | ||||
|             underline: true | ||||
|  | ||||
|  | ||||
|         uploads_dangerous_extensions: | ||||
|             type: selectize | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.UPLOADS_DANGEROUS_EXTENSIONS | ||||
|             help: PLUGIN_ADMIN.UPLOADS_DANGEROUS_EXTENSIONS_HELP | ||||
|             classes: fancy | ||||
|             validate: | ||||
|                 type: commalist | ||||
|  | ||||
							
								
								
									
										124
									
								
								system/blueprints/config/site.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								system/blueprints/config/site.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,124 @@ | ||||
| title: PLUGIN_ADMIN.SITE | ||||
| form: | ||||
|     validation: loose | ||||
|     fields: | ||||
|  | ||||
|         content: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.DEFAULTS | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 title: | ||||
|                     type: text | ||||
|                     label: PLUGIN_ADMIN.SITE_TITLE | ||||
|                     size: large | ||||
|                     placeholder: PLUGIN_ADMIN.SITE_TITLE_PLACEHOLDER | ||||
|                     help: PLUGIN_ADMIN.SITE_TITLE_HELP | ||||
|  | ||||
|                 default_lang: | ||||
|                     type: text | ||||
|                     label: PLUGIN_ADMIN.SITE_DEFAULT_LANG | ||||
|                     size: x-small | ||||
|                     placeholder: PLUGIN_ADMIN.SITE_DEFAULT_LANG_PLACEHOLDER | ||||
|                     help: PLUGIN_ADMIN.SITE_DEFAULT_LANG_HELP | ||||
|  | ||||
|                 author.name: | ||||
|                     type: text | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.DEFAULT_AUTHOR | ||||
|                     help: PLUGIN_ADMIN.DEFAULT_AUTHOR_HELP | ||||
|  | ||||
|                 author.email: | ||||
|                     type: text | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.DEFAULT_EMAIL | ||||
|                     help: PLUGIN_ADMIN.DEFAULT_EMAIL_HELP | ||||
|                     validate: | ||||
|                         type: email | ||||
|  | ||||
|                 taxonomies: | ||||
|                     type: selectize | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.TAXONOMY_TYPES | ||||
|                     classes: fancy | ||||
|                     help: PLUGIN_ADMIN.TAXONOMY_TYPES_HELP | ||||
|                     validate: | ||||
|                         type: commalist | ||||
|  | ||||
|         summary: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.PAGE_SUMMARY | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 summary.enabled: | ||||
|                     type: toggle | ||||
|                     label: PLUGIN_ADMIN.ENABLED | ||||
|                     highlight: 1 | ||||
|                     help: PLUGIN_ADMIN.ENABLED_HELP | ||||
|                     options: | ||||
|                         1: PLUGIN_ADMIN.YES | ||||
|                         0: PLUGIN_ADMIN.NO | ||||
|                     validate: | ||||
|                         type: bool | ||||
|  | ||||
|                 summary.size: | ||||
|                     type: text | ||||
|                     size: small | ||||
|                     append: PLUGIN_ADMIN.CHARACTERS | ||||
|                     label: PLUGIN_ADMIN.SUMMARY_SIZE | ||||
|                     help: PLUGIN_ADMIN.SUMMARY_SIZE_HELP | ||||
|                     validate: | ||||
|                         type: int | ||||
|                         min: 0 | ||||
|                         max: 65536 | ||||
|  | ||||
|                 summary.format: | ||||
|                     type: toggle | ||||
|                     label: PLUGIN_ADMIN.FORMAT | ||||
|                     classes: fancy | ||||
|                     help: PLUGIN_ADMIN.FORMAT_HELP | ||||
|                     highlight: short | ||||
|                     options: | ||||
|                         'short': PLUGIN_ADMIN.SHORT | ||||
|                         'long': PLUGIN_ADMIN.LONG | ||||
|  | ||||
|                 summary.delimiter: | ||||
|                     type: text | ||||
|                     size: x-small | ||||
|                     label: PLUGIN_ADMIN.DELIMITER | ||||
|                     help: PLUGIN_ADMIN.DELIMITER_HELP | ||||
|  | ||||
|         metadata: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.METADATA | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 metadata: | ||||
|                    type: array | ||||
|                    label: PLUGIN_ADMIN.METADATA | ||||
|                    help: PLUGIN_ADMIN.METADATA_HELP | ||||
|                    placeholder_key: PLUGIN_ADMIN.METADATA_KEY | ||||
|                    placeholder_value: PLUGIN_ADMIN.METADATA_VALUE | ||||
|  | ||||
|         routes: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.REDIRECTS_AND_ROUTES | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 redirects: | ||||
|                     type: array | ||||
|                     label: PLUGIN_ADMIN.CUSTOM_REDIRECTS | ||||
|                     help: PLUGIN_ADMIN.CUSTOM_REDIRECTS_HELP | ||||
|                     placeholder_key: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_KEY | ||||
|                     placeholder_value: PLUGIN_ADMIN.CUSTOM_REDIRECTS_PLACEHOLDER_VALUE | ||||
|  | ||||
|                 routes: | ||||
|                     type: array | ||||
|                     label: PLUGIN_ADMIN.CUSTOM_ROUTES | ||||
|                     help: PLUGIN_ADMIN.CUSTOM_ROUTES_HELP | ||||
|                     placeholder_key: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_KEY | ||||
|                     placeholder_value: PLUGIN_ADMIN.CUSTOM_ROUTES_PLACEHOLDER_VALUE | ||||
							
								
								
									
										8
									
								
								system/blueprints/config/streams.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								system/blueprints/config/streams.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| title: PLUGIN_ADMIN.FILE_STREAMS | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   hidden: true | ||||
|   fields: | ||||
|     schemes.xxx: | ||||
|       type: array | ||||
							
								
								
									
										1410
									
								
								system/blueprints/config/system.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1410
									
								
								system/blueprints/config/system.yaml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										369
									
								
								system/blueprints/pages/default.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										369
									
								
								system/blueprints/pages/default.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,369 @@ | ||||
| title: PLUGIN_ADMIN.DEFAULT | ||||
|  | ||||
| rules: | ||||
|   slug: | ||||
|     pattern: '[a-zA-Zа-яA-Я0-9_\-]+' | ||||
|     min: 1 | ||||
|     max: 200 | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|  | ||||
|   fields: | ||||
|  | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|         content: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.CONTENT | ||||
|  | ||||
|           fields: | ||||
|             xss_check: | ||||
|               type: xss | ||||
|  | ||||
|             header.title: | ||||
|               type: text | ||||
|               autofocus: true | ||||
|               style: vertical | ||||
|               label: PLUGIN_ADMIN.TITLE | ||||
|  | ||||
|             content: | ||||
|                 type: markdown | ||||
|                 validate: | ||||
|                   type: textarea | ||||
|  | ||||
|             header.media_order: | ||||
|               type: pagemedia | ||||
|               label: PLUGIN_ADMIN.PAGE_MEDIA | ||||
|  | ||||
|         options: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.OPTIONS | ||||
|  | ||||
|           fields: | ||||
|  | ||||
|             publishing: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.PUBLISHING | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|                 header.published: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.PUBLISHED | ||||
|                   help: PLUGIN_ADMIN.PUBLISHED_HELP | ||||
|                   highlight: 1 | ||||
|                   size: medium | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.DATE_HELP | ||||
|  | ||||
|                 header.publish_date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.PUBLISHED_DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.PUBLISHED_DATE_HELP | ||||
|  | ||||
|                 header.unpublish_date: | ||||
|                   type: datetime | ||||
|                   label: PLUGIN_ADMIN.UNPUBLISHED_DATE | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP | ||||
|  | ||||
|                 header.metadata: | ||||
|                   toggleable: true | ||||
|                   type: array | ||||
|                   label: PLUGIN_ADMIN.METADATA | ||||
|                   help: PLUGIN_ADMIN.METADATA_HELP | ||||
|                   placeholder_key: PLUGIN_ADMIN.METADATA_KEY | ||||
|                   placeholder_value: PLUGIN_ADMIN.METADATA_VALUE | ||||
|  | ||||
|             taxonomies: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.TAXONOMIES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|                 header.taxonomy: | ||||
|                   type: taxonomy | ||||
|                   label: PLUGIN_ADMIN.TAXONOMY | ||||
|                   multiple: true | ||||
|                   validate: | ||||
|                     type: array | ||||
|  | ||||
|         advanced: | ||||
|           type: tab | ||||
|           title: PLUGIN_ADMIN.ADVANCED | ||||
|  | ||||
|           fields: | ||||
|             columns: | ||||
|               type: columns | ||||
|               fields: | ||||
|                 column1: | ||||
|                   type: column | ||||
|                   fields: | ||||
|  | ||||
|                     settings: | ||||
|                       type: section | ||||
|                       title: PLUGIN_ADMIN.SETTINGS | ||||
|                       underline: true | ||||
|  | ||||
|                     folder: | ||||
|                       type: text | ||||
|                       label: PLUGIN_ADMIN.FOLDER_NAME | ||||
|                       validate: | ||||
|                         rule: slug | ||||
|  | ||||
|                     route: | ||||
|                       type: parents | ||||
|                       label: PLUGIN_ADMIN.PARENT | ||||
|                       classes: fancy | ||||
|  | ||||
|                     name: | ||||
|                       type: select | ||||
|                       classes: fancy | ||||
|                       label: PLUGIN_ADMIN.PAGE_FILE | ||||
|                       help: PLUGIN_ADMIN.PAGE_FILE_HELP | ||||
|                       default: default | ||||
|                       data-options@: '\Grav\Common\Page\Pages::pageTypes' | ||||
|  | ||||
|                     header.body_classes: | ||||
|                       type: text | ||||
|                       label: PLUGIN_ADMIN.BODY_CLASSES | ||||
|  | ||||
|  | ||||
|                 column2: | ||||
|                   type: column | ||||
|  | ||||
|                   fields: | ||||
|                     order_title: | ||||
|                       type: section | ||||
|                       title: PLUGIN_ADMIN.ORDERING | ||||
|                       underline: true | ||||
|  | ||||
|                     ordering: | ||||
|                       type: toggle | ||||
|                       label: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX | ||||
|                       help: PLUGIN_ADMIN.FOLDER_NUMERIC_PREFIX_HELP | ||||
|                       highlight: 1 | ||||
|                       options: | ||||
|                         1: PLUGIN_ADMIN.ENABLED | ||||
|                         0: PLUGIN_ADMIN.DISABLED | ||||
|                       validate: | ||||
|                         type: bool | ||||
|  | ||||
|                     order: | ||||
|                       type: order | ||||
|                       label: PLUGIN_ADMIN.SORTABLE_PAGES | ||||
|                       sitemap: | ||||
|  | ||||
|             overrides: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.dateformat: | ||||
|                   toggleable: true | ||||
|                   type: select | ||||
|                   size: medium | ||||
|                   selectize: | ||||
|                     create: true | ||||
|                   label: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT | ||||
|                   help: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_HELP | ||||
|                   placeholder: PLUGIN_ADMIN.DEFAULT_DATE_FORMAT_PLACEHOLDER | ||||
|                   data-options@: '\Grav\Common\Utils::dateFormats' | ||||
|                   validate: | ||||
|                     type: string | ||||
|  | ||||
|                 header.menu: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.MENU | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.MENU_HELP | ||||
|  | ||||
|                 header.slug: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.SLUG | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.SLUG_HELP | ||||
|                   validate: | ||||
|                     message: PLUGIN_ADMIN.SLUG_VALIDATE_MESSAGE | ||||
|                     rule: slug | ||||
|  | ||||
|                 header.redirect: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.REDIRECT | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.REDIRECT_HELP | ||||
|  | ||||
|                 header.process: | ||||
|                   type: checkboxes | ||||
|                   label: PLUGIN_ADMIN.PROCESS | ||||
|                   toggleable: true | ||||
|                   config-default@: system.pages.process | ||||
|                   default: | ||||
|                     markdown: true | ||||
|                     twig: false | ||||
|                   options: | ||||
|                     markdown: Markdown | ||||
|                     twig: Twig | ||||
|                   use: keys | ||||
|  | ||||
|                 header.twig_first: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.TWIG_FIRST | ||||
|                   help: PLUGIN_ADMIN.TWIG_FIRST_HELP | ||||
|                   highlight: 0 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.never_cache_twig: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.NEVER_CACHE_TWIG | ||||
|                   help: PLUGIN_ADMIN.NEVER_CACHE_TWIG_HELP | ||||
|                   highlight: 0 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.YES | ||||
|                     0: PLUGIN_ADMIN.NO | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.child_type: | ||||
|                   type: select | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DEFAULT_CHILD_TYPE | ||||
|                   default: default | ||||
|                   placeholder: PLUGIN_ADMIN.USE_GLOBAL | ||||
|                   data-options@: '\Grav\Common\Page\Pages::types' | ||||
|  | ||||
|                 header.routable: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTABLE | ||||
|                   help: PLUGIN_ADMIN.ROUTABLE_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.cache_enable: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.CACHING | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.visible: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.VISIBLE | ||||
|                   help: PLUGIN_ADMIN.VISIBLE_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.debugger: | ||||
|                   type: toggle | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DEBUGGER | ||||
|                   help: PLUGIN_ADMIN.DEBUGGER_HELP | ||||
|                   highlight: 1 | ||||
|                   options: | ||||
|                     1: PLUGIN_ADMIN.ENABLED | ||||
|                     0: PLUGIN_ADMIN.DISABLED | ||||
|                   validate: | ||||
|                     type: bool | ||||
|  | ||||
|                 header.template: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.DISPLAY_TEMPLATE | ||||
|  | ||||
|                 header.append_url_extension: | ||||
|                   type: text | ||||
|                   label: PLUGIN_ADMIN.APPEND_URL_EXT | ||||
|                   toggleable: true | ||||
|                   help: PLUGIN_ADMIN.APPEND_URL_EXT_HELP | ||||
|  | ||||
|             routes_only: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.ROUTE_OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.routes.default: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTE_DEFAULT | ||||
|  | ||||
|                 header.routes.canonical: | ||||
|                   type: text | ||||
|                   toggleable: true | ||||
|                   label: PLUGIN_ADMIN.ROUTE_CANONICAL | ||||
|  | ||||
|                 header.routes.aliases: | ||||
|                   type: array | ||||
|                   toggleable: true | ||||
|                   value_only: true | ||||
|                   size: large | ||||
|                   label: PLUGIN_ADMIN.ROUTE_ALIASES | ||||
|  | ||||
|  | ||||
|             admin_only: | ||||
|               type: section | ||||
|               title: PLUGIN_ADMIN.ADMIN_SPECIFIC_OVERRIDES | ||||
|               underline: true | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.admin.children_display_order: | ||||
|                   type: select | ||||
|                   label: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER | ||||
|                   help: PLUGIN_ADMIN.ADMIN_CHILDREN_DISPLAY_ORDER_HELP | ||||
|                   toggleable: true | ||||
|                   classes: fancy | ||||
|                   default: 'collection' | ||||
|                   options: | ||||
|                     'default': 'Ordered by Folder name (default)' | ||||
|                     'collection': 'Ordered by Collection definition' | ||||
|  | ||||
|  | ||||
|                 header.order_by: | ||||
|                   type: hidden | ||||
|  | ||||
|                 header.order_manual: | ||||
|                   type: hidden | ||||
|                   validate: | ||||
|                     type: commalist | ||||
|  | ||||
|                 blueprint: | ||||
|                   type: blueprint | ||||
							
								
								
									
										52
									
								
								system/blueprints/pages/external.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								system/blueprints/pages/external.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,52 @@ | ||||
| title: PLUGIN_ADMIN:EXTERNAL | ||||
| extends@: | ||||
|     type: default | ||||
|     context: blueprints://pages | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|  | ||||
|         content: | ||||
|           fields: | ||||
|  | ||||
|             header.title: | ||||
|               type: text | ||||
|               autofocus: true | ||||
|               style: horizontal | ||||
|               label: PLUGIN_ADMIN.TITLE | ||||
|  | ||||
|             content: | ||||
|               unset@: true | ||||
|  | ||||
|             header.media_order: | ||||
|               unset@: true | ||||
|  | ||||
|             header.external_url: | ||||
|                 type: text | ||||
|                 label: PLUGIN_ADMIN.EXTERNAL_URL | ||||
|                 placeholder: https://getgrav.org | ||||
|                 validate: | ||||
|                     required: true | ||||
|         options: | ||||
|           fields: | ||||
|  | ||||
|             publishing: | ||||
|  | ||||
|               fields: | ||||
|  | ||||
|                 header.date: | ||||
|                   unset@: true | ||||
|  | ||||
|                 header.metadata: | ||||
|                   unset@: true | ||||
|  | ||||
|             taxonomies: | ||||
|               unset@: true | ||||
|  | ||||
							
								
								
									
										38
									
								
								system/blueprints/pages/modular.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								system/blueprints/pages/modular.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| title: PLUGIN_ADMIN.MODULAR | ||||
| extends@: default | ||||
|  | ||||
| form: | ||||
|   fields: | ||||
|     tabs: | ||||
|       type: tabs | ||||
|       active: 1 | ||||
|  | ||||
|       fields: | ||||
|         content: | ||||
|           fields: | ||||
|  | ||||
|             modular_title: | ||||
|               type: spacer | ||||
|               title: PLUGIN_ADMIN.MODULAR_SETUP | ||||
|  | ||||
|             header.content.items: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ITEMS | ||||
|               default: '@self.modular' | ||||
|               size: medium | ||||
|  | ||||
|             header.content.order.by: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ORDER_BY | ||||
|               placeholder: date | ||||
|               help: | ||||
|               size: small | ||||
|  | ||||
|             header.content.order.dir: | ||||
|               type: text | ||||
|               label: PLUGIN_ADMIN.ORDER | ||||
|               help: '"desc" or "asc" are valid values' | ||||
|               placeholder: desc | ||||
|               size: small | ||||
|  | ||||
|  | ||||
							
								
								
									
										127
									
								
								system/blueprints/user/account.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										127
									
								
								system/blueprints/user/account.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,127 @@ | ||||
| title: Account | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|  | ||||
|         info: | ||||
|             type: userinfo | ||||
|             size: large | ||||
|  | ||||
|         avatar: | ||||
|             type: file | ||||
|             size: large | ||||
|             destination: 'user://accounts/avatars' | ||||
|             multiple: false | ||||
|             random_name: true | ||||
|  | ||||
|         content: | ||||
|             type: section | ||||
|             title: PLUGIN_ADMIN.ACCOUNT | ||||
|             underline: true | ||||
|  | ||||
|         username: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.USERNAME | ||||
|             disabled: true | ||||
|             readonly: true | ||||
|  | ||||
|         email: | ||||
|             type: email | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.EMAIL | ||||
|             validate: | ||||
|               type: email | ||||
|               message: PLUGIN_ADMIN.EMAIL_VALIDATION_MESSAGE | ||||
|               required: true | ||||
|  | ||||
|         password: | ||||
|             type: password | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.PASSWORD | ||||
|             autocomplete: new-password | ||||
|             validate: | ||||
|               required: false | ||||
|               message: PLUGIN_ADMIN.PASSWORD_VALIDATION_MESSAGE | ||||
|               config-pattern@: system.pwd_regex | ||||
|  | ||||
|         fullname: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.FULL_NAME | ||||
|             validate: | ||||
|               required: true | ||||
|  | ||||
|         title: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.TITLE | ||||
|  | ||||
|         language: | ||||
|             type: select | ||||
|             label: PLUGIN_ADMIN.LANGUAGE | ||||
|             size: medium | ||||
|             classes: fancy | ||||
|             data-options@: '\Grav\Plugin\Admin\Admin::adminLanguages' | ||||
|             default: 'en' | ||||
|             help: PLUGIN_ADMIN.LANGUAGE_HELP | ||||
|  | ||||
|         twofa_check: | ||||
|             type: conditional | ||||
|             condition: config.plugins.admin.twofa_enabled | ||||
|  | ||||
|             fields: | ||||
|  | ||||
|                 twofa: | ||||
|                     title: PLUGIN_ADMIN.2FA_TITLE | ||||
|                     type: section | ||||
|                     underline: true | ||||
|  | ||||
|                 twofa_enabled: | ||||
|                     type: toggle | ||||
|                     label: PLUGIN_ADMIN.2FA_ENABLED | ||||
|                     classes: twofa-toggle | ||||
|                     highlight: 1 | ||||
|                     default: 0 | ||||
|                     options: | ||||
|                       1: PLUGIN_ADMIN.YES | ||||
|                       0: PLUGIN_ADMIN.NO | ||||
|                     validate: | ||||
|                       type: bool | ||||
|  | ||||
|  | ||||
|                 twofa_secret: | ||||
|                     type: 2fa_secret | ||||
|                     outerclasses: 'twofa-secret' | ||||
|                     markdown: true | ||||
|                     label: PLUGIN_ADMIN.2FA_SECRET | ||||
|                     sublabel: PLUGIN_ADMIN.2FA_SECRET_HELP | ||||
|  | ||||
|  | ||||
|         security: | ||||
|             security@: admin.super | ||||
|             title: PLUGIN_ADMIN.ACCESS_LEVELS | ||||
|             type: section | ||||
|             underline: true | ||||
|  | ||||
|             fields: | ||||
|                 groups: | ||||
|                     security@: admin.super | ||||
|                     type: select | ||||
|                     multiple: true | ||||
|                     size: large | ||||
|                     label: PLUGIN_ADMIN.GROUPS | ||||
|                     data-options@: '\Grav\Common\User\Group::groupNames' | ||||
|                     classes: fancy | ||||
|                     help: PLUGIN_ADMIN.GROUPS_HELP | ||||
|                     validate: | ||||
|                         type: commalist | ||||
|  | ||||
|                 access: | ||||
|                     security@: admin.super | ||||
|                     type: permissions | ||||
|                     label: PLUGIN_ADMIN.PERMISSIONS | ||||
|                     ignore_empty: true | ||||
|                     validate: | ||||
|                         type: array | ||||
							
								
								
									
										18
									
								
								system/blueprints/user/account_new.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								system/blueprints/user/account_new.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| title: PLUGIN_ADMIN.ADD_ACCOUNT | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     content: | ||||
|       type: section | ||||
|       title: PLUGIN_ADMIN.ADD_ACCOUNT | ||||
|  | ||||
|     username: | ||||
|       type: text | ||||
|       label: PLUGIN_ADMIN.USERNAME | ||||
|       help: PLUGIN_ADMIN.USERNAME_HELP | ||||
|       unset-disabled@: true | ||||
|       unset-readonly@: true | ||||
|       validate: | ||||
|         required: true | ||||
							
								
								
									
										39
									
								
								system/blueprints/user/accounts.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								system/blueprints/user/accounts.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| title: User Accounts | ||||
| description: User Accounts | ||||
| type: flex-objects | ||||
|  | ||||
| extends@: 'user/account' | ||||
|  | ||||
| config: | ||||
|   admin: | ||||
|     list: | ||||
|       fields: | ||||
|         username: | ||||
|           link: edit | ||||
|           search: true | ||||
|         email: | ||||
|           search: true | ||||
|         fullname: | ||||
|           search: true | ||||
|       options: | ||||
|         per_page: 20 | ||||
|         order: | ||||
|           by: username | ||||
|           dir: asc | ||||
|  | ||||
|     menu: | ||||
|       list: | ||||
|         route: '/accounts' | ||||
|         title: Accounts | ||||
|         icon: fa-users | ||||
|         authorize: ['admin.users', 'admin.accounts', 'admin.super'] | ||||
|  | ||||
| form: | ||||
|   fields: | ||||
|     username: | ||||
|       flex-disabled@: exists | ||||
|       disabled: false | ||||
|       flex-readonly@: exists | ||||
|       readonly: false | ||||
|       validate: | ||||
|         required: true | ||||
							
								
								
									
										37
									
								
								system/blueprints/user/group.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								system/blueprints/user/group.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| title: Group | ||||
| form: | ||||
|     validation: loose | ||||
|  | ||||
|     fields: | ||||
|         spacer: | ||||
|             type: spacer | ||||
|             text: '<br>' | ||||
|  | ||||
|         groupname: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.NAME | ||||
|             disabled: true | ||||
|             readonly: true | ||||
|  | ||||
|         readableName: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN_PRO.READABLE_NAME | ||||
|  | ||||
|         description: | ||||
|             type: text | ||||
|             size: large | ||||
|             label: PLUGIN_ADMIN.DESCRIPTION | ||||
|  | ||||
|         icon: | ||||
|             type: text | ||||
|             size: small | ||||
|             label: PLUGIN_ADMIN_PRO.ICON | ||||
|  | ||||
|         access: | ||||
|             type: permissions | ||||
|             label: PLUGIN_ADMIN.PERMISSIONS | ||||
|             ignore_empty: true | ||||
|             validate: | ||||
|                 type: array | ||||
							
								
								
									
										16
									
								
								system/blueprints/user/group_new.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								system/blueprints/user/group_new.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| title: PLUGIN_ADMIN_PRO.ADD_GROUP | ||||
|  | ||||
| form: | ||||
|   validation: loose | ||||
|   fields: | ||||
|  | ||||
|     content: | ||||
|       type: section | ||||
|       title: PLUGIN_ADMIN_PRO.ADD_GROUP | ||||
|  | ||||
|     groupname: | ||||
|       type: text | ||||
|       label: PLUGIN_ADMIN_PRO.GROUP_NAME | ||||
|       help: PLUGIN_ADMIN_PRO.GROUP_NAME_HELP | ||||
|       validate: | ||||
|         required: true | ||||
		Reference in New Issue
	
	Block a user