Commit Graph
100 Commits
Author SHA1 Message Date
Aaron c991f05dd3 ViewPhoto: rework solution to work for panoramas, too 2023-03-12 12:58:58 +01:00
Aaron 5c2eff09b8 PhotoPage: apply #photo_frame anchor to clicks as well 2023-03-12 12:55:32 +01:00
Aaron 85be093a36 ViewPhoto: improve vertical alignment of prev/next buttons 2023-03-12 12:42:43 +01:00
Aaron c735648468 ViewPhoto: improve image alignment in page 2023-03-12 12:37:57 +01:00
Aaron 41881594e9 PhotoMosaic: make photo order more intuitive 2023-03-12 12:34:47 +01:00
Aaron 29bf6af1f8 Asset: delete thumbnails when deleting an assets 2023-03-12 12:21:43 +01:00
Aaron 3f66fce262 MediaUploader: explicitly support image/jpeg only 2023-03-12 12:07:17 +01:00
Aaron 244af88a9a Asset: cleaner handling of conflicting filenames 2023-03-12 12:02:21 +01:00
Aaron 3ed84eb4d5 UploadQueue: more correct HEIC extension check 2023-03-12 11:47:36 +01:00
Aaron 229fb9e5bf UploadQueue: refactor into proper ECMAScript class 2023-03-12 11:45:37 +01:00
Aaron 54b69ecd11 MediaUploader: simplify form control design 2023-03-12 11:33:16 +01:00
Aaron 544944a7f5 Edit{Album,Tag}: fix new tag creation 2023-03-12 11:32:13 +01:00
Aaron 6087ebe249 AutoSuggest: fix click/append event
Keyboard was fine, it was just mouse events that were broken ^^'
2023-03-12 01:19:43 +01:00
Aaron 3cf281b24d AdminMenu: add error count to badge iff count > 0 2023-03-12 01:04:28 +01:00
Aaron 01822cdccf Fix Button, ConfirmDeletePage, WarningDialog templates 2023-03-12 01:00:50 +01:00
Aaron 0325a2ec90 EditAssetForm: make form look presentable 2023-03-12 00:53:47 +01:00
Aaron 70fcd097cc EditAsset: remove reference to old admin bar 2023-03-12 00:39:15 +01:00
Aaron 2c24a0a7e7 MainTemplate: open vanity link in new tab 2023-03-11 22:15:17 +01:00
Aaron c7e4351375 Change album/tile label font to Coda, too 2023-03-11 22:13:55 +01:00
Aaron 0b8c614191 Manage{Assets,Tags}: link user names to edituser 2023-03-11 22:07:00 +01:00
Aaron e916489d00 PhotoPage: only use columns on large displays 2023-03-11 22:04:02 +01:00
Aaron 1859a9ea2a LogInForm: fix smartphone view 2023-03-11 21:57:55 +01:00
Aaron d83dd6ea6e Remove more obsolete styling 2023-03-11 21:55:44 +01:00
Aaron eb04e87085 Change autosuggest padding 2023-03-11 21:52:44 +01:00
Aaron 16eda4cfe7 Move autosuggest styles to default.css 2023-03-11 21:50:08 +01:00
Aaron 4c928af9ad AlbumIndex: set thumbnail dimensions for 'no thumb' images too 2023-03-11 21:46:23 +01:00
Aaron b8c53d7d4d ViewPhotoAlbum: prevent undefined index due to missing thumb 2023-03-11 21:45:03 +01:00
Aaron 1b7e745f11 Clean up Tag::resetIdAsset 2023-03-11 21:41:23 +01:00
Aaron aa3a54f237 Asset: guard using property_exists in constructor 2023-03-11 21:39:20 +01:00
Aaron 0b0d47acb8 UploadQueue: error out of HEIC files are presented 2023-03-11 21:36:32 +01:00
Aaron a4cc528951 ManageAssets: allow batch deletion of assets 2023-03-11 21:24:55 +01:00
Aaron 5b8551a726 EditAlbum: allow specifying a thumbnail ID manually if none are present 2023-03-11 20:46:31 +01:00
Aaron 5cff62836e ManageTags: display owning user in table 2023-03-11 20:39:55 +01:00
Aaron 310fe7c3d6 Hide thumbnail selection when none available 2023-03-11 20:37:39 +01:00
Aaron 167a50cb92 ViewPhotoAlbum: tweak album buttons to be more useful 2023-03-11 20:34:58 +01:00
Aaron d9fd2ae20d Add upgrade script for new tag ownership 2023-03-11 20:27:45 +01:00
Aaron a76dde927b AccountSettings: list tags owned by current user 2023-03-11 20:27:09 +01:00
Aaron daa8b051c5 EditTag: on saving, redirect users to a page they can see 2023-03-11 20:03:09 +01:00
Aaron 27f69b0a74 EditTag: disallow users to disown their own tags 2023-03-11 20:01:25 +01:00
Aaron ad816f10a3 EditTag: allow designating a tag owner 2023-03-11 19:57:19 +01:00
Aaron 59b1fa7a72 EditAlbum: allow updating the thumbnail visually 2023-03-11 19:52:30 +01:00
Aaron 6d0aef4df6 EditTag: allow updating the thumbnail visually 2023-03-11 19:49:17 +01:00
Aaron a06902335b Manage{Tags,Users}: add call to resetSessionToken 2023-03-11 19:34:52 +01:00
Aaron cf0b9ebaf9 LogInForm: change title to something #RU-like 2023-03-11 19:34:01 +01:00
Aaron edc857f6fd EditTag: introduce featured thumbnail manager 2023-03-11 18:22:27 +01:00
Aaron a9a347c638 Adjust dropdown focus colours 2023-03-11 17:59:57 +01:00
Aaron fa01bf8961 ManageAssets: trade filename for user uploaded field 2023-03-11 17:53:53 +01:00
Aaron 54df35073d EditAlbum: make parent selection more intuitive 2023-03-11 17:35:47 +01:00
Aaron 4684482d67 ManageAlbums: move hierarchy logic to PhotoAlbum model 2023-03-11 17:28:21 +01:00
Aaron 4033a8813c EditTag: hide option for assigning parent 2023-03-11 17:23:44 +01:00
Aaron 4d47696dcd Use Coda font for page links, too 2023-03-11 17:20:22 +01:00
Aaron 54c4294d08 Add 'no thumb' vector image for use while loading 2023-03-11 17:16:53 +01:00
Aaron e6f7476037 MainNavBar: let space invader rotate on hover 2023-03-11 17:15:59 +01:00
Aaron 7d19cf823d Pass aspect ratio into photo thumbnails 2023-03-11 17:04:30 +01:00
Aaron 326c8f11ee Change colours for buttons and page indices 2023-03-11 16:55:22 +01:00
Aaron 556bbb2753 Use Coda font for buttons and headers 2023-03-11 16:43:53 +01:00
Aaron febe7bb405 MainNavBar: hide navigation when not logged in 2023-03-11 16:39:30 +01:00
Aaron 0a8da104cc MainNavBar: randomize space invader; add Coda font 2023-03-11 16:38:03 +01:00
Aaron 02b43035f3 AccountSettings: allow users to change their personal details 2023-03-11 15:32:07 +01:00
Aaron 87df775c51 MainNavBar: re-introduce the space invader 2023-03-11 15:27:15 +01:00
Aaron c6902150f0 PhotoPage: move edit button from old admin bar to widget 2023-03-11 15:17:36 +01:00
Aaron 277611e0ac Introduce new menu classes and navigation templates 2023-03-11 15:14:05 +01:00
Aaron b1378a3b59 DummyBox: fix SubTemplate inheritance 2023-03-11 14:38:49 +01:00
Aaron 5bb8c020bd EditAssetForm: replace widget class with generic content box 2023-03-11 14:31:44 +01:00
Aaron a6fd8d2764 Admin controllers: apply new column classes 2023-03-11 14:24:17 +01:00
Aaron b9bd2bf499 AlbumHeaderBox: apply some border radius to tag headers 2023-03-11 14:17:38 +01:00
Aaron 812c7a4f20 PhotoPage: change previous/next icons 2023-03-11 14:13:29 +01:00
Aaron 021df2df93 Pagination: use larger page indices on photo and album index pages 2023-03-11 14:12:56 +01:00
Aaron a9a2c64d81 PhotoPage: replace custom sub-photo boxes with generic equivalents 2023-03-11 13:57:57 +01:00
Aaron cf31f0af07 Replace more custom button classes with Bootstrap counterparts 2023-03-11 13:51:12 +01:00
Aaron 2d1a299fe0 Replace login and password reset templates 2023-03-11 13:44:36 +01:00
Aaron 307d34430a SubTemplate: use SubTemplates for boxed content only 2023-03-11 13:37:59 +01:00
Aaron 0366df9b5f Alerts: replace 'error' class with 'danger' 2023-03-11 13:30:02 +01:00
Aaron f9eefe7b41 Replace generic alert, form and table templates with new Bootstrap equivalents 2023-03-11 13:20:59 +01:00
Aaron daf6b6b264 MainTemplate: clean up HTML head; remove unused inline CSS function 2023-03-11 13:12:12 +01:00
Aaron 07bc784859 Add bootstrap as a dependency 2023-03-11 12:58:30 +01:00
Aaron 09f498695d Router: split off from Dispatcher 2023-01-01 19:48:19 +01:00
Aaron 6b028aac41 AlbumIndex: enable rendering of more double-density thumbnails 2023-01-01 19:37:22 +01:00
Aaron 2ef1289628 PhotosIndex: enable rendering of more double-density thumbnails 2023-01-01 19:37:07 +01:00
Aaron 4d05cebc40 PhotoMosaic: address deprecation notice in usort call 2022-12-25 14:06:54 +01:00
Aaron ce909ccfe5 default.css: fix overflow declarations 2022-12-25 13:56:42 +01:00
Aaron 1314cfdd30 composer.json: include dependent PHP extensions 2022-12-25 13:56:42 +01:00
Aaron 7897172256 Address dynamic class property deprecation warnings 2022-12-25 13:56:42 +01:00
Aaron 49390c372d Use triple-equals in a few more places 2022-12-25 13:50:03 +01:00
Aaron 2174e1d08b PhotoPage: show software used to edit photo 2022-12-25 13:44:19 +01:00
Aaron d66f071aab Merge pull request 'Add double-density support to photo thumbnails' (#28) from improve_thumbs into master
Reviewed-on: #28
2022-11-27 14:38:21 +01:00
Aaron 7d82a4a924 Merge pull request 'Complete date-ordered orderings' (#29) from electricdusk/pics:assets-complete-ordering into master
Reviewed-on: #29
2022-11-22 21:09:10 +01:00
Aaron 3de87809bb GenericTable: prevent passing NULL to strtotime 2022-07-14 16:45:32 +02:00
Aaron c763967463 Prevent current page from being 0 if no items are present 2022-07-14 16:45:17 +02:00
Aaron 6369187eb7 Add double-density thumbnails to albums and photo pages 2022-07-08 23:53:28 +02:00
Aaron b3808144ca Address deprecation notices for certain function signatures 2022-07-08 23:52:03 +02:00
Aaron d8858c78bb Thumbnails: crop from original size if 2x is unavailable 2022-07-07 14:54:00 +02:00
Aaron c0d69f7205 Do not delete thumbnail queue when replacing an asset
Thumbnails are normally created on demand, e.g. when processing the format codes in a post's body text.
Normally, the temporary URL is only used once to generate thumbnails ad-hoc. However, when cache is
enabled, a reference to the asset may be used in a cached version of a formatted body text, skipping
the normal thumbnail generation routine.

When an asset is replaced, currently, all thumbnails are removed and references to them are removed
from the database. In case the asset is still referenced in a cached formatted body text, this could lead
to an error when requesting the thumbnail, as the thumbnail request is no longer present in the system.

As we do not know what posts use particular assets at this point in the code, it is best to work around this
issue by unsetting the thumbnail filenames rather than deleting the entries outright. This effectively
generates them again on the next request.

In the future, we should aim to keep track of what posts make use of assets, so cache may be invalidated
in a more targeted way.
2022-07-07 14:22:22 +02:00
Aaron b5edf09a69 Don't try to generate double-density thumbs for small images 2022-07-07 14:05:33 +02:00
Aaron 54fb7ab410 Write new thumbnail filenames to parent Image object as well 2022-07-07 13:55:55 +02:00
Aaron 086102d007 Thumbnail class: minor refactor of generate method 2022-07-07 13:51:03 +02:00
Aaron 56b60b74bc Thumbnail class: refactor getUrl method 2022-07-07 13:33:40 +02:00
Aaron fc59708914 Split Image::getImageUrls from Image::getInlineImage 2022-07-05 12:01:02 +02:00
Aaron 1c02cbea93 Rewrite Image::getInlineImage to support double density displays 2022-07-05 11:41:40 +02:00
Aaron 52420b8715 Add Image::getInlineImage method 2022-06-30 15:22:08 +02:00