Commit graph

40 commits

Author SHA1 Message Date
Alex Cabal
11d9d0f44a Tweak a session variable name and update comments 2024-11-20 16:42:24 -06:00
Alex Cabal
3050ab7219 Use HTTP code enums instead of ints 2024-11-20 14:52:05 -06:00
Alex Cabal
8546039b97 Comment formatting 2024-11-15 21:40:56 -06:00
Alex Cabal
b7b63a4be5 Refactor functions out of Library 2024-11-10 23:05:31 -06:00
Alex Cabal
1449148989 Switch logged in user to static typed variable instead of in $GLOBALS 2024-11-10 23:05:31 -06:00
Alex Cabal
acb30b897c Add PropertyFromHttp trait and update codebase to use new pattern 2024-11-10 22:23:43 -06:00
Alex Cabal
be5574eaec Move enums into their own namespace 2024-11-08 16:34:21 -06:00
Alex Cabal
09a91a998e Update framework standards 2024-09-12 21:45:28 -05:00
Alex Cabal
c51fe594bf Fix artwork validation logic 2024-06-03 13:14:37 -05:00
Alex Cabal
b2e6499865 Tweak some variable names for consistency 2024-05-25 22:17:09 -05:00
Alex Cabal
4574b55cac Fix some exception logic 2024-05-24 22:57:58 -05:00
Alex Cabal
fcca4fc417 Make session variable names follow boolean patterns 2024-05-24 20:51:30 -05:00
Alex Cabal
98f45ea4e0 Add the HttpInput::File() and HttpInput::Date() method 2024-05-24 20:48:28 -05:00
Alex Cabal
a9eab552ab Flesh out some PHPDocs, and consistently name enums 2024-05-14 15:40:56 -05:00
Alex Cabal
110c091a7b Define some constants to make HTTP input code less wordy 2024-05-12 12:29:30 -05:00
Alex Cabal
ee7c8343dd Convert some constants to enums 2024-05-11 21:51:06 -05:00
Alex Cabal
8cc661015c Add enum for view type and fix some type hints 2024-05-08 11:22:28 -05:00
Alex Cabal
8e63a6c06b Don't overwrite artwork status when editing an artwork 2024-02-11 14:05:51 -06:00
Alex Cabal
6ff60d8d96 Allow PATCHing of artwork ebook URL to empty string 2024-01-29 18:27:56 -06:00
Alex Cabal
cbf87487eb Use ebook URL and not filesystem slug to identify ebooks in artworks 2024-01-23 23:11:30 -06:00
Alex Cabal
b96f7684ec Fix artwork file upload logic 2024-01-19 11:55:43 -06:00
Alex Cabal
fe03f01393 Some more minor fixes, and checks for the temporary 'todo' tag 2024-01-18 21:31:36 -06:00
Alex Cabal
ca3fc6dbfd Refactor HttpInput::Str and rename some exceptions for consistency 2024-01-18 11:21:05 -06:00
Alex Cabal
2b5f4f55a2 Style tweaks to artworks DB 2024-01-18 10:50:14 -06:00
Alex Cabal
6e63bd2bdb Remove unused variables 2024-01-18 00:51:28 -06:00
Alex Cabal
5ef6d3aef8 Artwork db code tweaks, also remove 'in use' as a status 2024-01-17 16:04:11 -06:00
Mike Colagrosso
87ce048a0e Handle HTTP PUT methods and update Artwork::Save() to match how Artwork::Create() handles images and thumbnails 2024-01-17 12:12:25 -06:00
Alex Cabal
6c647f7371 Fix default artwork status for new submissions 2024-01-15 11:30:06 -06:00
Alex Cabal
531e3600ea Convert some constants to enums 2024-01-14 22:32:47 -06:00
Alex Cabal
f992da84ae Don't allow submitters to review their own artwork 2024-01-13 16:38:22 -06:00
Alex Cabal
6d3d8dc9f9 Fix broken array reference 2024-01-12 11:52:22 -06:00
Alex Cabal
a2de3c3ecb Some type safety checks and rearrange file upload and mime type check code 2024-01-11 13:08:02 -06:00
Alex Cabal
60eb118524 Add Special Notes field to artwork 2024-01-10 13:41:15 -06:00
Alex Cabal
f9c873003e Type hinting fixes 2024-01-09 12:06:28 -06:00
Alex Cabal
716fc8bea9 Use setter function when setting artwork tags 2024-01-09 11:28:38 -06:00
Alex Cabal
8e37543fa3 Add type hints to Artwork class members 2024-01-08 14:06:25 -06:00
Alex Cabal
b99d2aac1a Merge admin pages with regular pages for art system 2024-01-07 15:47:40 -06:00
Alex Cabal
017baef7d3 Artwork system: More options for reviewers submitting new artwork 2024-01-07 14:03:55 -06:00
Alex Cabal
8e955bf357 Add submitted by column to artworks 2024-01-07 13:15:27 -06:00
Mike Colagrosso
6a5c05511a Add cover art database
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00