Created
March 24, 2023 15:36
-
-
Save saymondamasio/ca4dd37613af27d43847b4b87e2e1f6c to your computer and use it in GitHub Desktop.
schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CategoryMenu.schema = { | |
| title: 'Menu principal', | |
| description: 'Defina as características do menu principal', | |
| type: 'object', | |
| properties: { | |
| maxDepartments: { | |
| type: 'number', | |
| title: 'Máximo de departamentos', | |
| description: 'Define o número máximo de departamentos que serão exibidos', | |
| }, | |
| maxCategories: { | |
| type: 'number', | |
| title: 'Máximo de categorias', | |
| description: | |
| 'Define o número máximo de categorias (Nos submenus) que serão exibidas', | |
| }, | |
| sortDepartments: { | |
| type: 'boolean', | |
| title: 'Ordenar departamentos', | |
| description: | |
| 'Define se os departamentos devem ou não ser ordenados em ordem alfabética', | |
| }, | |
| sortCategories: { | |
| type: 'boolean', | |
| title: 'Ordenar categorias', | |
| description: | |
| 'Define se as categorias (Nos submenus) devem ou não ser ordenados em ordem alfabética', | |
| }, | |
| departmentData: { | |
| type: 'array', | |
| title: 'Dados dos departamentos', | |
| description: | |
| 'Textos e imagens que serão exibidos nos departamentos (A ordem aqui importa)', | |
| items: { | |
| type: 'object', | |
| properties: { | |
| id: { | |
| title: 'ID do departamento', | |
| type: 'string', | |
| }, | |
| text: { | |
| title: 'Texto do departamento', | |
| type: 'string', | |
| format: 'RichText', | |
| }, | |
| image: { | |
| title: 'Imagem do departamento', | |
| type: 'string', | |
| widget: { | |
| 'ui:widget': 'image-uploader', | |
| }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| idList: { | |
| type: 'array', | |
| title: 'Ordenação do Menu', | |
| description: 'Ordenação do Menu', | |
| items: { | |
| type: 'object', | |
| properties: { | |
| id: { | |
| type: 'string', | |
| title: 'ID', | |
| description: 'ID', | |
| }, | |
| } | |
| } | |
| }, | |
| hiddenDepartments: { | |
| type: 'array', | |
| title: 'Esconder categorias', | |
| description: 'Esconder categorias', | |
| items: { | |
| type: 'object', | |
| properties: { | |
| id: { | |
| type: 'string', | |
| title: 'ID', | |
| description: 'ID', | |
| }, | |
| } | |
| } | |
| }, | |
| customItems: { | |
| type: 'array', | |
| title: 'Itens customizados', | |
| description: 'Lista de itens customizados', | |
| items: { | |
| type: 'object', | |
| properties: { | |
| name: { | |
| title: 'Texto', | |
| type: 'string', | |
| description: 'Nome que será exibido', | |
| }, | |
| id: { | |
| title: 'id', | |
| type: 'string', | |
| description: 'Texto sem espaço (separado por "-")', | |
| }, | |
| href: { | |
| title: 'Link', | |
| type: 'string', | |
| }, | |
| }, | |
| }, | |
| }, | |
| replaceCategories: { | |
| type: 'array', | |
| title: 'Categorias substituídas', | |
| description: 'Adicione o id da Categoria que será substituída', | |
| items: { | |
| type: 'object', | |
| properties: { | |
| name: { | |
| title: 'Texto', | |
| type: 'string', | |
| description: 'Nome que será exibido', | |
| }, | |
| id: { | |
| title: 'id', | |
| type: 'string', | |
| description: 'ID da categoria que será substituída' | |
| }, | |
| href: { | |
| title: 'Link', | |
| type: 'string', | |
| }, | |
| }, | |
| required: ['id'], | |
| }, | |
| }, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment