mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🛠️ Update extensions data; add new extensions for various frameworks and improve existing entries
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
import type { iSVG, ThemeOptions } from "@/types/svg";
|
||||
import type { Category } from "@/types/categories";
|
||||
import type { Extension } from "@/types/extensions";
|
||||
|
||||
import { svgs } from "@/data/svgs";
|
||||
import { extensions } from "@/data/extensions";
|
||||
|
||||
export const svgsData = svgs.map((svg: iSVG, index: number) => {
|
||||
return { id: index, ...svg };
|
||||
}) as iSVG[];
|
||||
|
||||
export const extensionsData = extensions.map((extension, index) => {
|
||||
return { id: index, ...extension };
|
||||
}) as Extension[];
|
||||
|
||||
export const getCategories = (): Category[] => {
|
||||
const categories = svgs
|
||||
.flatMap((svg) =>
|
||||
|
||||
Reference in New Issue
Block a user