backend:
  name: github
  repo: samaejaguapita/site-samae
  branch: main
  base_url: https://site-samae.pages.dev
  auth_endpoint: api/auth
  commit_messages:
    update: 'Atualizar conteúdo do SAMAE'
site_url: https://site-samae.pages.dev
display_url: https://site-samae.pages.dev
logo_url: https://site-samae.pages.dev/logo.png
locale: pt
editor:
  preview: false
media_folder: uploads
public_folder: /uploads
collections:
  - name: site
    label: Conteúdo do site
    files:
      - name: conteudo
        label: Notícias, avisos e contatos
        file: content.json
        fields:
          - name: noticias
            label: Notícias
            widget: list
            summary: '{{fields.titulo}}'
            collapsed: true
            fields:
              - {name: titulo, label: Título, widget: string}
              - {name: slug, widget: hidden, required: false}
              - {name: data, label: Data, widget: datetime, date_format: DD/MM/YYYY, time_format: false, format: YYYY-MM-DD}
              - {name: publicado, label: Exibir no site, widget: boolean, default: false, hint: 'Ative e salve para tornar a notícia visível. Desative para retirá-la.'}
              - {name: resumo, label: Resumo, widget: text}
              - name: texto
                label: Texto
                widget: richtext
                buttons: [bold, italic, link, heading-two, heading-three, quote, bulleted-list, numbered-list]
                editor_components: []
                modes: [rich_text, raw]
                sanitize_preview: true
                hint: 'Use os botões para formatar o texto e inserir links. A foto principal é escolhida no campo Imagem.'
              - {name: imagem, label: Imagem, widget: image, required: false}
              - {name: descricaoImagem, label: Descrição da imagem para acessibilidade, widget: string, required: false}
          - name: avisos
            label: Avisos de abastecimento
            widget: list
            summary: '{{fields.titulo}}'
            collapsed: true
            fields:
              - {name: titulo, label: Título, widget: string}
              - {name: texto, label: Comunicado, widget: text}
              - {name: regioes, label: Bairros ou regiões afetadas, widget: string, required: false}
              - {name: inicio, label: Início previsto, widget: string, required: false, hint: 'Informe data e horário local.'}
              - {name: previsao, label: Previsão de retorno, widget: string, required: false, hint: 'Se não houver previsão confirmada, deixe em branco.'}
              - {name: situacao, label: Situação, widget: select, options: [Programada, 'Em andamento', Concluída], default: Programada}
              - {name: ativo, label: Exibir no site, widget: boolean, default: false}
          - name: contato
            label: Contatos
            widget: object
            fields:
              - {name: telefone, label: Telefone, widget: string}
              - {name: email, label: E-mail, widget: string}
              - {name: endereco, label: Endereço, widget: string}
