mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-02-13 07:15:09 +08:00
42 lines
789 B
TypeScript
42 lines
789 B
TypeScript
function getSiteIcon(name: string): string {
|
|
return require(`@/assets/site_icons/${name}.png`);
|
|
}
|
|
|
|
export interface SiteInfo {
|
|
name: string;
|
|
icon: string;
|
|
}
|
|
|
|
const sites: {[key: string]: SiteInfo} = {
|
|
'tracker.m-team.cc': {
|
|
name: 'M-Team',
|
|
icon: getSiteIcon('m-team'),
|
|
},
|
|
'tracker.keepfrds.com': {
|
|
name: 'FRDS',
|
|
icon: getSiteIcon('keepfrds'),
|
|
},
|
|
'springsunday.net': {
|
|
name: 'SSD',
|
|
icon: getSiteIcon('springsunday'),
|
|
},
|
|
'hdchina.org': {
|
|
name: 'HDChina',
|
|
icon: getSiteIcon('hdchina'),
|
|
},
|
|
'chdbits.co': {
|
|
name: 'CHDBits',
|
|
icon: getSiteIcon('chdbits'),
|
|
},
|
|
'hdhome.org': {
|
|
name: 'HDHome',
|
|
icon: getSiteIcon('hdhome'),
|
|
},
|
|
'u2.dmhy.org': {
|
|
name: 'U2',
|
|
icon: getSiteIcon('u2'),
|
|
},
|
|
};
|
|
|
|
export default sites;
|