Commit Graph
108 Commits
Author SHA1 Message Date
Thunderforge beeb7ce7a8 WEB: Removing /frs/extra/ from the url field of game downloads 2022-01-11 20:50:55 -06:00
Thunderforge a060430d43 WEB: Fixing extra info for tools 2022-01-11 20:04:40 -06:00
Thunderforge 453e74263b WEB: Adding file size and extension to recommended downloads (#191)
* WEB: Refactor reading files into FileUtils

Refactoring code in `include/Objects/File` into `FileUtils`. This not only makes the code much cleaner, but also allows it to be used in other places of the app, such as the `DownloadsModel`.

* WEB: Adding file size and extension to recommended downloads
2022-01-10 15:39:01 -06:00
Thunderforge 2d73bc74cc WEB: Use absolute file path if available
I suspect this will fix an issue with the hashes and such showing up locally, but not on the server.
2022-01-10 00:55:03 +01:00
Thunderforge bea0da3bc4 WEB: Change how file extra info is generated 2022-01-09 09:04:05 +01:00
Thunderforge 684e3e9ca7 WEB: Fixing the Games page not loading
Game items don't have a getVersion() method. Now we check for it before we try to sort.
2021-11-27 12:11:43 -06:00
Thunderforge fb71c0068d WEB: Only sort versions that are old
Prevents an issue where release and current builds are getting scrambled
2021-11-27 11:54:19 -06:00
Thunderforge cc79eb0043 WEB: Sorting downloads by version after a new one is inserted
Previously, downloads always got added to the end of the list. Now, the download is added to the end and then the list is sorted by version, meaning that the download will be moved to be the last one of all the downloads with that version.
2021-11-25 14:53:15 +01:00
Thunderforge 60e02dbf54 DATA: Changing downloads table to use version column (#174)
In order to simplify the process of updating version downloads, [downloads spreadsheet table](https://docs.google.com/spreadsheets/d/1QzwFleEKXOsE59cYMOcQB7C2f0Np48uAQOCG8kicX_s/edit#gid=1057392663) now includes a `version` column and the `url` field is much simpler. In order to update a new version, simply change the value in the `version` field.

Further improvements can be made, but for now this is an improvement that keeps parity with the previous code.
2021-11-18 16:04:20 -06:00
Thunderforge b9ce5baf45 WEB: Removing file.getType() and related dead code
It appears that at one point the data spreadsheet included a `type` field. This is no longer the case and so all of this is not used, providing unnecessary confusion and maintenance.
2021-11-01 06:52:39 +01:00
Mataniko ef20da2ede WEB: Fix PHP array key warnings 2021-04-02 22:01:06 -04:00
Mataniko 91a6d8eccc WEB: Remove additional unused FAQ references 2021-01-05 16:19:26 -05:00
Mataniko c8323037e9 WEB: Remove FAQ and Documentation pages 2021-01-05 16:19:26 -05:00
Mataniko e415dad73a WEB: Lint files 2020-12-31 04:49:44 -05:00
Mataniko 22ef91d2a5 WEB: Migrate game downloads to use the ORM 2020-12-31 04:49:44 -05:00
Mataniko a74cd5d8f4 WEB: Move Game Demos to ORM 2020-12-31 04:49:44 -05:00
Mataniko c71dce7702 WEB: Move downloads page to use the ORM 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 8b036bed3f WEB: Update downloads page to use the new data model 2020-11-24 14:51:10 -05:00
Mataniko 06f63505e2 WEB: Fix German only news images 2020-10-10 01:34:06 -04:00
Mataniko 4013dd2502 WEB: Simplify credits data 2020-10-03 09:10:00 -04:00
Mataniko fcb1d69f96 WEB: Replace relative FRS path to absolute path 2020-10-01 15:48:18 -04:00
Mataniko 6c973b34b7 WEB: Move Subprojects to Downloads page 2020-10-01 00:48:59 -04:00
Mataniko 11316500b7 WEB: Fix strpos condition ambiguity 2020-09-29 16:38:00 -04:00
Mataniko bcf45949d0 JANITORIAL: Code lint 2020-09-29 16:08:34 -04:00
Mataniko 858b40f31d WEB: Update links in news articles to localized links 2020-09-29 16:08:34 -04:00
Mataniko 29f694654a WEB: Fix images in localized pages 2020-09-29 16:08:34 -04:00
Mataniko 86139044c0 WEB: Fix screenshots in prod
PHP executes in a different folder while running on the server, so the glob function needs to be adjusted
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 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 33d8a28f4a WEB: Sort screenshots page 2020-09-27 22:08:07 -04:00
Mataniko e3373fdb99 WEB: Parse screenshot language into display string 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 8914b73caa DATA: Update date from sheet 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 60e62c824d WEB: Make markdown parser and html purifier static 2020-09-27 22:08:07 -04:00
Mataniko cfead6a64c DATA: Sanitize compatibilities notes markdown 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 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