Commit Graph
71 Commits
Author SHA1 Message Date
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
mataniko 68e0ca2d7b WEB: Escape user agent in DownloadsModel preg_match 2020-01-31 17:37:10 -05:00
mataniko c8fbbe8380 WEB: Fix static call to non-static method error. 2020-01-23 07:26:43 -05:00
Matan Bareket 298ed989ce DATA: Convert Credits to YAML 2019-11-02 19:42:29 -04:00
Matan Bareket 5f850f6941 DATA: Use .markdown extension instead of .yaml 2019-10-22 08:15:29 -04:00
Matan Bareket d6fba215f0 DATA: Convert news to FM+MD 2019-10-22 01:16:53 -04:00
Matan Bareket a5722c8ca0 WEB: Move the Recommended Download logic to the DownloadsModel 2019-05-09 00:28:27 -04:00
Matan Bareket f48d95e174 WEB: Lint PHP files 2019-05-08 23:28:05 -04:00
Matan Bareket 605404ae5c WEB: Fix PHP warning in Compatibility page 2019-02-20 00:20:39 -05:00
Matan Bareket 7c90a6f7d6 WEB: Parse News JSON as an array instead of an object 2019-01-22 19:49:58 -05:00
Matan Bareket 601465558f WEB: Resolve static analysis errors 2019-01-22 19:49:58 -05:00
Matan Bareket 8a51f21f0c WEB: Rename Section objects 2019-01-22 19:49:58 -05:00
Matan Bareket df825b7878 WEB: Fix phpstan static errors 2019-01-22 19:49:58 -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
Matan Bareket 018c78010a NEWS: Add support for news filenames in either yyyyMMdd or yyyyMMddHHmm format
This also changes the behavior that when a user clicks on a news
article, he will get all news articles from the same day. The reasoning
is a) we barely have more than 1 article a day. b) if a user wanted a
hotlink to a particular news article, he might get two different ones
which is odd.
2018-11-18 07:46:22 -05:00