From afb89029b8374b75a75d3b91bea8a1d144fb978a Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 10 Jul 2023 22:34:04 -0700 Subject: [PATCH 1/8] chore: vite conf changes --- packages/client/vite.config.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/client/vite.config.ts b/packages/client/vite.config.ts index 6c644660e6..592628e837 100644 --- a/packages/client/vite.config.ts +++ b/packages/client/vite.config.ts @@ -23,9 +23,9 @@ const extensions = [ ]; export default defineConfig(({ command, mode }) => { - fs.mkdirSync(__dirname + "/../../built", { recursive: true }); + fs.mkdirSync(`${__dirname}/../../built`, { recursive: true }); fs.writeFileSync( - __dirname + "/../../built/meta.json", + `${__dirname}/../../built/meta.json`, JSON.stringify({ version: meta.version }), "utf-8", ); @@ -40,15 +40,16 @@ export default defineConfig(({ command, mode }) => { pluginJson5(), viteCompression({ algorithm: "brotliCompress", + verbose: false, }), ], resolve: { extensions, alias: { - "@/": __dirname + "/src/", - "/client-assets/": __dirname + "/assets/", - "/static-assets/": __dirname + "/../backend/assets/", + "@/": `${__dirname}/src/`, + "/client-assets/": `${__dirname}/assets/`, + "/static-assets/": `${__dirname}/../backend/assets/`, }, }, @@ -82,7 +83,7 @@ export default defineConfig(({ command, mode }) => { }, cssCodeSplit: true, assetsInlineLimit: 0, - outDir: __dirname + "/../../built/_client_dist_", + outDir: `${__dirname}/../../built/_client_dist_`, assetsDir: ".", emptyOutDir: false, sourcemap: process.env.NODE_ENV === "development", @@ -94,5 +95,7 @@ export default defineConfig(({ command, mode }) => { optimizeDeps: { auto: true, }, + + logLevel: 'warn', }; }); From 4bcfcfe7f1c65bf411c9182a0e6c5b030aa2d491 Mon Sep 17 00:00:00 2001 From: DVD Date: Tue, 11 Jul 2023 21:27:10 +0800 Subject: [PATCH 2/8] Fixes image cropper ui --- packages/client/src/components/MkCropperDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkCropperDialog.vue b/packages/client/src/components/MkCropperDialog.vue index b7d25bd35d..3d8ea46e87 100644 --- a/packages/client/src/components/MkCropperDialog.vue +++ b/packages/client/src/components/MkCropperDialog.vue @@ -13,7 +13,7 @@