From ca9f746290c5ed2a4d1bde7481525e3f1af24395 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 14:37:05 +0200 Subject: [PATCH 1/4] fix: add module logo --- ui/src/assets/module_default_logo.png | Bin 4199 -> 5596 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ui/src/assets/module_default_logo.png b/ui/src/assets/module_default_logo.png index 29e55971a9003a4b75562b5a33063a07dbceda00..220ffa4656c2700aef20efcc69627b09da496f75 100644 GIT binary patch literal 5596 zcmeHLdsGuw8owbZ5kY)gvFI4E3u=-{NJ5e&ypjNE0THqa_+m(AFiMgknUJ7WSrirD z53Db=RO||ikGASo0Y$f>tyMq~#V4q%R@Mq?DyXaUCLqFT&)MTS+rO5adEM{vyWjV_ z-~CQza${p6++96g0RZmGNO>H*XW35%9bRpX>tDdzsd=gdDh{(Cq|rcV({O~!Byj|{ zY6$?W*L1Ph-M>TJ{?j_tixzBME!(DQ>g!eEvcZ z9N3$*X=%ZdT;Z0*?xPb1SA83}BOCd$zHW?9Ma9!kJTed6u0K1p-u+tIgxyI`59j>Mu;d*r8qypnSyl4r^MiPlVQpK4VgT-*T*vEQ zb9~jIvEMJAJd`~$#Y`M5RA?k9INF9ClR{4V;rR#Vd;aI{PDc<%*SsjY(vS`s=2~J9|qO zmmrLVS)xCS{7NHp+dpw-r38u|pDCNaw#<@MvzK?iNeQ;;w{KO&ox3-+vSvaUgPA>f z2~LbOZOB{N+*TTqb-b|7ZpXWav z5$^i(EboeT4U(gn7@E!KV^+oHtQPH)_zmYB`rP)!qikXBbl0QflmC?v;_j)r;_=3% zqU`XB_>D8;eEQjri>l6iFz{NRB=<8ff->?i_Z#?W-~F~V6_=ffV5NaNR6hv)%6i_a@fvB~=ZC~cG!>#Erfu^{`=1!7~Rhxb1-+XZM z_TyV`q_vNmU8Kdv^^eBQk ziB-yU;7Z`LUCd!34ijpwl$j76i^vQ{9O1M1Y?P(2YBPAuAXg;Ns39bA^6*XwIFd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+CieUpiS>4HN$5X z+XVpE7m#+NbrM~SsRcGAGq;~8Lh_U9KV&(u4Yx^%hl+NOmWyyc2&w^YDlinT0$vAZ z2`xDNIfWLy>>9`_E=@i3t%LqP&f~*&oD!OO#||Q xJRo=2U(ilZ?HKmA4ed Date: Wed, 3 Jul 2024 14:37:34 +0200 Subject: [PATCH 2/4] fix: vscode devcontainer name --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cee5521..19a219e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/javascript-node { - "name": "ns8-kickstart", + "name": "ns8-wordpress", "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye", // Configure tool-specific properties. "customizations": { From 309831085092be382e537f5321c505666bdbd209 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 14:37:56 +0200 Subject: [PATCH 3/4] fix: remove misplaced package.json file --- package.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 package.json diff --git a/package.json b/package.json deleted file mode 100644 index da87c17..0000000 --- a/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "dependencies": { - "@nethserver/ns8-ui-lib": "^0.1.27" - } -} From 4f5515d81ab3f1d3e8d8d27924338cc18f945961 Mon Sep 17 00:00:00 2001 From: Andrea Leardini Date: Wed, 3 Jul 2024 14:38:06 +0200 Subject: [PATCH 4/4] fix: ensure logo image is generated By default vue-cli-service does not generate images smaller than 4KB but replaces them with inline base64. This change ensures that image files are always generated, regardless of their size. --- ui/vue.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/vue.config.js b/ui/vue.config.js index 20f9687..2b81b13 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -8,4 +8,15 @@ module.exports = { }, }, }, + chainWebpack: (config) => { + config.module + .rule("images") + .use("url-loader") + .loader("url-loader") + .tap((options) => { + // Do not base64 encode images URLs. Needed to always generate module logo image + options.limit = -1; + return options; + }); + }, };