From edb081638ba2f3f40fb2e4f5a73aafdacbfc0424 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 7 Nov 2021 14:53:26 +0100 Subject: [PATCH 1/6] [simple theme] SearXNG wordmark (SVG) Related-to: - https://github.com/searxng/searxng/pull/430#issuecomment-951967239 - https://github.com/searxng/searxng/pull/378 Signed-off-by: Markus Heiser --- .../themes/simple/src/svg/searxng-wordmark.svg | Bin 0 -> 2894 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 searx/static/themes/simple/src/svg/searxng-wordmark.svg diff --git a/searx/static/themes/simple/src/svg/searxng-wordmark.svg b/searx/static/themes/simple/src/svg/searxng-wordmark.svg new file mode 100644 index 0000000000000000000000000000000000000000..9f1000365ffa924971f1431b762d985e3058dc54 GIT binary patch literal 2894 zcmb_eTW_Q`6n@XIaLG%e4#qZjc9@mg?MnOFZq>)i0nZEy;F0lUlKu62Y%q{aR8`tV zi4uJ7-}%ll+mFv(i=KoU8rhc~#l%CRuVmfyhtm7|>t{dn(4cu=^H%nv^m^%i+}&({ z@qP5W5?qTKT^fBvU;4+P;wORbj#{6JAh=vExS0;IREOXm`Tp+aW;;9`ZV*Bcw;zhS zD!s|zbXKiZtgAq@q7%Iy0*YziE$Y>xUYY34lc;3Z$$qew{cyWdR`q^%ZnC+AR*B|$ z9uO8V=7WYmy!4ts`>#zQ$M;MbAtV6V66F7B6$1czg5O!)9pFKpRVDTSkifmr!KbgE z0w?qdu64ZxD;%D)n=6oe-ihJFD=`F4+1g*4S|3XaCbT?LkwQ9w3m7FH?VuS&iVF;TYX9k`PhReZJoyMi}u)}s za45KX?hpT7q^div9~-}{6zpF z_RrW@godNM9F)O%&)XTlIqOT)LplD$B$~6Uq9+Zy5nyih zLCN!}lQoQ{Wr*t{fc}axTJe4`_>`Xgw}t!Q&X3Fzpdkr2K233CSf1RwMpTWe+8H84 zwiDOKFs0!X1R=x!G+thT4%0R=fDHPjg}nBFR?)+i^kL9SK8oTNb~8NF>qygrGWQNB z3)KR3bP>6;n!|`H#b4Hr{AsKUhYE0G;hLe&s|v2tF^Mfc=IlZell|UBwnJ3VIolt} z&S98^(Sn(UaB9PH3P{Ew&Iya>tz)YT-6%nMrX7yKKT=%mYW*p-#cmS<0j9gu&RXel zRm}y?qLD&4&EkYEs4U_Ih-7K=ELLVcjW?WSoC~PH?7egNK2oqZBFw@lPw7J4*`w&q zzQR!!rz}t0Zd=tNPXa!_v^u+M3n8%RP?F-9Mp=|^!W8E;W)b3uW*eHpHBAsj3_jUF zBaJs94k?RB`br#P8m4f*F?wmnGIxDKrbXfR zr%TV>rIX<-O2TmInY(Mk9Oob)%NBtihBzfj7_)pPh-n~Wm}Ggrbjh|AXGxM%5(|H| diB|hfNj)yN#B@0&`MtY+f&+XHn~Pz0^BqYQNe}=4 literal 0 HcmV?d00001 From bf52353a5c3d0ba7bebde209c916d492fe521159 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 7 Nov 2021 16:45:00 +0100 Subject: [PATCH 2/6] [enh] minify searxng-wordmark.svg (HTMLMinifier) Command:: ./node_modules/.bin/html-minifier \ --remove-comments \ --collapse-whitespace \ src/svg/searxng-wordmark.svg \ -o ../../../templates/__common__/searxng-wordmark.min.svg - html-minifier: https://github.com/kangax/html-minifier - onilne: https://kangax.github.io/html-minifier - grunt: https://www.npmjs.com/package/grunt-contrib-htmlmin - grunt-contrib-htmlmin: https://github.com/gruntjs/grunt-contrib-htmlmin - npm: https://www.npmjs.com/package/html-minifier To test, rebuild your node environment:: make node.env Alternatives: - pretty-data: https://github.com/vkiryukhin/pretty-data - grunt: https://www.npmjs.com/package/grunt-xmlmin - grunt-xmlming: https://github.com/dtrunk90/grunt-xmlmin - npm: https://www.npmjs.com/package/grunt-xmlmin - minify-xml: https://github.com/kristian/minify-xml - no grunt package available - npm: https://www.npmjs.com/package/minify-xml src/svg/searxng-wordmark.svg': '../../../templates/__common__/searxng-wordmark.min.svg' Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 15 ++++++++++++++- searx/static/themes/simple/package.json | 2 ++ .../__common__/searxng-wordmark.min.svg | Bin 0 -> 2357 bytes utils/lib_static.sh | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 searx/templates/__common__/searxng-wordmark.min.svg diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 325a973b..f10d00cf 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -9,7 +9,7 @@ module.exports = function(grunt) { watch: { scripts: { files: ['src/**'], - tasks: ['eslint', 'copy', 'concat', 'uglify', 'less:development', 'less:production'] + tasks: ['eslint', 'copy', 'concat', 'uglify', 'htmlmin', 'less:development', 'less:production'] } }, eslint: { @@ -95,6 +95,17 @@ module.exports = function(grunt) { } } }, + htmlmin: { + dist: { + options: { + removeComments: true, + collapseWhitespace: true + }, + files: { + '../../../templates/__common__/searxng-wordmark.min.svg': 'src/svg/searxng-wordmark.svg' + } + } + }, webfont: { icons: { // src: 'node_modules/ionicons-npm/src/*.svg', @@ -191,6 +202,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-htmlmin'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-less'); @@ -207,6 +219,7 @@ module.exports = function(grunt) { 'copy', 'concat', 'uglify', + 'htmlmin', 'less:development', 'less:production' ]); diff --git a/searx/static/themes/simple/package.json b/searx/static/themes/simple/package.json index 4b0ffc4f..4ef608db 100644 --- a/searx/static/themes/simple/package.json +++ b/searx/static/themes/simple/package.json @@ -8,6 +8,8 @@ "grunt-contrib-jshint": "~3.1.1", "grunt-contrib-less": "~3.0.0", "grunt-contrib-uglify": "~5.0.1", + "grunt-xmlmin": "~0.1.8", + "grunt-contrib-htmlmin": "~3.1.0", "grunt-contrib-watch": "~1.1.0", "grunt-stylelint": "^0.16.0", "grunt-eslint": "^23.0.0", diff --git a/searx/templates/__common__/searxng-wordmark.min.svg b/searx/templates/__common__/searxng-wordmark.min.svg new file mode 100644 index 0000000000000000000000000000000000000000..35b4cac25e6cee9a57e8ebbea505a4c8f34296eb GIT binary patch literal 2357 zcmbtV+iv4F5d9T_dD);A#f$E1d4VEbps(94`dBa$Z3~e^gQDYjzrHiFs3=Gt+OA+j z(%d+6&dg~0<)!a}XKlyU3>D#&kw6c%Y1-jXkw3qG4RaEVP7RIf%%CeW81iKoY{%zA z0G`8GHg!dg&Yj9AI-PAtjXgw79qCT@dT?XJDUZl(Tff@YRx8&&>)Q0a8OF(N81KBL zZT3sp%jH5ZaQAA8cLWE!uj@QAdmvH3=d41$37-JFW=J5Z*q#OZ*6Z{ujFQB72 z+gk6TP)!HzqKEGfkynO{Hm>niw8PU_s}sOBBZQ@R;jLuV>+z&&Jw{$mf=k=DV?_$l z_ar##_HcCm?YY&LU(HKJSipipz>loi<0NRCia@16n-5qn^fFoqngpK&OPQ|uzSwU9 z!2}Cg9J2f#n4XI+8&eOE8idlyz6^)IFUB^#vQHFI+-)1ZAE%@6L6B&-U0l(x!8|AZ zqZ%~{PU-+mcg9xaZa-Zlc!Y@BdTBacUTOf6)?Md@TnfQ3i;7{dzEO=w)tE~~0Fy=j z!y|YB)9IaYi$qv9&!wa>kYp&qM3RiXb`5G4bRkk-m(csYa=W$%K5(pl zfmN`DsrL%Bao3ZcJgvSB%rXS)HPO^P@O;wIAFl1X-!UNOhW@SV^lpmkALo2PxTF~Q z#CO}nE4ZC{)Llh>d(?vta3glb!+QRPXSKK9c9KP39zZM1nxir&gST@9UQiY;>rOQ=;zT{^Q6l= zSV(ZqueUZRx$y4*inbll<;vL08U_7rt-7uQh4VO+P$l%;MC_c{yQ49QSNkOs$r85T z`%|WdEcuez|H=eGMND!Tdq`#sZ^$H)7EB~Kj*zsRvPS#&aQ%mz6JNs5rJNvZehp%4 zRz%r)CA(2fvph*Tl(*O-<#S;vj=qm!aZvFqx(LAVjR3x{7G^7^LdHeLp?wxxJ>a;~ zI8QQBq=46=F((ZlY-i7~RlueX(u^iN&f{VuGg|OO#DNNUzTr81Dp Date: Mon, 8 Nov 2021 09:55:16 +0100 Subject: [PATCH 3/6] [simple theme] create favicon.png from src/svg/searxng-wordmark.svg new bash function convert_if_newer() / usage:: convert_if_newer [, ...] convert_if_newer "path/to/origin.svg" "path/to/converted.png" -transparent white -resize 64x64 Run's ImageMagik' convert comand to generate from , if is newer than . The command line is to convert is:: convert [, ...] PNG 'searx/static/themes/simple/img/favicon.png' has been created by:: $ make themes.simple CONVERT searx/static/themes/simple/src/svg/searxng-wordmark.svg -transparent white -resize 64x64 searx/static/themes/simple/img/favicon.png ... Signed-off-by: Markus Heiser --- manage | 38 +++++++++++++++++++-- searx/static/themes/simple/img/favicon.png | Bin 1474 -> 4734 bytes utils/lib_static.sh | 1 + 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/manage b/manage index daa7171d..07761e76 100755 --- a/manage +++ b/manage @@ -692,11 +692,45 @@ themes.oscar() { } themes.simple() { - build_msg GRUNT "theme: simple" - npm --prefix searx/static/themes/simple run build + local src="searx/static/themes/simple/src" + local static="searx/static/themes/simple" + ( set -e + convert_if_newer "$src/svg/searxng-wordmark.svg" "$static/img/favicon.png" \ + -transparent white -resize 64x64 + build_msg GRUNT "theme: simple" + npm --prefix searx/static/themes/simple run build + ) dump_return $? } +convert_if_newer() { + + # usage: convert_if_newer [, ...] + # + # convert_if_newer "path/to/origin.svg" "path/to/converted.png" -resize 100x100 + # + # Run's ImageMagik' convert comand to generate from , if + # is newer than . The command line is to convert is:: + # + # convert [, ...] + + local src_file="$1" && shift + local dst_file="$1" && shift + + if [[ "${src_file}" -nt "${dst_file}" ]]; then + if ! required_commands convert; then + info_msg "to install build tools use::" + info_msg " sudo -H ./utils/searx.sh install buildhost" + die 1 "install needed build tools first" + fi + build_msg CONVERT "${src_file}" "$@" "${dst_file}" + convert "${src_file}" "$@" "${dst_file}" + else + build_msg CONVERT "${dst_file} (up-to-date)" + fi +} + + PYLINT_FILES=() while IFS= read -r line; do PYLINT_FILES+=("$line") diff --git a/searx/static/themes/simple/img/favicon.png b/searx/static/themes/simple/img/favicon.png index 36be5fc01a877d35009829d8e4d4248b9073b425..409ede8ab0c8fd1a3c7e7516252afd84e1d37849 100644 GIT binary patch literal 4734 zcmZ`-Ra6_!(+%!k+?^r~F2REZcP*~PEoiY4D5baumm)=q1u0H|LMc*#Qrsap6sOpq z-{bf2ot@cx_U_)Dm)SGB8?UFMMubm?4*&p&)FH|SPpI&p<6=McHLkwPPk`y7sI3S9 zG^G&S*L zWx(Tqt)!zwF^*W;J{)jeS zCwhV_)oF8Zr4*ErxaP+?pQ;cxPQ}qf^*Vx#Gp&>+j;LI`l3QE>l0I#|w~$0^ezL8j zXeM!vr+(gP`PH*EVA15Inr=cCO9oz{Dy)hW(j2qoQEK_AQlpl2MMbGOM;i4S(>G#| z=G6aGXhnKmUTIj{{hn3*2N3_uKhKy-EBi2W&Wyy1Au;$#n?>3|SqQyvA)C5en2|%L0h zdcc%fz3Pt3kb8Ek-F+krM>}IhLr@LoKIXTCJE3e5`mm)J!T-eG?I)qyT|(CVSanTJ zD4bhcm)6?SOZ6Sj{7{a;xb&4N4v{8I*-}$o*)b*+k^W#oXVLDq_=WErh|UtY5SPgN zNuO>p;d4-p5^OfYg@K;8wxjcOw4S|GW%T%%LM9k^I?%dUTrm2tS!3Yv(k9RnH-hZb zs85UObJia@-d_6?We0p5k4Mkn5gvxIWlma0yjJy5lb=rM=~v3BZ!8^t=k5O1=C}on z9gE&&5I^VjVa9E+++@S8eZwA6+BBc{9c}V!li8XEnL{E`w=92hY+7jn&vWYQ(0~_s z6Xo|ChR6-Ww4&hnIr9*Y`uZ=eoG8X*o@XWgrIx4xsUQsbod6D6=(Fj3o*sCDuPy(w zn5s-t!1>4eiiX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{ll(ZS6xc!u6?VbXsbV7631do$f1xAxot?qLVT%s|Z>Qq-^9+ z5WIc&^SJ52B@_RjXhR8*^}njn!+17Y#yMQN*lihE7(B-QS~vv8%3hyd(x_-0`JU^X z+FY$^BlEmvx^inDEZ=D^v8&0Wb`*x}-H!?))Q)H9HPK*`QtohTn#Q`q+%%s-kmroV zXFpU&11$?T##%DXOV+gZtLsxzmmt{MVB4E}eOX=Sok*z1RDDuBHmnzK=29}~8l-c^ zebe8U18=yMZ*=jI=4U%$rs9V<;9}QK-Se^vpHe35u(4L5peG*dHYYy}7(>SySodGT{75wHkIZ(z(rNYq zN)9lPIoWNC(kdlB_N5hbx+~+;(-fMiYc)i>pWT7CH@12%wz{Va0W(V_T3SxBKCq4n z3S%**rt-V2i>oD~XMSPzmO>(}0j09>RzN?`r~)Y0^FY$RBLy0Qfp);Fh7@(JJfN=S83X-Jru#Tpg10p2TB5dI)%7}vTnkBI zsK&!B5Y#{_XkfdYVpW^2rcj0#quD#kY@uRoOK9-KIO5N4{%+a;mzl-~k=Jx0$OzRF zN)R?vMn|Fh<)UL}L8j$8rHAn;T(EQriwk9iMVJM-_* za%snz;E2d0k!x3#*J9gIh#7}RovLnXk^W0#NE~5?rhAGVcX<%@UR{~WSBreb(PA}Y zS$_}Va>rE^)2M;lIan6;ig7m9LGr?g5$*kL#DfItbl>_tY&X+5yDqmZXEQxeD4^k9 zTOQ>npl~xQhIS7+fT^ZGBnX$1A+FJHem%~pNa20tpB@Y$%=dIlrhI#Zcsqh^qYWwT EAM+NDdH?_b diff --git a/utils/lib_static.sh b/utils/lib_static.sh index b88b9b6c..35fdbd7d 100755 --- a/utils/lib_static.sh +++ b/utils/lib_static.sh @@ -11,6 +11,7 @@ STATIC_BUILT_PATHS=( searx/static/themes/simple/css searx/static/themes/simple/js searx/static/themes/simple/src/generated/pygments.less + searx/static/themes/simple/img/favicon.png searx/templates/__common__/searxng-wordmark.min.svg ) From ee67a65180cd5cb4faeda310c6c6af10391435b6 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 8 Nov 2021 11:05:02 +0100 Subject: [PATCH 4/6] [simple theme] replace old searx logo by searxng-wordmark.min.svg Suggested-by: @dalf https://github.com/searxng/searxng/pull/473#issuecomment-962476683 Suggested-by: @MrPaulBlack https://github.com/searxng/searxng/pull/473#issuecomment-962579826 Signed-off-by: Markus Heiser --- searx/static/themes/simple/src/less/search.less | 12 +++++++++--- searx/templates/simple/search.html | 3 ++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less index fddd2b35..b4818ba5 100644 --- a/searx/static/themes/simple/src/less/search.less +++ b/searx/static/themes/simple/src/less/search.less @@ -18,10 +18,16 @@ #search_logo { grid-area: logo; -} + display: flex; + align-items: center; + justify-content: center; -.search_logo_img { - width: 40px; + svg { + flex: 1; + width: 30px; + height: 30px; + margin: 0.5rem 0 auto 0; + } } .search_categories { diff --git a/searx/templates/simple/search.html b/searx/templates/simple/search.html index f8c82cd1..1f410ad9 100644 --- a/searx/templates/simple/search.html +++ b/searx/templates/simple/search.html @@ -1,6 +1,7 @@