Commit Graph

173 Commits

Author SHA1 Message Date
5ae52f59fc Merge pull request #47 from KevinMidboe/feature/lazy-loading-images
Lazy loading for list items.
2020-01-31 22:18:42 +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
d4369ec7a4 JwtToken decoded to set data from jwt contents.
JwtDecode used to read data from the jwt token and set admin and
username. Resolves issue #45.
2020-01-10 23:29:34 +01:00
f2a65d755c Show info also appends check_existance to url. 2019-12-27 23:39:35 +01:00
1fd48edd42 Set default adult value to true. 2019-12-27 23:31:20 +01:00
68e45303c6 Filtering for search in autocomplete dropdown.
- Accessibility
 - Tabindex updated for search <input> to have priority over nav items.
 - Aria label
- Search icon clickable for searching.
- Filter for adult and searchType.
- When clicking a autocomplete search result, the clicked item is set as
selectedResult.
- Remove duplicates from elastic search result.
- Added filter parameters to our $router.push function.
2019-12-27 22:18:45 +01:00
bc73665b12 Elem text wrapped <li> and active icon ref fixed.
Supplementary and content text are now wrapped in a <li> item. This with
better styling selectors formats the icon correctly alongside the text.
Fixed active icon ref function that had an incorrect if statement so the
activeIconRef would never be returned.
2019-12-26 12:46:57 +01:00
9edb19569a Change to have height to min-height: 75px 2019-12-26 12:21:43 +01:00
7802a89d15 New toggle release filter and fixed expand torrent
Use the toggleButton for filtering release types in torrent response.
There is a click to expand the full name of the torrent. This is mostly
for mobile where the name is hidden. Fixed an issue where the expanded
list element would not get the correct styling and break the table in
half. Now we also set an data attribute for the expanded element. This
allows our scoped styling to reach the expanded element.
Also increased padding on expanded content.
2019-12-26 12:04:17 +01:00
915260f41b Admin var checks localstorage for admin == "true". 2019-12-26 12:01:26 +01:00
582207d453 Error msg on empty response & added search params
- On empty search responses Search page show a error message that there
where no respones.
- For page loads directly to the search page new url query parameters
are checked: adult and media_type. These are then used to fetch updated
tmdb search parameters. Adult = true disables filtering for adult
material and media_type decides if the search is multi, movie, show or
person. (Frontend for filtering media_type is not added yet.)
2019-12-26 01:37:29 +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
14e883672d Higher z-index & checks for browser compatibility.
- Increased the z-index of the darkmode toggle emoji icon.
- supported function for checking the browser for prefered color scheme.
This is mainly to set the current mode to dark if the color scheme is
currently dark.
2019-12-26 01:32:20 +01:00
7a405140db Loading var for loader start and more header info.
New loading var for holding the state of the request. This makes it
easier to show the loading and an error if the result is empty but the
request is finished.
More header info! The header now displays list elements of info in a
column on the right side of header. Used here for result and page
current and total count.
2019-12-26 01:26:46 +01:00
a301d21cc2 Merge branch 'feature/user-graphs' into refactor 2019-12-26 01:14:34 +01:00
a2a4b9a553 getPerson endpoint and is called properly when movie.vue opens with type 'person'. 2019-12-26 01:08:19 +01:00
45f45559fd Day number input has defined background and text color. 2019-12-26 00:35:46 +01:00
1c7a688cb8 Moved fetch call for getting charts to api.js 2019-12-26 00:28:33 +01:00
cc2fded193 Removed unnessesary filename declaratiom 2019-12-26 00:10:03 +01:00
ca85635b03 Settings with new feature to autnhenticate plex account with your season account. Also moved settings to computed value of new user store module. 2019-12-26 00:06:56 +01: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
6bba319735 Formatting 2019-12-24 13:14:10 +01:00
dcce972fdc New togglebutton component for selection data types for the graphs in activitypage. 2019-12-24 13:14:00 +01:00
32e25fb983 Accounts with linked plex accounts can view their watch history per day by duration on number of plays. Have two graphs and adding more requires a new canvas element and new list element in this.charts. 2019-12-24 13:08:57 +01:00
d0a251f69a Moved register and login requests to api.js. 2019-11-25 23:25:08 +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
bcfce66ec0 Matched is set to false if exists_in_plex is undefined (not a part of
the response body).
nesteDataToString is simplified in the way it parses its input data.
getMovie uses optional second parameter check_existance to check if the
file exists in plex.
2019-11-25 23:03:22 +01:00
ba670d06aa Added charjs and fetch user activity to graph from new user/activity endpoint. This fetches tautulli stats based on the plex user_id linked with the seasoned account. 2019-11-05 01:08:38 +01:00
b46e586c92 Resize the content for seasoned messages and the settings wrapper to look better on mobile 2019-10-30 23:45:48 +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
70a6ed189b When navigating up in the autocomplete search result list the cursor usually reset back to the start of the input. Now we get the element and use focus and setSelectionRange to move the cursor back to the end at the very next frame. 2019-10-30 21:55:39 +01:00
1c0799a30a Also check the items source for name or title to find out if the response item came from movie or show index 2019-10-23 00:49:38 +02:00
4a44924f56 Updated webpack to resolve common file extensions 2019-10-23 00:38:36 +02:00
4a32fe5255 SeasonedInput can now be initialized with a value 2019-10-23 00:33:00 +02:00
8b9b2be891 Sortable class function for finding out which header should get a class showing that the column is selected 2019-10-23 00:32:42 +02:00
96321831d1 0 is computed as False, allow 0 just not undefined or null 2019-10-23 00:31:49 +02:00
39cd5ce04a Re-wrote most all api calls to use fetch over axios. There is still a problem with form authentication with plex. The response we get does not seem to be a json object. Updated what is expected to return from altered api methods in each component that uses them 2019-10-23 00:30:37 +02:00
4a46bbd2be Movie now uses the new documentTitle module to set when loading movie and when popover dismissed we set it to the previous documenTitle. Created a getter for documentTitle. This makes it easier to only get the title variable and not try save and parse the document title with all the extra prefixes 2019-10-22 23:34:54 +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
1a014bea15 Added some fresh new todos 2019-10-22 23:19:24 +02:00
6d6f1ffd06 Updated seasonedinput to also handle two-way binded value prop. This changes is reflected most all places that seaoned-input is used
. Fuck, also added the new ResultsList which replaces MoviesList
2019-10-22 23:18:24 +02:00
4528b240e1 Popover now also removes its eventlistener on close 2019-10-22 23:08:03 +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
9bb98ce569 Removed unused script element and updated positioning of text to center, even on mobile. 2019-10-22 22:53:51 +02:00
0fdaf5bd4e Cleaned up 404 page. Removed elements and property set the height of background 2019-10-22 18:47:25 +02:00
931918c60b Movie title also gets a loading placeholder before we get a respons. (Loadingplaceholder are grey pulsing bars that indicate where content is going to load) 2019-10-21 19:50:13 +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
031127fb1f Merge branch 'release/v2' of github.com:KevinMidboe/seasoned into release/v2 2019-10-21 00:15:59 +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