diff --git a/src/components/editor/pdf/PDFConfiguration.vue b/src/components/editor/pdf/PDFConfiguration.vue index 7ad7f1b14..7e20d7d73 100644 --- a/src/components/editor/pdf/PDFConfiguration.vue +++ b/src/components/editor/pdf/PDFConfiguration.vue @@ -17,6 +17,32 @@ /> + + + + {{ t('editor.pdf.custom.title.cover') }} + + + + + {{ + t('editor.pdf.base.pageSize') + }} + + + + @@ -630,6 +656,7 @@ store.commit('pdf/setStyles', { base: { ...base, + background: _base.value.background, pageMargins: basePageMargins, }, paragraph, @@ -641,4 +668,8 @@ store.commit('absolute/switchPdfConfiguration', false) } + + const onCoverImageLoad = (e: any) => { + store.commit('pdf/setBackground', e) + } diff --git a/src/lang/br/editor.ts b/src/lang/br/editor.ts index 5dbcfe69d..f10ff70d0 100644 --- a/src/lang/br/editor.ts +++ b/src/lang/br/editor.ts @@ -23,6 +23,7 @@ export default { }, custom: { title: { + cover: 'Capa', paragraph: 'Parágrafo', headingOne: 'Título Principal', headingTwo: 'Título Secundário', diff --git a/src/lang/br/index.ts b/src/lang/br/index.ts index a5f464213..d95c997fc 100644 --- a/src/lang/br/index.ts +++ b/src/lang/br/index.ts @@ -2,4 +2,9 @@ import editor from './editor' export default { editor, + generics: { + input: { + image: 'Inserir Imagem', + }, + }, } diff --git a/src/lang/en/editor.ts b/src/lang/en/editor.ts index 040f37564..6ce84ea9b 100644 --- a/src/lang/en/editor.ts +++ b/src/lang/en/editor.ts @@ -15,14 +15,15 @@ export default { pageOrientation: 'Orientations', pageMargins: { title: 'Margins', - left: 'Esquerda', - top: 'Cima', - right: 'Direita', - bottom: 'Baixo', + left: 'Left', + top: 'Top', + right: 'Right', + bottom: 'Bottom', }, }, custom: { title: { + cover: 'Cover', paragraph: 'Paragraph', headingOne: 'Heading One', headingTwo: 'Heading Two', diff --git a/src/lang/en/index.ts b/src/lang/en/index.ts index a5f464213..277bad83f 100644 --- a/src/lang/en/index.ts +++ b/src/lang/en/index.ts @@ -2,4 +2,9 @@ import editor from './editor' export default { editor, + generics: { + input: { + image: 'Insert Image', + }, + }, } diff --git a/src/use/pdf.ts b/src/use/pdf.ts index 304c7f9b7..3f4fb68ef 100644 --- a/src/use/pdf.ts +++ b/src/use/pdf.ts @@ -105,7 +105,6 @@ export const usePDF: Callback = () => { const pages: Array = store.state.project.pages const arr: Array = [] - // TODO: Resolve this const cover = frontCover(store) arr.push(cover)