Skip to content

Commit

Permalink
more preset + cleanup - #1
Browse files Browse the repository at this point in the history
  • Loading branch information
soif committed Oct 23, 2024
1 parent a67376d commit fd27351
Showing 1 changed file with 53 additions and 23 deletions.
76 changes: 53 additions & 23 deletions src/www/static/js/toh_conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ let colViewGroups={
'cpu',
'cpucores',
'cpumhz',
'rammb',
'flashmb',
'rammb',
'switch',
'wlanhardware',
]
Expand Down Expand Up @@ -755,7 +755,7 @@ let colFilterFeatures={

pci:{
title: "PCI",
description:"with a PCI slot",
description:"with PCI slot",
type: "normal",
filters:[
{field: "comments", type:"like", value:'pci'},
Expand Down Expand Up @@ -873,25 +873,25 @@ let colFilterFeatures={

vlan:{
title: "VLAN",
description:"Supports VLAN",
description:"supports VLAN",
type: "normal",
filters:[
{field: "vlan", type:"=", value:'Yes'},
],
},

wifi_ac:{
title: "Wifi AC",
description:"802.11ac Wifi",
title: "Wifi: AC",
description:"with 802.11ac Wifi",
type: "normal",
filters:[
{field: "wlan50ghz", type:"like", value:'ac'},
],
},

wifi_ax:{
title: "Wifi AX",
description:"802.11ax Wifi",
title: "Wifi: AX",
description:"with 802.11ax Wifi",
type: "normal",
filters:[
[
Expand All @@ -903,8 +903,8 @@ let colFilterFeatures={
},

wifi_n:{
title: "Wifi N",
description:"802.11n Wifi",
title: "Wifi: N",
description:"with 802.11n Wifi",
type: "normal",
filters:[
[
Expand Down Expand Up @@ -986,9 +986,9 @@ let colFilterFeatures={
//---------------------------------------------------------
let colFilterPresets={

available_864_ac_wifi: {
title:"Ideal AC, Avail.",
description:"At least 8MB Flash and 64MB RAM + 802.11ac Wifi + (Available or Unknown)",
ideal_864_ac_avail: {
title:"Ideal, AC, Avail.",
description:"At least 8MB Flash and 64MB RAM + AC Wifi + (Available or Unknown)",
orig_url:"https://openwrt.org/toh/views/toh_available_864_ac-wifi",
filters:[],
features:[
Expand All @@ -998,9 +998,9 @@ let colFilterPresets={
]
},

available_864_ac_wifi_gbit_eth: {
title:"Ideal AC, Gbit, Avail.",
description:"At least 8MB Flash and 64MB RAM + 802.11ac Wifi + Eth >=1G + (Available or Unknown)",
ideal_864_ac_gbit_avail: {
title:"Ideal, AC, Gbit, Avail.",
description:"At least 8MB Flash and 64MB RAM + AC Wifi + 1Gb Eth. + (Available or Unknown)",
orig_url:"https://openwrt.org/toh/views/toh_available_864_ac-wifi_gbit-eth",
filters:[],
features:[
Expand All @@ -1011,9 +1011,9 @@ let colFilterPresets={
]
},

available_864_ac_wifi_gbit_eth_ant: {
title:"Ideal AC, Gbit, Antennas, Avail.",
description:"At least 8MB Flash and 64MB RAM + 802.11ac Wifi + Eth >=1G + Antennas (Available or Unknown)",
ideal_864_ac_gbit_avail_ant: {
title:"Ideal, AC, Gbit, Avail., Antennas",
description:"At least 8MB Flash and 64MB RAM + AC Wifi + 1Gb Eth. + (Available or Unknown) + Antennas",
orig_url:"https://openwrt.org/toh/views/toh_available_864_dual-wifi_gbit_extant",
filters:[],
features:[
Expand All @@ -1025,13 +1025,43 @@ let colFilterPresets={
]
},

poe: {
title:"PoE powered",
description:"Devices with PoE capability",
ideal_864_ax_gbit_avail: {
title:"Ideal, AX, Gbit, Avail.",
description:"At least 8MB Flash and 64MB RAM + AX Wifi + 1Gb Eth. + (Available or Unknown)",
orig_url:"",
filters:[],
features:[
'power_poe',
],
'available',
'memory_ideal',
'wifi_ax',
'eth_1g',
]
},

more_864_ac_gbit_avail: {
title:"More, AC, Gbit, Avail.",
description:"At least 16MB Flash and 128MB RAM + AC Wifi + 1Gb Eth. + (Available or Unknown)",
orig_url:"",
filters:[],
features:[
'available',
'memory_more',
'wifi_ac',
'eth_1g',
]
},

more_864_ax_gbit_avail: {
title:"More, AX, Gbit, Avail.",
description:"At least 16MB Flash and 128MB RAM + AX Wifi + 1Gb Eth. + (Available or Unknown)",
orig_url:"",
filters:[],
features:[
'available',
'memory_more',
'wifi_ax',
'eth_1g',
]
},


Expand Down

0 comments on commit fd27351

Please sign in to comment.