Commit Graph

30 Commits

Author SHA1 Message Date
Le Philousophe 2eb466013d WEB: Update PHP and JS packages 2026-05-08 22:24:12 +02:00
Le Philousophe 9a59454525 BUILD: Increase PHPStan level
The AltoRouter::match function has a bad signature: fix it using a stub.
2025-08-24 12:32:47 +02:00
Le Philousophe cc9fa80181 WEB: Add typing 2025-08-24 12:32:47 +02:00
Mataniko ef20da2ede WEB: Fix PHP array key warnings 2021-04-02 22:01:06 -04:00
Mataniko b20d4c5fb1 WEB: Fix compat version queries 2021-01-09 13:15:55 -05:00
Mataniko 8f961660d8 WEB: Move compatibility to the ORM model 2020-12-31 04:49:44 -05:00
Mataniko 41f028310c WEB: Use symfony/yaml and predis if redis is not available
This removes the hard requirements on pecl modules making development easier.
2020-10-21 23:08:08 -04:00
Mataniko fdc6d5ff6e WEB: Fix loading localized data for news and articles 2020-10-10 01:34:06 -04:00
Mataniko 08fffe6dd0 WEB: Load localized data in models 2020-10-10 01:34:06 -04:00
Mataniko 47744206e4 WEB: Add null check for games with no company id 2020-09-27 22:08:07 -04:00
Mataniko db6cb726e8 WEB: Add a new SimpleModel class
The SimpleModel is used to to read simple data models from YAML that require no further processing

This allows us to delete several models that re-use the same code.
2020-09-27 22:08:07 -04:00
Mataniko c0eb021126 WEB: Add caching to all models 2020-09-27 22:08:07 -04:00
Mataniko 4471b291a1 WEB: Convert all models to not be static objects
This is a first step towards moving to a dependency injection model.
2020-09-27 22:08:07 -04:00
Mataniko 3525617bbe WEB: Update Compatibility pages to drop the Legacy model 2020-09-27 22:08:07 -04:00
Mataniko 696bb7f24e WEB: Allow to skip sanitization of notes 2020-09-27 22:08:07 -04:00
Mataniko 5a3baabba6 JANITORIAL: Lint PHP files 2020-09-27 22:08:07 -04:00
Mataniko 4d78399ea2 WEB: Add error handling about missing required fields
In the new data model, some field operate as keys for other parts of the model.
This now performs some validations and will throw an error if fields are missing.

For example: a Game must have an Engine, but does not require datafiles
2020-09-27 22:08:07 -04:00
Mataniko 5b3c0e82d5 WEB: Refactor the compatibility model and pages
Update the compatibility page to use the new data models.
- Notes are now generated based on game ids, platforms and support level
- We no longer need multiple compatibilty files, only the deltas in one file
- Support level text is now localizable
- Keep support for the old model for versions < 2.0.0
2020-09-27 22:08:07 -04:00
Thunderforge 73958c69d5 BUILD: Standardizing the variable names for parsing data
Fixes the following Codacy issues:

* Avoid variables with short names like `$a`. Configured minimum length is 3.
* Avoid unused local variables such as '$key'.
2020-04-03 13:47:28 +02:00
Matan Bareket 605404ae5c WEB: Fix PHP warning in Compatibility page 2019-02-20 00:20:39 -05:00
Matan Bareket 1e7815ec2e WEB: Fix namespace reference to ErrorException 2019-01-22 19:49:58 -05:00
Matan Bareket 97262c4b2f WEB: Convert require statements to psr-4 style use statements 2019-01-22 19:49:58 -05:00
Matan Bareket 85328f2997 WEB: Use PSR-4 autoloading 2019-01-22 19:49:58 -05:00
Matan Bareket cfbeebb8dc WEB: Add namespaces to all PHP files 2019-01-22 19:49:58 -05:00
Matan Bareket 851bb41bb7 WEB: Auto-fix to PSR-2 standard 2019-01-22 19:49:58 -05:00
Eugene Sandulenko 9150342a47 WEB: Do not let compatibility browsing for non-existing version 2016-03-01 16:20:32 +01:00
Eugene Sandulenko f0934a7003 WEB: Add compatibility for 0.1.0 2016-01-16 23:43:58 +01:00
Jordi Vilalta Prat 83ae141b9d WEB: Replace unnecesary references to SVN with VCS-agnostic terminology.
svn path=/web/trunk/; revision=55899
2011-02-12 20:18:55 +00:00
Jordi Vilalta Prat 35c3d66bf3 WEB: Fix the ordering of versions numbers on the compatibility page (release candidates go before the final releases)
svn path=/web/trunk/; revision=48306
2010-03-20 09:57:25 +00:00
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00