Commit Graph

8 Commits

Author SHA1 Message Date
25dd8bea9e Updated and removed unused packages 2022-03-05 13:06:38 +01:00
b021882013 Refactored user store & moved popup logic from App to store
Cleaned up bits of all the components that use these stores.

User store now focuses around keeping track of the authorization token
and the response from /login. When a sucessfull login request is made we
save our new token and username & admin data to the with login(). Since
cookies aren't implemented yet we keep track of the auth_token to make
authroized requests back to the api later.
The username and admin data from within the body of the token is saved
and only cleared on logout().
Since we haven't implemented cookies we persist storage with
localStorage. Whenever we successfully decode and save a token body we
also save the token to localStorage. This is later used by
initFromLocalStorage() to hydrate the store on first page load.

Popup module is for opening and closing the popup, and now moved away
from a inline plugin in App entry. Now handles loading from &
updating query parameters type=movie | show.
The route listens checks if open every navigation and closes popup if it
is.
2022-01-13 00:14:36 +01:00
585fa5afcf Added vuex module for setting if darkmode is supported in users browser 2019-10-05 18:02:16 +02:00
a6f72c8f6b Implemented store to allow torrentSearch to tell our sidebar action buttons how many results we got 2019-10-04 00:20:03 +02:00
9739e0e00a Import new toast plugin to main. No longer inject axios, this was throwing an error 2019-06-02 00:21:23 +02:00
8c38f82dbe Added filtering of requested movies. Also change the order of movies in sidebar and added support for rating of movie. Change path destinations to be more clear. 2018-07-25 17:53:01 +02:00
aa9bfa12d9 Re-wrote to support my api for requesting new movies. 2018-03-20 21:50:39 +01:00
Dmytro Barylo
ac6d57b46f version 1.0 2017-03-04 16:46:53 +02:00