mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Refactor icon conversion to use class for 'fill' and 'stroke' in icons components
This commit is contained in:
parent
9eb7c7e617
commit
a3a1b88f16
@ -16,7 +16,7 @@ readdirSync(inputDir).forEach((file) => {
|
||||
const fileName = parse(file).name
|
||||
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
||||
const content = readFileSync(filePath, 'utf8')
|
||||
const vueComponent = `<!-- eslint-disable vue/multi-word-component-names -->\n<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->\n<template>\n<div style="fill: currentcolor; stroke: currentcolor">\n${content}\n</div>\n</template>\n`
|
||||
const vueComponent = `<!-- eslint-disable vue/multi-word-component-names -->\n<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->\n<template>\n${content}\n<style scss>\n.svg-icon {\nfill: currentcolor;\nstroke: currentcolor;\n}\n</style>\n</template>\n`
|
||||
|
||||
const outputFilePath = join(outputDir, `${fileName}.vue`)
|
||||
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user