feat(search): separate adult remote content on search

This commit is contained in:
Alexey Kasyanchuk 2018-04-26 10:06:14 +03:00
parent 1465dc9677
commit 81bd30c8a3

View File

@ -242,7 +242,7 @@ export default class Torrent extends Component {
node.onclick = () => { return false } node.onclick = () => { return false }
}}> }}>
<span className='break-word' style={{ <span className='break-word' style={{
color: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : 'grey' color: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : (torrent.peer ? '#9083e2' : 'grey')
}}> }}>
{torrent.name} {torrent.name}
</span> </span>
@ -255,7 +255,7 @@ export default class Torrent extends Component {
}}> }}>
<div className='column' style={{height: 'auto', whiteSpace: 'normal', paddingTop: '0.30em'}}> <div className='column' style={{height: 'auto', whiteSpace: 'normal', paddingTop: '0.30em'}}>
<div className='row w100p inline'> <div className='row w100p inline'>
<div style={{color: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5252d1' : 'black') : 'grey'}}> <div style={{color: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5252d1' : 'black') : (torrent.peer ? '#9083e2' : 'grey')}}>
{ {
formatBytes(torrent.size, 1) + ' (' + torrent.files + ' files)' formatBytes(torrent.size, 1) + ' (' + torrent.files + ' files)'
} }
@ -293,7 +293,7 @@ export default class Torrent extends Component {
</div> </div>
</a> </a>
} }
leftIcon={contentIcon(torrent.contentType, torrent.contentCategory, torrent.contentCategory != 'xxx' ? (torrent.peer ? '#6f5ee0' : 'grey') : '#d3d3d3')} leftIcon={contentIcon(torrent.contentType, torrent.contentCategory, torrent.contentCategory != 'xxx' ? (torrent.peer ? '#6f5ee0' : 'grey') : (torrent.peer ? '#9083e2' : '#d3d3d3'))}
rightIcon={ rightIcon={
<div className='row inline' style={{width: 63}}> <div className='row inline' style={{width: 63}}>
{ {
@ -303,7 +303,7 @@ export default class Torrent extends Component {
<svg style={{ <svg style={{
height: '24px', height: '24px',
marginRight: 12, marginRight: 12,
fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : 'grey' fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : (torrent.peer ? '#9083e2' : 'grey')
}} onClick={(e) => { }} onClick={(e) => {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
@ -340,7 +340,7 @@ export default class Torrent extends Component {
<a href={`magnet:?xt=urn:btih:${torrent.hash}`}> <a href={`magnet:?xt=urn:btih:${torrent.hash}`}>
<svg style={{ <svg style={{
height: '24px', height: '24px',
fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : 'grey' fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : (torrent.peer ? '#9083e2' : 'grey')
}} onClick={(e) => { }} onClick={(e) => {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
@ -352,7 +352,7 @@ export default class Torrent extends Component {
<a style={{float: 'right'}} href={`magnet:?xt=urn:btih:${torrent.hash}`}> <a style={{float: 'right'}} href={`magnet:?xt=urn:btih:${torrent.hash}`}>
<svg style={{ <svg style={{
height: '24px', height: '24px',
fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : 'grey' fill: torrent.contentCategory != 'xxx' ? (torrent.peer ? '#5643db' : 'black') : (torrent.peer ? '#9083e2' : 'grey')
}} onClick={(e) => { }} onClick={(e) => {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();