mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-16 14:18:29 +00:00
cleanup
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { startCase, camelCase } from "lodash";
|
||||
import {
|
||||
BUNDLED_LANGUAGES,
|
||||
type IThemeRegistration
|
||||
|
||||
@@ -1,25 +1,17 @@
|
||||
import { getAllData } from "../.vitepress/lib/icons";
|
||||
import createCodeExamples from "../.vitepress/lib/createCodeExamples";
|
||||
|
||||
export default {
|
||||
paths: async () => {
|
||||
const icons = await getAllData()
|
||||
|
||||
const result = await createCodeExamples('activity')
|
||||
|
||||
const pathsPromises = icons.map(async (iconData, index) => {
|
||||
// const codeExamples = await createCodeExamples(iconData.name);
|
||||
|
||||
return icons.map((iconData, index) => {
|
||||
const params = {
|
||||
...iconData,
|
||||
codeExamples: result
|
||||
};
|
||||
|
||||
return {
|
||||
params,
|
||||
}
|
||||
})
|
||||
|
||||
return Promise.all(pathsPromises);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user