aboutsummaryrefslogtreecommitdiff
path: root/src/app
AgeCommit message (Collapse)Author
2023-09-16made some lang keys far more logical0neGal
Most of these are from back when Viper was originally started, I also removed a few keys as they were no longer in use, but were forgotten about, most of these are from pre-v1.0.0 aka, the old smaller UI
2023-09-16lang files can now use objects!0neGal
The `lang()` function doesn't change whatsoever, as the lang files are flattened and are therefore identical to the before this commit. I also cleaned up the files, and all the lang files should now all look far more similar in order.
2023-09-16added button to force kill game0neGal
2023-09-13ideally eliminate race condition loading config0neGal
From my testing this works without problems, but further testing will be requested in #211
2023-09-13synchronize changes to settings from main process0neGal
If the main process has changes to the settings, said settings will now also be sent to the renderer, making them synchronized.
2023-09-13fixed gamepath only updating for the renderer0neGal
This would mean if the gamepath cant be found automatically you'll be asked to set your gamepath every time Viper starts, instead of it remembering it, and if it can find it automatically, then you'd never have known this was a problem (hence why this was even a problem)
2023-09-13use json.js for loading settings in the renderer0neGal
2023-08-26fixed mod browser thinking it's done loading pkgs0neGal
The mod browser before this pre-maturely thought it had loaded all the available packages, when in fact, it'd barely started. Now this is fixed, and you can scroll for quite some time before actually reaching the real end of the package list.
2023-08-21properly detect installed packages in mod browser0neGal
This doesn't break the old way of detecting things, for various reasons, but notably it'd cause more harm than good. As we still need to be able to detect packages that haven't been converted into the new location.
2023-07-31window buttons are no longer hidden behind popups0neGal
2023-07-24added default Northstar icon for core mods0neGal
2023-07-24remove debug console.log()0neGal
2023-07-24fixed updateable packages not being removeable0neGal
2023-07-24Merge branch 'main' into packages-dir0neGal
2023-07-22minor changes to the styling0neGal
2023-07-22mostly support installing packages through GUI0neGal
Install toasts, installing overall, dependencies and so forth, all seem to be fully functional, however more bug testing is probably required to concluce whether that is actually the case or not... This also doesn't break `src/modules/mods.js`, i.e dragging mods in to manually install them still functions the same as always.
2023-07-22unify all mods of a package into one0neGal
This means instead of showing the invididual mods inside a package, we simply show 1 mod/package, we then use the name, description, version and so forth from the `manifest.json` inside the package folder. Further we now also support a local `icon.png` file, instead of relying on remotely stored icons and trying to match names against each other.
2023-07-21rename mods.list() properties to use snake case0neGal
I may or may not have missed some properties or something somewhere, perhaps we'll see if something ends up broken in the future...
2023-05-07fixed settings' animation messing with tooltip0neGal
2023-05-07added hover tooltips0neGal
They're pretty simple to use, and automatically make themselves fit on screen, on top of automatically disappearing and appearing of course. I've used them a few places now, and not sure where else they can be used, there are of course localization strings that need, well, localization, and I'll create a PR for this on a later date.
2023-05-06change launch button text if game is running0neGal
This should've already been a thing, and was a thing for when the game was currently launching, but this functionality seems to have been broken at some point.
2023-04-29win.alert() now uses Promise, and added .confirm()0neGal
win.alert() now has a Promise return value, which'll allow you to wait until an alert has been closed before continuing code execution. win.confirm() was also added it's the same as win.alert() except it runs confirm() in the renderer instead of alert(), and has a return boolean in the Promise resolve callback. This boolean being whether the user confirmed the action or not.
2023-04-01Fixes broken JSON files on restartLumiChnn
On restart, if the json file was broken supposedly would try to repair but it wouldn't work, it would keep repairing but failing. This should fix it by deleting the json file and creating a new one at the start with the correct settings (hopefully)
2023-03-09fixed not having to confirm removing core mods0neGal
2023-03-09fixed centered .grid items/elements0neGal
If not enough elements are inside a grid to fill it out entirely it'll attempt to put spacing in between the items to make them vertically centered. This is now removed.
2023-03-09fixed changing language not disabling autolang0neGal
2023-03-09dont loop through modsobj if it's not set0neGal
2023-03-09download Northstar to <cache_dir>/vipertmp0neGal
"cache_dir" being wherever your OS puts it's cache, it's the same place mods.js uses to download mods. This prevents cluttering up the gamepath with temporary files.
2023-03-05fixed not being able to toggle mods with updates0neGal
2023-03-05modularized many functions and got rid of utils.js0neGal
Notably, winLog() and winAlert() are now win.log() and win.alert() inside modules/window.js. updateViper(), updateNorthstar and handleNorthstarUpdating() are now update.viper(), update.northstar() and update.northstar_autoupdate(), inside modules/update.js isGameRunning() and isOriginRunning() are now is_running.origin() and is_running.game() inside modules/is_running.js, along with a .titanfall() and .northstar() for more specificity. Not used anywhere right now, but may in the future be used. setpath() and gamepathExists() are now gamepath.set() and gamepath.exists() inside modules/gamepath.js killOrigin() are now kill.origin() inside modules/kill.js setlang() is now just inlined into the only event where it's used.
2023-02-07fixed alignment of modlist and release pages0neGal
They're now identical!
2023-02-07added icons to modlist0neGal
2023-02-05fixed grid elements overflowing0neGal
2023-02-01en.json modlist localizations0neGal
2023-02-01added update button to modlist0neGal
I also made mods with updates be placed in the top of the modlist.
2023-01-31different colored switches0neGal
When a red switch is placed besides a red button that says "Remove", it makes it seem far more destructive to click that switch, even if it's not, and a blue color doesn't fit in very well either (perhaps we need more colors). And so because of all that the modlist switches are now orange, and we can easily add more colors. The switch colors overall are also far more vibrant now, as it looks far better that way.
2023-01-30disable modslist buttons properly0neGal
2023-01-30added: toggles for toggling mods in modlist0neGal
The new modlist now uses the same toggles found in the settings popup, only here they're used to disable/enable mods. On top of this I also fixed the "Toggle All" button not working. Forgot to change some stuff, breaking it... oops...
2023-01-30remove: Settings.reloadSwitches() and .switch()0neGal
We now just use a click event listener, and check through what's at the click location, and toggle classes as needed.
2023-01-29fixed weird looking margin/padding in settings0neGal
2023-01-29simplify and fix checking package versions0neGal
Previously some outdated packages would just say "Re-Install" and not "Update", now that's fixed, along with making the logic easier for use in the mod list.
2023-01-28initial draft for redesign of the mod list0neGal
The current design for the installed mods is not exactly the best. And it has been due for a redesign for quite a while, I'm finally starting work on this.
2023-01-27move app/*.js files into app/js/0neGal
2023-01-15remove debug console.log()0neGal
2023-01-13work in progress redesign for release notes0neGal
2023-01-12basically support thunderstore_author.txt0neGal
This doesn't entirely uphold support, as it doesn't use the author file for anything, however it does write it as intended.
2022-11-23added more user friendly error message0neGal
When JavaScript errors occur outside of the renderer, they'll no longer display a big and confusingly detailed error stack, now they'll simply be shown a toast about the fact that an error happened. The user can then click this to get more details, but still without it being as invasive and obtuse as before.
2022-11-23actually fix duplicate mods0neGal
If a mod has multiple mod folders inside it, however all with the same name, they'll be merged together, this now fixes that, by adding "(dupe)" to the end of it, along with displaying an error, however it will install successfully. This also happens to add some duplicate toast protection, however this should be reworked, but I am not bothered to deal with it right now, and I instead will be putting this on future me.
2022-09-14differentiation between update() and updatevp()0neGal
Some functions have been renamed: update() -> updateNorthstar() updatevp() -> updateViper() Overall these are far better function names...
2022-08-07fix: lintAlystrasz