mirror of
https://github.com/calli-eve/eve-pi.git
synced 2026-06-11 16:45:42 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 48da721980 | |||
| bf31a7e2cb |
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
Simple tool to track your PI planet extractors. Login with your characters and enjoy the PI!
|
Simple tool to track your PI planet extractors. Login with your characters and enjoy the PI!
|
||||||
|
|
||||||
Any questions, feedback or suggestions are welcome at [EVE PI Discord](https://discord.gg/bCdXzU8PHK)
|
Any questions, feedback or suggestions are welcome at
|
||||||
|
[EVE PI Matrix](https://matrix.to/#/#eve-pi:calli.fi)
|
||||||
|
[EVE PI Discord](https://discord.gg/bCdXzU8PHK)
|
||||||
|
|
||||||
## Partner code
|
## Partner code
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ const calculatePlanetDetails = (planet: PlanetWithInfo, piPrices: EvePraisalResu
|
|||||||
const fillRate = storageCapacity > 0 ? (totalVolume / storageCapacity) * 100 : 0;
|
const fillRate = storageCapacity > 0 ? (totalVolume / storageCapacity) * 100 : 0;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
pin_id: storage.pin_id,
|
||||||
type: storageType,
|
type: storageType,
|
||||||
type_id: storage.type_id,
|
type_id: storage.type_id,
|
||||||
capacity: storageCapacity,
|
capacity: storageCapacity,
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ export const PlanetTableRow = ({
|
|||||||
.map((storage, idx) => {
|
.map((storage, idx) => {
|
||||||
const fillRate = storage.fillRate;
|
const fillRate = storage.fillRate;
|
||||||
const color = fillRate > 90 ? '#ff0000' : fillRate > 80 ? '#ffa500' : fillRate > 60 ? '#ffd700' : 'inherit';
|
const color = fillRate > 90 ? '#ff0000' : fillRate > 80 ? '#ffa500' : fillRate > 60 ? '#ffd700' : 'inherit';
|
||||||
const contents = planet.info.pins.find(p => p.type_id === storage.type_id)?.contents || [];
|
const contents = planet.info.pins.find(p => p.pin_id === storage.pin_id)?.contents || [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment key={`storage-${character.character.characterId}-${planet.planet_id}-${storage.type}-${idx}`}>
|
<React.Fragment key={`storage-${character.character.characterId}-${planet.planet_id}-${storage.type}-${idx}`}>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ export interface StorageContent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface StorageInfo {
|
export interface StorageInfo {
|
||||||
|
pin_id: number;
|
||||||
type: string;
|
type: string;
|
||||||
type_id: number;
|
type_id: number;
|
||||||
capacity: number;
|
capacity: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user