chore: code formatting
This commit is contained in:
@@ -580,7 +580,7 @@ metadata.to = {
|
||||
if (name)
|
||||
parts.unshift((name === "base") ? name : `plugin_${name}`)
|
||||
return parts.join("_")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
//Demo for main and individual readmes
|
||||
|
||||
@@ -165,7 +165,7 @@ export function stripemojis(string) {
|
||||
/**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 {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))
|
||||
.replace(/class="ct-chart-line">/, `class="ct-chart-line">${css}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user