Skip to content

[Tech] Add ts-prune to find dead code #2210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 42 commits into from
Jan 23, 2023
Merged

[Tech] Add ts-prune to find dead code #2210

merged 42 commits into from
Jan 23, 2023

Conversation

Nocccer
Copy link
Collaborator

@Nocccer Nocccer commented Dec 16, 2022

This PR adds ts-prune to find dead code or useless exports.

  • All dead code reported by ts-prune were removed
  • Adapt tests to still test the old now not anymore exported functions
  • Moved function notify to dialog. I didn't find a way to mock it from utils while testing utils functions. Utils is a large file and making it smaller makes sense anyway

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

weblate and others added 14 commits November 28, 2022 19:09
* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Translated using Weblate (French)

Currently translated at 100.0% (401 of 401 strings)

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Co-authored-by: John Donne <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/globals/fr/
Translation: Heroic Games Launcher/GamePage
Translation: Heroic Games Launcher/Globals

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Heroic Games Launcher/Globals
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/globals/

Co-authored-by: John Donne <[email protected]>
* fix: hide wine options on macOS

* fix: playing status not changing correctly

* fix: download progress color

* fix: wine-manager reload button

* fix: launch win sideloaded games on macOS

* fix: isGameAvailable for sideloaded games

* fix: dont show wine tools on windows and mac

* feat: game not available status

* feat: improved not available check on game page

* i18n: updated keys

* fix: dont show update button when not available

* fix: gamecard not available classes

* fix: getInstallInfo error when json parse fails

* other: fade in card animation

* chore: heroic version hover

* fix: reload gamecard on status changes

* fix: proper pass platform when importing epic games

* i18n: updated keys

* fix: compute saves path for windows games on macOS

* fix: gamecard status not updating after import

* feat: proper show not supported games

* fix: codecheck

* fix: Hiding a game doesn't remove it from the list unless re-rendered #2078

* fix: showing as not available after uninstall

* fix: typo

* fix: hide runexe for native games on sideload

* fix: hide wine options for native games

* fix: show refreshing icon when refreshing library

* fix: pr comments

* chore: renamed import

* fix: remove install info for unsuported games

* fix: dont fetch changelog if already saw it

* fix: installing native macOS games for GOG

* chore: removed audioFix settings and component
* other: updated tray icons and added OS logic

* chore: log
* Translated using Weblate (Swedish)

Currently translated at 100.0% (402 of 402 strings)

Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Co-authored-by: dpanter <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/globals/sv/
Translation: Heroic Games Launcher/GamePage
Translation: Heroic Games Launcher/Globals

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Co-authored-by: Hosted Weblate <[email protected]>
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/gamepage/
Translation: Heroic Games Launcher/GamePage

* Update translation files

Updated by "Squash Git commits" hook in Weblate.

Translation: Heroic Games Launcher/Globals
Translate-URL: https://hosted.weblate.org/projects/heroic-games-launcher/globals/

Co-authored-by: dpanter <[email protected]>
* [Feature] Add DXVK FPS Limit toggle

Checkbox to enable/disable DXVK FPS and a text field to input enter FPS cap value

* Run prettier

* Fix function not used error

* Show for macOS Crossover and Linux Wine games

* Add !nativeGame
@Nocccer Nocccer requested review from a team, arielj, flavioislima, CommandMC, imLinguin and redromnon and removed request for a team December 16, 2022 15:23
@Nocccer Nocccer changed the base branch from beta to main December 17, 2022 12:17
@Nocccer Nocccer added the pr:ready-for-review Feature-complete, ready for the grind! :P label Dec 17, 2022
@flavioislima flavioislima added the pr:conflicted PR conflicted, needs attention. label Dec 20, 2022
@Nocccer Nocccer removed the pr:conflicted PR conflicted, needs attention. label Jan 2, 2023
@Nocccer Nocccer requested a review from arielj January 6, 2023 17:37
@Nocccer Nocccer mentioned this pull request Jan 14, 2023
4 tasks
@Nocccer Nocccer requested a review from flavioislima January 22, 2023 18:35
@flavioislima flavioislima merged commit a5db684 into main Jan 23, 2023
@flavioislima flavioislima deleted the tech/add-ts-prune branch January 23, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:ready-for-review Feature-complete, ready for the grind! :P
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants