From b412fae17729714d269b46b53a68203a2933e429 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 25 Sep 2023 17:49:01 +0800 Subject: [PATCH] Change ttl groups to banks and remove green leaf Signed-off-by: Egor Savkin --- static/images/shop/icon-leaf.svg | 1 - static/js/shop_data.js | 42 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 22 deletions(-) delete mode 100644 static/images/shop/icon-leaf.svg diff --git a/static/images/shop/icon-leaf.svg b/static/images/shop/icon-leaf.svg deleted file mode 100644 index f11ca49..0000000 --- a/static/images/shop/icon-leaf.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/static/js/shop_data.js b/static/js/shop_data.js index 50a80ae..a08831d 100644 --- a/static/js/shop_data.js +++ b/static/js/shop_data.js @@ -79,7 +79,7 @@ const shop_data = { {type: "Line", args: {title: "IPv4", outvar: "ipv4", fallback: "192.168.1.75/24", tip: "Set up IPv4 address used by core device"}}, {type: "SwitchLine", args: {title: "IPv6", outvar: "ipv6"}}, {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}}, - {type: "Switch", args: {title: "Email device_db", outvar: "email_ddb", icon: "/shop/icon-leaf.svg", tip: "Send the device_db.py file by email instead of USB-drive"}}, + {type: "Switch", args: {title: "Opt out from promotional USB-stick", outvar: "usb_opt_out", tip: "Do not ship a promotional USB-stick"}}, ], [ {type: "Switch", args: {title: "Optic fiber", outvar: "optics", tip: "Use optic fiber instead of direct attach copper cable"}} @@ -163,7 +163,7 @@ const shop_data = { {type: "Line", args: {title: "IPv4", outvar: "ipv4", fallback: "192.168.1.75/24", tip: "Set up IPv4 address used by core device"}}, {type: "SwitchLine", args: {title: "IPv6", outvar: "ipv6"}}, {type: "SwitchLine", args: {title: "Ext CLK", outvar: "ext_clk", fallback: {text: "125 MHz", checked: false}, tip: "Use external clock reference: 10, 80 (beta), 100 or 125 MHz. Other variants may be provided if needed."}}, - {type: "Switch", args: {title: "Email device_db", outvar: "email_ddb", icon: "/shop/icon-leaf.svg", tip: "Send the device_db.py file by email instead of USB-drive"}}, + {type: "Switch", args: {title: "Opt out from promotional USB-stick", outvar: "usb_opt_out", tip: "Do not ship a promotional USB-stick"}}, ], [ {type: "Switch", args: {title: "Optic fiber", outvar: "optics", tip: "Use optic fiber instead of direct attach copper cable"}} @@ -291,16 +291,16 @@ const shop_data = { "if": [ {"var": "ext_data.has_other_dio"}, [ - {type: "Switch", args: {title: "Output first group", fallback: true, outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", fallback: true, outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ], [ - {type: "Switch", args: {title: "Output first group", outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ] ] }, { "if": [ - {"!": {"var": "out_first_group"}}, + {"!": {"var": "out_first_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #0", outvar: "term_0", tip: "Enable termination on channel #0"}}, {type: "Switch", args: {title: "Termination #1", outvar: "term_1", tip: "Enable termination on channel #1"}}, @@ -310,10 +310,10 @@ const shop_data = { null ] }, - {type: "Switch", args: {title: "Output second group", outvar: "out_second_group", fallback: true, tip: "Switch connectors 4-7 to output"}}, + {type: "Switch", args: {title: "Output second bank", outvar: "out_second_bank", fallback: true, tip: "Switch connectors 4-7 to output"}}, { "if": [ - {"!": {"var": "out_second_group"}}, + {"!": {"var": "out_second_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #4", outvar: "term_4", tip: "Enable termination on channel #4"}}, {type: "Switch", args: {title: "Termination #5", outvar: "term_5", tip: "Enable termination on channel #5"}}, @@ -350,16 +350,16 @@ const shop_data = { "if": [ {"var": "ext_data.has_other_dio"}, [ - {type: "Switch", args: {title: "Output first group", fallback: true, outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", fallback: true, outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ], [ - {type: "Switch", args: {title: "Output first group", outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ] ] }, { "if": [ - {"!": {"var": "out_first_group"}}, + {"!": {"var": "out_first_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #0", outvar: "term_0", tip: "Enable termination on channel #0"}}, {type: "Switch", args: {title: "Termination #1", outvar: "term_1", tip: "Enable termination on channel #1"}}, @@ -369,10 +369,10 @@ const shop_data = { null ] }, - {type: "Switch", args: {title: "Output second group", outvar: "out_second_group", fallback: true, tip: "Switch connectors 4-7 to output"}}, + {type: "Switch", args: {title: "Output second bank", outvar: "out_second_bank", fallback: true, tip: "Switch connectors 4-7 to output"}}, { "if": [ - {"!": {"var": "out_second_group"}}, + {"!": {"var": "out_second_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #4", outvar: "term_4", tip: "Enable termination on channel #4"}}, {type: "Switch", args: {title: "Termination #5", outvar: "term_5", tip: "Enable termination on channel #5"}}, @@ -421,16 +421,16 @@ const shop_data = { "if": [ {"var": "ext_data.has_other_dio"}, [ - {type: "Switch", args: {title: "Output first group", fallback: true, outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", fallback: true, outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ], [ - {type: "Switch", args: {title: "Output first group", outvar: "out_first_group", tip: "Switch connectors 0-3 to output"}} + {type: "Switch", args: {title: "Output first bank", outvar: "out_first_bank", tip: "Switch connectors 0-3 to output"}} ] ] }, { "if": [ - {"!": {"var": "out_first_group"}}, + {"!": {"var": "out_first_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #0", outvar: "term_0", tip: "Enable termination on channel #0"}}, {type: "Switch", args: {title: "Termination #1", outvar: "term_1", tip: "Enable termination on channel #1"}}, @@ -440,10 +440,10 @@ const shop_data = { null ] }, - {type: "Switch", args: {title: "Output second group", outvar: "out_second_group", fallback: true, tip: "Switch connectors 4-7 to output"}}, + {type: "Switch", args: {title: "Output second bank", outvar: "out_second_bank", fallback: true, tip: "Switch connectors 4-7 to output"}}, { "if": [ - {"!": {"var": "out_second_group"}}, + {"!": {"var": "out_second_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #4", outvar: "term_4", tip: "Enable termination on channel #4"}}, {type: "Switch", args: {title: "Termination #5", outvar: "term_5", tip: "Enable termination on channel #5"}}, @@ -453,10 +453,10 @@ const shop_data = { null ] }, - {type: "Switch", args: {title: "Output third group", outvar: "out_third_group", fallback: true, tip: "Switch connectors 8-11 to output"}}, + {type: "Switch", args: {title: "Output third bank", outvar: "out_third_bank", fallback: true, tip: "Switch connectors 8-11 to output"}}, { "if": [ - {"!": {"var": "out_third_group"}}, + {"!": {"var": "out_third_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #8", outvar: "term_8", tip: "Enable termination on channel #8"}}, {type: "Switch", args: {title: "Termination #9", outvar: "term_9", tip: "Enable termination on channel #9"}}, @@ -466,10 +466,10 @@ const shop_data = { null ] }, - {type: "Switch", args: {title: "Output fourth group", outvar: "out_fourth_group", fallback: true, tip: "Switch connectors 12-15 to output"}}, + {type: "Switch", args: {title: "Output fourth bank", outvar: "out_fourth_bank", fallback: true, tip: "Switch connectors 12-15 to output"}}, { "if": [ - {"!": {"var": "out_fourth_group"}}, + {"!": {"var": "out_fourth_bank"}}, {type: "Group", items: [ {type: "Switch", args: {title: "Termination #12", outvar: "term_12", tip: "Enable termination on channel #12"}}, {type: "Switch", args: {title: "Termination #13", outvar: "term_13", tip: "Enable termination on channel #13"}},