Commit Graph

48 Commits

Author SHA1 Message Date
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
Buster "Silver Eagle" Neece 2dd69c241b #1075 -- Ensure UTF-8 locale is set for CLI scripts as well. 2018-12-27 20:17:08 -06:00
Buster "Silver Eagle" Neece 402be7e502 Minor code cleanup, using standard app settings constants in Customization. 2018-11-28 07:45:17 -06:00
Buster "Silver Eagle" Neece c6c08b05c5 #980 -- Add translations and localization support for Web DJ feature 2018-11-24 12:05:23 -06:00
Buster "Silver Eagle" Neece 6ebd158630 Use constants for Settings values (best practice) and implement update checks 2018-11-15 07:41:52 -06:00
Buster "Silver Eagle" Neece c8db7310f9 Extract page title calculation to the customization class. 2018-10-16 22:50:14 -05:00
Buster "Silver Eagle" Neece 4360ffe6fc Switch all in-system URLs to use a PSR-7 compliant URI for at-endpoint modification
This fixes one significant issue in the AzuraCast system where NowPlaying responses don't respect the "always use HTTPS" or "prefer browser URL" settings.
2018-10-04 18:12:12 -05:00
Buster "Silver Eagle" Neece 3741f3264b Add global default timezone, fix profile defaults, allow all timezones to be selected. 2018-09-04 17:08:16 -05:00
Buster "Silver Eagle" Neece 83d2990ad3 Restructure Url -> Http/Router, implement better pagination for requests 2018-08-20 19:48:03 -05:00
Buster "Silver Eagle" Neece 98ff8f69cf
Core code restructure (#697)
* Initial renaming to a single global App\ namespace.
* Move CSRF/Flash under Session, move Session under Request
* Use new Request Station helper
* Unify App/Acl and App/Acl/StationAcl
* Alphabetize composer.json
2018-08-04 17:05:14 -05:00