Commit Graph

13 Commits

Author SHA1 Message Date
3b2289c8fa
Fix swagger docs 2020-06-28 16:25:46 +02:00
be11362533
Fix searching for unsplash pictures with words that contain a space 2020-06-26 00:37:10 +02:00
a0ffe89056 List Background upload (#582)
Add filesize check when uploading a new file

Fix error 500 if the uploaded background was not an unsplash one

Add upload background setting to info endpoint

Add config docs

Fix lint

Return list background type if it was uploaded

Add file upload

Add docs

Save uploaded backgrounds as file

Add background upload handler

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#582
2020-06-11 17:31:37 +00:00
d63666cece
Fix getting unsplash thumbnails for non "photo-*" urls 2020-05-31 22:40:27 +02:00
03ef48a0ae
Properly ping unsplash when using unsplash images 2020-05-31 22:06:59 +02:00
8f35b9d579
Set unsplash empty collection caching to one hour 2020-05-31 20:50:51 +02:00
ebfa982c72
Fix misspell 2020-05-31 18:12:32 +02:00
2fa4fcc202
Fix caching of initial unsplash results per page 2020-05-31 18:09:46 +02:00
ad67154e26
Add cache for initial unsplash collection 2020-05-31 17:59:39 +02:00
42ddee8d6f
Add logging if downloading an image from unsplash fails 2020-05-29 22:11:49 +02:00
a0fb8bd32d
Add unsplash image proxy for images and thumbnails 2020-05-29 15:33:46 +02:00
2ef2c7523d
Also return unsplash info when searching 2020-05-27 22:12:12 +02:00
e5e30d0915 List Backgrounds (#568)
Return the updated list when setting a list background

Add swagger docs for unsplash methods

Add unsplash info to search results

Fix misspell

Fix lint

Add rights check for setting and getting backgrounds

Show unsplash information when loading a single list

Make application id for pingbacks configurable

Remove old backgrounds when setting a new one

Return 404 if the list does not have a background

Implement getting list backgrounds

Implement actually setting a photo from unsplash as list background

go mod tidy

Add migration for background file id

Roughly implement setting a list background from unsplash

Implement saving a background

Add migration for unsplash photo table

Add unsplash search

Fix parsing page param

Fix parsing page param

Fix background config

Add unsplash wrapper library

Add enabled background providers to info endpoint

Add config options for backgrounds

Add unsplash background provider

Add routing handler for backgrounds

Add basic background provider interface

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/api#568
2020-05-26 20:07:55 +00:00