diff options
| author | Ivan Gabaldon <igabaldon@inetol.net> | 2025-06-28 11:10:58 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-07-03 17:35:05 +0200 |
| commit | 879ac4e60f14a30cddd61e024ed4ad93179bb9d6 (patch) | |
| tree | a25886efe9141db3d5087cad2ed034894641e42e /client/simple/tools/jinja_svg_catalog.js | |
| parent | 95172213f69c8fe85a0af69dd2654c7a77327968 (diff) | |
[mod] theme/simple: fmt/lint major pass
*Not so safe* changes, no behaviour changes.
- More ES5 to ES2015+ conversion.
- Make Biome not cry anymore applying remaining changes.
Diffstat (limited to 'client/simple/tools/jinja_svg_catalog.js')
| -rw-r--r-- | client/simple/tools/jinja_svg_catalog.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/simple/tools/jinja_svg_catalog.js b/client/simple/tools/jinja_svg_catalog.js index a3e4fd166..b7b0347b5 100644 --- a/client/simple/tools/jinja_svg_catalog.js +++ b/client/simple/tools/jinja_svg_catalog.js @@ -1,8 +1,8 @@ +import fs from "node:fs"; +import { dirname, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; import { Edge } from "edge.js"; -import fs from "fs"; -import { dirname, resolve } from "path"; import { optimize as svgo } from "svgo"; -import { fileURLToPath } from "url"; const __dirname = dirname(fileURLToPath(import.meta.url)); const __jinja_class_placeholder__ = "__jinja_class_placeholder__"; @@ -11,7 +11,7 @@ const __jinja_class_placeholder__ = "__jinja_class_placeholder__"; /** * @typedef {object} IconSet - A set of icons - * @property {object[]} set - Array of SVG icons, where property name is the + * @property {object} set - Object of SVG icons, where property name is the * name of the icon and value is the src of the SVG (relative to base). * @property {string} base - Folder in which the SVG src files are located. * @property {import("svgo").Config} svgo_opts - svgo options for this set. |