Commit Graph

31 Commits

Author SHA1 Message Date
d658d90d18 Fade poster in with a before element with background -> transparent
Fixes issue where mobile had some image flickering
2022-03-06 23:26:15 +01:00
bf44668a12 Replaced no-image with svg 2022-03-05 12:50:45 +01:00
04c9e019d3 Linting 2022-03-05 08:59:35 +01:00
d24a318de8 Updated all scss imports to be relative from src alias
Alias defined in webpack.config.js
2022-03-05 08:46:18 +01:00
7449650b64 Shortlist moved to resultsSection & sizing for item not that have grid 2022-03-04 18:36:59 +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
6615827b29 Re-did list components 2022-01-10 00:48:15 +01:00
d640f7f882 Removed /dist prefix from all image paths 2022-01-03 20:29:03 +01:00
38c3792675 Add 'is-loaded' class after image intersects viewport 2022-01-03 17:50:12 +01:00
ac2785abd5 Increased opacity delay 2022-01-03 17:49:35 +01:00
1ff6a0e831 Linting 2022-01-03 17:49:22 +01:00
20380a4587 Merge branch 'master' into refactor/image-loading 2020-02-20 00:21:43 +01:00
2f430b2d8f Cleaned up some of the styling for movieslistitem. 2020-02-19 23:54:20 +01:00
f7a579a438 IntersecrionObserver checks ref intersection when mounted. 2020-02-19 23:53:51 +01:00
b9ddd998bc When type person show known for department. 2020-02-19 23:52:25 +01:00
ae59d02df2 Poster image dom simplified. 2020-02-19 23:52:03 +01:00
1caa3c7fae Removed unsued comments and added alt tag to images 2020-01-31 22:27:45 +01:00
a7e6d25d3f Lazy loading for list items.
This is somewhat inefficient because each list item has its own instance
of a intersectionObserver.
Improvements include:
- Poster has placeholder image as source from mount
- When component mounts we attach the observer
- When observerd in viewport find
  - Find the correct image height based on the placeholders height
  - Change src to dynamic poster url
2020-01-31 22:14:13 +01:00
b1b08bfa04 Movielist item shows the title and now name for cases where the result item is a person. 2019-12-26 01:35:56 +01:00
9bc7f29162 Decreased the padding around movie list items on large screens to let the grow a bit larger. 2019-11-25 23:12:36 +01:00
3ff963f007 Implemented download activity overlay on movielistitems if progress movie object key exists. 2019-11-25 23:11:59 +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
0a458bfe21 Formatting and added a todo for better image handling 2019-06-04 21:43:17 +02:00
fcc56bf103 Adjusted the number of elements displayed for differing screen widths through css. Now uses the new movie popover vue prototype variables instead of an attached eventhub 2019-06-03 23:08:58 +02:00
5ff25889e4 Stricter href to /# path 2018-08-12 23:22:16 +02:00
aa9bfa12d9 Re-wrote to support my api for requesting new movies. 2018-03-20 21:50:39 +01:00
Dmytro Barylo
caf5f865eb Poster preview src fix 2017-03-05 14:34:37 +02:00
Dmytro Barylo
ac6d57b46f version 1.0 2017-03-04 16:46:53 +02:00