mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-14 09:11:54 +08:00
🧹 Clean comments.
This commit is contained in:
parent
49a5ba6794
commit
2b5e43cfb5
@ -2,12 +2,10 @@ import type { iSVG } from '@/types/svg';
|
|||||||
import { svgs } from './svgs';
|
import { svgs } from './svgs';
|
||||||
import { getBaseUrl } from '@/utils/getBaseUrl';
|
import { getBaseUrl } from '@/utils/getBaseUrl';
|
||||||
|
|
||||||
// Add id on top of each svg:
|
|
||||||
export const svgsData = svgs.map((svg: iSVG, index: number) => {
|
export const svgsData = svgs.map((svg: iSVG, index: number) => {
|
||||||
return { id: index, ...svg };
|
return { id: index, ...svg };
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add full route of each svg, checking if theme support is added:
|
|
||||||
export const fullRouteSvgsData: iSVG[] = svgsData.map((svg) => {
|
export const fullRouteSvgsData: iSVG[] = svgsData.map((svg) => {
|
||||||
const url = getBaseUrl();
|
const url = getBaseUrl();
|
||||||
if (typeof svg.route === 'object' && svg.route !== null) {
|
if (typeof svg.route === 'object' && svg.route !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user