diff --git a/README.md b/README.md index 661c107a..a453b39c 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,8 @@ Table of Contents - **Coin Supply:** Displays the current circulating coin supply value - **Price:** Displays the current market price (value measured using default market pair) - **USD Price:** Displays the current market price (value measured in USD) - - **Market Cap:** Displays the current market cap value in (value measured using default market pair) + - **Market Cap:** Displays the current market cap value (value measured using default market pair) + - **USD Market Cap:** Displays the current market cap value (value measured in USD) - **Logo:** Display an image of your coin logo - Configurable network charts that can be independently displayed in the header of any page - **Hashrate chart:** Line graph listing of the estimated network hashes per second over the last number of blocks *\*Requires a full sync before network data will start being collected* diff --git a/app.js b/app.js index d683c703..c536b691 100644 --- a/app.js +++ b/app.js @@ -860,6 +860,7 @@ var panelcount = (settings.shared_pages.page_header.panels.network_panel.enabled (settings.shared_pages.page_header.panels.price_panel.enabled == true && settings.shared_pages.page_header.panels.price_panel.display_order > 0 ? 1 : 0) + (settings.shared_pages.page_header.panels.usd_price_panel.enabled == true && settings.shared_pages.page_header.panels.usd_price_panel.display_order > 0 ? 1 : 0) + (settings.shared_pages.page_header.panels.market_cap_panel.enabled == true && settings.shared_pages.page_header.panels.market_cap_panel.display_order > 0 ? 1 : 0) + + (settings.shared_pages.page_header.panels.usd_market_cap_panel.enabled == true && settings.shared_pages.page_header.panels.usd_market_cap_panel.display_order > 0 ? 1 : 0) + (settings.shared_pages.page_header.panels.logo_panel.enabled == true && settings.shared_pages.page_header.panels.logo_panel.display_order > 0 ? 1 : 0) + (settings.shared_pages.page_header.panels.spacer_panel_1.enabled == true && settings.shared_pages.page_header.panels.spacer_panel_1.display_order > 0 ? 1 : 0) + (settings.shared_pages.page_header.panels.spacer_panel_2.enabled == true && settings.shared_pages.page_header.panels.spacer_panel_2.display_order > 0 ? 1 : 0) + @@ -876,6 +877,7 @@ if (settings.shared_pages.page_header.panels.coin_supply_panel.enabled == true & if (settings.shared_pages.page_header.panels.price_panel.enabled == true && settings.shared_pages.page_header.panels.price_panel.display_order > 0) panel_order.push({name: 'price_panel', val: settings.shared_pages.page_header.panels.price_panel.display_order}); if (settings.shared_pages.page_header.panels.usd_price_panel.enabled == true && settings.shared_pages.page_header.panels.usd_price_panel.display_order > 0) panel_order.push({name: 'usd_price_panel', val: settings.shared_pages.page_header.panels.usd_price_panel.display_order}); if (settings.shared_pages.page_header.panels.market_cap_panel.enabled == true && settings.shared_pages.page_header.panels.market_cap_panel.display_order > 0) panel_order.push({name: 'market_cap_panel', val: settings.shared_pages.page_header.panels.market_cap_panel.display_order}); +if (settings.shared_pages.page_header.panels.usd_market_cap_panel.enabled == true && settings.shared_pages.page_header.panels.usd_market_cap_panel.display_order > 0) panel_order.push({name: 'usd_market_cap_panel', val: settings.shared_pages.page_header.panels.usd_market_cap_panel.display_order}); if (settings.shared_pages.page_header.panels.logo_panel.enabled == true && settings.shared_pages.page_header.panels.logo_panel.display_order > 0) panel_order.push({name: 'logo_panel', val: settings.shared_pages.page_header.panels.logo_panel.display_order}); if (settings.shared_pages.page_header.panels.spacer_panel_1.enabled == true && settings.shared_pages.page_header.panels.spacer_panel_1.display_order > 0) panel_order.push({name: 'spacer_panel_1', val: settings.shared_pages.page_header.panels.spacer_panel_1.display_order}); if (settings.shared_pages.page_header.panels.spacer_panel_2.enabled == true && settings.shared_pages.page_header.panels.spacer_panel_2.display_order > 0) panel_order.push({name: 'spacer_panel_2', val: settings.shared_pages.page_header.panels.spacer_panel_2.display_order}); diff --git a/lib/settings.js b/lib/settings.js index e845de13..6d38f096 100644 --- a/lib/settings.js +++ b/lib/settings.js @@ -263,6 +263,16 @@ exports.shared_pages = { // The panel will be disabled with a value of 0 "display_order": 5 }, + // usd_market_cap_panel: a collection of settings that pertain to the market cap panel which displays the current market cap value measured in USD + "usd_market_cap_panel": { + // enabled: Enable/disable the usd market cap panel (true/false) + // If set to false, the usd market cap panel will be completely inaccessible + "enabled": false, + // display_order: Determine which order this panel is shown from 1-5 + // 1 = far left panel, 5 = far right panel + // The panel will be disabled with a value of 0 + "display_order": 0 + }, // logo_panel: a collection of settings that pertain to the logo panel which displays the selected "shared_pages.logo" image "logo_panel": { // enabled: Enable/disable the logo panel (true/false) diff --git a/settings.json.template b/settings.json.template index 2a219f56..33e11205 100644 --- a/settings.json.template +++ b/settings.json.template @@ -256,6 +256,16 @@ "market_cap_panel": { // enabled: Enable/disable the market cap panel (true/false) // If set to false, the market cap panel will be completely inaccessible + "enabled": false, + // display_order: Determine which order this panel is shown from 1-5 + // 1 = far left panel, 5 = far right panel + // The panel will be disabled with a value of 0 + "display_order": 0 + }, + // usd_market_cap_panel: a collection of settings that pertain to the market cap panel which displays the current market cap value measured in USD + "usd_market_cap_panel": { + // enabled: Enable/disable the usd market cap panel (true/false) + // If set to false, the usd market cap panel will be completely inaccessible "enabled": true, // display_order: Determine which order this panel is shown from 1-5 // 1 = far left panel, 5 = far right panel diff --git a/views/layout.pug b/views/layout.pug index f3b67e7e..6b74035d 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -314,6 +314,9 @@ html(lang='en') function getMarketCapPanel() { return '