mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 16:00:17 +08:00
24 lines
810 B
JavaScript
24 lines
810 B
JavaScript
import * as IconComponents from '@element-plus/icons-vue'
|
|
|
|
const weaponTypeNames = new Set([
|
|
'光锥', '光錐', 'Lichtkegel', 'Light Cone', 'Conos de luz', 'cônes de lumière', '光円錐', '광추', 'Cones de Luz', 'Световые конусы', 'Nón Ánh Sáng'
|
|
])
|
|
|
|
const characterTypeNames = new Set([
|
|
'角色', 'Figur', 'Character', 'Personajes', 'Personnages', 'Karakter', 'キャラクター', '캐릭터', 'Personagens', 'Персонажи', 'ตัวละคร', 'Nhân Vật'
|
|
])
|
|
|
|
const isCharacter = (name) => characterTypeNames.has(name)
|
|
const isWeapon = (name) => weaponTypeNames.has(name)
|
|
|
|
const IconInstaller = (app) => {
|
|
Object.values(IconComponents).forEach(component => {
|
|
app.component(component.name, component)
|
|
})
|
|
}
|
|
|
|
export {
|
|
isWeapon,
|
|
isCharacter,
|
|
IconInstaller,
|
|
} |