Skip to content
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

Port to TypeScript + 0.10.0 Gamemode Changes #146

Merged
merged 38 commits into from
Sep 8, 2024

Commits on Aug 28, 2024

  1. chore: remove stubbed tricksurf UI

    Not doing for ages, don't any reason to keep the stubbed stuff around.
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    afaad6d View commit details
    Browse the repository at this point in the history
  2. chore: upgrade all dependencies

    Not pinning dev dependencies. It's not a big deal, and we're not in prod.
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2b44695 View commit details
    Browse the repository at this point in the history
  3. refactor: convert tools to ESM

    Top-level await yaaaay
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    dac4ac9 View commit details
    Browse the repository at this point in the history
  4. chore: disable bad eslint rules

    "class-methods-use-this" is just annoying, not much benefit to static methods in JS,
    and doesn't work well with our PanelHandler system
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8bc13fb View commit details
    Browse the repository at this point in the history
  5. chore: migrate ESLint to flat config

    Idk, eslint updated and their config changed. Fun!
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    b4879b6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d264046 View commit details
    Browse the repository at this point in the history
  7. chore: run get-credits script

    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    caa20eb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6b745d3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eba5e6e View commit details
    Browse the repository at this point in the history
  10. chore: disable typescript strict null checks

    This causing people headaches, and not super beneficial.
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    22189c5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0c84abf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2bdbc60 View commit details
    Browse the repository at this point in the history
  13. chore: enable TS source mapping

    Kiiiiind of works with debugger! And assume we'll want this once SCell's
    thing is in.
    tsa96 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8fb7d94 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fd30881 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c90f5ab View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. chore: bump types submodule

    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    4615ea4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb48143 View commit details
    Browse the repository at this point in the history
  3. chore: rename every .js file to .ts

    There absolutely no code changes here, just moves, to keep files linked in Git and so review is easier.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    79d6e1f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7eb506d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6bf6897 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4a9f6f0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4c0d633 View commit details
    Browse the repository at this point in the history
  8. refactor: remove levels-explainer popup JS, replace with inline script

    Don't like having a dedicated script for something simple as this, better in <script> tag.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    ddef224 View commit details
    Browse the repository at this point in the history
  9. feat: @PanelHandler decorator and other module helper functions

    I know this feels a bit framework-y but with modules it's really needed,
    otherwise exposing stuff to XML takes a lot of boilerplate.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    fde5c5f View commit details
    Browse the repository at this point in the history
  10. feat: traverseChildren function

    Generators waow!!
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    c780cd3 View commit details
    Browse the repository at this point in the history
  11. refactor: convert everything to TypeScript

    Chungus commit but not that much to break up. Tried to not refactor too
    much but I tweaked some things as I went. Couple of general comments:
    - Suffixing every class with "Handler" is very verbose but omitting it
      will be a namespace collision for JS-defined panels like
      LevelIndicator, so figured I'd keep consistent and suffix everything.
    - static is no longer required everywhere because of @PanelHandler
      instantiating classes it's applied to. Maybe a bit too magical, but I
      like not having static on absolutely everything.
    - We should avoid .bind(this) with event handlers, it's easy to
      introduce type errors when using it, since it provides no type-safety
      between the event handler function signature and the function it's
      applied to. Arrow functions do the same thing, and make the arguments
      explicit.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    cae7386 View commit details
    Browse the repository at this point in the history
  12. refactor: convert speedometers to TypeScript

    This stuff is all interconnected so figured I'd split them out from main ts port commit
    Refactored a bit of gamemode handling logic as well, needed a C++ fix to get config
    loading working with new modes, that's in review on red.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    3344b4a View commit details
    Browse the repository at this point in the history
  13. refactor: remove/rename stupid main menu events

    Show/HideContentPanel weren't doing anything. ReloadBackground is ambigious. Guhh!!!
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    f147083 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f4ac14f View commit details
    Browse the repository at this point in the history
  15. refactor: make toasts look a bit less terrible

    Not doing much styling in this PR, just couldn't resist improving these slightly.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    bbff206 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b718dc8 View commit details
    Browse the repository at this point in the history
  17. refactor: comment out "View Showcase Run" button in tab-menu

    This thing just confuses people, had multiple people ask why it doesn't work.
    Doesn't look very good in its current state, may as well just hide for now.
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    6e3d6d6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b578792 View commit details
    Browse the repository at this point in the history
  19. fix: start trackNum at 1

    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    d50760e View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    84f14c9 View commit details
    Browse the repository at this point in the history
  21. feat: add .editorconfig

    Toop was having issues with default line endings in vscode, this should
    set right defaults
    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    8d3a057 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    40fdd64 View commit details
    Browse the repository at this point in the history
  23. wip: map selector

    tsa96 committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    010d70c View commit details
    Browse the repository at this point in the history