Commit Graph

23 Commits (c43762a9b61535a3f21a00b5a4d76dcaf0523167)

Author SHA1 Message Date
Johnny 6abd51fe5a chore: update resource storage type comment
johnnyjoy 0dcd0904e8 refactor: remove resource uid
johnnyjoy 98aa0b73c5 refactor: retire memo uid
johnnyjoy 5e770dda52 refactor: memo name
Steven 4790e84b98 chore: use ratio instead of max width
Steven 773ab96bd0 chore: update thumbnail generator
RoccoSmit bfe57b9202
chore: set max thumbnail width to home/explore image max width ()
* Set max thumbnail width to timeline img max width

* Prevent images less than thumbnail size from being scaled up

* Apply suggestions from code review

---------

Co-authored-by: boojack <24653555+boojack@users.noreply.github.com>
Steven 960af444fa chore: fix linter
Steven 20570fc771 refactor: resource thumbnail
RoccoSmit 9b1adfbbe9
feat: reintroducing thumbnails ()
* Reintroducing thumbnails

* Aligned with linting rules

* making recomended code review change
- changed method names to start with lower case as they are not used outside of their package
- made receiver types for struct funcs to be pointers to not need to create copies

Trying to cover all linting issues
- converted slog warning to use attributes when logging warnings
- seperated imports to have package files in their own section

* Update go.mod

---------

Co-authored-by: boojack <24653555+boojack@users.noreply.github.com>
Steven 44e56844f5 chore: tweak search resources
Steven 9449886d60 chore: fix linter
Steven 457cf92cc1 feat(api): implement get resource by uid
Zeng1998 4f4fe9b26b
fix: add charset=utf-8 for text content resources ()
Co-authored-by: = <=>
Ryo 2c819ace4e
feat: return not found error instead internal error for local file not exist ()
* chore: add `/.vscode` to `.gitignore`

* feat: return not found instead of internal for resource

* feat: check file not exist only if error not nil
Steven 1ccfa81cf3 chore: tweak common function
Steven b0aad6f694 chore: tweak resource payload
Steven b8763905ba chore: tweak naming
Steven e0977e53f7 chore: remove unused route
Steven e9831caca1 chore: remove unused field
Steven 775b79338d chore: update object in s3
Steven 26545c855c refactor: implement s3 storage
Steven 20dd3e17f7 chore: rename router package