Commit Graph

18 Commits

Author SHA1 Message Date
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
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
2ab1609bd9 Profile has both activity and settings inline 2022-01-10 00:51:14 +01:00
b6ee1cf906 Profile replaces route with query settings=true when enabled. 2020-04-09 23:00:50 +02:00
32257dc64e Info can now also be Array and will display the list elements in a column. Also made hader sticky and decreased some margin and increased the font. 2019-12-24 13:23:22 +01:00
4a44924f56 Updated webpack to resolve common file extensions 2019-10-23 00:38:36 +02:00
f45dcc560c Removed A LOT of the functionality in MoviesList and replaced it with the ResultsList component. Now loading of search results, lists (either directly by query or link) and users requests from profile are all separated out to their own page component; Search.vue, ListPage.vue and Profile.vue respectivly. With the change Home has been completly redone to use this new funcionality 2019-10-22 23:24:08 +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
cde119592d Redid the template for profile, regist and siginin to better use the
components we have made and to use update function definition.
Changed the message system with SeasonedMessages. This means simpler
interaction and less duplicate code now that the messagesystem is a
separate component that both interface with.
2019-10-21 00:25:01 +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
3e92fbc626 Cleaned up imports 2019-06-04 22:37:02 +02:00
7f38f7f0cd Renamed seasonedAPI to api.js 2019-06-04 22:34:05 +02:00
1b6a494cc0 Profile page uses new movies-list parameters and seasonedApi updated to handle authentication tokens. TODO move away auth token from getLists function 2019-06-04 21:46:03 +02:00
fd405250a5 Changed settings buttons from being manually setup to use the seasonedButton compnent. Scoped styling 2019-06-04 20:12:25 +02:00
a306664bd7 Removed manual axios call for emojis. Now use the seasonedApi controller function getEmoji 2019-06-04 20:10:24 +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