[mod] theme/simple: fmt/lint minor pass

*Safe* changes, no behaviour changes.

- Initial ES5 to ES2015+ conversion.
- Plenty of styling diff changes.
This commit is contained in:
Ivan Gabaldon
2025-06-28 10:19:15 +02:00
committed by Markus Heiser
parent a947d5b3cf
commit 95172213f6
13 changed files with 620 additions and 650 deletions

View File

@@ -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);
}
};
}