diff --git a/backend/prisma/migrations/20231211235124_/migration.sql b/backend/prisma/migrations/20231211235124_/migration.sql new file mode 100644 index 0000000..ce77f7d --- /dev/null +++ b/backend/prisma/migrations/20231211235124_/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Drill" ALTER COLUMN "image" SET DEFAULT 'abc'; diff --git a/backend/prisma/migrations/20231211235631_/migration.sql b/backend/prisma/migrations/20231211235631_/migration.sql new file mode 100644 index 0000000..12c0cac --- /dev/null +++ b/backend/prisma/migrations/20231211235631_/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Drill" ALTER COLUMN "image" SET DEFAULT 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAx4AAAGyCAMAAABdpeKwAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAE1UExURQAAAHFzfJKVoJmZZo+PX5iYdDJhNTBbMTRlNy5XLzZpOSxTLSVIJ/X19SVJJ/b29vf396VjUGooFPL19ytcLocyGoEwGTxtP6ReSY02HJM4Hevr6zpoPJU9JJ5bSIUtFCpYLJhZR5k6Ho87I+3v8DhkOvby8aVgSnsuGJ9hT/Hx8ShUKu/x8d7Y2NfPz+3m5HwoFG8oFNHPz3UoFM/Pz+nj4uvj4pJXRtvPz+HPz3soFNLPz/Pr6e7o5nYoFOvl5IIoFNbPz+bi4mwoFJtAJd3Pz/Dp538rFPHr6YwvFHAoFCAgIMbDvGxoX5+bkufq6+nn5Oji4ry/zvb2/7i615lfTluAXd/Y2GGEYll8W19/YF17Xld4WNPPz3x8UoWFWO/t7HkoFF2EX/P19mlpRnBwS////y5nq+wAAAABYktHRGYs1NklAAAAB3RJTUUH5wwJADUQwOvxwwAAAAFvck5UAc+id5oAADWASURBVHja7Z0NmxS3lbZr46Q/YNh0F6k21c6AGRyWGSeebo+ZeI094JhlDCROSGIvYXfj3ffN/v+/sKWj+urqqi7pSCpJpVNXrsBwOE0ZzjPSkfT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qbJlXwShzPPXg9CfI4R+zn+D45bUlG1HBKRAAAAJnRFWHRDcmVhdGlvbiBUaW1lAHNleCAwOCBkZXogMjAyMyAwNzoyMDoyNJM64DQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMTItMDlUMDA6NTI6NTErMDA6MDBieYF0AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTEyLTA5VDAwOjUyOjUxKzAwOjAwEyQ5yAAAACh0RVh0ZGF0ZTp0aW1lc3RhbXAAMjAyMy0xMi0wOVQwMDo1MzoxNiswMDowMOoeQ10AAAAZdEVYdFNvZnR3YXJlAGdub21lLXNjcmVlbnNob3TvA78+AAAAAElFTkSuQmCC'; diff --git a/backend/src/controllers/drillController.ts b/backend/src/controllers/drillController.ts index 721995f..51292c7 100644 --- a/backend/src/controllers/drillController.ts +++ b/backend/src/controllers/drillController.ts @@ -84,6 +84,7 @@ export default class drillController { image, }, }) + console.log("Foi") res.status(204).json(updatedDrill) } catch (err) { res.status(500).json({ error: "Internal Server Error" }) diff --git a/backend/src/zodSchemas/drill.zod.ts b/backend/src/zodSchemas/drill.zod.ts index bad0550..d947046 100644 --- a/backend/src/zodSchemas/drill.zod.ts +++ b/backend/src/zodSchemas/drill.zod.ts @@ -9,7 +9,6 @@ const drillSchema = z.object({ .string() .max(500, "Observações deve ter no máximo 500 caracteres"), classPlanId: z.string().uuid("Id do plano de aula inválido"), - image: z.string(), }) export { drillSchema } diff --git a/frontend/src/pages/Drill.tsx b/frontend/src/pages/Drill.tsx index fdd3aa7..bbeee85 100644 --- a/frontend/src/pages/Drill.tsx +++ b/frontend/src/pages/Drill.tsx @@ -108,16 +108,11 @@ const Drill = () => { async function saveDrillState() { updateImagen(); - // let data = { - // id: selectedDrill.id, - // title: titleAux, - // image: imagemBase64, - // description: selectedDrill.description, - // observations: selectedDrill.observations, - // classPlanId: selectedDrill.classPlanId, - // }; - // console.log(data) - // await drill.updateById(id as string, data); + let data = { + image: imagemBase64 + }; + console.log(data.image) + await drill.updateImage(selectedDrill.id, data); for (const [idNewItem, indexNewItem] of newItems) { try { const element = document.getElementById(idNewItem); diff --git a/frontend/src/pages/ViewPlan.tsx b/frontend/src/pages/ViewPlan.tsx index b5112f3..2a1b818 100644 --- a/frontend/src/pages/ViewPlan.tsx +++ b/frontend/src/pages/ViewPlan.tsx @@ -84,7 +84,6 @@ const ViewPlan = () => { title: titleDrill, description: '', observations: '', - image: '', classPlanId: selectedClassPlan.id, }; let newDrillData = await drill.save(data); @@ -282,8 +281,7 @@ const ViewPlan = () => { // Configurar as opções do html2pdf const options = { - - filename: 'plano_de_aula_com_drills.pdf', + filename: `${title}.pdf`, image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2 }, jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, diff --git a/frontend/src/service/drillService.ts b/frontend/src/service/drillService.ts index 6022315..7331f2a 100644 --- a/frontend/src/service/drillService.ts +++ b/frontend/src/service/drillService.ts @@ -26,6 +26,12 @@ class DrillService extends Apiservice { }); } + async updateImage(id: string, data: any) { + return this.put('/image/' + id, data, { + headers: { Authorization: `Bearer ${this.token}` }, + }); + } + async deleteById(id: string) { return this.delete('/' + id, { headers: { Authorization: `Bearer ${this.token}` },