Move eddb.io links to inara.cz

This commit is contained in:
Felix Linker
2023-04-07 19:25:16 +01:00
parent 6d8bd6ca44
commit 9766f78e21
2 changed files with 9 additions and 9 deletions

View File

@@ -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 {
<tbody>
{rows}
<tr className='ri'>
<td className='lbl' ><button onClick={this._eddbShoppingList} onMouseOver={termtip.bind(null, 'PHRASE_REFIT_SHOPPING_LIST')} onMouseOut={tooltip.bind(null, null)}><ShoppingIcon className='lg' style={{ fill: 'black' }}/></button></td>
<td className='lbl' ><button onClick={this._inaraShoppingList} onMouseOver={termtip.bind(null, 'PHRASE_REFIT_SHOPPING_LIST')} onMouseOut={tooltip.bind(null, null)}><ShoppingIcon className='lg' style={{ fill: 'black' }}/></button></td>
<td colSpan='3' className='lbl' >{translate('cost')}</td>
<td colSpan='2' className={cn('val', retrofitTotal > 0 ? 'warning' : 'secondary-disabled')} style={{ borderBottom:'none' }}>
{int(retrofitTotal)}{units.CR}

View File

@@ -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 {
<Download className="lg" />
</button>
<button
onClick={this._eddbShoppingList}
onClick={this._inaraShoppingList}
onMouseOver={termtip.bind(null, 'PHRASE_SHOPPING_LIST')}
onMouseOut={hide}
>