mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-20 23:50:17 +08:00
31 lines
657 B
JavaScript
31 lines
657 B
JavaScript
import * as IconComponents from '@element-plus/icons-vue'
|
|
|
|
const weaponTypeNames = new Set([
|
|
'音擎', 'W-Engines', '音擎'
|
|
])
|
|
|
|
const bangbooTypeNames = new Set([
|
|
'邦布', 'Bangboo', '邦布'
|
|
])
|
|
|
|
const characterTypeNames = new Set([
|
|
'代理人', 'Agents', '代理人'
|
|
])
|
|
|
|
const isCharacter = (name) => characterTypeNames.has(name)
|
|
const isWeapon = (name) => weaponTypeNames.has(name)
|
|
const isBangboo = (name) => bangbooTypeNames.has(name)
|
|
|
|
const IconInstaller = (app) => {
|
|
Object.values(IconComponents).forEach(component => {
|
|
app.component(component.name, component)
|
|
})
|
|
}
|
|
|
|
export {
|
|
isWeapon,
|
|
isCharacter,
|
|
isBangboo,
|
|
IconInstaller,
|
|
}
|