From e15224bc6a563e23151600a1f0f21b2cef79e679 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 11 Oct 2023 03:22:07 +0000 Subject: [PATCH 1/3] Restyled by clang-format --- client/next.config.js | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/client/next.config.js b/client/next.config.js index 47c9e05..7e7caec 100644 --- a/client/next.config.js +++ b/client/next.config.js @@ -1,30 +1,31 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode: true, + reactStrictMode : true, // pdfjs - experimental: { - appDir: true, + experimental : { + appDir : true, }, - future: { webpack5: true }, + future : {webpack5 : true}, - // (Optional) Export as a static site - // See https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration - // output: 'export', // Feel free to modify/remove this option + // (Optional) Export as a static site + // See + // https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#configuration + // output: 'export', // Feel free to modify/remove this option - // Override the default webpack configuration - webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { - // See https://webpack.js.org/configuration/resolve/#resolvealias - config.resolve.alias = { - ...config.resolve.alias, - "sharp$": false, - "onnxruntime-node$": false, - } + // Override the default webpack configuration + webpack : (config, {buildId, dev, isServer, defaultLoaders, webpack}) => { + // See https://webpack.js.org/configuration/resolve/#resolvealias + config.resolve.alias = { + ...config.resolve.alias, + "sharp$" : false, + "onnxruntime-node$" : false, + } - config.resolve.alias.canvas = false - config.resolve.alias.encoding = false - return config; + config.resolve.alias.canvas = false + config.resolve.alias.encoding = false + return config; }, } -module.exports = nextConfig + module.exports = nextConfig From ba1556072909537023674c27e6aa526a034d6ae4 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 11 Oct 2023 03:22:10 +0000 Subject: [PATCH 2/3] Restyled by prettier --- client/next.config.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/client/next.config.js b/client/next.config.js index 7e7caec..ef1e295 100644 --- a/client/next.config.js +++ b/client/next.config.js @@ -1,12 +1,12 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - reactStrictMode : true, + reactStrictMode: true, // pdfjs - experimental : { - appDir : true, + experimental: { + appDir: true, }, - future : {webpack5 : true}, + future: { webpack5: true }, // (Optional) Export as a static site // See @@ -14,18 +14,18 @@ const nextConfig = { // output: 'export', // Feel free to modify/remove this option // Override the default webpack configuration - webpack : (config, {buildId, dev, isServer, defaultLoaders, webpack}) => { + webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => { // See https://webpack.js.org/configuration/resolve/#resolvealias config.resolve.alias = { ...config.resolve.alias, - "sharp$" : false, - "onnxruntime-node$" : false, - } + sharp$: false, + "onnxruntime-node$": false, + }; - config.resolve.alias.canvas = false - config.resolve.alias.encoding = false + config.resolve.alias.canvas = false; + config.resolve.alias.encoding = false; return config; }, -} +}; - module.exports = nextConfig +module.exports = nextConfig; From e7b60b8fd646eb931c07c9eb4728a822488b0010 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 11 Oct 2023 03:22:13 +0000 Subject: [PATCH 3/3] Restyled by whitespace --- client/src/app/api/upload/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/api/upload/route.ts b/client/src/app/api/upload/route.ts index 11f92c8..5c71d49 100644 --- a/client/src/app/api/upload/route.ts +++ b/client/src/app/api/upload/route.ts @@ -57,4 +57,4 @@ export async function POST(req: NextRequest) { const response = new NextResponse(parsedText); response.headers.set('FileName', fileName); return response; -} \ No newline at end of file +}