Commit Graph

17 Commits

Author SHA1 Message Date
86efb04eb8 Moved App.vue entry component styles to main.scss 2022-03-04 18:12:15 +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
97c23fa895 Re implemented header navigation 2022-01-10 00:46:26 +01:00
98644513ad When movie popup opens we add a no-scroll class to the body element. This prevents scrolling the content behind the popover content. 2019-10-30 22:11:09 +01:00
4a44924f56 Updated webpack to resolve common file extensions 2019-10-23 00:38:36 +02:00
1a014bea15 Added some fresh new todos 2019-10-22 23:19:24 +02:00
c454d9c9e0 Misc cleanup, more definitions of color with scss variables and added a lot of color transitions for when switching theme color. 2019-10-22 23:07:21 +02:00
fa50dd3455 Finished dark mode! This means re-doing all sass variables in the
variables.scss file and defining css variables in :root and alterting
them based on prefered color scheme. This gives us a mechanism to set
custom color schemes for the entire site from one place and changing
between them just by setting a class to the body element. This is done
by overwriting the css variables and then our scss variables use these
changes and apply them downward. This seems like a really nice setup for
the switching between- and adding color schemes.
Also did a lot of cleanup of unused, duplicate or errors styling
throughout the application.
2019-10-21 00:13:21 +02:00
49c418c3f1 Toggle for manually setting dark or light mode 2019-10-20 23:19:19 +02:00
b637cb3e08 Completly new search input with elastic realtime search. Handles keyboard inputs and autohides to not be in the way 2019-06-04 22:50:09 +02:00
c3d7642e26 Now root template only contains elements that exist for every page; navigation, search and popover along with the router view. Removed most all the logic except for prototype functions/variable attached to the vue instance and controlls the state of moviepopup given a id and type. 2019-06-04 22:14:53 +02:00
ec5b74984d Movie popup is now a prototype on the vue instance. Initialized in App and accessible on this.$popup 2019-06-03 23:27:07 +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
9c4df0a645 Mobile nav hamburger 2017-03-04 21:56:37 +02:00
Dmytro Barylo
ebb4d19d30 404 fix 2017-03-04 21:06:01 +02:00
Dmytro Barylo
ac6d57b46f version 1.0 2017-03-04 16:46:53 +02:00