aboutsummaryrefslogtreecommitdiff
path: root/src/api
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #251 from Zephyrrus/fix/paginate_searchKana2021-01-092-3/+9
|\ | | | | fix: pagination not working when searching & fix: search not working on albums
| * fix: pagination not working when searchingZephyrrus2021-01-082-3/+9
| | | | | | | | fix: search not working on albums
* | feat: use LIKE on queries for case sensitivity issuesPitu2021-01-091-4/+4
|/
* chore: remove query from API responsePitu2021-01-091-3/+3
|
* fix: prevent db from committing suicidePitu2021-01-081-4/+0
|
* chore: be able to refresh stats on demandPitu2021-01-081-1/+18
|
* fix: pg driver doesn't return anything without .returning()Zephyrrus2021-01-083-2/+15
| | | | feat: disable .returning() is not supported warning message, it's useless.
* fix: don't generate a stat every second on minute 0 of every hourZephyrrus2021-01-081-1/+1
|
* chore: refactor stats generator to use an enum for typesZephyrrus2021-01-073-17/+54
| | | | | | | | 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)
* Merge branch 'feature/stats-dashboard' into feature/system_status_pageZephyrrus2021-01-071-1/+2
|\
| * chore: update sharex snippet to use apiKey instead of jwtPitu2021-01-071-1/+2
| |
* | feat: change mutation timestamp on every database mutationZephyrrus2021-01-0719-22/+40
| |
* | fix: use PassThrough from FileType to get the real mimetype of a file while ↵Zephyrrus2021-01-073-19/+39
| | | | | | | | it's being saved to the disk
* | chore: Move statistics related functions to it's own fileZephyrrus2021-01-079-236/+332
| | | | | | | | | | | | 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: Add experimental stats endpoint (no cache system yet)Zephyrrus2021-01-071-0/+208
| |
* | feat: check for real mimetype using file-typeZephyrrus2021-01-074-22/+27
|/ | | | 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-072-3/+7
|
* fix: terminate rehashing script when donePitu2021-01-071-1/+2
|
* fix: incorrect case on colum namePitu2021-01-071-2/+2
|
* feat: add rehashing scriptPitu2021-01-071-0/+54
|
* fix: early return if duplicated filePitu2021-01-071-1/+3
|
* chore: cleanupPitu2021-01-071-1/+1
|
* chore: remove unused methodsPitu2021-01-071-74/+0
|
* feature: new chunk and write strategyPitu2021-01-075-215/+435
|
* feat: enable user creation from admin panelPitu2021-01-051-3/+7
|
* fix: dont save the file to album if no albumPitu2021-01-051-4/+6
|
* fix: migration didn't properly grab the env variablesPitu2021-01-051-0/+2
|
* fix: try to remove thumbnail only if the file has onePitu2021-01-051-1/+1
|
* Update migrationPitu2021-01-031-54/+4
|
* fix: nsfw album toggle doesn't propagate the changes properlyZephyrrus2020-12-272-2/+2
| | | | fix: add nsfw flag to the booleanFields in knex postProcessResponse
* feat: Add warning to nsfw albumsPitu2020-12-283-1/+35
|
* feat: Add hash checking for chunked uploadsPitu2020-12-273-12/+34
|
* Fixes chunked uploads not being saved to albums or thumbnailsPitu2020-12-273-66/+70
|
* Squashed commit of the following:Pitu2020-12-272-15/+36
| | | | | | | | commit df4b0378571708086a276e49ac8630095e08b0b7 Author: Pitu <[email protected]> Date: Sun Dec 27 03:00:17 2020 +0900 feat: move database modification to a new migration file
* chore: use instance name for album downloadPitu2020-12-271-2/+2
|
* RebrandPitu2020-12-254-5/+5
|
* Chore: prevent server from starting if .env config missingPitu2020-12-251-2/+8
|
* Chore: Move database to a subfolder for docker purposesPitu2020-12-253-3/+3
|
* fix: remove logPitu2020-12-251-2/+1
|
* Fix: thumbnail creationPitu2020-12-252-1/+2
|
* Fix: use webp for thumbnailsPitu2020-12-251-5/+5
|
* Feat: add rotating logs when running in production envPitu2020-12-251-0/+10
|
* CleanupPitu2020-12-253-28/+2
|
* Fix ESLint rules once and for allPitu2020-12-2412-49/+49
|
* Merge pull request #228 from Zephyrrus/begone_trailing_commasKana2020-12-2443-308/+1086
|\ | | | | Merge own dev branch into main dev branch
| * bug: Thumbs are stored as webp and not as png anymoreZephyrrus2020-12-241-1/+1
| |
| * chore: remove trailing commasZephyrrus2020-12-2449-143/+140
| |
| * chore: update lock filesZephyrrus2020-12-242-14/+5
| |
| * feat: allow administrators to create custom links for albumsZephyrrus2020-10-021-5/+22
| |
| * feat: add experimental query to sql generator for searchingZephyrrus2020-07-232-10/+248
| |