mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2025-04-21 07:50:19 +08:00
Departure commit
This commit is contained in:
24
src/renderer/utils.js
Normal file
24
src/renderer/utils.js
Normal file
@ -0,0 +1,24 @@
|
||||
import * as IconComponents from '@element-plus/icons-vue'
|
||||
|
||||
const weaponTypeNames = new Set([
|
||||
'光锥', 'Light Cone', '光錐', 'Lichtkegel', 'Conos de luz', 'cônes de lumière', '光円錐', '광추', 'Cones de Luz', 'Световые конусы', 'Nón Ánh Sáng'
|
||||
])
|
||||
|
||||
const characterTypeNames = new Set([
|
||||
'角色', 'Character', '캐릭터', 'キャラクター', 'Personaje', 'Personnage', 'Персонажи', 'ตัวละคร', 'Nhân Vật', 'Figur', 'Karakter', 'Personagem'
|
||||
])
|
||||
|
||||
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,
|
||||
}
|
Reference in New Issue
Block a user