Commit Graph

18 Commits

Author SHA1 Message Date
a9c06a6aaf Try improve history navigation by pushing popup changes 2022-03-06 23:56:39 +01:00
5dd3509466 If id is string convert to number 2022-03-04 18:41:41 +01:00
a0810fbee1 Linting 2022-03-04 18:34:48 +01:00
95ad74a1b5 Authorization is now a cookie so removed localStorage code
Update some structure in how we request and save settings. Updated
Settings & Profile to reflect these changes.
2022-03-04 18:20:50 +01:00
18a0acfe19 Popup now handles person. Updated all dependencies. 2022-01-28 20:03:02 +01:00
9f3745b71c Moved hamburger logic to store & auto hide on route change 2022-01-14 17:02:00 +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
fc0103ee5d Change the document title prefix from request to seasoned 2020-02-25 12:12:07 +01:00
55067b81b8 Merge branch 'master' of github.com:KevinMidboe/seasoned 2020-02-25 12:09:45 +01:00
dfe2b5df09 Removed default emoji prefix of document title. 2020-02-25 12:09:13 +01:00
dc0c435163 If settings dont exist, return false for isAuthenticated. 2020-02-21 23:03:31 +01:00
9d1ac56b9a Also check localstorage for settings if not found in state. 2020-02-21 22:58:49 +01:00
3becce2a6c Moved isPlexAuthenticated from movie component to userModule. 2020-02-20 14:08:46 +01:00
f32e0a8ab0 Store user module for users settings and username. 2019-12-26 00:09:02 +01:00
3910b5d7b2 Forgot to add getter defined for documentTitle store module 2019-10-23 00:33:32 +02:00
001c243f95 New store module for setting the document title. Each route changes the document title to its name 2019-10-22 22:52:24 +02: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