diff --git a/packages/builder/src/components/backend/DataTable/TablePagination.svelte b/packages/builder/src/components/backend/DataTable/TablePagination.svelte index 840b3381e5..ccb7d0fc4c 100644 --- a/packages/builder/src/components/backend/DataTable/TablePagination.svelte +++ b/packages/builder/src/components/backend/DataTable/TablePagination.svelte @@ -24,7 +24,6 @@ } function getPagesAroundCurrent(current, max) { - console.log(current) const start = Math.max(current - 2, 1) const end = Math.min(current + 2, max - 2) let pages = [] diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 446c4c6bfe..7914e1a43a 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -305,7 +305,7 @@ export default { design: { ...all }, settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, @@ -587,7 +587,7 @@ export default { design: { ...all }, settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, @@ -659,7 +659,7 @@ export default { properties: { settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, @@ -753,7 +753,7 @@ export default { properties: { settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, @@ -867,7 +867,7 @@ export default { properties: { settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, @@ -970,7 +970,7 @@ export default { properties: { settings: [ { - label: "Table", + label: "Data", key: "datasource", control: TableViewSelect, }, diff --git a/packages/server/src/utilities/fileProcessor.js b/packages/server/src/utilities/fileProcessor.js index 734209733d..3e580e9e37 100644 --- a/packages/server/src/utilities/fileProcessor.js +++ b/packages/server/src/utilities/fileProcessor.js @@ -1,5 +1,5 @@ const fs = require("fs") -// const sharp = require("sharp") +const sharp = require("sharp") const fsPromises = fs.promises const FORMATS = { @@ -7,14 +7,14 @@ const FORMATS = { } async function processImage(file) { - // const imgMeta = await sharp(file.path) - // .resize(300) - // .toFile(file.outputPath) - // - // return { - // ...file, - // ...imgMeta, - // } + const imgMeta = await sharp(file.path) + .resize(300) + .toFile(file.outputPath) + + return { + ...file, + ...imgMeta, + } } async function process(file) {