Commit Graph
82 Commits
Author SHA1 Message Date
Thunderforge 0ddd37e5f7 WEB: Fixing lint errors
Ran `composer lint` and accepted its auto-fixes
2021-11-10 18:22:34 +01:00
mataniko 5810703f63 WEB: Add support for static pages in the router 2021-08-24 22:01:34 -04:00
mataniko 43e117fdf2 WEB: Add Director demos page, model and template 2021-08-23 22:17:58 -04:00
Mataniko ef20da2ede WEB: Fix PHP array key warnings 2021-04-02 22:01:06 -04:00
Thierry Crozat b81751b385 WEB: Sort versions on compatibility page from newer to oldest
This fixes bug #12054
2021-01-18 21:25:08 +00:00
Mataniko b20d4c5fb1 WEB: Fix compat version queries 2021-01-09 13:15:55 -05:00
Mataniko c8323037e9 WEB: Remove FAQ and Documentation pages 2021-01-05 16:19:26 -05:00
Mataniko f27fe3d0fd WEB: Rewrite the Screenshot model to use the database 2020-12-31 04:49:44 -05:00
Mataniko 8f961660d8 WEB: Move compatibility to the ORM model 2020-12-31 04:49:44 -05:00
Mataniko f1a969bdbd WEB: Use ORM objects for Screenshots 2020-12-31 04:49:44 -05:00
Mataniko 8780993416 WEB: Convert most most pages to use the ORM objects 2020-12-31 04:49:44 -05:00
Mataniko 2140190f1b WEB: Update games page to use the new data model 2020-11-24 14:51:10 -05:00
Mataniko 8b036bed3f WEB: Update downloads page to use the new data model 2020-11-24 14:51:10 -05:00
Mataniko fdc6d5ff6e WEB: Fix loading localized data for news and articles 2020-10-10 01:34:06 -04:00
Mataniko 0a394a6260 WEB: Adjust references to non-localized data 2020-10-10 01:34:06 -04:00
Mataniko 9cf9a19588 WEB: Support arbitary article pages 2020-10-08 23:08:51 -04:00
Mataniko f43eca2c2b WEB: Move ExceptionPage to a SimplePage 2020-10-08 23:08:51 -04:00
Mataniko e12a47d710 WEB: Create SimplePage class for pages that don't require customization
Some of our pages are basic enough that they can just be generated automatically.

This commit extracts 5 such pages to reduce code and complexity
2020-10-08 23:08:51 -04:00
Mataniko 4013dd2502 WEB: Simplify credits data 2020-10-03 09:10:00 -04:00
Mataniko 6c973b34b7 WEB: Move Subprojects to Downloads page 2020-10-01 00:48:59 -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 08ea2cfcde WEB: Lint and static analysis cleanup 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 f8ca4c046a WEB: Update screenshots data & 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 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
Mataniko 7f9ae97e6c DATA: Rename GamesModel to GameDownloadsModel 2020-09-27 22:08:07 -04:00
mataniko 4e4ab142dd WEB: Add Sponsors template, data and images 2020-08-04 07:35:46 -04:00
Matan Bareket a5722c8ca0 WEB: Move the Recommended Download logic to the DownloadsModel 2019-05-09 00:28:27 -04:00
Matan Bareket 2015d340b3 WEB: Add new recommended download UAs 2019-05-08 23:52:36 -04:00
Matan Bareket f48d95e174 WEB: Lint PHP files 2019-05-08 23:28:05 -04:00
Matan Bareket 6769084e98 WEB: Move recommended download detection to PHP 2019-05-08 23:26:05 -04:00
Lothar Serra Mari 5f09bdb0c0 WEB: Rename release variable in DownloadsPage.php 2019-04-28 09:49:06 +02:00
Matan Bareket 95aaec5f3e WEB: Use AltoRouter instead of apache rewrites
This makes debugging and using other web servers much easier, and scales better when adding functionality and pages
2019-04-24 20:57:03 -04:00
Matan Bareket b17e27cc80 WEB: Additional static analysis fixes on pages 2019-01-22 19:49:58 -05:00
Matan Bareket 2eff11cbb3 WEB: Clean up most PSR2 style warnings 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 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
Matan Bareket a6e8ff5f17 WEB: Fix reference to the compatibility detail page 2018-07-26 20:43:55 -04:00
Matan Bareket 7809a83d56 WEB: Fix the snowberry PR page 2018-07-26 07:17:40 -04:00
Matan Bareket 157f71a271 WEB: Move templates to subfolders 2018-07-26 07:17:40 -04:00
Matan Bareket ab1ded4bba WEB: Upgrade to Smarty 3 2018-07-26 07:17:40 -04:00
Matan Bareket e8247c95e7 WEB: Programmatically generate compatibility CSS colors 2018-07-07 11:45:48 -04:00
Matan Bareket 307e195d65 WEB: Remove page specific CSS imports 2018-07-07 11:45:48 -04:00
Matan Bareket ea7287fd04 WEB: Add the screenshot back to the intro
The random screenshot is back in the front page, but I didn't re-do the gallery.
2018-07-01 15:43:49 +02:00