mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 17:08:27 +08:00
10 lines
330 B
TypeScript
Executable File
10 lines
330 B
TypeScript
Executable File
import { addCollection } from '@iconify/vue'
|
|
import data from './data.json'
|
|
|
|
export async function downloadAndInstall(name: string) {
|
|
const data = Object.freeze(await fetch(`./icons/${name}-raw.json`).then(r => r.json()))
|
|
addCollection(data)
|
|
}
|
|
|
|
export const icons = data.sort((a, b) => a.info.name.localeCompare(b.info.name))
|