Commit graph

48 commits

Author SHA1 Message Date
Sam
3b94eb594d
Merge commit from fork
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-07-20 09:59:16 +01:00
tadhgboyle
145c8bc1c2
Remove internal deprecations (#3630)
* Remove internal deprecations

* add convert profile posts task + remove dead lang_charset references

* guard og_image usages

* fix

* add note about mailhog

* revert group sync manager for time being

* review amendments

* fox
2025-05-04 14:08:21 -07:00
Sam
6f15e14392
chore: fix styleci (#3588)
Co-authored-by: Sam <samerton@users.noreply.github.com>
2025-03-29 10:50:03 +00: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
PadowYT2
016b557142
Fix icon not being properly shown (#3377) 2023-06-08 19:06:38 -06:00
Tadhg Boyle
8537d0e722
Better handling of closures in exception frames (#3309) 2023-04-04 08:12:28 -07:00
Tadhg Boyle
8d09a86cb8
Misc fixes + improvements (#3270) 2023-03-23 20:01:23 -07:00
Tadhg Boyle
62b2ed09a0
Add delete button for placeholders (#3069) (#3283) 2023-03-23 07:35:51 -07:00
Tadhg Boyle
7a3c8d748f
Change exception page Prism theme to One Light (#3163)
* Change exception page Prism theme to One Light

* Remove old comment

Co-authored-by: Supercrafter100 <58982133+supercrafter100@users.noreply.github.com>
2023-01-11 09:32:54 +01:00
Robin
4163c3b860
Clarify meaning of "query" (#3142) 2022-12-28 17:17:14 +01:00
Tadhg Boyle
112cb2c0ee
Convert error page to Fomantic UI (#3029) 2022-09-30 21:07:37 +02:00
Tadhg Boyle
0b108921e2
Misc 2.0.0 fixes (#2974)
* Misc 2.0.0 fixes

* Capitalization check
2022-08-06 08:59:54 +01:00
Robin
9de500467e Use strict equality for null checking 2022-07-03 20:56:15 +02:00
Tadhg Boyle
4a8bc4013d Misc fixes about image uploading, better error handling and logging 2022-06-29 23:19:43 -06:00
Robin
ba33533398 Case insensitive header handling 2022-06-25 10:00:17 +02:00
Tadhg Boyle
314c809849
Global debugging constants to optimize requests when users cannot view exception page (#2872) 2022-06-17 22:46:42 -06:00
Tadhg Boyle
307096fb54 Create and utilize HttpUtils class 2022-06-13 22:24:43 -06:00
Robin
4d16d3f555
Rewrite configuration file operations (#2850)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-06-12 20:21:21 -06:00
samerton
05c1ef6c6e Show modal before generating debug link on error page 2022-06-02 20:11:38 +01:00
PadowYT2
d2cd587441
Make a toast instead of an alert (#2803)
* Make a toast instead of an alert

* Fix conversation
2022-06-01 13:18:42 +02:00
Robin
dc40c31c5d Use plaintext errors for queries 2022-06-01 13:16:15 +02:00
Robin
c3fa257dea Default to site name 'NamelessMC' 2022-06-01 13:12:40 +02:00
Robin
edd873e182 Remove sitename cache, fix XSS 2022-06-01 10:48:17 +02:00
Tadhg Boyle
c52b55f251 Improve checking for pending DB migrations on page load 2022-05-31 21:08:50 -06:00
Robin
7d021d41a1 Warn for Queries class usage 2022-05-31 20:25:35 +02:00
Robin
61a147f2c6
Use proxy headers, properly, securely (#2688)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-05-26 22:40:11 -06:00
Tadhg Boyle
17e3151c3b Fix error catch for user init in ErrorHandler 2022-05-16 19:09:13 -06:00
Robin
68ba59f11f Fix error page before installation 2022-05-15 20:55:22 +02:00
Robin
36b83c3beb Merge branch 'v2' into db-update 2022-05-11 11:45:20 +02:00
Tadhg Boyle
55a7dd3ecc
Template asset rework (#2670)
* initial work

* more conversion

* more conversion

* more conversion

* update link to prism light css

* fix bootstrap popperjs dep

* delete unused assets, update deps, misc fixes

* fix phpstan

* fix phpstan

* actually fix phpstan

* validate prism dependency

* Initial swap to yarn

* Add `core/assets/vendor` dir

* Misc fixes + use TinyMCE & Select2 from npm

* Fix prism path

* Remove `bootstrap-datepicker`, hasn't been used since old Default template

* Rename AssetResolver method `resolve` to `include`

* Missing version numbers

* Fix JQuery path during installer

* Updates

* Remove old code

* Remove old code

* Remove unneeded double asset

* Remove unneeded double asset

* Fix Bootstrap path

* PR comments
2022-05-09 12:16:04 -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
Tadhg Boyle
e51da5f093
Fix API error if exception is null 2022-04-21 10:14:44 -07:00
Tadhg Boyle
d55fffe2bc
Allow generating debug link if not logged in 2022-04-19 12:38:20 -07:00
Tadhg Boyle
31159c42bf urldecode current URL on exception page 2022-04-13 23:30:27 -07:00
Tadhg Boyle
c0f6d10dba Fix #2429 2022-04-09 14:05:38 -07:00
Tadhg Boyle
8a88be99c1
Update Prism + error handler fix (#2669)
Co-authored-by: samerton <samerton@users.noreply.github.com>
2022-04-06 13:51:32 -07:00
Robin
390fb71a74 Fix #2663 2022-04-04 13:08:32 +02:00
Tadhg Boyle
be216f86ba Move error.php code into ErrorHandler class 2022-03-30 11:57:25 -07:00
Tadhg Boyle
4b914b98c1 Clarify API request error handling 2022-03-25 22:24:01 -07:00
Tadhg Boyle
cc52aacff1 Use polyfill str_contains function 2022-03-25 20:20:04 -07:00
Tadhg Boyle
94e64c1207
Add PHPDocs to core classes for new class docs site (#2602) 2022-02-14 20:48:15 -08:00
Tadhg Boyle
57b8ad7ae6
Log error even if it's an API call 2022-01-22 10:22:10 -08:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg Boyle
e553eaf2f2 Print plaintext error in API requests
Closes #2515
2021-12-14 00:14:20 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg
805e1e9e27 organize classes into folders + implement new autoloader 2021-10-27 22:26:24 -07:00
Renamed from core/classes/ErrorHandler.php (Browse further)