mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
465 B
TypeScript
21 lines
465 B
TypeScript
import { Icon } from '@capital/component';
|
|
import icons from './icons.json';
|
|
|
|
const PLUGIN_ID = 'com.msgbyte.offline-icons';
|
|
const PLUGIN_NAME = 'Offline Icons';
|
|
|
|
console.log(`Plugin ${PLUGIN_NAME}(${PLUGIN_ID}) is loaded`);
|
|
|
|
// Icon.addIcon
|
|
|
|
icons.forEach((collection) => {
|
|
if (!Icon.addCollection) {
|
|
console.warn(
|
|
'Cannot call addCollection because of Icon.addCollection has not exposed!'
|
|
);
|
|
return;
|
|
}
|
|
|
|
Icon.addCollection(collection);
|
|
});
|