From 9766f78e2140001635c65a59a566ff199c4ec662 Mon Sep 17 00:00:00 2001 From: Felix Linker Date: Fri, 7 Apr 2023 19:25:16 +0100 Subject: [PATCH] Move eddb.io links to inara.cz --- src/app/components/CostSection.jsx | 10 +++++----- src/app/pages/OutfittingPage.jsx | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/components/CostSection.jsx b/src/app/components/CostSection.jsx index a332fdc7..7c68c3cc 100644 --- a/src/app/components/CostSection.jsx +++ b/src/app/components/CostSection.jsx @@ -32,7 +32,7 @@ export default class CostSection extends TranslatedComponent { this._buildRetrofitShip = this._buildRetrofitShip.bind(this); this._onBaseRetrofitChange = this._onBaseRetrofitChange.bind(this); this._defaultRetrofitName = this._defaultRetrofitName.bind(this); - this._eddbShoppingList = this._eddbShoppingList.bind(this); + this._eddbShoppingList = this._inaraShoppingList.bind(this); let data = Ships[props.ship.id]; // Retrieve the basic ship properties, slots and defaults let retrofitName = this._defaultRetrofitName(props.ship.id, props.buildName); @@ -328,9 +328,9 @@ export default class CostSection extends TranslatedComponent { } /** - * Open up a window for EDDB with a shopping list of our retrofit components + * Open up a window for inara with a shopping list of our retrofit components */ - _eddbShoppingList() { + _inaraShoppingList() { const { retrofitCosts } = this.state; const { ship } = this.props; @@ -338,7 +338,7 @@ export default class CostSection extends TranslatedComponent { const modIds = retrofitCosts.filter(item => item.retroItem.incCost && item.buyId && !item.buyPp).map(item => item.buyId).filter((v, i, a) => a.indexOf(v) === i); // Open up the relevant URL - window.open('https://eddb.io/station?m=' + modIds.join(',')); + window.open('https://inara.cz/inapi/corisearch.php?m=' + modIds.join(',')); } /** @@ -387,7 +387,7 @@ export default class CostSection extends TranslatedComponent { {rows} - + {translate('cost')} 0 ? 'warning' : 'secondary-disabled')} style={{ borderBottom:'none' }}> {int(retrofitTotal)}{units.CR} diff --git a/src/app/pages/OutfittingPage.jsx b/src/app/pages/OutfittingPage.jsx index 557a08df..da012259 100644 --- a/src/app/pages/OutfittingPage.jsx +++ b/src/app/pages/OutfittingPage.jsx @@ -677,9 +677,9 @@ export default class OutfittingPage extends Page { } /** - * Open up a window for EDDB with a shopping list of our components + * Open up a window for inara with a shopping list of our components */ - _eddbShoppingList() { + _inaraShoppingList() { const ship = this.state.ship; const shipId = Ships[ship.id].eddbID; @@ -692,7 +692,7 @@ export default class OutfittingPage extends Page { // Open up the relevant URL window.open( - 'https://eddb.io/station?s=' + shipId + '&m=' + modIds.join(',') + 'https://inara.cz/inapi/corisearch.php?s=' + shipId + '&m=' + modIds.join(',') ); } @@ -912,7 +912,7 @@ export default class OutfittingPage extends Page {