chore: code formatting
This commit is contained in:
@@ -580,7 +580,7 @@ metadata.to = {
|
|||||||
if (name)
|
if (name)
|
||||||
parts.unshift((name === "base") ? name : `plugin_${name}`)
|
parts.unshift((name === "base") ? name : `plugin_${name}`)
|
||||||
return parts.join("_")
|
return parts.join("_")
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
//Demo for main and individual readmes
|
//Demo for main and individual readmes
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ export function stripemojis(string) {
|
|||||||
/**Chartist */
|
/**Chartist */
|
||||||
export async function chartist() {
|
export async function chartist() {
|
||||||
const css = `<style data-optimizable="true">${await fs.readFile(paths.join(__module(import.meta.url), "../../../node_modules", "node-chartist/dist/main.css")).catch(_ => "")}</style>`
|
const css = `<style data-optimizable="true">${await fs.readFile(paths.join(__module(import.meta.url), "../../../node_modules", "node-chartist/dist/main.css")).catch(_ => "")}</style>`
|
||||||
const {default:nodechartist} = await import(url.pathToFileURL(paths.join(__module(import.meta.url), "../../../node_modules", "/node-chartist/lib/index.js")))
|
const {default: nodechartist} = await import(url.pathToFileURL(paths.join(__module(import.meta.url), "../../../node_modules", "/node-chartist/lib/index.js")))
|
||||||
return (await nodechartist(...arguments))
|
return (await nodechartist(...arguments))
|
||||||
.replace(/class="ct-chart-line">/, `class="ct-chart-line">${css}`)
|
.replace(/class="ct-chart-line">/, `class="ct-chart-line">${css}`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user