189 Commits

Author SHA1 Message Date
a4beac7863 hmmm 2024-12-02 20:16:47 -05:00
5cd19642c7 replace wireConfirm with modals WIP 2024-12-02 16:20:16 -05:00
66fc60d3c9 Merge remote-tracking branch 'upstream/develop' into impl/mod-card-moderation-options 2024-12-02 09:23:13 -05:00
d4136bfb92 update models and allow disabling modVersions 2024-11-28 21:02:30 -05:00
294ae61e79
Removes deleted mods during import operation 2024-11-25 22:43:59 -05:00
85c404bd5b
Merge branch 'develop' 2024-11-25 16:13:36 -05:00
0bb71a39cb hide mods for normal users
also, allow enabling mods, and add ribbons to disabled mods
2024-11-23 18:55:51 -05:00
593951b409 remove disabled scope 2024-11-23 11:27:10 -05:00
f9378b2044 setup and style dropdown options 2024-11-22 14:28:13 -05:00
a7e545d3c1 get component on the card
things are moving slow here because I'm a busy bee it seems these days
:(
2024-11-20 16:05:35 -05:00
e2e764fce7 Merge remote-tracking branch 'upstream/develop' into impl/mod-card-moderation-options 2024-10-28 09:45:13 -04:00
7559c85276
API Mod Download Links
Adds the tracked download links to the API.
2024-10-12 13:20:40 -06:00
f00c1a136b
Prevents the API From Lazy Loading 2024-10-12 13:19:54 -06:00
08e4acaf04
Resolves Follow Refresh Issue 2024-10-12 13:18:49 -06:00
4b4abceb1f
Model Type Casting 2024-10-12 13:18:04 -06:00
d4d0a1495a
User About Markdown Formatting 2024-10-12 13:09:42 -06:00
7eed2e6a07
Sync User About Us Text 2024-10-09 22:24:56 -06:00
a3c4fed437
Hydrate Auth Follows
This change hydrates the authFollowerIds on component render.
2024-10-09 14:15:01 -06:00
8e8a654133 add livewire component 2024-10-08 13:15:12 -04:00
39820b83d6 undo my dumbness :)
going to use a livewire component as per my masters request (he big
brain unlike me)
2024-10-08 11:49:26 -04:00
fa97936ddb no delete for moderators
also add update
2024-10-08 09:42:23 -04:00
d2de62a7d3 implement mod delete functions 2024-10-08 09:24:44 -04:00
b895cdc922
Mod Listing Page - Default Value Method
Small refactor to use a method to fetch the default value for SPT Version filters.
2024-10-07 09:54:39 -06:00
75b8be1e1e
Mod Filter Page - Per Page Option - Validate Value
This change validates the input of the per page option so that it has to be one of the provided options. If an option does not match a provided option, it's set to the closest available option. For example, manually setting it to 100000 in the URL param will have it automatically set to the largest option, 50, while manually setting it to 1 will change it to 6, the smallest option.

Also made some small language adjustments to get everything to fit a little nicer in the mobile views.
2024-10-07 09:53:30 -06:00
53e3fd36da Merge pull request 'Add Results Per Page Dropdown to Mods Index Page' (#55) from waffle.lord/forge:impl/results-per-page into listing-per-page
Reviewed-on: SPT/forge#55
2024-10-07 03:59:46 +00:00
8448e54f7c
Loads relationship when building download link. 2024-10-06 21:56:32 -06:00
348e7aa532
Saves Filter Data in Session
Adds back in the Session attribute. Apparently if you add it first, before the Url attribute, you can alter the variables in the URL and the changes will stick around.
2024-10-06 20:19:48 -06:00
18ce8754c2
User Profile Follow Component Mobile Optimization 2024-10-05 14:32:25 -04:00
80f3da13b9
Optimize User Follow Components
Much better, still not perfect. The mobile and the desktop components are being rendered twice, and each of their methods are running twice as well. Going to see if I can modify the structure to get away with only using one.
2024-10-05 14:09:22 -04:00
755aad8da6
Hub Import Mod Removal
Removes mods that are no longer on the hub.
2024-10-03 16:11:26 -04:00
2b7b38808d Merge remote-tracking branch 'upstream/develop' into impl/results-per-page 2024-10-03 14:58:49 -04:00
1521e50dcb
Eager Load User Relationships in Scout Model Method 2024-10-01 09:25:05 -04:00
293e52726b
Eager Load Mod Relationships in Scout Model Methods 2024-10-01 09:20:17 -04:00
de63309649 Merge remote-tracking branch 'upstream/develop' into impl/results-per-page 2024-10-01 08:47:39 -04:00
41555ca674
Eager Loading SPT Versions 2024-09-30 23:47:04 -04:00
39a7640e92
Reworked Follow Livewire Components
Fixes PHPStan errors and makes it a little more performant. Still not good enough. Making way to many queries for what it's doing.
2024-09-30 22:56:06 -04:00
df8e7f958d
Uses On Attribute for Livewire Listener 2024-09-30 22:54:45 -04:00
30985541e7
Fixes PHPStan Issues 2024-09-30 22:54:15 -04:00
1127f2b9df
Eager Load User Mods 2024-09-30 22:53:32 -04:00
319e5e65e9
Disable Lazy Loading in Development 2024-09-30 22:52:44 -04:00
0d043ff880
Username Handling
- When a new user is created using Discord OAuth information, if the username returned from Discord is already taken, append randomness to the end of the username.
- Validates that a new account name is unique.
- Validates that an updated account name is unique.
2024-09-30 16:43:31 -04:00
0208213564
Removes fancy quotes. 2024-09-30 14:09:38 -04:00
caefd6dbb2
Discord Avatar Import
Imports the user's avatar from discord when a new user is created through OAuth.
2024-09-30 14:06:37 -04:00
746fed1746
OAuth Management
Adds a edit-user-profile section to allow a user to remove an OAuth connection from their account when they have a local account password set.
2024-09-27 20:41:36 -04:00
46550b5d8f
OAuth Account Password Creation
This allows a user that was created via OAuth to set a local password on their account.
2024-09-27 16:51:13 -04:00
88aa9b1ad8
Discord OAuth
Creates the base structure for Discord OAuth.
2024-09-26 16:55:44 -04:00
4ea50fb0ef add initial dropdown
still need to handle size constraints
2024-09-26 16:22:27 -04:00
7e1c66f250
Download Count Review
Reviewed the download count PR work and made some changes:
- Updated the download link route to include the mod's slug for easier identification.
- Moved rate limiter from the route middleware (the entire controller) to just the show method in the controller.
- Created a ModVersionPolicy that the controller can check against.
- Moves download increment logic into the model.
- Defers the call to the download increment logic (now run in the background)
- Updated the route to have a name, and the downloadUrl methods to build the URL dynamically using the route name.
- Wrote some tests to check URL building, download counting, and rate limiting.

# Conflicts:
#	app/Http/Controllers/ModVersionController.php
#	app/Providers/AppServiceProvider.php
2024-09-25 17:04:46 -04:00
Refringe
deca405976 Pint PHP Style Fixes [no ci] 2024-09-25 19:15:41 +00:00
6b7efb87ec Merge remote-tracking branch 'upstream/develop' into impl/download-tracking 2024-09-24 14:13:17 -04:00