22 Commits

Author SHA1 Message Date
Le Philousophe 2eb466013d WEB: Update PHP and JS packages 2026-05-08 22:24:12 +02:00
Le Philousophe cc9fa80181 WEB: Add typing 2025-08-24 12:32:47 +02:00
Thunderforge f7f9221415 WEB: Reducing demo group threshold from 15 to 10
This allows Adventure Soft demos to show up.
2022-06-19 17:33:09 -05:00
Mataniko a74cd5d8f4 WEB: Move Game Demos to ORM 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 08fffe6dd0 WEB: Load localized data in models 2020-10-10 01:34:06 -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 23875f8ca9 JANITORIAL: Remove debug message 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 e570c479fe WEB: Convert game demos to the new data model 2020-09-27 22:08:07 -04:00
Thunderforge 375325ca94 * DATA: Changing YAML to Flathub style guide
With YAML being a very flexible format, it would be good to have some consistency with how it is formatted. Flathub is a pretty commonly used repository and has good YAML guidelines, so I think it's good to reflect them.
2020-04-04 17:36:23 -05: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
Thunderforge 3ca1160ca8 DATA: Removing $key to satisfy Codacy 2020-04-02 23:04:54 +02:00
Thunderforge 92a2c4cde0 DATA: Changing $a to $gameDemos to satisfy Codacy
Not sure why this wasn't flagging the old code, but whatever
2020-04-02 23:04:54 +02:00
Thunderforge 2f2a432581 DATA: Converting Game Demos page to YAML
Since it appears that #110 will require compatibility data to be changed from XML to YAML, I wanted to practice and change a simpler page from XML to YAML. If merged, I'm willing to convert other pages as well (e.g. Links, Press Articles, Screenshots, FAQs) as well
2020-04-02 23:04:54 +02: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 d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00