Commit Graph

89 Commits

Author SHA1 Message Date
Mataniko 7025c556b7 WEB: Catch all cache driver errors for fallback 2020-10-05 00:11:33 -04:00
Mataniko 4013dd2502 WEB: Simplify credits data 2020-10-03 09:10:00 -04:00
Mataniko c0c4209efe WEB: Fallback cache to files 2020-10-02 08:53:30 -04:00
Mataniko 6c973b34b7 WEB: Move Subprojects to Downloads page 2020-10-01 00:48:59 -04:00
Mataniko 6d0899847b WEB: Cache based on locale 2020-09-29 16:08:34 -04:00
Mataniko 2fd56bebe4 WEB: Remove type hint due to PHP version 2020-09-27 22:08:07 -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 16cc3d8762 DATA: Simplify yaml data 2020-09-27 22:08:07 -04:00
Mataniko c172c669df DATA: Convert documentation to YAML 2020-09-27 22:08:07 -04:00
Mataniko 08ea2cfcde WEB: Lint and static analysis cleanup 2020-09-27 22:08:07 -04:00
Mataniko 6816cdab5a WEB: Increase cache duration and clear cache during site update 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 33d8a28f4a WEB: Sort screenshots page 2020-09-27 22:08:07 -04:00
Mataniko 23875f8ca9 JANITORIAL: Remove debug message 2020-09-27 22:08:07 -04:00
Mataniko f8ca4c046a WEB: Update screenshots data & model 2020-09-27 22:08:07 -04:00
Mataniko 393fcd5b12 WEB: Add Series to game objects 2020-09-27 22:08:07 -04:00
Mataniko 23dbf430a6 WEB: Add Series model and object 2020-09-27 22:08:07 -04:00
Mataniko e465650a1b DATA: Remove all legacy compatibility data 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 b5636d15e0 WEB: Clean up data and fix spelling errors 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 df1a9ceec3 DATA: Sort versions 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 d455741806 DATA: Remove the need to have "DEV" in versions file 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
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
Mataniko 3cead6ad94 WEB: Update models and objects
- Populate object data with referenced data
- Fixes several naming issues
2020-09-27 22:08:07 -04:00
Mataniko a75a6c70ee WEB: Add new Models and Objects to support the new data files 2020-09-27 22:08:07 -04:00
Mataniko 7f9ae97e6c DATA: Rename GamesModel to GameDownloadsModel 2020-09-27 22:08:07 -04:00
mataniko 2da6d8f010 WEB: Fix formatting and analysis errors 2020-09-01 00:10:54 -04:00
mataniko 819a958ccd WEB: Update Localization feature
Now L10N will automatically handle new locales and time formats added via Weblate.
2020-09-01 00:10:54 -04:00
mataniko 2a56c10d87 WEB: Remove unused reference in FAQ Model 2020-09-01 00:10:54 -04:00
mataniko 4e4ab142dd WEB: Add Sponsors template, data and images 2020-08-04 07:35:46 -04:00
Thunderforge 1f43fcf784 DATA: Converting Menu data from XML to YAML 2020-04-04 19:04:04 -05:00
Thunderforge 1f0ead5edc DATA: Converting Articles data from XML to YAML 2020-04-04 19:03:44 -05:00
Thunderforge 149d637294 DATA: Converting Links data from XML to YAML 2020-04-04 17:44:17 -05: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
Lothar Serra Mari aa1b1c4de4 DATA: Remove the workaround for providing the Win32 and Mac version by variable 2020-04-01 00:00:30 +02:00
Lothar Serra Mari 1444fd65b0 DATA: Override Win32 and Mac recommended download version 2020-03-31 21:15:58 +02:00
Lothar Serra Mari f40628a471 WEB: Fix formatting for the additional snap information 2020-03-23 22:53:51 +01:00
Lothar Serra Mari 5552f936fd WEB: Add additional install information to the snap package 2020-03-23 22:52:17 +01:00
Lothar Serra Mari 396a8eebab WEB: Fix indentation 2020-03-10 11:13:30 +01:00
Lothar Serra Mari 3da67ae86b WEB: Add version constants for Android and Snap Store releases
Since we can't use the filenames for stripping out the version information,
we have to rely on set values in Constants.php like we do for the Debian
and Tools packages.

Fixes empty version string for the recommended downloads offered
for Android users.
2020-03-10 10:00:31 +00:00