Commit Graph

59 Commits

Author SHA1 Message Date
Buster "Silver Eagle" Neece a9f066602c
Code quality cleanup sweep. 2022-05-08 13:05:02 -05:00
Buster "Silver Eagle" Neece 0e1efbc88e
Updates to remove unnecessary back-compat checks. 2022-05-03 15:10:16 -05:00
Buster "Silver Eagle" Neece ce0e9cc78d
Introduce two new enums. 2022-01-16 22:45:07 -06:00
Buster "Silver Eagle" Neece b23f28ab2a
Merge commit 'e6397a893da04c0a28c2306d39233b8a072e54e0' 2022-01-07 02:26:40 -06:00
Buster "Silver Eagle" Neece 79b1bc5c4a
PHPStan upgrade and new baseline.
Changelogs summary:

 - phpstan/phpstan updated from 0.12.96 to 1.0.1 major
   See changes: https://github.com/phpstan/phpstan/compare/0.12.96...1.0.1
   Release notes: https://github.com/phpstan/phpstan/releases/tag/1.0.1

 - phpstan/phpstan-doctrine updated from 0.12.44 to 1.0.1 major
   See changes: https://github.com/phpstan/phpstan-doctrine/compare/0.12.44...1.0.1
   Release notes: https://github.com/phpstan/phpstan-doctrine/releases/tag/1.0.1
2021-11-02 23:12:02 -05:00
Buster "Silver Eagle" Neece 1182a8dbdf
Fix a possible XSS issue on public pages. 2021-08-27 19:46:33 -05:00
Buster "Silver Eagle" Neece 7750fa6be8
User-Uploaded Custom Assets (#4437) 2021-07-30 01:20:14 -05:00
Buster "Silver Eagle" Neece 5cbacd5df6
System-Wide Strict Types (#4405) 2021-07-19 00:53:45 -05:00
Buster "Silver Eagle" Neece ef7989fcfd
Implement PHP Docker Installer (#4377) 2021-07-08 15:03:54 -05:00
Buster "Silver Eagle" Neece e5eeb2b631
Make the default theme automatically determined by the browser (if possible). 2021-04-29 07:01:41 -05:00
Buster "Silver Eagle" Neece f117644649
Apply PHP8-specific improvements. 2021-04-23 00:24:12 -05:00
Buster "Silver Eagle" Neece c24f5dfc69
Implement SMTP Mail Delivery and Self-Service Password Reset (#3848) 2021-02-27 20:50:45 -06:00
Buster "Silver Eagle" Neece c146166eb5
#3558 -- Expand support for browser-determined locale. 2020-12-13 07:59:44 -06:00
Buster "Silver Eagle" Neece 4aa1902dae
#3525 -- Rework settings to be fetched on-demand to avoid collisions. 2020-12-10 16:46:03 -06:00
Buster "Silver Eagle" Neece 0a8c41542d
Make environment immutable and strictly use function calls. 2020-12-06 05:57:39 -06:00
Buster "Silver Eagle" Neece bf1e4f2591
Simplify Environment class and dependencies. 2020-12-06 01:55:25 -06:00
Buster "Silver Eagle" Neece b3efbe8494
Make Environment in charge of more env vars and simplify initialization. 2020-12-05 09:18:44 -06:00
Buster "Silver Eagle" Neece aed854a17c
Settings overhaul, part 2
Make Settings a controlled entity.
2020-12-04 02:41:55 -06:00
Buster "Silver Eagle" Neece 5727f12b6f
Settings refactor part 1: Rename App\Settings to App\Environment.
Previously AzuraCast had two very similar `$settings` variables, one that was from environment and the other from the database. This refactor distinguishes the two much more clearly.
2020-12-02 22:18:06 -06:00
Buster "Silver Eagle" Neece 37c54e4937
Cache/Config changes for testing. 2020-10-25 04:53:52 -05:00
Vaalyn 9a94e6a178
Add PHPCS for code style checks (#3273) 2020-10-14 17:19:31 -05:00
Buster "Silver Eagle" Neece f822d83cda
Remove non-functional Timezone utility class. 2020-10-09 16:31:48 -05:00
Buster "Silver Eagle" Neece 5e29c2f043
Fix tests with pull requests. (#3187)
* Remove redundant test log.
* Set function return type on tests.
* Don't manage translations on branch/PR requests.
* Separate locale and static asset steps.
* Make sure npm ci runs even when translations don't run.
2020-09-20 12:49:41 -05:00
Vaalyn 2a3f715a9d
Add frontend test case to check if user based locale is working correctly (#3160)
* Fixed user based locale not working bug due to calling initLocale() before getting user

* Add frontend test case to check if user based locale works correctly

* Look for logged in user's e-mail instead of the word "Logged In" in tests.

* Don't overwrite the LANG env var with user locale.

Co-authored-by: Buster "Silver Eagle" Neece <buster@busterneece.com>
2020-09-20 12:10:05 -05:00
Vaalyn b6532082e2
Fixed user based locale not working bug due to calling initLocale() before getting user (#3149) 2020-09-10 17:37:07 -05:00
Buster "Silver Eagle" Neece b572b3dbc7
Allow "?theme=(dark/light)" query parameter on public pages. 2020-07-13 00:57:24 -05:00
Buster "Silver Eagle" Neece c313d6bac0
Cleanup Customization class. 2020-07-10 03:17:51 -05:00
Buster "Silver Eagle" Neece 6f66ff072b
Make Auth and Customization PSR-7 lifecycle friendly. 2020-07-09 23:15:27 -05:00
Buster "Silver Eagle" Neece 2abb8bf623
Routine code cleanup. 2020-07-08 02:03:50 -05:00
Buster "Silver Eagle" Neece 945b4a83df
Implement per-station default album artwork. 2020-05-02 20:28:08 -05:00
Buster "Silver Eagle" Neece 8e08b7b798
Remove now-redundant PHPDoc blocks that don't add context. 2019-12-07 17:42:23 -06:00
Buster "Silver Eagle" Neece 1a6d1d620d
Add PHP 7.4 type hinting everywhere except Entities. 2019-12-07 06:19:49 -06:00
Buster "Silver Eagle" Neece e0efde8612
Move Webcaster deps locally and switch Vue-i18n to Vue-gettext. 2019-10-03 22:12:15 -05:00
Buster "Silver Eagle" Neece cdccaecbf5
Avoid loading Doctrine during CLI (allowing cache clear). 2019-09-29 16:26:46 -05:00
Buster "Silver Eagle" Neece d7819a6993
Migrate Doctrine repositories to composited, DI-friendly classes. 2019-09-29 02:50:24 -05:00
Buster "Silver Eagle" Neece bd42b64de0
Add spaces to phpdoc blocks and optimize imports. 2019-09-20 11:44:38 -05:00
Buster "Silver Eagle" Neece daf78fa738
Move Settings and Logging to static system-wide functions. 2019-09-12 00:31:01 -05:00
Buster "Silver Eagle" Neece 513d04f7d2
Code cleanup! 2019-09-04 13:00:51 -05:00
Buster Neece 047d44f1b0
(GH Actions) force default locale for test suite again. 2019-08-21 18:42:57 -05:00
Buster Neece ed835051e2
Split GH Actions and fix variable reference in Customization class. 2019-08-21 18:19:09 -05:00
Buster Neece 0953182033
Localization Overhaul
- Replace several "add %s", "remove %s", "manage %s" strings with dedicated strings for each action
- Make API responses locale-aware and translated
- Make CLI locale-aware and translated
- Add initial support for Turkish language
2019-08-21 17:34:05 -05:00
Buster Neece 297356a7e3
Turn the live websockets off by default, but still easily enabled. 2019-08-16 12:23:35 -05:00
Buster "Silver Eagle" Neece 639dddf989
Slim PHP Framework 4 Update (#1822)
Implement an upgrade of the codebase to use Slim Framework version 4, which includes the following changes:
 - Updating to Slim version 4 and the corresponding AzuraCore updates.
 - Making all objects PSR-7 Request/Response agnostic (and creating RequestHelper and ResponseHelper objects to interact with the PSR-7 Req/Resp objects).
 - Moving to PHP-DI as a DI container and implementing its autowiring support.
2019-08-06 23:33:55 -05:00
Buster Neece bc1c2cb871
Allow disabling of websocket updates; improve NP time counter stability. 2019-07-31 13:47:12 -05:00
Buster Neece 48427d46a3
Make timezone Station-specific and remove now-unused offset code. 2019-05-13 16:25:36 -05:00
Buster Neece 0bb68f7a9e
Minor code quality fixes, test Sentry integration on dev. 2019-03-22 17:07:17 -05:00
Buster Neece 3ec3f69714
Change light theme secondary color and #1087 -- Reorganize player layout 2019-03-20 18:46:27 -05:00
Buster Neece cea176f536 Layout changes to profile for 2FA. 2019-03-13 20:49:19 -05:00
Buster Neece b4e1581da1 Add theme switcher, Help to navbar, form page exit confirmation. 2019-03-06 00:08:42 -06:00
Buster "Silver Eagle" Neece 8a6701403a Code and PHPDoc cleanup to green-light level 2 static analysis. 2019-01-31 11:54:17 -06:00