1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-03-14 12:54:28 +01:00

56 Commits

Author SHA1 Message Date
Anthony Fuller
beb610c340
feat: official -> peacock progression transfer (#426)
* Support multiple CPD configs

* Initial work on progression transfer - challenges

* Add transfer of profile data

* Change how ActionXp is stored

We make the UserDefault contain an empty object, saves having to add all the locations. They're only added when XP is actually gained in that sublocation, this mimics official behaviour.

* Fix player profile data

* Sync escalation and arcade progress

* Sync freelancer CPD data

* Fix linting

* Don't override previous challenge progression

* Bump default profile version

* Overriding challenge progression is inevitable

* Remove pointless cast

* Only get arcade and freelancer data in H3

* Remove debug print

* Support 2016 progression transfer

* Transfer default loadouts

* Don't clone LocationsData for getSublocations

Co-authored-by: Reece Dunham <me@rdil.rocks>
2024-04-19 20:45:44 -04:00
Reece Dunham
5208a37fe8
refactor(webui): Switch over to a proper router
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-04-19 12:20:52 -04:00
dependabot[bot]
cb763d8bf2
Bump tar from 6.2.0 to 6.2.1 (#429)
Bumps [tar](https://github.com/isaacs/node-tar) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-14 11:53:13 -04:00
Reece Dunham
cb927ff83f
Bump version to v7.0.0
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-04-03 21:33:12 -04:00
Reece Dunham
da89e507dc
chore: Update dependencies & TS version
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-04-02 12:26:39 -04:00
Reece Dunham
8898b08160
chore: Upgrade to Prettier v3
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-04-02 09:12:57 -04:00
Reece Dunham
dfcf3ae327
Rework update checking
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-03-31 00:20:42 -04:00
Reece Dunham
d970873f9d
tests: Add new tests for user data persistence (#401) 2024-03-23 22:33:00 -04:00
Reece Dunham
0adb434864
fix: Annoying race conditions in BP
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-03-04 18:12:13 -05:00
Reece Dunham
e184ce0e82
Add test to ensure objectives are localized (#391)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-02-20 12:21:52 +00:00
Reece Dunham
a0fca9bdc2
Fix lockfile
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-02-06 09:45:02 -05:00
Reece Dunham
35914b9db4
Bump server version to v7.0.0-alpha.1
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-02-06 09:42:07 -05:00
Reece Dunham
5cc69434c6
Enable strict types mode (#362)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2024-02-02 14:46:44 -05:00
dependabot[bot]
bc8c4527d7
Bump follow-redirects from 1.15.3 to 1.15.5 (#366)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.5.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.3...v1.15.5)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 20:49:40 -05:00
dependabot[bot]
c1ce012360
Bump vite from 5.0.2 to 5.0.12 (#365)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.2 to 5.0.12.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-20 20:49:33 -05:00
Reece Dunham
2d83a4c872
chore: Cherry-pick a bunch of dependency updates and test fixes from #340
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-11-22 17:49:01 -05:00
Reece Dunham
16a0a0bf59
Update dependencies
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-10-14 20:37:50 -04:00
dependabot[bot]
9f3d243377
Bump get-func-name from 2.0.0 to 2.0.2 (#323)
Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases)
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2)

---
updated-dependencies:
- dependency-name: get-func-name
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 14:05:40 +01:00
Anthony Fuller
46052c7b0e
Multi-Version Mastery and Sniper Scoring (#270)
* Add multi-version mastery files

* Add pro1 unlocks to legacy allunlockables

* Add 47's suit to scpc all unlockables

* Add and remove various configs

* Remove some useless promises

* Fix scpc hub

* Fix issue with user profile saving

* Fix scpc issues for hub

* Add singleplayer/multiplayer sniper

* A great many things

- Add multi-version mastery
- Improve sniper mastery support
- Improve general H2016 support

* Fix some warnings

* Fix pro1 mastery on destination screens

* Remove entP from createInventory, lock/unlock pro1 accordingly

* Remove JSDoc entP parameter from createInventory

* Remove difficultyunlocks from safehouse pages

* Add versioned user profiles

* Prettier run

* Remove false point from user profiles docs

* Add comment about profile versioning to types

* Fix default profile links

* Remove remaining lowercase

* Fix sniper showing XP as XP

* Add game versions to the unlockable map

* Update getMasteryForUnlockable call in planning

* Fix missing locations when updating profiles

* Update versions to v7

* Fix ICA Facility destination mastery

* Fix sniper challenge unlockables showing in inventory

* Sniper Scoring (#273)

* Initial sniper scoring

* Fix linting errors

* Update require table

* Calculate and display final sniper score on end screen

* Bump SMP version to v5.7.0

* Update since version for scoring

* Fix create inventory call for sniper scoring

* Support sniper unlockables in the inventory

* Update versions to v7

* Reflect changes to createInventory in scoreHandler

* Get unlockable name in completion data

* It was not okay.

* Thanks webstorm

* Add support for /profiles/page/GetMasteryCompletionDataForUnlockable

* Support sniper play next

* Remove sniper gamemodes template from overrides

* Remove debug prints from scoring event handler

* Fix challenge multiplier

* Exclude sniper unlockables from stashpoint

* Start fixing up the missionEnd response for sniper

* Update misleading comment

* Use existing global challenge to check for SA on sniper contracts

* Re-add removed global challenges

* Proper support for the mission end screen on sniper contracts

* Remove redundant label

---------

Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>

* Add co-op sniper scoring defs

* Update MasteryUnlockable template

* Bump SMP version to v5.9.3

* Re-add deepmerge

* Fix SMP checksum

* Fix linting errors caused by merge

* Fix score handler imports

* Move load flags

* Remove unnecessary game version arg

* Whoopsies

Co-authored-by: Reece Dunham <me@rdil.rocks>
Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>

---------

Signed-off-by: Anthony Fuller <24512050+AnthonyFuller@users.noreply.github.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>
Co-authored-by: Reece Dunham <me@rdil.rocks>
2023-07-24 23:47:28 +01:00
Reece Dunham
b20ce67c34
Fix the build
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-07-06 10:50:43 -04:00
Reece Dunham
91eac94fd0
Update deps
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-07-06 10:48:55 -04:00
dependabot[bot]
b940009716
Bump semver from 7.5.0 to 7.5.3 (#297)
Bumps [semver](https://github.com/npm/node-semver) from 7.5.0 to 7.5.3.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.5.0...v7.5.3)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-06 10:44:07 -04:00
Reece Dunham
29c519848c
Update a bunch of stuff (fix the vite sec warning)
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-06-14 11:45:10 -04:00
AnthonyFuller
78f51fd619 Bump SMP version to v5.9.2 2023-05-11 11:04:08 +01:00
AnthonyFuller
d35a15f653 Bump SMP version to v5.9.1 2023-05-09 01:46:44 +01:00
AnthonyFuller
093de15e41 Bump SMP version to v5.8.0 2023-05-08 22:36:30 +01:00
Reece Dunham
9a000b6d70
Update deps + eslint rules
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-04-28 23:39:57 -04:00
AnthonyFuller
d6a917ee50 Bump SMP version to v5.6.2 2023-04-26 10:03:41 +01:00
AnthonyFuller
2cddcd67e7 Switch to fast-glob 2023-04-25 05:42:18 +01:00
AnthonyFuller
b570768c77 Bump SMP version to v5.6.1 2023-04-20 12:36:43 +01:00
AnthonyFuller
7169d624a8 Bump SMP version to v5.6.0 2023-04-19 22:12:30 +01:00
Anthony Fuller
e53095a0f7
Bump SMP version to v5.5.2 (#199) 2023-04-09 18:48:19 -04:00
Reece Dunham
27942b17d4 TypeScript v5 2023-04-08 22:29:40 -04:00
Reece Dunham
1dfd710a93 Update deps, don't do prettier through eslint 2023-04-08 22:25:29 -04:00
AnthonyFuller
f68bf02808 Bump SMP version to v5.5.1 2023-04-07 04:04:29 +01:00
AnthonyFuller
0e2135e1eb Bump SMP version to v5.5.0 2023-04-07 02:10:58 +01:00
moonysolari
21b3663c50
Added featured contracts challenges (#186)
* Add semi-working featured contracts challenges

* Pass contract IDs to $pushunique (need SMP update)

* Add readme for challenges

* Use drop ids

* fix fc challenges json

* Added h2 featuren contracts challenges

* Update smp to 5.4.0
2023-04-06 17:05:36 +01:00
Reece Dunham
f779d15d44
Bump version to v6.0.0
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-27 09:08:56 -04:00
Lennard Fonteijn
f732942e39
Add support for logging to console and files (#159)
* Add support for logging to console and files

* Added support for internal and custom log categories
Added support for disabling log categories
Added support for setting desired log levels for both console and file
2023-03-26 14:59:57 -04:00
Lennard Fonteijn
22d6b6d1ba
Added vitest and configuration to support unit tests (#37)
* Added Vitest and configuration to support unit tests
Added Vite plugin to fix performance issue with JSON files
Added mock for configSwizzleManager to support the Vite plugin

* Added custom ESLint rule to enforce proper module paths
2023-03-20 20:19:26 -04:00
Reece Dunham
c7d676d0af Update some dependencies + dedupe 2023-03-18 13:18:07 -04:00
moonysolari
e09dc78c35
Update smp (#151) 2023-03-11 12:53:40 -05:00
Reece Dunham
7ed211fdd7
v6.0.0-beta.2
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-02-09 23:13:09 -05:00
Reece Dunham
341517f8a6
Update some dependencies
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-21 17:17:26 -05:00
Reece Dunham
145641429b
Update jwt lib to v9
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-01-16 15:09:20 -05:00
moonysolari
d78d5bf3ea
Fix all broken challenges in #22 (#82)
* Using state machine parser 5.2.0

* Correctly store and load challenge contexts

* Update THIRDPARTYNOTICES
2023-01-16 13:30:06 -05:00
dependabot[bot]
2fc20247e5
Bump json5 from 2.2.1 to 2.2.2 (#65)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 11:28:05 -05:00
Reece Dunham
a71bfff890 Use the new axios across all workspaces 2022-12-30 21:08:15 -05:00
Govert de Gans
645d014dde Update axios to v1.2.2, fixing an 'unexpected end of file' error
This error popped up when trying to download a contract via tools.cmd
2022-12-30 15:47:28 +01:00
Reece Dunham
9e6e5dd4ed
Fixes to the express patch
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-12-15 20:40:49 -05:00