summaryrefslogtreecommitdiff
path: root/client/simple/tools/plg.js
diff options
context:
space:
mode:
authorIvan Gabaldon <igabaldon@inetol.net>2025-06-28 10:19:15 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2025-07-03 17:35:05 +0200
commit95172213f69c8fe85a0af69dd2654c7a77327968 (patch)
treec5ce5d7f75f2be026100023ce52f227c8f521bbf /client/simple/tools/plg.js
parenta947d5b3cff32104ee009113226feab45439dbdd (diff)
[mod] theme/simple: fmt/lint minor pass
*Safe* changes, no behaviour changes. - Initial ES5 to ES2015+ conversion. - Plenty of styling diff changes.
Diffstat (limited to 'client/simple/tools/plg.js')
-rw-r--r--client/simple/tools/plg.js19
1 files changed, 11 insertions, 8 deletions
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);
+ }
};
}