forked from MapComplete/MapComplete
Add binoculars theme, auto reformat everything
This commit is contained in:
parent
38dea806c5
commit
78d6482c88
586 changed files with 115573 additions and 111842 deletions
|
@ -9,17 +9,17 @@ function genImages() {
|
|||
const allNames: string[] = [];
|
||||
for (const path of dir) {
|
||||
|
||||
if(path.endsWith("license_info.json")){
|
||||
if (path.endsWith("license_info.json")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (!path.endsWith(".svg")) {
|
||||
throw "Non-svg file detected in the svg files: " + path;
|
||||
}
|
||||
|
||||
const svg = fs.readFileSync("./assets/svg/" + path, "utf-8")
|
||||
.replace(/<\?xml.*?>/, "")
|
||||
.replace(/fill: ?none;/g,"fill: none !important;") // This is such a brittle hack...
|
||||
.replace(/fill: ?none;/g, "fill: none !important;") // This is such a brittle hack...
|
||||
.replace(/\n/g, " ")
|
||||
.replace(/\r/g, "")
|
||||
.replace(/\\/g, "\\")
|
||||
|
@ -37,4 +37,5 @@ function genImages() {
|
|||
fs.writeFileSync("Svg.ts", module);
|
||||
console.log("Done")
|
||||
}
|
||||
|
||||
genImages()
|
Loading…
Add table
Add a link
Reference in a new issue