Commit graph

63 commits

Author SHA1 Message Date
Partydragen
8a12ec84f5
Add sync website username with integration (#3505)
* Add sync website username with integration

* Fix StyleCi
2024-06-07 23:12:09 +01:00
tadhgboyle
fcaa51708c
Use Symfony Response HTTP status code constants (#3472) 2023-12-16 09:23:59 -08:00
Tadhg Boyle
b13c29e5e4
Reactions revamp & profile widgets (#3272)
* Initial work on reactions revamp and profile widgets

* Remove unneeded changes

* Remove unneeded change

* fix style

* Render emojis in reaction list StaffCP

* wip minecraft account profile widget, sticky widgets on profile page

* Add server name and IP to last seen

* remove

* rename to reaction score to match member list

* align reactions table contents center

* fix

* wip - nicer abstraction, widgets never query db, skin 3d viewer (undecided)

* wip - make reaction modals ajax, copy new reaction bar to profile posts

* wip reaction modals

* wip proper sorting

* wip modals

* wip get reaction submission working on profile wall posts

* add back helpful and creative default reactions

* reduce query amount on view topic

* remove debug statement

* wip

* wip

* simplify ProfileWidget pages

* Revert forum dropdown

* fix css syntax

* fix emoji title and alt being strange

* add back order input

* sort widgets by order in list

* fix settings link always showing

* phpdoc

* add widget name to exception

* insert default widget data if not found

* missing end if

* properly cache forum news per-group

* fix

* fix cache key, news permission check

* fix styling

* wip

* respect reaction ordering

* wip

* wip

* support custom reaction scores, update member list to properly calculate

* don't hardcode words

* wip

* allow multiple reactions

* redirect to post

* code style

* phpstan

* wip

* remove hardcoded terms + fix copy

* use npm for skinview3d

* create ReactionContext and refactor

* fix cache

* docblocks

* fix spelling

* pr amendments
2023-06-21 18:19:46 +01:00
Tadhg Boyle
d0fba0cbe9
Replace Util::getSetting/Util::setSetting usages (#3387) 2023-06-12 10:30:49 -06:00
Partydragen
5ec1c8d902
Make sure Minecraft Integration is enabled (#3356) 2023-05-05 20:46:39 +02:00
Supercrafter100
6f6d1cd92a
Add ability to query servers via plugin (#3244)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2023-02-09 12:31:20 -08:00
Tadhg Boyle
60a7ceff57
Rewrite Discord group sync to use v5 Nameless-Link API (#3222)
* Rewrite Discord group sync

* fix param

* Create new endpoint for plugin to use

* wip

* wip (will work after https://github.com/NamelessMC/Nameless-Java-API/pull/61)

* wip

* Undo hardcoded version

* Style

* Style

* Style

* Fix nickname sync

* UNDO UNDO UNDO
2023-01-28 19:02:27 +01:00
Robin
1715723b36
Don't validate unused parameters (#3235) 2023-01-28 19:01:13 +01:00
Tadhg Boyle
5b996f3767
Allow selecting an MC server to use for group sync options (#2991) 2022-08-12 07:02:34 -07:00
Tadhg Boyle
11dbd6159b Fix group sync rule creation error 2022-07-08 22:49:47 -06:00
Robin
27e0a80d5e
Allow server to send correct verify command (#2881) 2022-06-21 22:41:34 -06:00
Robin
d3de874575 don't require tps, it's not used anyway 2022-06-12 14:01:39 +02:00
Robin
f1ab385e47 Update more settings usage 2022-06-01 10:30:09 +02:00
Robin
0126159a6e Remove all manual settings usage 2022-05-31 23:23:26 +02:00
Tadhg Boyle
e3b51b7337 New namespaced API error codes (Closes #2779) 2022-05-24 23:05:15 -06:00
Tadhg Boyle
eb8841149d Remove unneeded = in where clauses 2022-05-01 23:22:19 -07:00
Partydragen
2a92058e72 Don't convert group names to lowercase 2022-04-24 16:01:47 +02:00
Partydragen
ea34d75f1e Fix placeholders in server info endpoint 2022-04-24 14:43:31 +02:00
Tadhg Boyle
9b054f9cb9 Misc fixes with DTO 2022-04-17 20:09:15 -07:00
Partydragen
d2503a1ae0
User Integrations systems (#2606)
* Initial work for User Integrations systems

* Convert a few endpoints to new user integration system

* Finish minecraft part to new User Integration system

* Fixes verify banner issue https://github.com/NamelessMC/Nameless/issues/2052

Fixes https://github.com/NamelessMC/Nameless/issues/2052

* Convert discord to new user integrations system

* Update fields to show user integrations

* Add user integrations to StaffCP user page / move over

* Update UserInfo and Rename MinecraftVerify endpoint

* Rework user listing endpoint

* Password check never returns null

* Add support for offline mode uuid

* Fix documentation phpstan warnings

* else if

* remove die()

* Revamp registration page

* add integrations settings page

* Convert authme & fix phpstan issues

* refix settings page

* Load uuid when user is loaded

* Redirect user to complete required integrations

* Fix translation for user connections page

* Rework integrations registration in Register Endpoint

Completes https://github.com/NamelessMC/Nameless/issues/2516

* make getIntegration ignore case sensitive

* Update installer

* Update upgrader script to convert users

* Fix index for user integrations

* Remove uuid from user data

* Misc

* Remove one unused query

* Add event for integration linking, verify and unlink

* Finish user transformer, Finish user integrations

* Thx phpstan

* Fix phpdocs

* Fix user reports page

* Remove validation banner

* Change default field value

* resolve samerton feedback

* don't clean when inserting data

* don't clean event data

* remove more clean

* increase reset_code length from 60 to 64

* pr13 confirmed

* one more clean

* Remove API verification setting

* Register integrations edit permission

* Resolve a few requested changes

* Rework username and identifier validation

* Add button to sync user integration

* Fix Synchronisation text

* Fix is verified term

Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
2022-04-16 17:42:24 +01:00
Robin
615b0d7833 Fixed a "few" cases of encoding before insertion 2022-04-01 18:17:30 +02:00
Tadhg Boyle
f50beda5f7 Cleanup some User methods 2022-03-26 12:31:50 -07:00
Tadhg Boyle
23fc66f06a
Add support for querying Bedrock servers (#2601) 2022-02-12 13:10:39 -08:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg Boyle
c6a9f86f4d
API auth revamp (#2564) 2022-01-15 11:48:52 -08:00
Tadhg Boyle
42eb8f65f0 Use more appropriate HTTP status codes in API 2022-01-10 11:42:08 -08:00
Tadhg Boyle
1680427f6f Add API endpoint "route aliases"
This lets us make the endpoints main routes different while keeping backwards compatibility and REST-ifying the API
2022-01-10 01:37:06 -08:00
Tadhg Boyle
7d8647a2c7 Only do MC group sync for validated users 2021-12-24 09:58:37 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
59339394d5 Fix #2491 2021-11-15 20:26:57 -08:00
Tadhg
915627ddc6 Misc bug fixes + consistency fixes 2021-11-14 20:53:29 -08:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg
88f911fe4f fix serverinfoendpoint 2021-10-27 07:11:25 -07:00
Robin
4a47e7c1c0 refactor serverInfo endpoint
so it doesn't go 10 indentation levels deep. It also makes the cache unnecessary. Hopefully it works, it compiles but I didn't check functionality
2021-10-27 11:47:22 +02:00
Tadhg
e27cde7115 phpstan fixes 2021-10-08 07:49:43 -07:00
Tadhg
7f7fb119c1 Add types to all classes 2021-10-07 14:02:46 -07:00
Tadhg Boyle
c25802bad1
Add new dynamic Group Sync injectors system + separate Discord into own module (#2423)
Co-authored-by: Robin <robinslot@hotmail.nl>
2021-10-05 15:13:04 -07:00
Partydragen
6da451c396 Improve group changes log to api callback 2021-08-29 16:03:47 +02:00
Partydragen
dbd2ede534 Don't remove group if user have another synced group 2021-08-29 15:44:14 +02:00
Partydragen
3215e01e6f Group sync fixes 2021-08-29 13:56:03 +02:00
Partydragen
24a30e5822 Revamp ingame group sync 2021-08-29 03:20:19 +02:00
samerton
6dcecefde0 Remove extra column fron nl2_query_results 2021-08-24 19:39:40 +01:00
Tadhg Boyle
fd1495415e
Add placeholderapi support + configuration + leaderboards (#2264)
Co-authored-by: Robin <robinslot@hotmail.nl>
2021-05-14 10:35:30 -07:00
Tadhg
6694a6a7ca initial commit (untested) 2021-04-06 15:51:07 -07:00
Tadhg
e9b29a89d1 "Group Sync Changes" log table + add detailed logs to group API endpoints
-columns for groups added/removed
-logs are only made when the user's groups change
2021-02-24 10:37:51 -08:00
Tadhg
793d846b9f fix #2036
thank you Govindas + Box for testing
2021-02-23 08:27:11 -08:00
Tadhg
5880e065b4 group sync fix progress
minecraft <-> website working as expected finally, will test discord later
2021-02-22 14:14:43 -08:00
Tadhg
103cab4e01 Add "Method" column to API endpoints table 2021-02-21 13:15:07 -08:00
Derkades
f006b84784 Actually fix #1984 2021-01-08 12:13:55 +01:00
Tadhg
fb69cc8949 fix "extra" column in ServerInfo + add meta in ServerInfo exceptions 2021-01-02 19:58:31 -08:00