-
Notifications
You must be signed in to change notification settings - Fork 953
Details | Discover: Implement mark as watched button #1060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
higorgoulart
wants to merge
14
commits into
Stremio:development
Choose a base branch
from
higorgoulart:feat/989/watched-on-discover-and-details
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6833bb7
feat: watched on discover & details
higorgoulart 852f478
feat: change trailer order & fix discover mark as watched
higorgoulart 3b2d1f3
feat: icons group component
higorgoulart ff08e37
feat: remove unused component & fix spacing
higorgoulart 987201e
feat: review facts
higorgoulart 373ccf3
feat: review facts
higorgoulart 97c3b7d
feat: rename component & fix style
higorgoulart 67f4f34
feat: remove add to library
higorgoulart 9ccc6b8
feat: change metaDetails action
higorgoulart c702111
feat: review facts
higorgoulart a9d9c8d
feat: load model
higorgoulart f73fa59
refactor(Discover): simplify
kKaskak 6bf3b81
refactor(ActionsGroup): simplify
kKaskak 71e0bb4
chore: update copyright
kKaskak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // Copyright (C) 2017-2023 Smart code 203358507 | ||
|
|
||
| import classNames from 'classnames'; | ||
| import React from 'react'; | ||
| import Icon from '@stremio/stremio-icons/react'; | ||
| import styles from './ActionsGroup.less'; | ||
| import { Tooltip } from 'stremio/common/Tooltips'; | ||
|
|
||
| type Item = { | ||
| icon: string; | ||
| label?: string; | ||
| filled?: string; | ||
| disabled?: boolean; | ||
| className?: string; | ||
| onClick?: () => void; | ||
| }; | ||
|
|
||
| type Props = { | ||
| items: Item[]; | ||
| className?: string; | ||
| }; | ||
|
|
||
| const ActionsGroup = ({ items, className }: Props) => { | ||
| return ( | ||
| <div className={classNames(styles['group-container'], className)}> | ||
| {items.map((item, index) => ( | ||
| <div key={index} | ||
| className={classNames(styles['icon-container'], item.className, { [styles['disabled']]: item.disabled })} | ||
| onClick={item.onClick} | ||
| > | ||
| {item.label && <Tooltip label={item.label} position={'top'} />} | ||
| <Icon name={item.icon} className={styles['icon']} /> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default ActionsGroup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // Copyright (C) 2017-2023 Smart code 203358507 | ||
|
|
||
| import ActionsGroup from './ActionsGroup'; | ||
|
|
||
| export { ActionsGroup }; | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.