From 7116133337a987ccb2faf696052b97a4aac11514 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Wed, 21 Oct 2015 14:10:21 +0200 Subject: [PATCH] AD-1194 Create front-end host configs Default route components to be replaced with Lumenus specific ones. --- .../wallet/constants/wallet_api_urls.js | 9 ++++- .../whitelabel/wallet/wallet_routes.js | 35 +++++++++++++++++++ js/constants/application_constants.js | 7 ++++ 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/js/components/whitelabel/wallet/constants/wallet_api_urls.js b/js/components/whitelabel/wallet/constants/wallet_api_urls.js index 2cdc0054..8f4543c7 100644 --- a/js/components/whitelabel/wallet/constants/wallet_api_urls.js +++ b/js/components/whitelabel/wallet/constants/wallet_api_urls.js @@ -19,7 +19,14 @@ function getWalletApiUrls(subdomain) { 'user': walletConstants.walletApiEndpoint + subdomain + '/users/' }; } + else if (subdomain === 'lumenus'){ + return { + 'editions': walletConstants.walletApiEndpoint + subdomain + 'editions/', + 'pieces_list': walletConstants.walletApiEndpoint + subdomain + '/pieces/', + 'user': walletConstants.walletApiEndpoint + subdomain + '/users/' + }; + } return {}; } -export default getWalletApiUrls; \ No newline at end of file +export default getWalletApiUrls; diff --git a/js/components/whitelabel/wallet/wallet_routes.js b/js/components/whitelabel/wallet/wallet_routes.js index 8e4d5197..bcd0a60b 100644 --- a/js/components/whitelabel/wallet/wallet_routes.js +++ b/js/components/whitelabel/wallet/wallet_routes.js @@ -15,6 +15,7 @@ import EditionContainer from '../../../components/ascribe_detail/edition_contain import SettingsContainer from '../../../components/ascribe_settings/settings_container'; import ContractSettings from '../../../components/ascribe_settings/contract_settings'; import ErrorNotFoundPage from '../../../components/error_not_found_page'; +import RegisterPiece from '../../../components/register_piece'; //TODO: Remove once finished with LumenusRegisterPiece import CylandLanding from './components/cyland/cyland_landing'; import CylandPieceContainer from './components/cyland/cyland_detail/cyland_piece_container'; @@ -148,6 +149,40 @@ let ROUTES = { + ), + 'lumenus': ( + + + + + + + + + + + + + + ) }; diff --git a/js/constants/application_constants.js b/js/constants/application_constants.js index 0fe5e210..a961f453 100644 --- a/js/constants/application_constants.js +++ b/js/constants/application_constants.js @@ -46,6 +46,13 @@ let constants = { 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/ikonotv/ikono-logo-black.png', 'permissions': ['register', 'edit', 'share', 'del_from_collection'], 'type': 'wallet' + }, + { + 'subdomain': 'lumenus', + 'name': 'Lumenus', + 'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/lumenus/lumenus-logo.png', + 'permissions': ['register', 'edit', 'share', 'del_from_collection'], + 'type': 'wallet' } ], 'defaultDomain': {