From 95172213f69c8fe85a0af69dd2654c7a77327968 Mon Sep 17 00:00:00 2001 From: Ivan Gabaldon Date: Sat, 28 Jun 2025 10:19:15 +0200 Subject: [mod] theme/simple: fmt/lint minor pass *Safe* changes, no behaviour changes. - Initial ES5 to ES2015+ conversion. - Plenty of styling diff changes. --- client/simple/tools/plg.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'client/simple/tools/plg.js') diff --git a/client/simple/tools/plg.js b/client/simple/tools/plg.js index 16ec268b6..6cd4d491d 100644 --- a/client/simple/tools/plg.js +++ b/client/simple/tools/plg.js @@ -8,8 +8,7 @@ * needed. */ -import { svg2png } from "./img.js"; -import { svg2svg } from "./img.js"; +import { svg2png, svg2svg } from "./img.js"; /** * Vite plugin to convert a list of SVG files to PNG. @@ -18,9 +17,11 @@ import { svg2svg } from "./img.js"; */ function plg_svg2png(items) { return { - name: 'searxng-simple-svg2png', - apply: 'build', // or 'serve' - async writeBundle() { svg2png(items); }, + name: "searxng-simple-svg2png", + apply: "build", // or 'serve' + async writeBundle() { + svg2png(items); + } }; } @@ -32,9 +33,11 @@ function plg_svg2png(items) { */ function plg_svg2svg(svgo_opts, items) { return { - name: 'searxng-simple-svg2png', - apply: 'build', // or 'serve' - async writeBundle() { svg2svg(items, svgo_opts); }, + name: "searxng-simple-svg2png", + apply: "build", // or 'serve' + async writeBundle() { + svg2svg(items, svgo_opts); + } }; } -- cgit v1.2.3