From 2b74539d4ee5ec665faa2a8e2626c3ee217ebbc8 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Thu, 14 Nov 2024 13:01:31 +0530 Subject: [PATCH] chore: fixed union pay & jcb logo --- billing/src/logo/JCB.vue | 184 +++++++++++++++++----------------- billing/src/logo/UnionPay.vue | 51 ++++------ esbuild/esbuild.js | 22 ++-- 3 files changed, 123 insertions(+), 134 deletions(-) diff --git a/billing/src/logo/JCB.vue b/billing/src/logo/JCB.vue index 4f97fe4fa4..ec1f31300b 100644 --- a/billing/src/logo/JCB.vue +++ b/billing/src/logo/JCB.vue @@ -1,96 +1,92 @@ diff --git a/billing/src/logo/UnionPay.vue b/billing/src/logo/UnionPay.vue index b726e600b1..ba2f02db3d 100644 --- a/billing/src/logo/UnionPay.vue +++ b/billing/src/logo/UnionPay.vue @@ -1,31 +1,24 @@ diff --git a/esbuild/esbuild.js b/esbuild/esbuild.js index d6a25e9f45..02f7acbf2d 100644 --- a/esbuild/esbuild.js +++ b/esbuild/esbuild.js @@ -71,12 +71,12 @@ const argv = yargs .example("node esbuild --apps frappe,erpnext", "Run build only for frappe and erpnext") .example( "node esbuild --files frappe/website.bundle.js,frappe/desk.bundle.js", - "Run build only for specified bundles", + "Run build only for specified bundles" ) .version(false).argv; const APPS = (!argv.apps ? app_list : argv.apps.split(",")).filter( - (app) => !(argv.skip_frappe && app == "frappe"), + (app) => !(argv.skip_frappe && app == "frappe") ); const FILES_TO_BUILD = argv.files ? argv.files.split(",") : []; const WATCH_MODE = Boolean(argv.watch); @@ -88,7 +88,7 @@ const NODE_PATHS = [].concat( // node_modules of apps directly importable app_list.map((app) => path.resolve(apps_path, app, "node_modules")).filter(fs.existsSync), // import js file of any app if you provide the full path - app_list.map((app) => path.resolve(apps_path, app)).filter(fs.existsSync), + app_list.map((app) => path.resolve(apps_path, app)).filter(fs.existsSync) ); const USING_CACHED = Boolean(argv["using-cached"]); @@ -250,11 +250,11 @@ function get_all_files_to_build(apps) { for (let app of apps) { let public_path = get_public_path(app); include_patterns.push( - path.resolve(public_path, "**", "*.bundle.{js,ts,css,sass,scss,less,styl,jsx}"), + path.resolve(public_path, "**", "*.bundle.{js,ts,css,sass,scss,less,styl,jsx}") ); ignore_patterns.push( path.resolve(public_path, "node_modules"), - path.resolve(public_path, "dist"), + path.resolve(public_path, "dist") ); } @@ -275,7 +275,7 @@ function get_files_to_build(files) { include_patterns.push(path.resolve(public_path, "**", bundle)); ignore_patterns.push( path.resolve(public_path, "node_modules"), - path.resolve(public_path, "dist"), + path.resolve(public_path, "dist") ); } @@ -341,7 +341,7 @@ function get_watch_config() { notify_redis({ error }); } else { let { new_assets_json, prev_assets_json } = await write_assets_json( - result.metafile, + result.metafile ); let changed_files; @@ -379,7 +379,7 @@ function log_built_assets(results) { { text: chalk.cyan.bold("Size"), width: column_widths[1], - }, + } ); cliui.div(""); @@ -422,7 +422,7 @@ function log_built_assets(results) { { text: file.size, width: column_widths[1], - }, + } ); } cliui.div(""); @@ -524,7 +524,7 @@ function run_build_command_for_apps(apps) { process.chdir(root_app_path); if (!fs.existsSync(node_modules)) { log( - `\nInstalling dependencies for ${chalk.bold(app)} (because node_modules not found)`, + `\nInstalling dependencies for ${chalk.bold(app)} (because node_modules not found)` ); execSync("yarn install", { encoding: "utf8", stdio: "inherit" }); } @@ -571,7 +571,7 @@ async function notify_redis({ error, success, changed_files }) { JSON.stringify({ event: "build_event", message: payload, - }), + }) ); }