aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/Util.js
Commit message (Collapse)AuthorAgeFilesLines
* chore: chibisafe -> HostessFuwn2022-01-151-2/+2
|
* fix: anon upload and domain fix for album links (#292)Zephyrrus2021-08-221-3/+3
|
* chore: hardcode api locationPitu2021-06-201-1/+1
|
* chore: add defaults for stats and other featuresPitu2021-06-201-1/+6
|
* fix: potentially fix the blocked extensions array splittingPitu2021-06-191-1/+1
|
* feat: add domain to setup processPitu2021-06-181-0/+1
|
* feat: save correct db infoPitu2021-06-171-1/+9
|
* feat: show validation errors from joi on the frontendZephyrrus2021-06-171-1/+1
|
* chore: update process.env usagePitu2021-06-151-30/+21
|
* chore: get host from req instead of configPitu2021-06-081-11/+14
|
* wipPitu2021-06-071-0/+1
|
* feat: implement initial values and saving to db logicPitu2021-03-251-0/+39
|
* wipPitu2021-03-231-4/+24
|
* chore: refactor stats generator to use an enum for typesZephyrrus2021-01-071-3/+10
| | | | | | | | fix: saved data not being converted to JSON automatically when using SQLite (and possibly MSSQL) feat: display when a stat was generated in the section's header fix: not being able to click through the footer (sorry IE11 users, you still won't be able to click through it) fix: add is-mobile to columns so they don't stack on top of each other feat: add text next to the NSFW toggle and make it look like the elements around it (begone round iOS edges)
* feat: change mutation timestamp on every database mutationZephyrrus2021-01-071-4/+5
|
* chore: Move statistics related functions to it's own fileZephyrrus2021-01-071-11/+33
| | | | | | fix: Extract database constructor to a separate file to ensure we only create one knex instance/db feat: Add cron for saving the stats to the database every hour feat: Get cached stats from database (if a stat is not found in the db, generate it)
* feat: check for real mimetype using file-typeZephyrrus2021-01-071-0/+5
| | | | For now, if file-type returns undefined, we take the value from the browser. In the future this should be removed to ensure people can't bypass the real mime checking using a special file that can't be recognized by file-type.
* fix: normalize url and thumbnail responsePitu2021-01-071-1/+2
|
* fix: incorrect case on colum namePitu2021-01-071-2/+2
|
* chore: remove unused methodsPitu2021-01-071-74/+0
|
* feature: new chunk and write strategyPitu2021-01-071-2/+95
|
* fix: try to remove thumbnail only if the file has onePitu2021-01-051-1/+1
|
* feat: Add hash checking for chunked uploadsPitu2020-12-271-0/+11
|
* Fixes chunked uploads not being saved to albums or thumbnailsPitu2020-12-271-0/+54
|
* Chore: Move database to a subfolder for docker purposesPitu2020-12-251-1/+1
|
* chore: remove trailing commasZephyrrus2020-12-241-10/+8
|
* Merge branch 'dev' into dev-zephyZephyrrus2020-07-191-1/+7
|\
| * Make thumbnails webp (bye bye safari)Pitu2020-07-181-5/+6
| |
| * Fix for realPitu2020-07-181-8/+7
| |
| * Fix deleting files without thumbPitu2020-07-181-2/+8
| |
| * Fix authorizationPitu2020-07-181-1/+1
| |
| * Fix authorizationPitu2020-07-181-3/+1
| |
| * fix authorizationPitu2020-07-181-1/+9
| |
* | chore: linter the entire project using the new rulesZephyrrus2020-07-081-2/+2
| |
* | fix: errors in Util caused by separating into different classes improperlyZephyrrus2020-07-081-10/+14
| |
* | feat: experimental videos in gridZephyrrus2020-07-041-1/+2
| |
* | feat: add experimental meaningful preview extraction from videosZephyrrus2020-07-021-13/+8
| | | | | | | | For now, it sitll requires gifski. It could be rewritten to use webp instead of gifs, because that is a lot faster, uses less space and we could use ffmpeg for it.
* | feat: externalize thumb generation function for easier testingZephyrrus2020-07-021-67/+51
| |
* | fix: remove .bmp from the imageExtensions because sharp doesn't support itZephyrrus2020-07-011-1/+1
| | | | | | | | Trying to generate a thumb would throw a not supported exception, which would crash newer node.js versions because the process (on older version, it would only throw a UnhandledPromiseRejectionWarning)
* | feat: backend paginationZephyrrus2020-06-291-1/+1
|/ | | | | serverLoad++; userRamUsage--;
* Fix: consistent hash of uploadsPitu2020-05-091-1/+1
|
* chore: remove exif strip support.Pitu2019-10-121-15/+0
| | | | After some thought, modifying uploaded files is not something I want to support.
* chore: upload fixesPitu2019-10-121-0/+1
|
* feature: uploader with chunks supportPitu2019-10-011-0/+5
|
* Add uuid packagePitu2019-03-141-4/+28
|
* Possible fix for files not being purgedPitu2019-03-121-4/+4
|
* Be able to add a file to multiple albumsPitu2019-03-021-1/+1
|
* Enviroment variables parsing fixPitu2019-03-021-2/+2
|
* Purge user's filesPitu2019-02-281-0/+16
|
* Better DB handling and stuffPitu2019-02-231-1/+2
|