Commit Graph

279 Commits

Author SHA1 Message Date
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