aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
AgeCommit message (Collapse)Author
2023-03-02chore: Bump all dependencies (#198)GeckoEidechse
2023-03-02feat: Allow installing PRs from DeveloperView (#139)GeckoEidechse
* feat: Initial backend code to get list of PRs Hardcoded for launcher right now * refactor: Autogen TS bindings from Rust code using `ts-rs` as done in #140 * fix: Fix incorrect typing What is returned is actually an array of `PullsApiResponseElement` * feat: Prototyping frontend UI for installing PR * fix: Use right repo Used Mods instead of Launcher * feat: Enable installing launcher pull request * refactor: Rename variables to indicate approp repo NorthstarLauncher vs NorthstarMods * style: Formatting fixes * feat: Initial code for getting mods PRs * feat: Add backend code for installing mods PRs * feat: Add note about launching in notification * fix: Remove commented out code * refactor: Depduplicate code * refactor: Remove unnecessary use of anyhow * refactor: Use already existing function for checking game path * feat: Add comment about profile / batch file * chore: Remove leftover print statements * feat: Add clickable link for each PR * refactor: Reduce duplicate code * refactor: Rename enum * fix: Use proper type * fix: Remove leftover `console.log`s * style: Revert accidental formatting change * refactor: Remove second API call for mods PRs * refactor: Rename variable * refactor: Remove second API call for launcher PRs * refactor: Move API URL string to `constants.rs` So that all constants are in a single place * fix: Restore lines deleted in merge * style: Formatting fixes * fix: Print line when done installing PR * feat: Show notification for install start/done Displays a notification that PR install has started and upon completion replaces it with one saying that install has completed. * fix: Remove left-over console log * feat: "Install PR" UI (#197) * refactor: export pull requests selector to dedicated component * refactor: regroup launcher+mods collapses in one collapse component * refactor: load pull requests when opening selector collapse item * refactor: review progress loaders' style * fix: don't fetch PRs if they've already been loaded * feat: update collapse style * refactor: remove fetch success notification * refactor: both collapses can be opened at the same time * fix: non-accordion collapse sends an object as event parameter * fix: Iterate over multiple pages of GitHub CI API This ensures we can still grab older artifacts. Max page is capped at 10 as going too high will cause us to hit API rate limits. Also refined error message accordingly. * refactor: Move stored PRs to submodule as suggested in review * refactor: Move getPullRequests to store submodule I order to clean up PullRequestSelector.vue Other functions will follow in separate commits. Currently TypeScript compilation fails on undefined type of `state` * fix: Properly define state type * refactor: Move installLauncherPR to store submodule * refactor: Move installModsPR to store submodule --------- Co-authored-by: Rémy Raes <contact@remyraes.com>
2023-03-01chore: Bump FlightCore version to 1.8.3v1.8.3GeckoEidechse
2023-03-01build: Keep line tables in release builds (#191)GeckoEidechse
* build: Keep line tables in release builds
2023-03-01chore: Bump sentry to 0.30.0 (#195)GeckoEidechse
* chore: Bump sentry to 0.30.0 * chore: Bump Rust version to 1.66 `sentry` raises minimum required version to `1.66`
2023-02-26chore: Bump FlightCore version to 1.8.2v1.8.2GeckoEidechse
2023-02-26chore: Bump FlightCore version to 1.8.1v1.8.1GeckoEidechse
2023-02-25refactor: Properly set cfg macro for OS conditional compilation (#186)GeckoEidechse
* refactor: Properly set cfg macro for OS conditional compilation * docs: Add comment about MacOS
2023-02-14chore: Bump FlightCore version to 1.8.0v1.8.0GeckoEidechse
2023-02-14fix: Resolve variable import errorGeckoEidechse
2023-02-14refactor: Get TS package API response from backend (#168)GeckoEidechse
* refactor: Get TS package API response from backend Previously Thunderstore package index was done in frontend. Should be moved to backend instead as backend is reponsible for such tasks while frontend should just be used to store and display information. * refactor: Filter TS API response in backend * refactor: Rename function Makes it more descriptive what it does * refactor: Use gen. binds instead of duped struct Replaces the current TypeScript interface defintions with autogenerated bindings. * fix: Properly type variable * fix: Correct imported path of interface file * fix: Update struct field types to fix typing issue i32 should be big enough unless Thunderstore and Northstar suddenly becomes really huge and we start seeing over 4 million downloads on some mod * fix: Correct imported path of interface file
2023-02-13fix: Specify commit for tauri-plugin-store (#176)GeckoEidechse
Instead of a branch specify specific commit. This is done to later run `cargo update`. Currently running said command updates the dependency to a broken build. Fixing `tauri-plugin-store` to a specific working commit allows for running `cargo update` again.
2023-02-13feat: Better stacktrace in Sentry dashboard (#175)GeckoEidechse
Enable attaching stacktrace to see the function in which the crash happened.
2023-02-13chore: Bump sentry crate to 0.29.2 (#174)GeckoEidechse
2023-02-11refactor: Move various consts to `constants.rs` (#162)GeckoEidechse
* refactor: Move list of core mods to consts source Move the list of core Northstar mods to constants.rs * fix: Add missing newline * refactor: Move list of blacklisted mods to consts source file * refactor: Move list of TF2 Origin IDs to consts source file
2023-02-09feat: Add version number to user-agent (#173)GeckoEidechse
* feat: Add version number to user-agent Uses a crate that allows for formatting at compile time. * fix: Add comment
2023-02-08chore: Bump FlightCore version to 1.7.0v1.7.0GeckoEidechse
2023-02-07feat: Show mod version in LocalMods View (#159)GeckoEidechse
* refactor: Parse using serde deserialisation * refactor: Parse using serde deserial. (TS mod str) Reduce code by making use of serde deserialisation. Still supports legacy method * chore: Remove commented out fields While useful, it just made the code messy... * feat: Show mod version in LocalMods view * refactor: Move mod version to new line in source code Makes diffing in git easier * fix: Hide version number if not available
2023-02-06fix: Slightly increase window size to better fit list of mods in ↵GeckoEidechse
Thunderstore mod browser (#169) fix: Slightly increase window size to better fit list of mods in Thunderstore mod browser
2023-02-06chore: Bump libthermite version to 0.5.2 (#163)GeckoEidechse
And fix corresponding code that broke in the process Basically just removing `await`s as the networking functions are no longer async.
2023-02-06refactor: Parse using serde deserialisation (#158)GeckoEidechse
* refactor: Parse using serde deserialisation * refactor: Parse using serde deserial. (TS mod str) Reduce code by making use of serde deserialisation. Still supports legacy method * chore: Remove commented out fields While useful, it just made the code messy...
2023-02-05chore: Bump FlightCore version to 1.6.1v1.6.1GeckoEidechse
2023-02-05feat: Auto-generate TS bindings (#140)GeckoEidechse
* feat: Initial trial to auto-generate TS bindings That way instead of manually duplicating code, we can just run `cargo test` to generate them. * fix: Update forgotten imports * refactor: Move FlightCoreVersion to autogen bind TypeScript binding autogenerated from Rust code * refactor: Move ReleaseInfo to autogen binding TypeScript binding autogenerated from Rust code * docs: Explain how to generate TS binds from Rust * feat: Check for binding changes in CI Checks for uncommitted binding changes in CI and fails if they differ * style: Formatting fixes
2023-02-02fix: Prevent ModsView from crashing if Northstar is not installed (#152)Jan
2023-02-02refactor: Deal with `fs::read_dir` failure instead of checking if exists (#155)Jan
* refactor: Deal with fs::read_dir failure instead of checking if exists
2023-01-31refactor: Remove unnecessary use of anyhow (#150)GeckoEidechse
2023-01-29feat: Add Rust code format check to CI (#146)GeckoEidechse
* feat: Add Rust code format check to CI * fix: Set path correctly * chore: Fix formatting * refactor: Run format check as separate step * refactor: Rename stage Co-authored-by: Rémy Raes <contact@remyraes.com> --------- Co-authored-by: Rémy Raes <contact@remyraes.com>
2023-01-22chore: Autoformat Rust source files (#143)GeckoEidechse
2023-01-22fix: Remove unused serde import in `main.rs` (#142)GeckoEidechse
fix: Remove unused serde import in main.rs Seems like I forgot to remove it when I did some code refactoring
2023-01-22fix: Properly parse mod string (#141)GeckoEidechse
2023-01-14chore: Bump FlightCore version to 1.6.0v1.6.0GeckoEidechse
2023-01-13chore: Bump FlightCore version to 1.5.0v1.5.0GeckoEidechse
2023-01-13feat: Add backend code for getting playercount (#135)GeckoEidechse
* feat: Initial backend code to get the playercount from the Northstar master server together with servercount * fix: Push correct backend code * feat: Load playercount on application load and show on PlayView * refactor: Store global const in separate file Moved user agent there for now * refactor: User user agent from global const * refactor: Move masterserver URL into global const * refactor: Remove temporary variable * fix: Do proper typing for playercount return value * feat: Change text if unable to load playercount So instead of showing some wrong value, we just say that we were unable to load it. * fix: Remove leftover print statement * refactor: Move struct to library source file * fix: Remove break element * fix: Remove frontend display of playercount This allows for separate PR for adding backend code early. * refactor: serverlist endpoint var to global const
2023-01-13refactor: Bump libthermite (#133)GeckoEidechse
* chore: Bump libthermite to v0.4.0-rc.1 And update broken code in FlightCore accordingly * chore: Bump libthermite to v0.4.0 And update broken code in FlightCore accordingly * feat: Parse TS mod string using new standard Instead of reading `mod.json`, we now build Thunderstore mod string using `manifest.json` and `thunderstore_author.txt`. The old method for reading is still supported for now but will likely be replaced by a converted function in the future. See also discussion in https://github.com/0neGal/viper/issues/165
2023-01-08feat: Delete given Thunderstore mod (#111)GeckoEidechse
* feat: Expose installed NS mod directory This allows other functions to get a mod directory directly which is useful for e.g. deleting a mod. * feat: Add button to delete Northstar mod * refactor: Return vector of NorthstarMod instead of unnamed Tuples * feat: Delete given Thunderstore mod * refactor: replace information button by a dropdown menu with remove item * refactor: only display removal mod option if said mod is installed * feat: only display dropdown menu for installed mods * refactor: Remove leftover print statement * chore: Remove leftover todo comment * feat: Show confirm warning before deleting mod * refactor: Call func directly instead of proxy Removes the `func_caller` pattern * fix: Call reloading mods after attempted delete * feat: Hook up deleting mod backend function Now clicking "Remove Mod" calls the appropriate backend function that removes the corresponding mod. * refactor: Call func directly instead of proxy Removes the `func_caller` pattern * style: Autoformat * feat: Support removing outdated mods No longer include the version number in the comparison check * fix: Rephrase error message * feat: Show pop-up confirmation before deleting mod for Thunderstore mod in ThunderstoreView Co-authored-by: Alystrasz <contact@remyraes.com> Co-authored-by: Remy Raes <raes.remy@gmail.com>
2023-01-07refactor: Store global const in separate file (#131)GeckoEidechse
Moved user agent there for now
2023-01-04chore: Bump FlightCore version to 1.4.0v1.4.0GeckoEidechse
2023-01-04feat: Add button to delete Northstar mod (#110)GeckoEidechse
* feat: Expose installed NS mod directory This allows other functions to get a mod directory directly which is useful for e.g. deleting a mod. * feat: Add button to delete Northstar mod * refactor: Return vector of NorthstarMod instead of unnamed Tuples * refactor: Remove leftover print statement * chore: Remove leftover todo comment * feat: Show confirm warning before deleting mod * refactor: Call func directly instead of proxy Removes the `func_caller` pattern * fix: Call reloading mods after attempted delete
2023-01-04refactor: Remove unnecessary caller function pattern (#128)GeckoEidechse
* refactor: Remove unnecessary caller function Instead call `disable_all_but_core` directly * refactor: Remove unnecessary caller function Instead call `get_installed_mods_and_properties` directly * refactor: Remove unused exposed backend function * refactor: Remove unnecessary caller function Instead call `set_mod_enabled_status` directly * refactor: Remove unnecessary caller function Instead call `verify_game_files` directly * refactor: Remove unnecessary caller function Instead call `get_log_list` directly
2023-01-04feat: Show newest version number (#124)GeckoEidechse
* refactor: Move getting new FC version to own func * refactor: Deserialize into object * refactor: Return whole object instead of 2 strings More readable * refactor: Rename variable * refactor: Use fields of object directly instead of assigning to variables first * feat: Expose backend func to get newest FC version and then call it to get newest version number if current is outdated. This way we can display to the user how far behind their currently installed version is.
2023-01-04refactor: Deserialize into struct directly (#127)GeckoEidechse
Instead of deserializing into a generic serde struct and then extracting specific value from it, deserialize directly into the struct we want.
2022-12-23chore: Bump FlightCore version to 1.3.2v1.3.2GeckoEidechse
2022-12-21chore: Bump FlightCore version to 1.3.1v1.3.1GeckoEidechse
2022-12-20feat: Alternatively check if EA App is running (#115)GeckoEidechse
2022-12-14chore: Bump FlightCore version to 1.3.0v1.3.0GeckoEidechse
2022-12-13feat: Start Northstar properly detached (#112)GeckoEidechse
Simply run cmd with `start "" "PATH/TO/NORTHSTAR_EXE"` Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com> Co-authored-by: ASpoonPlaysGames <66967891+ASpoonPlaysGames@users.noreply.github.com>
2022-12-12feat: Expose installed NS mod directory (#109)GeckoEidechse
* feat: Expose installed NS mod directory This allows other functions to get a mod directory directly which is useful for e.g. deleting a mod. * refactor: Return vector of NorthstarMod instead of unnamed Tuples
2022-12-12fix: Make sure all non-core mods get disabled (#103)GeckoEidechse
For this we first rebuild the `enabledmods.json` file. This ensures that all installed mods are actually listed there. The function was originally created before we could rebuild `enabledmods.json` by checking installed mods.
2022-12-05chore: Bump FlightCore version to 1.2.1v1.2.1GeckoEidechse
2022-12-05chore: Bump Rust dependencies (#108)GeckoEidechse