Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/vreg/components/Forms/VregSuggesstions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/vreg/components/Forms/VregSuggesstions/misc.js
export const defaultControls = {
  selectionUp: [38],
  selectionDown: [40],
  select: [13],
  hideList: [27],
  showList: [40],
  autocomplete: [32, 13]
}

export const modes = {
  input: String,
  select: Object,
}

export function fromPath(obj, path) {
  return path.split('.').reduce((o, i) => (o === Object(o) ? o[i] : o), obj)
}

export function hasKeyCode(arr, event) {
  return hasKeyCodeByCode(arr, event.keyCode)
}

export function hasKeyCodeByCode(arr, keyCode) {
  if (arr.length <= 0) return false

  const has = arr => arr.some(code => code === keyCode)
  if (Array.isArray(arr[0])) {
    return arr.some(array => has(array))
  } else {
    return has(arr)
  }
}

Spamworldpro Mini