Commit Graph

375 Commits

Author SHA1 Message Date
Pitu ec2f9e0d98 Rebrand 2020-12-25 20:45:22 +09:00
Pitu 7190e035b4 chore: style changes 2020-12-25 20:17:47 +09:00
Pitu 5c2f6782dd Chore: prevent server from starting if .env config missing 2020-12-25 20:09:17 +09:00
Pitu f73cde6bb5 Chore: Move database to a subfolder for docker purposes 2020-12-25 03:58:19 +09:00
Pitu 943a00827d fix: remove log 2020-12-25 03:24:02 +09:00
Pitu 493e05df27 Fix: thumbnail creation 2020-12-25 03:08:53 +09:00
Pitu 047a6afce6 Fix: use webp for thumbnails 2020-12-25 02:54:22 +09:00
Pitu 3051fbe948 Feat: add rotating logs when running in production env 2020-12-25 02:54:05 +09:00
Pitu 09d8d02e6c Cleanup 2020-12-25 02:08:54 +09:00
Pitu 279cde7dd3 Remove flexsearch 2020-12-24 23:52:26 +09:00
Pitu fb2c27086f Fix ESLint rules once and for all 2020-12-24 23:45:16 +09:00
Kana 2412a60bd4
Merge pull request #228 from Zephyrrus/begone_trailing_commas
Merge own dev branch into main dev branch
2020-12-24 21:41:24 +09:00
Zephyrrus 587f7d69e8 bug: fix showlist resetting itself every time the page is changed
bug: fix store not commiting search results
2020-12-24 13:57:09 +02:00
Zephyrrus d2efb2707c bug: Thumbs are stored as webp and not as png anymore 2020-12-24 13:20:11 +02:00
Zephyrrus 90001c2df5 chore: remove trailing commas 2020-12-24 10:40:50 +02:00
Zephyrrus 13825ddae6 chore: update lock files 2020-12-24 10:21:19 +02:00
Zephyrrus 4a3fef2b99 chore: update buefy to 0.9 2020-11-12 22:58:34 +02:00
Zephyrrus 151c360740 feat: allow administrators to create custom links for albums 2020-10-02 22:16:34 +03:00
Zephyrrus c88d08330f feat: add experimental query to sql generator for searching 2020-07-23 04:09:01 +03:00
Zephyrrus 39e9941ded feat: Add hiding to recommendations as a prop
fix: change some of the regexes to remove , and ; as separator support because the query parser doesn't understad them and I don't feel like dealing with all the edge cases introduces by it
2020-07-23 04:08:31 +03:00
Zephyrrus 279234a081 feat: add new search input
For now, it clones the autocomplete from buefy, untill a PR or resolution to the opened issue about not being able to manipulate how the suggestions are applied is found
2020-07-22 02:14:06 +03:00
Zephyrrus 01c04298b0 fix: add no-active class 2020-07-22 02:12:40 +03:00
Zephyrrus 1a4744de3c feat: show selected albums first when modal is first opened
fix: change the color of the dropdown for tags to match the base theme
chore: pass props into some of the components instead of fetching from store inside of components
2020-07-22 02:12:24 +03:00
Zephyrrus 78c6fa14e6 feat: add experimental search parser 2020-07-22 02:11:05 +03:00
Zephyrrus 93478a334b fix: make modal use full height on mobile 2020-07-21 15:45:28 +03:00
Zephyrrus 18bb451f79 feat: implement all-in-one file detail viewer, tag editor and album selection modal 2020-07-20 23:01:45 +03:00
Zephyrrus fe314a742f fix: return the edited/changed/delete entity from API 2020-07-20 22:40:31 +03:00
Zephyrrus 9de50b26f1 feat: add tag deletion from images 2020-07-20 22:40:00 +03:00
Zephyrrus c5b165b495 fix: join tags by the proper key 2020-07-20 21:43:23 +03:00
Zephyrrus 6fee07d9e1 fix: don't crash the server if a route fails to load 2020-07-20 21:29:06 +03:00
Zephyrrus 04660dbce1 feat: add single tag adding to file
fix: fix the batch tag adding to properly await for a response, and use the proper column while adding the tags
2020-07-20 21:28:46 +03:00
Pitu a891cbc1fc Enable deleting files with the API key 2020-07-20 09:17:13 +09:00
Zephyrrus 645b62b81d Merge branch 'dev' into dev-zephy 2020-07-19 22:35:59 +03:00
Zephyrrus c93ddb0900 feat: Start working on a new album/tags/image info modal 2020-07-19 22:27:11 +03:00
Zephyrrus b49017aafd chore: add custom class to inputs until fix is released on buefy's master 2020-07-19 22:26:55 +03:00
Pitu bf63bc5e2e Update setup script 2020-07-18 16:58:29 +09:00
Pitu 8e3c3841a4 Update database migration 2020-07-18 16:39:24 +09:00
Pitu 898a2dde78 Re-process thumbnails on migration 2020-07-18 05:50:59 +09:00
Pitu d644b21d43 Make thumbnails webp (bye bye safari) 2020-07-18 05:50:47 +09:00
Pitu 609ff7ceb4 Update displaying thumbnails of unsupported file types 2020-07-18 04:47:24 +09:00
Pitu 5e07436f0d Add logout button 2020-07-18 04:45:58 +09:00
Pitu 8ffa0ba075 Add endpoint with version of the API 2020-07-18 04:31:12 +09:00
Pitu b70a75da1a Fix for real 2020-07-18 03:37:52 +09:00
Pitu 6dd7500084 Fix deleting files without thumb 2020-07-18 03:35:08 +09:00
Pitu a057f26896 Fix url retrieval of uploaded file 2020-07-18 03:23:59 +09:00
Pitu 407fb8bcc3 Fix authorization 2020-07-18 03:05:12 +09:00
Pitu 5f58431409 Fix authorization 2020-07-18 02:57:24 +09:00
Pitu 4dafc79cb7 fix authorization 2020-07-18 02:55:05 +09:00
Pitu 2d06d918a1 Timeout, package and docs cleanup 2020-07-18 02:21:31 +09:00
Zephyrrus 0f66d80703 refactor: finish refactoring all the components to use vuex 2020-07-10 01:13:51 +03:00
Zephyrrus 7e78a03931 fix: stop leaking user passwords to admins AGAIN 2020-07-10 01:13:23 +03:00
Zephyrrus fd3f6de51a refactor: refactor most of the admin pages to use the store instead of internal states 2020-07-09 02:24:40 +03:00
Zephyrrus 5ded974ef9 feat: add lolisafe as a color to bulma instead of doing weird hacks 2020-07-09 02:23:19 +03:00
Zephyrrus 704578e964 feat: add handler for actions
Takes care of dispatching a 🍞 on success/error
2020-07-09 02:22:48 +03:00
Zephyrrus 746a454612 fix: stop leaking user's password and their apikey to admins 2020-07-09 02:22:08 +03:00
Zephyrrus 495a23c3a5 feat: add notifier plugin for 🐍 and 🍞 2020-07-09 02:21:35 +03:00
Zephyrrus 6713eca9d4 chore: add unique integrity checks to the database for many-to-many tables 2020-07-08 19:22:25 +03:00
Zephyrrus ad852de51a chore: linter the entire project using the new rules 2020-07-08 04:00:12 +03:00
Zephyrrus b519b6ccb4 refactor: refactor grid to use vuex for every action 2020-07-08 03:37:50 +03:00
Zephyrrus 49d3e3b203 feat: add morgan for logging requests if env is not production 2020-07-08 03:15:27 +03:00
Zephyrrus 1526637881 feat: add new sidebar with mdi icons and active reactivity 2020-07-08 03:15:07 +03:00
Zephyrrus 1a8b6602e0 refactor: change uploader component to use vuex 2020-07-08 03:13:51 +03:00
Zephyrrus eccbb1ca93 fix: errors in Util caused by separating into different classes improperly 2020-07-08 02:32:12 +03:00
Zephyrrus 5d61b4d000 feat: refactor waterfall to be more efficient 2020-07-07 02:50:03 +03:00
Zephyrrus fb0bc57542 feat: try fixing THE SHITTY WATERFALL 2020-07-07 02:02:59 +03:00
Zephyrrus 15f296a780 chore: eslint stores
feat: merge album and images
2020-07-07 02:02:37 +03:00
Zephyrrus 766e74cc51 feat: add video preview on hover to dashboard and apply new linter rules to some of the files 2020-07-05 04:18:08 +03:00
Zephyrrus 04fdd63cee feat: refactor single album page to use vuex 2020-07-05 04:17:09 +03:00
Zephyrrus 1e1f3fbb27 feat: experimental videos in grid 2020-07-04 23:18:51 +03:00
Zephyrrus b4603fd64e fix: fix axios plugin throwing if no message from backend 2020-07-04 03:53:06 +03:00
Zephyrrus 39ed9d336e feat: make the delete link button more reactive (loading state if deletion pending) 2020-07-04 03:52:40 +03:00
Zephyrrus ac1d6eec5b fix: change watcher from a component watcher to a store watcher 2020-07-04 03:28:05 +03:00
Zephyrrus 92be4504cc feat: refactor most of the album components to use store for presentation and actions 2020-07-04 03:26:35 +03:00
Zephyrrus 836a01327d chore: add nsfw flag to migration 2020-07-04 03:25:21 +03:00
Zephyrrus b620aa9815 feat: refactor some of the queries to returned added/updated data 2020-07-04 03:25:04 +03:00
Zephyrrus 7581d13d1c feat: separate album view into multiple components and use vuex 2020-07-03 00:35:09 +03:00
Zephyrrus 22f9eb4dff feat: refactor preview to support random fragment extraction 2020-07-02 23:42:44 +03:00
Zephyrrus c2dbbe6396 feat: refactor account to use vuex, fix small presentational components 2020-07-02 23:42:02 +03:00
Zephyrrus dd46f79550 feat: return APIKey when fetching user 2020-07-02 23:40:35 +03:00
Zephyrrus 24157dd1b9 feat: experimental video preview generator in webm form 2020-07-02 20:13:05 +03:00
Zephyrrus a790d7749e feat: add experimental meaningful preview extraction from videos
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.
2020-07-02 03:42:20 +03:00
Zephyrrus 42f1a1003a feat: externalize thumb generation function for easier testing 2020-07-02 03:12:12 +03:00
Zephyrrus 720ffaf008 feat: start refactoring the code to actually use vuex
This includes creating multiple stores as needed for components and removing all complex states from components (since all those states should be stored in vuex)
2020-07-02 02:50:55 +03:00
Zephyrrus 6688587eb6 feat: move toolbar into a level and add slot for pagination on grid 2020-07-02 02:48:21 +03:00
Zephyrrus e9ef148d74 feat: backend pagination for albums 2020-07-01 20:40:10 +03:00
Zephyrrus 261d0f4781 chore: add thumb generator for migration 2020-07-01 20:39:55 +03:00
Zephyrrus 44e8175e96 feat: use SSR when rendering the dashboard (if possible) 2020-07-01 20:39:42 +03:00
Zephyrrus 8416dc81a3 fix: use file id instead of index and remove load more button 2020-07-01 20:15:08 +03:00
Zephyrrus 3e1677c18a fix: remove .bmp from the imageExtensions because sharp doesn't support it
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)
2020-07-01 20:13:34 +03:00
Zephyrrus 520062508c feat: backend pagination
serverLoad++;
userRamUsage--;
2020-06-29 22:18:42 +03:00
Zephyrrus c8ad345d12 fix: heigh issues where the parent is smaller than the child 2020-06-29 22:18:18 +03:00
Zephyrrus 20a782fefe feat: add darker image for album section 2020-06-29 22:17:42 +03:00
Zephyrrus 7e4dbdbd2b misc: Change the color of the warning on the homepage to red and bigger font-size 2020-06-29 20:12:14 +03:00
Zephyrrus ac037c773e fix: Remove hero and hero body and use sections and containers instead
Hero is meant to be used as a full-width banner to showcare or present somethign, not to contain the entire content of the webpage
2020-06-29 20:02:47 +03:00
Zephyrrus 27b0fdafb2 misc: remove patreon. sorry. 2020-06-29 20:00:49 +03:00
Zephyrrus 50d233cd66 fix: fix minor visual issues on the album page 2020-06-29 17:02:06 +03:00
Zephyrrus 0a50ef771e fix: change navbar to buefy navbar for mobile support 2020-06-29 17:01:38 +03:00
Zephyrrus 048e5d9325 feat: add logout link if logged in 2020-06-29 16:03:08 +03:00
Zephyrrus 4df3976ded fix: dispatch logout from axios if token expires 2020-06-29 16:02:23 +03:00
Pitu 04319acf20 Only display `Show more` button when there's more to show 2020-06-25 02:14:11 +09:00
Pitu 207fc916d9 Handle nuxt routes on page load 2020-06-25 02:06:11 +09:00
Pitu d1340c26b5 Optimize album view 2020-06-25 02:06:00 +09:00
Pitu f189ddf9e6 Cleanup 2020-06-25 02:05:48 +09:00
Pitu a9fe08f9e5 Update error message 2020-06-25 01:36:04 +09:00
Pitu b526d88036 Optimize the queries fetching albums/files 2020-06-25 01:35:52 +09:00
Pitu b8fc0cc858 Fix frontend registration display 2020-05-11 01:15:46 +09:00
Pitu 496477ebda Feature: enable apiKey access to uploads and album fetching for the uploader/sharex/3rd party 2020-05-11 00:57:56 +09:00
Pitu b886fda079 chore: cleanup and todo 2020-05-11 00:19:10 +09:00
Pitu ec67bb8087 fix: remove uuid from user registration 2020-05-10 22:44:21 +09:00
Pitu 124ff68f06 Feat: implement lazy loading for waterfall view 2020-05-10 21:22:48 +09:00
Pitu b27b4c47f7 feat: Proper deleting of albums 2020-05-10 21:22:25 +09:00
Pitu 1836c8c93a Small fix for migration script, dont import deleted albums 2020-05-10 21:12:30 +09:00
Pitu 4c52932426 Features:
* Serve files during development
* Own endpoint for fetching the albums of a file
2020-05-10 20:02:48 +09:00
Pitu d4ac722f58 Feature: Migration script from v3 to v4 2020-05-10 20:01:37 +09:00
Pitu aadb01bcff Style changes to albums 2020-05-10 20:01:05 +09:00
Pitu 6da29eb7c1 Sort files by newest 2020-05-10 20:00:52 +09:00
Pitu 432d86022c chore: forgot to remove this uuid 2020-05-10 00:39:53 +09:00
Pitu de54e19d3a chore: remove the use of uuid 2020-05-10 00:03:45 +09:00
Pitu a639b85734 Fix: consistent hash of uploads 2020-05-09 23:56:35 +09:00
Pitu c114e59be3 Feature:
* Frontend is now served by the API process
* Only 1 process spawns for lolisafe to work
* Switched frontend from server-side render to static site, now saved in `/dist`
2020-05-09 19:21:20 +09:00
Pitu d63f1f57e9 wip:
* Dark theme by default
* Re-arranged vue files structure
* Re-arranged the layout file to make it easier to extend
2020-04-28 10:47:22 +09:00
Pitu bf37e04cb6 feature: footer 2020-04-13 01:17:03 +09:00
Pitu 759832cd78 chore: revamp colors 2020-04-13 01:16:54 +09:00
Pitu 05c129ec32 chore: remove filepond 2020-04-11 00:52:06 +09:00
Pitu 3fb303380e chore: make use of sass 2020-04-11 00:36:14 +09:00
Pitu a957713e81 chore: update deps 2020-04-10 23:40:22 +09:00
Pitu cba7bf8586 This commit adds a bunch of features for admins:
* banning IP
* see files from other users if you are admin
* be able to see details of an uploaded file and it's user
* improved display of thumbnails for non-image files
2019-10-13 02:53:45 +09:00
Pitu 4e4b4ea468 don't log out on API error 2019-10-12 22:59:56 +09:00
Pitu bca8fbcd83 refactor: removed useless code, cleaned up, fixed permissions 2019-10-12 21:14:19 +09:00
Pitu 5ca3c35381 Added new links to the navbar 2019-10-12 20:16:38 +09:00
Pitu 1177de9b04 fix: update sharex snippet 2019-10-12 20:16:23 +09:00
Pitu 43eb86c77f fix: we don't want non-admins to access the settings section 2019-10-12 20:16:10 +09:00
Pitu 2695d192ba feature: prevent duplicated files
- If the user uploads a file that already exists under their account, it will return the previous url
- If an anonymous user uploads a file and already exists previously from another anon, return that url
- Files are unique per account since they can be deleted, anonymous files can't
2019-10-12 18:18:32 +09:00
Pitu e6eb13e5cd feature: save uploaded files to album if specified 2019-10-12 17:52:49 +09:00
Pitu 391ee68e4a chore: Upgrade buefy to newest version 2019-10-12 15:47:25 +09:00
Pitu 459ab5433b chore: remove exif strip support.
After some thought, modifying uploaded files is not something I want to support.
2019-10-12 14:58:58 +09:00
Pitu dd9c9ac11f chore: wizard was a stupid name, it's setup 2019-10-12 14:57:31 +09:00
Pitu c121bd42f3 chore: upload fixes 2019-10-12 14:37:09 +09:00
Pitu 3680432bdf chore: prepare for filepond 2019-10-01 14:20:37 -03:00
Pitu 579e1e754a feature: uploader with chunks support 2019-10-01 14:11:16 -03:00
Pitu a552aca8ab chore: Remove unnecesary stuff 2019-10-01 14:08:43 -03:00
Pitu b1f56ef9b9 chore: hide search until it's ready 2019-09-30 07:26:15 +00:00
Pitu 4db167ec43 Fix deletion of albums and links 2019-09-30 07:24:37 +00:00
Pitu 0d36f0d69a feature: tags logic 2019-09-30 07:06:35 +00:00
Pitu 8e4f1b7838 feature: album links 2019-09-30 07:06:22 +00:00
Pitu ca9e1c859d Add parallel chunks and raise timeout 2019-04-30 16:01:38 +00:00
Pitu b5a04f21f9 Fix color 2019-04-24 11:14:43 +00:00
Pitu c074b5e197 Fix database value conversion 2019-04-24 09:28:30 +00:00
Pitu fec273b23b Fix when response is not an object 2019-04-24 08:41:49 +00:00
Pitu ac36cdc143 Standarize database calls to support sqlite as well as mysql/postgres 2019-04-24 08:38:53 +00:00