Commit graph

1754 commits

Author SHA1 Message Date
koko
572c942ee8
Implement pride logo & necessary configuration options (#780)
* Implement pride logo as well as needed configuration option

* Potentially fix issue with icons not rendering

* Fix login form icon and remove unused image from PasswordResetPage
2023-06-02 14:21:56 +00:00
dependabot[bot]
2609ec8407
Bump Microsoft.NET.Test.Sdk from 17.6.0 to 17.6.1 (#779)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.6.0 to 17.6.1.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.6.0...v17.6.1)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-01 17:04:51 +00:00
Slendy
bc83d1e9f5
Change name of anonymous variable so it doesn't overwrite local variable 2023-05-31 21:33:05 -05:00
Slendy
c9784cf8c9
Fix hearted profiles being sorted in reverse order 2023-05-31 21:25:35 -05:00
Slendy
b29120a482
Fix typo in IconHash query 2023-05-31 20:46:52 -05:00
Slendy
bee3e39c74
Separate user and icon query in GameUserSlot 2023-05-31 20:45:52 -05:00
Slendy
92b631c533
Fix GameUserSlot icon and username query 2023-05-31 20:43:49 -05:00
Slendy
0b936d3e5d
Implement deleting playlists
Also fixes playlists visually not updating in-game when modifying them
2023-05-31 20:37:17 -05:00
Slendy
cd926a8415
Refactor LBP3 text search to use the category system 2023-05-31 20:35:39 -05:00
Slendy
2ec6bff8e2
Fix number of returned slots being capped at 30 2023-05-31 19:06:36 -05:00
Josh
0c1e350fa3
Rewrite gameserver slot filter system (#763)
* Initial implementation of new slot sorting and filtering system

* Initial implementation of filtering for lbp3 community tab

* Add support for organization on lbp3

* Add playlist and user categories

* Implement unit tests for all filters
Refactor more systems to use PaginationData

* Fix PlayerCountFilter test

* Add more unit tests and integration tests for the filter system

* Fix LBP2 move filter and gameFilterType

* Fix sort by likes in LBP3 category

* Add sort for total plays

* Remove extra whitespace and make styling more consistent

* Order hearted and queued levels by primary key ID

* Fix query without order warnings
2023-05-31 21:33:39 +00:00
Slendy
de228cb242
Fix client side query in BannedPage 2023-05-31 15:12:40 -05:00
Slendy
b0a57f05f9
Update crowdin actions 2023-05-31 15:09:47 -05:00
koko
b4efba7f14
Patch account suspended page display issues (#777)
Remove excess heading and fix incorrect mod case display
2023-05-31 18:40:58 +00:00
github-actions[bot]
5c9819cce6
Update the localization files (#775)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>

If this breaks something, blame koko for convincing me to merge this
2023-05-31 14:18:41 -04:00
github-actions[bot]
8894e54023
Update the localization files (#774)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-05-30 15:19:19 -05:00
koko
21dbdff20a
Add proper ban page when logging in (#773)
* Add proper ban page upon logging in

* Remove two extra line break tags that don't need to be there

* Fix timestamp formatting

* Properly display timestamps in correct timezone

* Fix formatting issues with ban page

* Remove extra parenthesis which would be rendered on-page

* Add to redirect middleware to prevent navigating to other pages

* Small nitpick, renaming UserBannedPage to BannedUserPage

* Resolve nitpicks from reviewers

* Remove un-necessary log message in LoginForm

* Fix ban reason translatable string argument

* Word choice nitpick ("Ban Created" -> "Ban Issued")

* Final adjustments and nitpicks, visual and grammatical

* Resolve requested changes from reviewers
2023-05-30 19:25:31 +00:00
Slendy
c8c54d78de
Fix dockerfile output path 2023-05-29 20:08:37 -05:00
Slendy
2c69644beb
Allow moderators to access individual reports. 2023-05-26 02:27:11 -05:00
dependabot[bot]
f2be297620
Bump coverlet.collector from 3.2.0 to 6.0.0 (#771)
Bumps [coverlet.collector](https://github.com/coverlet-coverage/coverlet) from 3.2.0 to 6.0.0.
- [Release notes](https://github.com/coverlet-coverage/coverlet/releases)
- [Commits](https://github.com/coverlet-coverage/coverlet/compare/v3.2.0...v6.0.0)

---
updated-dependencies:
- dependency-name: coverlet.collector
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-22 17:33:38 +00:00
koko
9646dea44a
Fix mod reason/notes overflow issue & show expiration time if applicable (#765)
* Fix mod reason/notes overflow issue & show expiration time if applicable

* Remove extra whitespace

* Wrap using line break instead of overflow scroll bar

* Remove un-required overflow inline style
2023-05-22 01:40:34 +00:00
dependabot[bot]
67b29f2689
Bump Microsoft.EntityFrameworkCore.InMemory from 7.0.4 to 7.0.5 (#769)
Bumps [Microsoft.EntityFrameworkCore.InMemory](https://github.com/dotnet/efcore) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v7.0.4...v7.0.5)

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore.InMemory
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:57:07 +00:00
dependabot[bot]
1a64860fea
Bump Microsoft.NET.Test.Sdk from 17.5.0 to 17.6.0 (#768)
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.5.0 to 17.6.0.
- [Release notes](https://github.com/microsoft/vstest/releases)
- [Changelog](https://github.com/microsoft/vstest/blob/main/docs/releases.md)
- [Commits](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.0)

---
updated-dependencies:
- dependency-name: Microsoft.NET.Test.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:56:47 +00:00
dependabot[bot]
9c4d6e0c76
Bump Redis.OM from 0.5.1 to 0.5.2 (#767)
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases)
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.5.1...v0.5.2)

---
updated-dependencies:
- dependency-name: Redis.OM
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-16 17:56:38 +00:00
Slendy
4c6f2f0e16
Fix CI not running when it should 2023-05-15 15:06:08 -05:00
Josh
1bf4ed6218
Add more unit tests (#757)
* Reorganize tests into unit/integration pattern

* Make DbSets virtual so they can be overridden by tests

* Add MessageControllerTests

* Implement DigestMiddlewareTests

* Refactor SMTPHelper to follow DI pattern which allows for mocking in unit tests.

* Fix MailQueueService service registration and shutdown

* Implement tests for Status and StatisticsController and reorganize tests

* Start working on UserControllerTests

* Start refactoring tests to use In-Memory EF provider

* Refactor integration tests to reset the database every time
Change default unit testing database credentials

* Update credentials to use default root with different passwords

* Throw exception when integration db is not available instead of falling back to in-memory

* Evaluate DbConnected every time

* Remove default DbContext constructor

* Setup DbContexts with options builder

* Convert remaining Moq DbContexts to InMemory ones

* Add more tests and use Assert.IsType for testing status code

* Add collection attribute to LighthouseServerTest

* Remove unused directives and calculate digest in tests

* Fix digest calculation in tests

* Add test database call

* Clear rooms after each test

* Fix CommentControllerTests.cs

* Disable test parallelization for gameserver tests

* Fix failing tests

Fix SlotTests

Make CreateUser actually add user to database

Fix dbConnected Lazy and change expected status codes

Properly Remove fragment from url for digest calculation

Fix digest calculation for regular requests

[skip ci] Remove unused directive

Don't use Database CreateUser function

Get rid of userId argument for generating random user

Rewrite logic for generating random users

Fix integration tests

* Implement changes from self-code review

* Fix registration tests

* Replace MailQueueService usages with IMailService
2023-05-15 15:00:33 -05:00
Slendy
02f520c717
Fix account unlinking 2023-05-14 14:50:43 -05:00
dependabot[bot]
5e08400170
Bump Selenium.WebDriver.ChromeDriver from 112.0.5615.4900 to 113.0.5672.6300 (#760)
Bump Selenium.WebDriver.ChromeDriver

Bumps [Selenium.WebDriver.ChromeDriver](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver) from 112.0.5615.4900 to 113.0.5672.6300.
- [Release notes](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/releases)
- [Changelog](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/blob/master/RELEASE-NOTES.txt)
- [Commits](https://github.com/jsakamoto/nupkg-selenium-webdriver-chromedriver/compare/v.112.0.5615.4900...v.113.0.5672.6300)

---
updated-dependencies:
- dependency-name: Selenium.WebDriver.ChromeDriver
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-11 16:59:53 +00:00
dependabot[bot]
6bef1d5390
Bump Selenium.WebDriver from 4.9.0 to 4.9.1 (#762)
Bumps Selenium.WebDriver from 4.9.0 to 4.9.1.

---
updated-dependencies:
- dependency-name: Selenium.WebDriver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-08 16:26:13 +00:00
Slendy
8cd1d86de8
Make FriendResponse extend ILbpSerializable 2023-05-05 13:07:41 -05:00
koko
613984c69d
Add moderation/permission info to /api/v1/user (#761)
* Add moderation / permission info to /api/v1/user

* Consolidate everything into a single PermissionLevel reference
2023-05-04 21:35:15 +00:00
jackcaver
9deff7ce63
Implement basic filters and LBP2 CrossController fixes (#758)
* implement basic filters and lbp2cc fixes

* lbp3 hide lbp2cc slots

* hide lbp2cc levels from hearted and most played categories in lbp3 and basic filters for lbp3

---------

Co-authored-by: jackcaver <jackcaver@users.noreply.github.com>
Co-authored-by: koko <koko@drones.gay>
2023-05-04 14:42:31 +00:00
dependabot[bot]
ab353c502f
Bump Redis.OM from 0.5.0 to 0.5.1 (#759)
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases)
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.5.0...v0.5.1)

---
updated-dependencies:
- dependency-name: Redis.OM
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-03 17:25:20 +00:00
Slendy
38e97a904a
Make FriendsController return text/xml 2023-05-02 21:05:41 -05:00
Josh
3aa9033b67
Rewrite captcha system (#754)
Rewrite captcha and remove many unused directives
2023-04-29 04:32:42 +00:00
W0lf4llo
aefecc7b12
Make LBP2 lucky dip prefer newer levels and make player count more accurate (#744)
* Lucky Dip, Newest Levels, & Recently Played change

* almost broke prod :disaster:

* Update ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs

I forgor lol

Co-authored-by: koko <koko@drones.gay>

* Remove TimestampMicros and add random slot selection with bias

* playersInPod count filters by platform

* Hope this actually commits now, idk github

* Apply suggestions from code review

Co-authored-by: Josh <josh@slendy.pw>

* Update ProjectLighthouse.Servers.GameServer/Controllers/StatisticsController.cs

Co-authored-by: Josh <josh@slendy.pw>

* Fix random bias ordering

---------

Co-authored-by: koko <joebiden@kitgaming67.com>
Co-authored-by: koko <koko@drones.gay>
Co-authored-by: Slendy <josh@slendy.pw>
2023-04-29 04:32:36 +00:00
github-actions[bot]
d5f3db9201
Update the localization files (#756)
[skip ci] Update the localization files

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2023-04-28 23:27:21 -05:00
koko
586c161c71
String fix with login/register button (#755)
* Display "Login" only when registration is off, remove unused BaseLayoutStrings

* Remove un-used strings from BaseLayout
2023-04-29 03:44:33 +00:00
Slendy
d806664b62
Make MatchHelper use ConcurrentDictionary 2023-04-28 22:40:43 -05:00
koko
6f55ce3226
Add basic ability to flag duplicate levels (#753)
* Add the basics for duplicate level flagging

* Use this.BadRequest instead of StatusCode(500)

* Remove redundant slot creator check

* Include creator entity

* Redirect back to slot page for unauthenticated reqs

* Check if reporter = level creator on server side

* A few formatting nitpicks with the webhook

* Move external url config to a shorter var

* Change duplicate flag button icon to a flag

* Remove accidental dollar sign

Co-authored-by: Josh <josh@slendy.pw>

* Remove another accidental dollar sign

Co-authored-by: Josh <josh@slendy.pw>

* Three dollar signs... I'm blind

Co-authored-by: Josh <josh@slendy.pw>

* Update ProjectLighthouse.Servers.Website/Controllers/Moderator/ModerationSlotController.cs

Co-authored-by: Josh <josh@slendy.pw>

---------

Co-authored-by: Josh <josh@slendy.pw>
2023-04-27 02:48:19 +00:00
Josh
eb79d7cf48
Optimize slot endpoints (#750)
* Remove AsEnumerable usage in SlotsController

* Remove AsEnumerable usages from LBP3 categories

* Fix typo in OrderBy statement
2023-04-26 20:13:27 +00:00
dependabot[bot]
6b3b8d8271
Bump Selenium.WebDriver from 4.8.2 to 4.9.0 (#752)
Bumps Selenium.WebDriver from 4.8.2 to 4.9.0.

---
updated-dependencies:
- dependency-name: Selenium.WebDriver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 17:03:26 +00:00
dependabot[bot]
3e7adf5208
Bump YamlDotNet from 13.0.2 to 13.1.0 (#751)
Bumps [YamlDotNet](https://github.com/aaubry/YamlDotNet) from 13.0.2 to 13.1.0.
- [Release notes](https://github.com/aaubry/YamlDotNet/releases)
- [Commits](https://github.com/aaubry/YamlDotNet/compare/v13.0.2...v13.1.0)

---
updated-dependencies:
- dependency-name: YamlDotNet
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 17:03:20 +00:00
Slendy
bd6bbbde96
Bump EntityFramework related packages to 7.0.5 2023-04-25 11:39:48 -05:00
dependabot[bot]
8c19634e09
Bump dotnet-trace from 6.0.351802 to 7.0.421201 (#749)
Bumps [dotnet-trace](https://github.com/dotnet/diagnostics) from 6.0.351802 to 7.0.421201.
- [Release notes](https://github.com/dotnet/diagnostics/releases)
- [Commits](https://github.com/dotnet/diagnostics/compare/v6.0.351802...v7.0.421201)

---
updated-dependencies:
- dependency-name: dotnet-trace
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:26:13 +00:00
dependabot[bot]
b46959762c
Bump dotnet-ef from 7.0.4 to 7.0.5 (#748)
Bumps [dotnet-ef](https://github.com/dotnet/efcore) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/efcore/releases)
- [Commits](https://github.com/dotnet/efcore/compare/v7.0.4...v7.0.5)

---
updated-dependencies:
- dependency-name: dotnet-ef
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:24:37 +00:00
dependabot[bot]
9f14a2019f
Bump BouncyCastle.Cryptography from 2.1.1 to 2.2.1 (#747)
Bumps [BouncyCastle.Cryptography](https://github.com/bcgit/bc-csharp) from 2.1.1 to 2.2.1.
- [Release notes](https://github.com/bcgit/bc-csharp/releases)
- [Commits](https://github.com/bcgit/bc-csharp/compare/release-2.1.1...release-2.2.1)

---
updated-dependencies:
- dependency-name: BouncyCastle.Cryptography
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 16:24:01 +00:00
dependabot[bot]
02896fee86
Bump Microsoft.AspNetCore.Mvc.Testing from 7.0.4 to 7.0.5 (#739)
Bumps [Microsoft.AspNetCore.Mvc.Testing](https://github.com/dotnet/aspnetcore) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:53 +00:00
dependabot[bot]
8b1fa0908e
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 7.0.4 to 7.0.5 (#742)
Bump Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation

Bumps [Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation](https://github.com/dotnet/aspnetcore) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](https://github.com/dotnet/aspnetcore/compare/v7.0.4...v7.0.5)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:30 +00:00
dependabot[bot]
1d34d64fb2
Bump Redis.OM from 0.4.2 to 0.5.0 (#743)
Bumps [Redis.OM](https://github.com/redis/redis-om-dotnet) from 0.4.2 to 0.5.0.
- [Release notes](https://github.com/redis/redis-om-dotnet/releases)
- [Commits](https://github.com/redis/redis-om-dotnet/compare/v0.4.2...v0.5.0)

---
updated-dependencies:
- dependency-name: Redis.OM
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-25 13:54:11 +00:00