mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
7e3b9fd039
The desktop layout rendered notes and links as a pair and dropped whichever of the two was on its own, so turning the new Links feature off on an otherwise default install made the Notes panel disappear. Both rows are now split by kind and rendered only when they hold something, and one function decides what a panel id renders, because the branch that lost a panel did so by not listing it. The message and its attachment rows are written in one transaction. The caller has already committed the image bytes by then, so a message that landed without them left those bytes with nothing pointing at them and nothing to sweep them. Deleting one now drops the blobs after the rows are gone rather than before. A body the Zod pipe rejects used to leave up to four spooled images on disk: pipes run after interceptors, so multer had already written them and the handler's own cleanup was never reached. An interceptor removes them on any failure before the handler, which also covers every other schema mismatch, and the length check that could never fire is gone. Adding, pinning and deleting a link now says something when it fails instead of raising an unhandled rejection, the list has real types, and the rejected-image toast is translated in all 23 locales rather than shipping English everywhere. The picking, previewing and clearing of chat images moved into one hook both shells use: it was copied into two, and both rebuilt every preview on each change and leaked an object URL per image per pick. Tests: the four link routes end to end with the validation pipe the harness was missing, the image filter against the disguised-extension case, and the layout combinations that drop a panel.
98 lines
4.3 KiB
TypeScript
98 lines
4.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const collab: TranslationStrings = {
|
|
'collab.chat.readOnly': 'Acesso somente leitura a este chat',
|
|
'collab.chat.messageOptions': 'Opções da mensagem',
|
|
'collab.polls.confirmDeleteTitle': 'Excluir enquete?',
|
|
'collab.polls.confirmDeleteBody': 'Esta enquete será excluída permanentemente.',
|
|
'collab.polls.countdownDaysHours': 'Faltam {d}d {h}h',
|
|
'collab.polls.countdownHoursMinutes': 'Faltam {h}h {m}min',
|
|
'collab.polls.countdownMinutes': 'Faltam {m}min',
|
|
'collab.polls.clearDeadline': 'Remover prazo',
|
|
'collab.tabs.chat': 'Chat',
|
|
'collab.tabs.notes': 'Notas',
|
|
'collab.tabs.polls': 'Enquetes',
|
|
'collab.tabs.links': 'Links',
|
|
'collab.links.add': 'Adicionar link',
|
|
'collab.chat.imageRejected': 'Apenas imagens JPEG, PNG, GIF e WebP de até 10 MB são permitidas',
|
|
'collab.links.cancel': 'Cancelar',
|
|
'collab.links.save': 'Salvar link',
|
|
'collab.links.titlePlaceholder': 'Título do link',
|
|
'collab.links.urlPlaceholder': 'https://...',
|
|
'collab.links.empty': 'Nenhum link compartilhado ainda',
|
|
'collab.links.pin': 'Fixar link',
|
|
'collab.links.unpin': 'Desafixar link',
|
|
'collab.links.delete': 'Excluir link',
|
|
'collab.whatsNext.title': 'Próximos passos',
|
|
'collab.whatsNext.today': 'Hoje',
|
|
'collab.whatsNext.tomorrow': 'Amanhã',
|
|
'collab.whatsNext.empty': 'Nenhuma atividade próxima',
|
|
'collab.whatsNext.until': 'até',
|
|
'collab.whatsNext.emptyHint': 'Atividades com horário aparecerão aqui',
|
|
'collab.chat.send': 'Enviar',
|
|
'collab.chat.placeholder': 'Digite uma mensagem...',
|
|
'collab.chat.empty': 'Inicie a conversa',
|
|
'collab.chat.emptyHint': 'As mensagens são compartilhadas com todos os membros da viagem',
|
|
'collab.chat.emptyDesc': 'Compartilhe ideias, planos e atualizações com o grupo',
|
|
'collab.chat.today': 'Hoje',
|
|
'collab.chat.yesterday': 'Ontem',
|
|
'collab.chat.deletedMessage': 'apagou uma mensagem',
|
|
'collab.chat.reply': 'Responder',
|
|
'collab.chat.loadMore': 'Carregar mensagens antigas',
|
|
'collab.chat.justNow': 'agora mesmo',
|
|
'collab.chat.minutesAgo': 'há {n} min',
|
|
'collab.chat.hoursAgo': 'há {n} h',
|
|
'collab.notes.title': 'Notas',
|
|
'collab.notes.new': 'Nova nota',
|
|
'collab.notes.empty': 'Nenhuma nota ainda',
|
|
'collab.notes.emptyHint': 'Comece a registrar ideias e planos',
|
|
'collab.notes.all': 'Todas',
|
|
'collab.notes.titlePlaceholder': 'Título da nota',
|
|
'collab.notes.content': 'Conteúdo',
|
|
'collab.notes.removeFile': 'Remover {name}',
|
|
'collab.notes.contentPlaceholder': 'Escreva algo...',
|
|
'collab.notes.categoryPlaceholder': 'Categoria',
|
|
'collab.notes.newCategory': 'Nova categoria...',
|
|
'collab.notes.category': 'Categoria',
|
|
'collab.notes.noCategory': 'Sem categoria',
|
|
'collab.notes.color': 'Cor',
|
|
'collab.notes.save': 'Salvar',
|
|
'collab.notes.cancel': 'Cancelar',
|
|
'collab.notes.edit': 'Editar',
|
|
'collab.notes.delete': 'Excluir',
|
|
'collab.notes.confirmDeleteTitle': 'Excluir nota?',
|
|
'collab.notes.confirmDeleteBody': 'Esta nota será excluída permanentemente.',
|
|
'collab.notes.pin': 'Fixar',
|
|
'collab.notes.unpin': 'Desafixar',
|
|
'collab.notes.daysAgo': 'há {n} d',
|
|
'collab.notes.categorySettings': 'Gerenciar categorias',
|
|
'collab.notes.create': 'Criar',
|
|
'collab.notes.website': 'Site',
|
|
'collab.notes.websitePlaceholder': 'https://...',
|
|
'collab.notes.attachFiles': 'Anexar arquivos',
|
|
'collab.notes.noCategoriesYet': 'Nenhuma categoria ainda',
|
|
'collab.notes.emptyDesc': 'Crie uma nota para começar',
|
|
'collab.polls.title': 'Enquetes',
|
|
'collab.polls.new': 'Nova enquete',
|
|
'collab.polls.empty': 'Nenhuma enquete ainda',
|
|
'collab.polls.emptyHint': 'Pergunte ao grupo e votem juntos',
|
|
'collab.polls.question': 'Pergunta',
|
|
'collab.polls.questionPlaceholder': 'O que vamos fazer?',
|
|
'collab.polls.markdownHint': 'Suporta Markdown',
|
|
'collab.polls.addOption': '+ Adicionar opção',
|
|
'collab.polls.optionPlaceholder': 'Opção {n}',
|
|
'collab.polls.create': 'Criar enquete',
|
|
'collab.polls.close': 'Encerrar',
|
|
'collab.polls.closed': 'Encerrada',
|
|
'collab.polls.votes': '{n} votos',
|
|
'collab.polls.vote': '{n} voto',
|
|
'collab.polls.multipleChoice': 'Múltipla escolha',
|
|
'collab.polls.multiChoice': 'Múltipla escolha',
|
|
'collab.polls.deadline': 'Prazo',
|
|
'collab.polls.option': 'Opção',
|
|
'collab.polls.options': 'Opções',
|
|
'collab.polls.delete': 'Excluir',
|
|
'collab.polls.closedSection': 'Encerradas',
|
|
};
|
|
export default collab;
|