Skip to content

Commit

Permalink
Adds Minimum header filter
Browse files Browse the repository at this point in the history
  • Loading branch information
soif committed Oct 19, 2024
1 parent a9cdd0d commit a99d8bc
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/www/static/js/toh_conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ function FormatterYesNo(cell, formatterParams, onRendered) {
}

// Columns Styles ################################################################################################################
let colFilterMin={headerFilterPlaceholder:"Minimum", headerFilterFunc:">="};

let columnStyles={
brand: {title:"Brand", frozen:true, clickPopup: cellModelPopupFormatter, hozAlign:"left"},
Expand All @@ -199,38 +200,38 @@ let columnStyles={
availability: {title:"Availability", headerTooltip:'Availability', width:110, hozAlign:"right" },
bluetooth: {title:"BT", headerTooltip:'Bluetooth version', width:40, hozAlign:"left" },
bootloader: {title:"Boot", headerTooltip:'BootLoader', width:60, hozAlign:"left" },
buttoncount: {title:"Butt.", headerTooltip:'Button count', width:40 },
cpu: {title:"CPU", formatter: FormatterCleanWords, width:120, hozAlign:"left" },
buttoncount: {title:"Butt.", headerTooltip:'Button count', width:40, ...colFilterMin },
cpu: {title:"CPU", formatter: FormatterCleanWords, width:120, hozAlign:"left" },
comments: {title:"Comments", headerTooltip:'Comments', width:200, hozAlign:"left" },
commentsavports: {title:"AV Comments", headerTooltip:'AV ports Comments', width:60, hozAlign:"left" },
commentinstallation: {title:"Inst.Comments", headerTooltip:'Installation Comments', width:60 , hozAlign:"left"},
commentsnetworkports: {title:"Net Comments", headerTooltip:'Network ports Comments', width:60 , hozAlign:"left"},
commentrecovery: {title:"Rec.Comments", headerTooltip:'Recovery Comments', width:60, hozAlign:"left" },
commentsusbsataports: {title:"US Comments", headerTooltip:'USB SATA ports Comments', width:60, hozAlign:"left" },
cpucores: {title:"Cores", headerTooltip:'CPU number of Cores' , width:40 },
cpumhz: {title:"Mhz", headerTooltip:'CPU Speed (MHz)' , width:40 },
cpucores: {title:"Cores", headerTooltip:'CPU number of Cores' , width:40, ...colFilterMin },
cpumhz: {title:"Mhz", headerTooltip:'CPU Speed (MHz)' , width:40, ...colFilterMin },
detachableantennas: {title:"D.Ant.", headerTooltip:'Detachable Antennas', width:40 },
deviceid: {title:"Device ID", headerTooltip:'Device ID', width:120, hozAlign:"left" },
devicepage: {title:"Page", headerTooltip:'Device Page', formatter: FormatterLinkDevice, tooltip:false, width:50 },
devicetype: {title:"Device Type", headerTooltip:'Device Type', width:120, hozAlign:"left" },
ethernet100mports: {title:"Eth 100", headerTooltip:'Ethertnet 100M ports', width:55, formatter: FormatterCleanEmpty},
ethernet1gports: {title:"Eth 1G", headerTooltip:'Ethertnet 1G ports', width:50, formatter: FormatterCleanEmpty},
ethernet2_5gports: {title:"Eth 2.5G", headerTooltip:'Ethertnet 2.5G ports', width:60, formatter: FormatterCleanEmpty},
ethernet5gports: {title:"Eth 5G", headerTooltip:'Ethertnet 5G ports', width:50, formatter: FormatterCleanEmpty},
ethernet10gports: {title:"Eth 10G", headerTooltip:'Ethertnet 10G ports', width:55, formatter: FormatterCleanEmpty},
ethernet100mports: {title:"Eth 100", headerTooltip:'Ethertnet 100M ports', width:55, formatter: FormatterCleanEmpty, ...colFilterMin },
ethernet1gports: {title:"Eth 1G", headerTooltip:'Ethertnet 1G ports', width:50, formatter: FormatterCleanEmpty, ...colFilterMin },
ethernet2_5gports: {title:"Eth 2.5G", headerTooltip:'Ethertnet 2.5G ports', width:60, formatter: FormatterCleanEmpty, ...colFilterMin },
ethernet5gports: {title:"Eth 5G", headerTooltip:'Ethertnet 5G ports', width:50, formatter: FormatterCleanEmpty, ...colFilterMin },
ethernet10gports: {title:"Eth 10G", headerTooltip:'Ethertnet 10G ports', width:55, formatter: FormatterCleanEmpty, ...colFilterMin},
fccid: {title:"FCC", headerTooltip:'FCC ID', formatter: FormatterLink, formatterParams:{ label:'FCC'}, width:40 },
firmwareoemstockurl: {title:"Stock", headerTooltip:'OEM Stock Firmware', formatter: FormatterLink, formatterParams:{ label:'Stock'}, width:50 },
firmwareopenwrtinstallurl: {title:"Install", headerTooltip:'Owrt Firmware Install', formatter: FormatterLink, formatterParams:{ label:'Inst.'}, width:50 },
firmwareopenwrtupgradeurl: {title:"Upgrade", headerTooltip:'Owrt Firmware Upgrade', formatter: FormatterLink, formatterParams:{ label:'Upgr.'}, width:55 },
firmwareopenwrtsnapshotinstallurl: {title:"Snap.Inst.", headerTooltip:'Owrt Snapshot Install', formatter: FormatterLink, formatterParams:{ label:'Sn.Inst.'}, width:70 },
firmwareopenwrtsnapshotupgradeurl: {title:"Snap.Upgr.", headerTooltip:'Owrt Snapshot Upgrade', formatter: FormatterLink, formatterParams:{ label:'Sn.Upgr.'}, width:70 },
flashmb: {title:"Flash", headerTooltip:'Flash Memory (Mb)', formatter: FormatterArray, sorter: 'array', sorterParams: {type:"min", alignEmptyValues:"bottom"}, width:90, hozAlign:"left" },
flashmb: {title:"Flash", headerTooltip:'Flash Memory (Mb)', formatter: FormatterArray, sorter: 'array', sorterParams: {type:"min", alignEmptyValues:"bottom"}, width:90, hozAlign:"left", ...colFilterMin },
forumsearch: {title:"Forum Search", headerTooltip:'Forum Search', width:90, hozAlign:"left" },
gitsearch: {title:"Git Search", headerTooltip:'Git Search', width:90, hozAlign:"left" },
gpios: {title:"GPIOs", headerTooltip:'GPIOs', formatter: FormatterCleanWords, width:40 },
gpios: {title:"GPIOs", headerTooltip:'GPIOs', formatter: FormatterCleanWords, width:40, ...colFilterMin },
installationmethods: {title:"Inst.Method", headerTooltip:'Installation method(s)', width:90, hozAlign:"left" },
jtag: {title:"JTAG", headerTooltip:'has JTAG?', formatter: FormatterYesNo, width:40 },
ledcount: {title:"Leds", headerTooltip:'LED count', formatter: FormatterCleanEmpty, width:40 },
ledcount: {title:"Leds", headerTooltip:'LED count', formatter: FormatterCleanEmpty, width:40, ...colFilterMin },
modem: {title:"Modem", headerTooltip:'Modem Type', width:40 },
oemdevicehomepageurl: {title:"OEM", headerTooltip:'OEM Page', formatter: FormatterLink, formatterParams:{ label:'OEM'}, width:45 },
outdoor: {title:"OutDoor", formatter: FormatterYesNo, sorter: 'string', width:40 },
Expand All @@ -239,22 +240,22 @@ let columnStyles={
phoneports: {title:"Phone", headerTooltip:'Phone Ports', width:40 },
powersupply: {title:"Power", headerTooltip:'Power Supply', width:70, hozAlign:"left" },
picture: {title:"Image", headerTooltip:'Device Picture', formatter: FormatterImages, sorter: 'array', width:70, hozAlign:"center" },
rammb: {title:"RAM", headerTooltip:'RAM (Mb)', width:40 },
rammb: {title:"RAM", headerTooltip:'RAM (Mb)', width:40, ...colFilterMin },
recoverymethods: {title:"Recovery", headerTooltip:'Recovery Methods', width:80, hozAlign:"left" },
sataports: {title:"SATA", headerTooltip:'SATA Ports', width:40},
sataports: {title:"SATA", headerTooltip:'SATA Ports', width:40, ...colFilterMin},
serial: {title:"Serial", headerTooltip:'Serial port', formatter: FormatterYesNo, width:45},
serialconnectionparameters: {title:"Serial Params.", headerTooltip:'Serial connection parameters', width:90},
serialconnectionvoltage: {title:"S.Volt.", headerTooltip:'Serial connection voltage', width:45},
sfp_ports: {title:"SFTP", headerTooltip:'SFTP Ports', width:40},
sfp_plus_ports: {title:"SFTP+", headerTooltip:'SFTP+ Ports', width:40},
sfp_ports: {title:"SFTP", headerTooltip:'SFTP Ports', width:40, ...colFilterMin},
sfp_plus_ports: {title:"SFTP+", headerTooltip:'SFTP+ Ports', width:40, ...colFilterMin},
subtarget: {title:"S.Target", headerTooltip:'Sub Target', width:60, hozAlign:"left" },
supportedcurrentrel: {title:"C.Release", headerTooltip:'Supported Current Release', width:60 },
supportedsincecommit: {title:"S.Commit", headerTooltip:'Supported Since Commit', formatter: FormatterLinkCommit, width:70, hozAlign:"left", tooltip:false },
supportedsincerel: {title:"S.Release", headerTooltip:'Supported Since Release', width:60 },
switch: {title:"Switch", headerTooltip:'Switch', width:120, hozAlign:"left" },
target: {title:"Target", headerTooltip:'Target', width:60, hozAlign:"left" },
unsupported_functions: {title:"Unsupported", headerTooltip:'Unsupported Functions', width:85, hozAlign:"left" },
usbports: {title:"USB", headerTooltip:'USB Ports', width:60, hozAlign:"left" },
usbports: {title:"USB", headerTooltip:'USB Ports', width:60, hozAlign:"left", ...colFilterMin },
version: {title:"Version", headerTooltip:'Hardware Version', width:55, hozAlign:"left" },
videoports: {title:"Video", headerTooltip:'Video Ports', sorter: 'array', width:80, hozAlign:"left" },
vlan: {title:"VLAN", headerTooltip:'has VLAN?', formatter: FormatterYesNo, width:40},
Expand Down

0 comments on commit a99d8bc

Please sign in to comment.