19 Commits

Author SHA1 Message Date
Steven
4790e84b98 chore: use ratio instead of max width 2024-09-09 21:43:47 +08:00
Steven
773ab96bd0 chore: update thumbnail generator 2024-09-03 22:09:02 +08:00
RoccoSmit
bfe57b9202
chore: set max thumbnail width to home/explore image max width (#3852)
* 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>
2024-08-31 03:37:07 +08:00
Steven
960af444fa chore: fix linter 2024-08-30 08:25:06 +08:00
Steven
20570fc771 refactor: resource thumbnail 2024-08-30 08:09:07 +08:00
RoccoSmit
9b1adfbbe9
feat: reintroducing thumbnails (#3821)
* 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>
2024-08-29 21:01:57 +08:00
Steven
44e56844f5 chore: tweak search resources 2024-07-22 15:33:02 +08:00
Steven
9449886d60 chore: fix linter 2024-07-12 08:36:55 +08:00
Steven
457cf92cc1 feat(api): implement get resource by uid 2024-07-11 23:43:44 +08:00
Zeng1998
4f4fe9b26b
fix: add charset=utf-8 for text content resources (#3608)
Co-authored-by: = <=>
2024-06-24 23:01:19 +08:00
Ryo
2c819ace4e
feat: return not found error instead internal error for local file not exist (#3543)
* chore: add `/.vscode` to `.gitignore`

* feat: return not found instead of internal for resource

* feat: check file not exist only if error not nil
2024-06-10 14:11:28 +08:00
Steven
1ccfa81cf3 chore: tweak common function 2024-05-26 11:02:23 +08:00
Steven
b0aad6f694 chore: tweak resource payload 2024-05-17 08:50:02 +08:00
Steven
b8763905ba chore: tweak naming 2024-05-13 20:03:04 +08:00
Steven
e0977e53f7 chore: remove unused route 2024-05-08 22:15:29 +08:00
Steven
e9831caca1 chore: remove unused field 2024-05-02 22:21:49 +08:00
Steven
775b79338d chore: update object in s3 2024-05-02 21:44:17 +08:00
Steven
26545c855c refactor: implement s3 storage 2024-05-02 21:28:06 +08:00
Steven
20dd3e17f7 chore: rename router package 2024-05-01 10:28:32 +08:00