Commit Graph

363 Commits (vue3)

Author SHA1 Message Date
Varun Patil f0e89f4056 Reorganize API controller 2022-10-29 11:05:05 -07:00
Varun Patil 705cb4fdbd cmd: don't pass schema byref 2022-10-28 23:00:56 -07:00
Varun Patil 7dd758ee4d Remove album folder in day call 2022-10-28 22:44:16 -07:00
Varun Patil 2c40f8d57e Fix filename for shared folders 2022-10-28 18:29:28 -07:00
Varun Patil cd2f714e92 Include filename in days 2022-10-28 18:11:58 -07:00
Varun Patil 9209b8f55d Add basic folder share stuff 2022-10-28 17:25:39 -07:00
Varun Patil f2d61c3e07 Fix shared album photo viewing 2022-10-28 14:26:56 -07:00
Varun Patil 2c1ad8ce2c Don't store invalid dims (#129) 2022-10-28 09:48:08 -07:00
Varun Patil d5f5334a50 Lint php 2022-10-27 13:57:00 -07:00
Varun Patil 1af61db512 Add photos version check 2022-10-27 13:45:03 -07:00
Varun Patil a0d757adfc Use separate tag preview endpoint 2022-10-27 13:26:51 -07:00
Varun Patil 46eb0fd97a Fix debug fun 2022-10-27 12:58:47 -07:00
Varun Patil de845bd543 Speed up tags 2022-10-27 12:54:51 -07:00
Varun Patil 759076c4ac Use INNER JOIN for CTE 2022-10-27 09:19:25 -07:00
Varun Patil 86660056bb Check photos version for albums 2022-10-27 02:39:44 -07:00
Varun Patil 038ba2eb87 Add shared albums 2022-10-27 02:36:20 -07:00
Varun Patil 9afd99de2a Lint php 2022-10-27 00:53:44 -07:00
Varun Patil 9891a03d9e Add album create dialog 2022-10-27 00:11:35 -07:00
Varun Patil c9a2c8a021 Add album form 2022-10-26 23:37:56 -07:00
Varun Patil 8d97dc7914 Add albums transform 2022-10-26 21:33:37 -07:00
Varun Patil 50bb55536f albums: add list 2022-10-26 21:33:37 -07:00
Varun Patil 294b3b8a0c albums: initial commit 2022-10-26 21:33:37 -07:00
Varun Patil 524c029134 Make day preload lighter 2022-10-26 15:18:18 -07:00
Varun Patil dffd84ba20 Add link to maps (fix #121) 2022-10-26 11:58:06 -07:00
Varun Patil bf04221a0a Fix invalid type of excludedFolderIds 2022-10-26 11:13:58 -07:00
Varun Patil 9ddab71370 Use single query for day preload 2022-10-26 11:10:24 -07:00
Varun Patil d43fd807f9 Convert folderIds to int 2022-10-26 10:51:43 -07:00
Varun Patil 15db6da859 Pass only var by ref 2022-10-26 10:40:33 -07:00
Varun Patil cfeebbf4fa perf: add indices (#114) 2022-10-26 10:06:45 -07:00
Varun Patil 6d8f06c885 tag: get rid of windowing 2022-10-26 09:31:27 -07:00
Varun Patil 8a9f9fd0df Lint fix 2022-10-25 11:48:54 -07:00
Varun Patil 6e01d64311 Improve console output 2022-10-25 10:49:42 -07:00
Varun Patil 397aeb91e8 command: minor output fix 2022-10-25 10:35:21 -07:00
Varun Patil 2ece006f0d Rewrite console line 2022-10-25 10:30:17 -07:00
Varun Patil 58e3b87cc4 Only check images for preview 2022-10-25 10:25:26 -07:00
Varun Patil 02becf6766 Print info on file type support 2022-10-25 10:20:50 -07:00
Varun Patil 211519ddde Add start page (fix #109) 2022-10-24 21:30:43 -07:00
Varun Patil 9bc8378207 Enable RAW support (fix #107) 2022-10-24 17:57:12 -07:00
Varun Patil 506ea05d8b Add preview generator check to write 2022-10-24 17:47:25 -07:00
Varun Patil 69184e0bb0 Lint migration 2022-10-24 17:45:08 -07:00
Varun Patil 17c7e8db7c Remove filecache index 2022-10-24 17:28:42 -07:00
Varun Patil fac08ae96d Switch to CTE 2022-10-24 17:14:50 -07:00
Varun Patil 42d00807ec Whitelist more special chars in path (fix #108) 2022-10-24 15:50:22 -07:00
Varun Patil f2367ac7b7 Don't join facerect for days (#105) 2022-10-24 09:21:38 -07:00
Varun Patil 44ac291457 Fix lint 2022-10-22 15:07:08 -07:00
Varun Patil 4a4430b3bb Make sure ldd output isn't null (#92) 2022-10-22 14:53:26 -07:00
Varun Patil d8fea76992 chmod exiftool in Exif.php 2022-10-22 14:47:49 -07:00
Varun Patil 8a624eab95 Fix lint error 2022-10-22 10:59:54 -07:00
Varun Patil d296d6d8e9 Use dot in configs 2022-10-22 10:45:20 -07:00
Varun Patil fc2ddcd24e Add readonly mode 2022-10-22 10:41:34 -07:00
Varun Patil 488ad4f574 tq: fix ambiguous column name 2022-10-22 08:40:41 -07:00
Varun Patil 67974878d9 Lint PHP 2022-10-20 20:53:38 -07:00
Varun Patil ae5e24c74a Improve face scoring 2022-10-20 20:52:47 -07:00
Varun Patil 8e45118d62 Lint php 2022-10-20 14:05:01 -07:00
Varun Patil 9e0398ba8f Also bundle perl script 2022-10-20 13:41:34 -07:00
Varun Patil d251cd809e Bundle exiftool 2022-10-20 12:31:12 -07:00
Varun Patil 593f0cea31 Add support for memes from the 90s
MIMEs test by @illnesse (#83)
2022-10-19 16:06:32 -07:00
Varun Patil 25d787f419 Allow setting folder base path (close #85) 2022-10-19 12:26:32 -07:00
Varun Patil fcd8c4c388 More lint 2022-10-19 10:15:14 -07:00
Varun Patil 26cb158b2e Lint 2022-10-19 10:10:36 -07:00
Varun Patil 38ceddc609 Mark person in preview (fix #79) 2022-10-18 14:08:27 -07:00
Varun Patil 2f159d0949 faces: place unnamed clusters at the end (fix #76) 2022-10-18 08:02:56 -07:00
Varun Patil ed8494570e resize --> scale in face preview (#72) 2022-10-18 07:54:44 -07:00
Varun Patil 048cc97db4 Fix exif rotation (not orientation) 🙄 2022-10-17 19:45:44 -07:00
Varun Patil 8dc7ba9367 Fix exif orientation issues 2022-10-17 19:16:03 -07:00
Varun Patil 3e54bc72c1 faces: crop with imagick (#72) 2022-10-17 10:41:58 -07:00
Varun Patil 36e2f9d9ff Add service worker 2022-10-16 19:52:44 -07:00
Varun Patil 8a2631ffff Break ties in face/tag 2022-10-16 16:46:37 -07:00
Varun Patil 16f1562ade Bust cache with version 2022-10-16 13:18:47 -07:00
Varun Patil 17e54825e1 query: add tie-breaker to days sorting 2022-10-16 12:18:31 -07:00
Varun Patil 430e0e0a11 Fix w/h after Exif rotation 2022-10-15 22:23:07 -07:00
Varun Patil c30a0828cb Add w/h to day response 2022-10-15 12:23:31 -07:00
Varun Patil 41112ad641 Store image dimensions in table 2022-10-15 12:15:07 -07:00
Varun Patil 11e7b4fbb1 Catch ValueError in Exif parsing (#66) 2022-10-11 12:57:55 -07:00
Varun Patil e81b7c6d59 Fix opening nameless faces 2022-10-10 17:17:42 -07:00
Varun Patil 6d99ad01d7 Catch transform errors 2022-10-07 23:46:08 -07:00
Varun Patil 3f6a31f2b5 Improve folder error 2022-10-07 23:36:16 -07:00
Varun Patil 6fcb3ba457 Use name for face fetching 2022-10-07 23:26:09 -07:00
Varun Patil d40217604e Use single query for tag previews 2022-10-07 19:09:05 -07:00
Varun Patil 991515e9e5 Get face previews in single query 2022-10-07 19:00:55 -07:00
Varun Patil ff502b5068 Speed up tag thumb load 2022-10-07 17:57:48 -07:00
Varun Patil 1505218fd0 Check enabled recognize and version 2022-10-07 13:21:46 -07:00
Varun Patil d1e9205a54 Implement people tab for recognize 3 (fix #43) 2022-10-07 12:28:39 -07:00
Varun Patil 9dc4ae20cb Explicitly sort tags 2022-10-07 11:06:16 -07:00
Varun Patil 5f3323529b Fix tags response typing 2022-10-07 11:02:41 -07:00
Varun Patil 4c684f1aef Ensure tags enabled 2022-10-07 10:46:09 -07:00
Varun Patil f5baf36109 Add tags view 2022-10-06 16:28:35 -07:00
Varun Patil 68a40ffbc7 Allow wildcard day query 2022-10-06 15:01:28 -07:00
Varun Patil 66f479844e Add limit transform 2022-10-06 14:44:14 -07:00
Varun Patil 994320f78e Add get tags API 2022-10-06 14:37:18 -07:00
Varun Patil 90ccce5477 Add systemtag transform 2022-10-06 14:19:47 -07:00
Varun Patil 4c38124ac8 Fix broken day GET 2022-10-06 13:37:12 -07:00
Varun Patil 5a250818a5 Add on this day tab (#41) 2022-10-06 13:20:39 -07:00
Varun Patil efd9232c94 Allow POST for day 2022-10-06 13:18:15 -07:00
Varun Patil b62e73735c Allow querying multiple day ids 2022-10-06 12:24:45 -07:00
Varun Patil 515addf497 Show days API errors properly 2022-10-06 11:49:51 -07:00
Varun Patil 373a02fd2c Convert time to epoch in PHP (#56) 2022-09-27 14:39:54 -07:00
Varun Patil 664457b17e exif: forget time zone in fallback 2022-09-27 14:05:26 -07:00
Varun Patil d1339add77 Fix archive filter with external storage 2022-09-25 16:37:08 -07:00
Varun Patil dc2615e107 Implement archive (close #38) 2022-09-25 16:02:26 -07:00
Varun Patil 507a1c19a1 Add permission check 2022-09-25 08:09:04 -07:00
Varun Patil 1e297f86f4 Add single file exif update (#42) 2022-09-25 06:21:40 -07:00
Varun Patil df7866b876 Clean up cursor when done 2022-09-25 04:30:28 -07:00
Varun Patil 3be44725cc Fix array_map error (#54) 2022-09-25 03:00:07 -07:00
Varun Patil 821e10525e Optimize folders listing 2022-09-25 02:46:01 -07:00
Varun Patil 373c398941 Drop uid column 2022-09-23 19:13:49 -07:00
Varun Patil f5eeb1ae9d Use storage for lookups 2022-09-23 18:54:14 -07:00
Varun Patil ec397f3ae6 Hide hidden folders (fix #45) 2022-09-16 15:42:29 -07:00
Varun Patil eaeb7af274 Change folder tag to int 2022-09-16 14:37:52 -07:00
Varun Patil c59c136131 Remove external css 2022-09-15 21:06:40 -07:00
Varun Patil 177774e55f Fix case with nested folder timeline (#39)
@folosleg
2022-09-15 11:06:19 -07:00
Varun Patil 2c46fc8689 Minor fixes + bump up version 2022-09-14 18:20:23 -07:00
Varun Patil d66ca0a281 Add timeout to exif reads (#34) 2022-09-14 18:14:06 -07:00
Varun Patil 463e57d98b Remove underscore in date_taken 2022-09-14 15:48:17 -07:00
Varun Patil a49d0ff1c9 Fix error on postgres (fix #35) 2022-09-14 15:47:26 -07:00
Varun Patil 111e408ebd Use DISTINCT for selection 2022-09-14 15:36:06 -07:00
Varun Patil 5a6bcb3724 Add test workflow 2022-09-14 11:19:51 -07:00
Varun Patil 8f5c4d061e UTF-8 path support (fix #31) 2022-09-13 16:30:01 -07:00
Varun Patil 91c6086896 sqlite: use delete for truncate 2022-09-13 15:05:26 -07:00
Varun Patil 58aa071e9e Remove type Or 2022-09-13 15:01:03 -07:00
Varun Patil 77b1101bb3 Fix multiple entries in external share 2022-09-13 11:35:54 -07:00
Varun Patil 9c77a8f0c8 Fix category filter for shared folders 2022-09-13 11:25:24 -07:00
Varun Patil be961b3fb4 Check external paths (#30) 2022-09-13 10:39:38 -07:00
Varun Patil 4d5431c6b4 Restore CSRF check
I'm sleepy
2022-09-13 00:59:47 -07:00
Varun Patil 06ea3401fa Add videos tab 2022-09-13 00:55:32 -07:00
Varun Patil b6e709b07b Fix case 2022-09-12 21:59:35 -07:00
Varun Patil 22e0e07a47 Optimize initial load for timeline 2022-09-12 20:21:25 -07:00
Varun Patil d977ec7cbe Fix broken folderDay 2022-09-12 02:35:09 -07:00
Varun Patil 4ca6e3977c Use flag for isvideo 2022-09-11 20:52:07 -07:00
Varun Patil fa65f1866f Show star on photos 2022-09-11 20:46:31 -07:00
Varun Patil ee274ebf7f Fix main route 2022-09-11 20:06:28 -07:00
Varun Patil e8774b2aa4 Use correct category for favorites 2022-09-11 20:03:04 -07:00
Varun Patil d4746abade Add favorites note 2022-09-11 19:02:51 -07:00
Varun Patil 1d16da7235 Add favorites API 2022-09-11 18:33:38 -07:00
Varun Patil ba2c3ecdd0 Minor stylistic change 2022-09-11 18:06:16 -07:00
Varun Patil 02fe4d936f Refactor queries 2022-09-11 18:03:40 -07:00
Varun Patil b8e5ee7f1b Indicate uid can be null in PageController 2022-09-11 02:38:40 -07:00
Varun Patil aeee6592b0 Use querybuilder in TimelineWrite 2022-09-10 19:22:57 -07:00
Varun Patil 48dc8c1a55 Use querybuilder for TimelineQuery 2022-09-10 19:05:04 -07:00
Varun Patil 91f329b7b8 Honor .nomedia in postlistener (fix #5) 2022-09-10 17:50:08 -07:00
Varun Patil 075ff4e006 Fix another byref error 2022-09-10 17:49:21 -07:00
Varun Patil a5e04822ff Honor nomedia in indexing (fix #24) 2022-09-10 17:22:50 -07:00
Varun Patil ed7898291e Add clear flag for index (fix #23) 2022-09-10 17:15:40 -07:00
Varun Patil 3b80998d93 Fix another byref error 2022-09-10 15:32:49 -07:00
Varun Patil 23ccf41ebd Fix byref errors 2022-09-10 15:31:11 -07:00
Varun Patil ff29114429 Null coalesce exif props explicitly 2022-09-09 08:42:44 -07:00
Varun Patil 6f1248f667 Prevent exiftool zombies 2022-09-09 08:18:55 -07:00
Varun Patil 21e25b1ecd Allow refreshing index (fix #18)
Add the -f option to the index command
2022-09-09 08:07:05 -07:00
Varun Patil 8b68c9ca92 Add note to install exiftool 2022-09-09 00:37:52 -07:00
Varun Patil d02ce0b21d Improve Exif test logs 2022-09-09 00:36:53 -07:00
Varun Patil af38c24198 Tab -> Space 2022-09-09 00:31:42 -07:00
Varun Patil 3b0b5c05dc Rename album to folder 2022-09-08 16:57:50 -07:00
Varun Patil 3fa8aa736f Attempt to create index only once 2022-09-08 09:43:56 -07:00
Varun Patil 27666671fe Fix video timezone to server timezone 2022-08-27 16:05:25 -07:00
Varun Patil 1ad335ed8b Create static proc only for command 2022-08-26 00:37:40 +00:00
Varun Patil 9b93a508ce Remove rename listener 2022-08-25 20:25:16 +00:00
Varun Patil 08dbabb3f2 Sort day folder by date taken 2022-08-23 09:59:56 +00:00
Varun Patil 772a59c868 Add time to stats 2022-08-23 09:39:41 +00:00
Varun Patil 0e207e6648 Write command stats at end 2022-08-23 09:35:51 +00:00
Varun Patil e933c1c457 Massively speed up indexing for local files 2022-08-23 09:19:19 +00:00
Varun Patil e9fab264fc Do not use upload time for fallback 2022-08-23 08:33:37 +00:00
Varun Patil ac75f52ca4 Fix indentation 2022-08-23 08:04:26 +00:00
Varun Patil 311d3ea279 Fix Exif TZ and handling for HEIC (fix #15) 2022-08-23 07:54:39 +00:00
Varun Patil 7b7ea2b597 Remove comma after arg list (#14) 2022-08-22 18:48:35 +00:00
Varun Patil 16763904e1 Catch insert exception 2022-08-22 18:42:06 +00:00
Varun Patil be2cdd6197 Catch exceptions with var (#14) 2022-08-22 18:16:05 +00:00
Varun Patil 829487cac7 WARNING: Change migrations to fit NC names
Okay, promise this is the last time
2022-08-20 21:28:41 +00:00
Varun Patil 2242d2b4d9 Sort folders by natural name 2022-08-20 08:45:50 +00:00
Varun Patil 3999f7b9bd Show previews on folders 2022-08-20 08:26:52 +00:00
Varun Patil 522e1f5e1e Refactor to more files 2022-08-20 02:53:21 +00:00
Varun Patil c0c3423943 Test for exiftool before running (fix #6) 2022-08-20 02:25:39 +00:00
Varun Patil 021ba58adc Pass by ref in command 2022-08-20 02:14:03 +00:00
Varun Patil 14087e2732 Pass everything byref 2022-08-20 02:12:55 +00:00
Varun Patil 42b0a82e3f Check handle before using it 2022-08-20 02:10:15 +00:00
Varun Patil 83f4db77e8 Refactor 2022-08-20 02:08:54 +00:00
Varun Patil 6b211499f9 Get rid of mysql specific syntax 2022-08-20 01:39:17 +00:00
Varun Patil ba67062a45 Enable some extra mime types 2022-08-20 00:20:55 +00:00
Varun Patil 6b8f53e89b Allow changing base folder (fix #9) 2022-08-20 00:18:10 +00:00
Varun Patil 36c9b0f79d Require CSRF token 2022-08-19 22:16:13 +00:00
Varun Patil af49dbb933 stream_copy_to_stream for exif 2022-08-19 21:53:57 +00:00
Varun Patil 4decbb91cb Close proc pipes explicitly 2022-08-19 21:42:23 +00:00
Varun Patil ebab5225e0 Fix two calls to exiftool 2022-08-19 21:38:18 +00:00
Varun Patil 0aa3d485c1 Fix icon 2022-08-18 18:50:48 +00:00
Varun Patil 0d03a9142c Rename again to memories
Fix the migration directly because I'm the only user right now.
If this is a problem for you, drop the oc_polaroid table and the
corresponding index on the oc_filecache table.
2022-08-18 18:27:25 +00:00
Varun Patil 93bed9c1c2 Prevent invalid dates 2022-08-18 04:19:09 +00:00
Varun Patil 62fb0621a3 Fix some SQL weirdness 2022-08-18 03:23:41 +00:00
Varun Patil 0a3bfc096f Fix timeline after move 2022-08-18 00:35:14 +00:00
Varun Patil 833ce737b7 Fix prefix (fix #3) 2022-08-17 23:56:14 +00:00
Varun Patil 68b28ed2ec Implement includsion (fix #1) 2022-08-17 23:51:48 +00:00
Varun Patil 5d20cc2e7c Fix PostDelete 2022-08-17 23:26:10 +00:00
Varun Patil d101a09137 Use search for getting albums 2022-08-17 22:03:29 +00:00
Varun Patil 0e99d887d8 Update to use exiftool 2022-08-17 21:45:01 +00:00
Varun Patil cb5487065e Fix some bugs 2022-08-17 20:59:26 +00:00
Varun Patil 4936a2fdf8 Add albums 2022-08-17 20:39:48 +00:00
Varun Patil 0ce5224148 Change stored date to DATETIME 2022-08-16 04:31:09 +00:00
Varun Patil 37002f1721 Rename shared api 2022-08-16 04:02:19 +00:00
Varun Patil 3c0858b706 Add folder APIs 2022-08-16 03:58:55 +00:00
Varun Patil b26c1d3108 Get rid of day table 2022-08-16 02:47:49 +00:00
Varun Patil 83e6247716 Fix shared folder upload 2022-08-16 02:33:15 +00:00
Varun Patil 2de33bff69 Change project name 2022-08-16 01:19:43 +00:00