|
|
@ -27,7 +27,116 @@ const preloadOfflineIcons = (iconData: Record<string, string[]>): string[] => { |
|
|
return a |
|
|
return a |
|
|
}, []) |
|
|
}, []) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const offlineIcons = [ |
|
|
|
|
|
"fa:stack-exchange", |
|
|
|
|
|
"fa:leanpub", |
|
|
|
|
|
"ep:house", |
|
|
|
|
|
"fa-solid:house-user", |
|
|
|
|
|
"fa:bars", |
|
|
|
|
|
"fa-solid:file-signature", |
|
|
|
|
|
"fa:hdd-o", |
|
|
|
|
|
"fa:universal-access", |
|
|
|
|
|
"fa:tag", |
|
|
|
|
|
"fa:edit", |
|
|
|
|
|
"fa:archive", |
|
|
|
|
|
"fa:edit", |
|
|
|
|
|
"fa-solid:grin-stars", |
|
|
|
|
|
"ep:guide", |
|
|
|
|
|
"ep:document", |
|
|
|
|
|
"fa:address-book", |
|
|
|
|
|
"ep:avatar", |
|
|
|
|
|
"fa-solid:box", |
|
|
|
|
|
"ep:document-copy", |
|
|
|
|
|
"ep:position", |
|
|
|
|
|
"ep:aim", |
|
|
|
|
|
"ep:place", |
|
|
|
|
|
"ep:message", |
|
|
|
|
|
"ep:connection", |
|
|
|
|
|
"fa-solid:project-diagram", |
|
|
|
|
|
"fa-solid:book", |
|
|
|
|
|
"ep:data-analysis", |
|
|
|
|
|
"ep:trend-charts", |
|
|
|
|
|
"ep:set-up", |
|
|
|
|
|
"ep:bicycle", |
|
|
|
|
|
"ep:notebook", |
|
|
|
|
|
"ep:link", |
|
|
|
|
|
"ep:home-filled", |
|
|
|
|
|
"fa:y-combinator", |
|
|
|
|
|
"ep:iphone", |
|
|
|
|
|
"fa-solid:smog", |
|
|
|
|
|
"ep:bell", |
|
|
|
|
|
"ep:connection", |
|
|
|
|
|
"ep:user", |
|
|
|
|
|
"fa:key", |
|
|
|
|
|
"fa:reddit-square", |
|
|
|
|
|
"fa:wpforms", |
|
|
|
|
|
"ep:promotion", |
|
|
|
|
|
"ep:warning-filled", |
|
|
|
|
|
"fa:edit", |
|
|
|
|
|
"fa:hdd-o", |
|
|
|
|
|
"fa-solid:mail-bulk", |
|
|
|
|
|
"fa:area-chart", |
|
|
|
|
|
"ep:avatar", |
|
|
|
|
|
"fa:tree", |
|
|
|
|
|
"ep:platform", |
|
|
|
|
|
"fa-solid:tools", |
|
|
|
|
|
"ep:mostly-cloudy", |
|
|
|
|
|
"fa:cog", |
|
|
|
|
|
"fa:square-o", |
|
|
|
|
|
"ep:bell-filled", |
|
|
|
|
|
"ep:menu", |
|
|
|
|
|
"ep:coffee-cup", |
|
|
|
|
|
"fa:fighter-jet", |
|
|
|
|
|
"ep:message-box", |
|
|
|
|
|
"fa:object-ungroup", |
|
|
|
|
|
"fa-solid:layer-group", |
|
|
|
|
|
"fa-solid:cogs", |
|
|
|
|
|
"ep:calendar", |
|
|
|
|
|
"ep:operation", |
|
|
|
|
|
"fa:battery-1", |
|
|
|
|
|
"fa:address-card", |
|
|
|
|
|
"ep:takeaway-box", |
|
|
|
|
|
"fa:eye", |
|
|
|
|
|
"fa:tasks", |
|
|
|
|
|
"fa:user-secret", |
|
|
|
|
|
"fa:mobile", |
|
|
|
|
|
"ep:histogram", |
|
|
|
|
|
"fa:exclamation-triangle", |
|
|
|
|
|
"fa:address-book-o", |
|
|
|
|
|
"ep:upload-filled", |
|
|
|
|
|
"ep:connection", |
|
|
|
|
|
"fa:assistive-listening-systems", |
|
|
|
|
|
"ep:folder-opened", |
|
|
|
|
|
"ep:management", |
|
|
|
|
|
"ep:document-copy", |
|
|
|
|
|
"ep:collection", |
|
|
|
|
|
"ep:files", |
|
|
|
|
|
"fa:wpexplorer", |
|
|
|
|
|
"fa-solid:tasks", |
|
|
|
|
|
"ep:chat-dot-round", |
|
|
|
|
|
"fa:connectdevelop", |
|
|
|
|
|
"ep:document-copy", |
|
|
|
|
|
"ep:tools", |
|
|
|
|
|
"fa:dedent", |
|
|
|
|
|
"fa:slack", |
|
|
|
|
|
"fa:dashcube", |
|
|
|
|
|
"fa:rocket", |
|
|
|
|
|
"fa:battery-3", |
|
|
|
|
|
"fa:square", |
|
|
|
|
|
"ep:monitor", |
|
|
|
|
|
"ep:calendar", |
|
|
|
|
|
"ep:collection-tag", |
|
|
|
|
|
"fa:power-off", |
|
|
|
|
|
"fa:map-marker", |
|
|
|
|
|
"ep:monitor", |
|
|
|
|
|
"fa:tasks", |
|
|
|
|
|
"fa:delicious", |
|
|
|
|
|
"ep:copy-document", |
|
|
|
|
|
"fa:road", |
|
|
|
|
|
"ep:pie-chart", |
|
|
|
|
|
"fa:medium", |
|
|
|
|
|
"fa-solid:hdd" |
|
|
|
|
|
] |
|
|
export function createVitePlugins() { |
|
|
export function createVitePlugins() { |
|
|
const root = process.cwd() |
|
|
const root = process.cwd() |
|
|
|
|
|
|
|
|
@ -42,6 +151,7 @@ export function createVitePlugins() { |
|
|
UnoCSS(), |
|
|
UnoCSS(), |
|
|
progress(), |
|
|
progress(), |
|
|
PurgeIcons({ |
|
|
PurgeIcons({ |
|
|
|
|
|
//included: offlineIcons,//
|
|
|
included: preloadOfflineIcons(IconJson) |
|
|
included: preloadOfflineIcons(IconJson) |
|
|
}), |
|
|
}), |
|
|
ElementPlus({}), |
|
|
ElementPlus({}), |
|
|
|