Upload image for use in blocknote editor (#3044)

* - upload image to use in blocknote editor
- fix local-storage not in gitignore

* fix lint

* fix runtime config
add tests for body parsing notes and tasks

* lint
This commit is contained in:
brendanlaschke
2023-12-20 15:16:19 +01:00
committed by GitHub
parent 351dc6488c
commit c4fecb0a1a
11 changed files with 282 additions and 24 deletions

View File

@ -45,7 +45,7 @@ const StyledAttachmentContainer = styled.div`
background: ${({ theme }) => theme.background.secondary};
border: 1px solid ${({ theme }) => theme.border.color.medium};
border-radius: ${({ theme }) => theme.border.radius.md};
disply: flex;
display: flex;
flex-flow: column nowrap;
justify-content: center;
width: 100%;

View File

@ -12,6 +12,7 @@ import {
} from '@/object-record/field/contexts/FieldContext';
import { useDeleteOneRecord } from '@/object-record/hooks/useDeleteOneRecord';
import { IconCalendar } from '@/ui/display/icon';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
import { formatToHumanReadableDate } from '~/utils';
const StyledRow = styled.div`
@ -75,11 +76,7 @@ export const AttachmentRow = ({ attachment }: { attachment: Attachment }) => {
<StyledLeftContent>
<AttachmentIcon attachment={attachment} />
<StyledLink
href={
process.env.REACT_APP_SERVER_BASE_URL +
'/files/' +
attachment.fullPath
}
href={REACT_APP_SERVER_BASE_URL + '/files/' + attachment.fullPath}
target="__blank"
>
{attachment.name}