Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import oui from 'oui'
let control = oui.controls.ColorPicker
// import ColorPicker from 'oui/controls/colorpicker'
// console.log( oui.controls.ColorPicker )
// let gui = oui.datoui(null, _=> console.log( _ ))
// let a = { test: {r:1, g:0.5, b:0}}
// let b = {test:10}
// gui.add( a, 'test', { control } )
// gui.add( b, 'test', {options:[10, 20, 30, 40], control:oui.controls.ComboBox} )
// var f1 = gui.addFolder({label:'test', open:true})
// f1.add( a, 'test', { control } )
// var f2 = gui.addFolder({ label: 'test2' })
// f2.add( b, 'test' )
let d = document.createElement('div')
d.id='IN-HERE'
// console.log( oui.controls.ColorPicker )
// let gui = oui.datoui(null, _=> console.log( _ ))
// let a = { test: {r:1, g:0.5, b:0}}
// let b = {test:10}
// gui.add( a, 'test', { control } )
// gui.add( b, 'test', {options:[10, 20, 30, 40], control:oui.controls.ComboBox} )
// var f1 = gui.addFolder({label:'test', open:true})
// f1.add( a, 'test', { control } )
// var f2 = gui.addFolder({ label: 'test2' })
// f2.add( b, 'test' )
let d = document.createElement('div')
d.id='IN-HERE'
let p = oui.panel({domElement:d})
window.a = {
n:10
}
p(a)
//
// p({
// n:5,
// s:'sdfsd'
// })
// let foo = {a: 0.5}
// let gui = oui.datoui()
// let fooFolder = gui.addFolder({label: 'foo'})
// fooFolder.add(foo, 'a', {min: 0, max: 1})
interfaces.forEach((data, index) => {
var mac = SYSINFO.interfaces[index].address
var ifacename = SYSINFO.interfaces[index].interface
IFCONFIG_IFACES.push(data.interface)
if (mac !== undefined) {
SYSINFO.interfaces[index].vendor = oui(mac).split(/\r?\n/)[0]
}
if (ifacename.indexOf('wlan') < 0) {} else if (ifacename.indexOf('mon') < 0) {
CheckIfaceState(ifacename, function(status, data) {
if (status == 'fail') {
console.logo("Error!", data)
} else {
SYSINFO.interfaces[index].wirelessdata = data
}
})
}
})
}
exports.ouiUpdate = function (cb) {
console.log(chalk.yellow(' This task could take up to 5 minutes...'))
const spinner = new Spinner(' Updating MAC Vendors DB.. %s')
spinner.setSpinnerString('|/-\\')
spinner.start()
oui.update({}, function (err) {
spinner.stop()
if (err) return cb(err)
cb(null, chalk.green('\n \u2713 MAC Vendors DB updated!'))
})
}