Commit Graph

37 Commits

Author SHA1 Message Date
Patric Stout
fc97ab72f5 feat: ability to remove modules from a fit (via hover on module) (#42) 2023-12-10 16:09:54 +00:00
Patric Stout
aa76928b5f chore: rework ShipFit to use SVGs for better pixel-perfect rendering (#41) 2023-12-10 12:42:46 +01:00
Patric Stout
e60aa71230 feat: list all modules for adding them to fits (#40) 2023-12-09 11:09:03 +00:00
Patric Stout
d9063bfc32 chore: calculate available slots in ShipSnapshotProvider (#39)
More than only ShipFit needs it in the future, so by moving it closer to
the calculation makes it easier for other places to use it again.
2023-12-03 16:26:25 +00:00
Patric Stout
572b2c9de0 fix(ShipSnapshotProvider): React warns about duplicated key in storybook (#38) 2023-12-03 16:23:30 +00:00
Patric Stout
23753b3a23 chore: use Providers to send functions deep into components (#36) 2023-12-03 15:46:22 +00:00
Patric Stout
c0ecc3f183 chore: refactor hull-listing to use tree-listing (#35)
This simplifies the code, and makes adding module-listing a lot easier.
2023-12-03 14:59:05 +00:00
Patric Stout
20ef2c6656 fix: hull-listing overflows with 5 pixels on the bottom (#34) 2023-12-03 10:55:06 +00:00
Patric Stout
2f7dae6735 feat: component to show in detail how attributes were calculated (#31)
This includes which effects applied on them, where they came from, what
their value was, etc.
2023-12-01 13:45:29 +00:00
Patric Stout
698795ca78 fix(ShipStatistics): mass iss presented in kg, not the expected tons (#32) 2023-12-01 13:45:12 +00:00
Patric Stout
0406a4a464 feat: integrate "default characters" into character selection (#30) 2023-11-30 20:49:57 +00:00
Patric Stout
eb8041a50a feat: integrate ESI fits and general improvements to hull listing (#29) 2023-11-30 20:26:33 +00:00
Patric Stout
983917f5e6 feat: list hulls for creating new empty fits (#28)
This list can be searched and navigated pretty much like you can
in-game.
2023-11-27 19:07:33 +00:00
Patric Stout
afc0cc3df5 fix: better alignment in character selection (#27) 2023-11-26 19:00:13 +00:00
Patric Stout
c1b0feb1fd fix: update the ESI refresh-token with the latest after authentication (#26) 2023-11-26 18:56:31 +00:00
Patric Stout
92298f2ad8 feat: ability to load characters and their skills from ESI (#25)
This can track multiple characters, and tries to make as few as possible
ESI calls.

In the localstorage, we keep track of all the characters and their
refresh-tokens.
Access-tokens and skills are not stored in the localstorage, which means
that every reload, this information is fetched from ESI again.
2023-11-26 16:51:11 +01:00
Patric Stout
012a2597f6 fix: unable to toggle modules (#24)
The new "share-link" had a z-index that was too high, making it capture
all the clicks.
2023-11-24 21:26:35 +00:00
Patric Stout
e4152a0815 feat: copy link of fits to clipboard (instead of opening new window) (#23) 2023-11-24 21:17:35 +00:00
Patric Stout
b9ffc410fe fix: NextJS errors on difference between server-render and client-render (#22)
This is because linkText is different on server (no "window") and
client. Fix that by using a React hook.
2023-11-24 22:06:10 +01:00
Patric Stout
32482c1a18 fix: NextJS warns that "window" doesn't exist (#21)
It does, as we only target browser, but okay, we will add a guard.
2023-11-24 20:26:12 +00:00
Patric Stout
36e2827404 feat: embed a link to eveship.fit in every fit overview (#20)
Also the tools to find back what the fit in the link was.
2023-11-24 20:07:41 +00:00
Patric Stout
eebb2eba93 fix: ShipAttribute storybook uses invalid attribute-name (#19)
The name changed a while ago from cpuUsage to cpuUsed.
2023-11-24 13:07:24 +00:00
Patric Stout
390c92b2dc fix: datafiles don't load when content-encoding is used (#18)
content-length is not set by Cloudflare when content-encoding is used.
So no longer depend on content-length, and just read till the end of the
file.
2023-11-24 13:06:52 +00:00
Patric Stout
edb388d322 chore: bump datafiles to v1.2-20231115 (#17)
* fix: incorrect mimetype for Protobuf files
2023-11-21 21:51:19 +00:00
Patric Stout
76f3467829 feat: show icons in statistics (#16) 2023-11-20 22:10:34 +01:00
Patric Stout
8ee97f2dc2 feat: recharge rates for defense in statistics panel (#15) 2023-11-19 13:35:56 +00:00
Patric Stout
b5b147eed6 feat: show eHP statistics of the ship (#14) 2023-11-19 11:12:21 +00:00
Patric Stout
a471c04aa0 feat: update the SDE to 2023-11-15 (#13)
This includes the new data for the Havoc Expansion.
2023-11-19 11:10:19 +00:00
Patric Stout
7cc287b4c2 chore: fix type of "skills" (#12) 2023-11-19 11:05:57 +00:00
Patric Stout
2b3bb585ed feat: calculate velocity boost for AB / MWD correctly (#11)
For this the dataset is modified to add effects and modifier.
Additionally, some bugs in dogma-engine resulted in wrong numbers, so we
bump that while at it.
2023-11-14 22:12:59 +00:00
Patric Stout
056a839f4e feat: allow toggling the state of the modules (Offline, Online, Active, Overload) (#10) 2023-11-13 22:35:43 +00:00
Patric Stout
c5b60e2eae chore: be consistent with naming hislot/medslot/lowslot (#9) 2023-11-13 19:14:04 +00:00
Patric Stout
1c2466b475 chore: fix typo and extend docs a bit (#8) 2023-11-13 19:05:19 +00:00
Patric Stout
0e1d028459 fix: parsing quantity (... x5) fails when loading EFT fits (#7) 2023-11-12 19:36:53 +00:00
Patric Stout
d9c10090da fix: slots layout look odd as they are full rectangles (#6)
Now instead, they are a bit trapezium, and the outer border is a bit
rounded. Additionally, slots are a bit darker to stand out better.
2023-11-12 20:27:08 +01:00
Patric Stout
ad863eaabc fix: failure to process data-files on first load (#5)
When data-files are not cached, some chunks are really small (like 36
bytes small). This could cause the buffer to be too small to decode the
next entry, causing a failure.

Solve this by always reading at least 2048 bytes in the next buffer.
This is a bit slow, as it has to copy over all the chunks leading up to
2048 bytes into a new buffer.
2023-11-12 18:36:22 +00:00
Patric Stout
12bf3bd7d2 feat: initial work in rendering a fit (#1) 2023-11-12 15:37:04 +01:00