From 2a442064f229e82bea74164ae9bbe9e8aa5abdd9 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Tue, 16 Jul 2024 17:42:34 +0800 Subject: [PATCH] Add AFWS item to the shop Signed-off-by: Egor Savkin --- static/images/shop/graphic-03_AFWS.svg | 1 + static/js/shop_data.js | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 static/images/shop/graphic-03_AFWS.svg diff --git a/static/images/shop/graphic-03_AFWS.svg b/static/images/shop/graphic-03_AFWS.svg new file mode 100644 index 0000000..b7dc2b2 --- /dev/null +++ b/static/images/shop/graphic-03_AFWS.svg @@ -0,0 +1 @@ + diff --git a/static/js/shop_data.js b/static/js/shop_data.js index 9dcb382..cdbcb59 100644 --- a/static/js/shop_data.js +++ b/static/js/shop_data.js @@ -20,7 +20,7 @@ const shop_data = { }, no_crate: { id: 'no_crate', - name: 'Spare cards', + name: 'Spare items', price: 0, hp: -1, warnings_disabled: true, @@ -1390,6 +1390,26 @@ const shop_data = { hp: 4, }, }, + 'afws': { + id: 'afws', + name: 'Subscription', + name_number: 'AFWS', + name_codename: '', + price: 800, + image: '/images/shop/graphic-03_AFWS.svg', + specs: [ + "Artiq Firmware Service for one variant for one year.", + "Includes support at helpdesk.", + "Included with purchase of any Carrier with no additional cost.", + ], + crateless: true, + crateless_options: [ + {type: "Line", args: {title: "Variant name", outvar: "variant_name", fallback: "", + tip: "Variant name can be found on the sticker on top of the crate. If you don't have one, leave the preferred name here."}}, + ], + size: 'big', + warnings: [], + }, }, columns: { @@ -1445,6 +1465,7 @@ const shop_data = { itemIds: [ 'koster', 'eem_pwr_mod', + 'afws', ]} ], }, @@ -1459,7 +1480,7 @@ const shop_data = { }, { id: "spare", - name: "Spare cards", + name: "Spare items", crate_mode: "no_crate", items: [], warnings: [],