Update icon generation to handle newlines.
This commit is contained in:
parent
db7a837a99
commit
b17cddd5dc
|
@ -64,7 +64,7 @@ function genIconComponents() {
|
|||
svgViewBox = `'${svgViewBox}'`;
|
||||
}
|
||||
|
||||
const svgContents = svgInner.innerHTML.trim().replace(
|
||||
const svgContents = svgInner.innerHTML.trim().replace("\n", "").replace(
|
||||
' xmlns="http://www.w3.org/2000/svg"',
|
||||
''
|
||||
);
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"scripts": {
|
||||
"build": "vite build",
|
||||
"serve": "vite",
|
||||
"generate-icons": "node genicons.mjs",
|
||||
"generate-locales": "vue-gettext-extract",
|
||||
"generate-api": "swagger-typescript-api --path http://localhost/api/openapi.yml --output ./src/entities --name ApiInterfaces.ts --no-client"
|
||||
},
|
||||
|
|
|
@ -54,13 +54,11 @@ export const IconCheck: Icon = {
|
|||
};
|
||||
export const IconChevronDoubleDown: Icon = {
|
||||
viewBox: bootstrapIconsViewBox,
|
||||
contents: '<path fill-rule="evenodd" d="M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>
|
||||
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" d="M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>'
|
||||
contents: '<path fill-rule="evenodd" d="M1.646 6.646a.5.5 0 0 1 .708 0L8 12.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/> <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" d="M1.646 2.646a.5.5 0 0 1 .708 0L8 8.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>'
|
||||
};
|
||||
export const IconChevronDoubleUp: Icon = {
|
||||
viewBox: bootstrapIconsViewBox,
|
||||
contents: '<path fill-rule="evenodd" d="M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708z"/>
|
||||
<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" d="M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>'
|
||||
contents: '<path fill-rule="evenodd" d="M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708z"/> <path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" d="M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>'
|
||||
};
|
||||
export const IconChevronDown: Icon = {
|
||||
viewBox: materialIconsViewBox,
|
||||
|
|
Loading…
Reference in New Issue