Commit graph

14 commits

Author SHA1 Message Date
Sam
6f15e14392
chore: fix styleci (#3588)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 10:50:03 +00:00
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
0c80570609
Enable StyleCI (#3475)
* Create StyleCI config file

* Disable `phpdoc_separation`

* Apply fixes from StyleCI (#3476)

Co-authored-by: StyleCI Bot <bot@styleci.io>

* style: styleci fixes

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Sam <samerton@users.noreply.github.com>
2024-03-09 11:19:55 +00:00
Tadhg Boyle
e2130be87a
Event system DX improvements (#3226)
Co-authored-by: Partydragen <admin@partydragen.com>
Co-authored-by: Robin Slot <robin+github@rkslot.nl>
2023-03-01 11:35:10 -08:00
Tadhg Boyle
39c8a9c3a8
group sync fixes™️ (#2920)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
Co-authored-by: DominikSLK <74055080+DominikSLK@users.noreply.github.com>
2022-07-10 19:59:49 -06:00
Tadhg Boyle
11dbd6159b Fix group sync rule creation error 2022-07-08 22:49:47 -06:00
Tadhg Boyle
5e07ac2d70 Create and utilize Text class, add deprecation warnings 2022-06-13 22:44:01 -06:00
Partydragen
d7a30ef317 Fix default language for webhooks 2022-06-04 13:58:49 +02:00
Tadhg Boyle
0ace37d0e9
DB migration system (#2770) 2022-05-31 11:29:47 -06:00
Robin
2045e699c9
Merge pull request #2729 from NamelessMC/db-update
`InteractsWithDatabase` trait cleanup
2022-05-15 12:38:32 +00:00
Tadhg Boyle
856642ee47 Integration DTOs for data 2022-05-11 23:44:22 -06:00
Tadhg Boyle
40ef677c25 Init 2022-05-01 23:16:22 -07:00
Tadhg Boyle
2c21149a1e
Use i18n for translations (#2658)
* Dependency updates

* Start i18n conversion

* Switch to ellipsis character

* Add Dutch language json

* Remove Dutch PHP language files + fix variables

* Further variable fixes

* WIP i18n Language class conversion

* Convert Cookie Consent module to new language format

* Further progress including timeago translations

* Misc

* Replace {x}

* Replace more {x} usage

* {{time}}

this took way too long

* replace last {x}

* Remove comments

So searching for {x} produces relevant results

* forgot to save

* move to onPageLoad

* Accept both string and int

* types in doc

* Remove unused (broken?) function

* Don't convert to string first

* Last arg doesn't seem to be used anywhere

* Time `{x}` replacements

* Email `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* remove comments (makes searching for "{x}" nicer)

* misc `{x}` replacements

* JS `{x}` replacements

* Cleanup language initialization

* Change language constant + add pluralForm support

* Misc language update things

* Add script to find unused terms

* Check all quote types

* Remove most english translations from non-english languages

* Also match with more args

* Missed some apparently

* Missed some (more) apparently

* Misc work

* Add script to convert *all* language files to json

* Fix language codes

* Remove a lot of unused terms

* Remove a lot more unused terms

* Convert everything to JSON, delete old files, get installer working with new system

* Fix general configuration language dropdown + email messages

* Fix page load time, fix language term `set` method

* Fix discord integration command

* Misc

* Misc

* Uncomment RTL definition

* Misc

* Convert links

* Convert links

* Convert links

* Convert links

* Misc work (bolding, fixes, etc)

* Style fix

* Fix variable

* Fix #2668

* Fix old page load timers

* Fix installer group sync injector error

* Convert integration language terms

* Fix more integration language things

* Re-add upgrade script language things

* Resolve PR comments

* Remove unnecessary date()

* Resolve some PR issues

* Fix endpoint

* Style

* Fix Semantic -> Fomantic

* Fix Semantic -> Fomantic

* Return locale short code, not language id/name

Only the short code is interesting to the API, return short code in user info endpoint just like in the website info endpoint.

Also renamed to locale because it's language + region

* Revert "warn people to not translate old language files"

This reverts commit 690b77afff.

* Fix query when there are no filters

* Update 200-pr12.php

* Update footer.php

* insert time into string using placeholder

* Fix getDisplayname case

* Clean username

* PR suggestions

* Include newly created language in converted languages (migration)

* PR suggestions

* PR suggestions

* Update init.php

* Fix default language

Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
Co-authored-by: Partydragen <adrian_kili@outlook.com>
2022-04-23 14:27:10 +01: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