mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Remove super fluid code in converted icons by changing the conversion script convertSvgToVue.js
This commit is contained in:
parent
067105a91e
commit
aff8396a22
@ -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${content}\n</template>\n\n<script lang="ts">\nimport { defineComponent } from 'vue';\n\nexport default defineComponent({});\n</script>\n`
|
||||
const vueComponent = `<!-- eslint-disable vue/multi-word-component-names -->\n<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->\n<template>\n${content}\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