eslint
This commit is contained in:
parent
e552b491a8
commit
356db94dff
@ -47,15 +47,15 @@ export default class ConfigPage extends Page {
|
|||||||
}} />
|
}} />
|
||||||
<Tab value='main' label={__("Main settings")} icon={<SvgIcon viewBox="0 0 264.725 264.725">
|
<Tab value='main' label={__("Main settings")} icon={<SvgIcon viewBox="0 0 264.725 264.725">
|
||||||
<path d="M220.195,71.427c-0.589-7.654-9.135-15.619-17.979-16.209c-8.844-0.584-17.398,0.301-12.087,6.483
|
<path d="M220.195,71.427c-0.589-7.654-9.135-15.619-17.979-16.209c-8.844-0.584-17.398,0.301-12.087,6.483
|
||||||
c5.308,6.188,7.074,12.091,4.423,11.212c-2.66-0.896-13.267-7.08-45.104-2.066c-4.126,1.17-21.221-12.682-44.513-12.977
|
c5.308,6.188,7.074,12.091,4.423,11.212c-2.66-0.896-13.267-7.08-45.104-2.066c-4.126,1.17-21.221-12.682-44.513-12.977
|
||||||
c-23.283-0.295-40.381,6.346-64.85,72.296c-2.356,5.828-18.866,19.386-27.71,25.865C3.536,162.529,0.007,169.787,0,182.763
|
c-23.283-0.295-40.381,6.346-64.85,72.296c-2.356,5.828-18.866,19.386-27.71,25.865C3.536,162.529,0.007,169.787,0,182.763
|
||||||
c-0.018,18.158,25.934,27.187,81.648,26.889c55.715-0.292,85.195-9.388,85.195-9.388c-62.789,6.773-158.907,10.52-158.907-18.687
|
c-0.018,18.158,25.934,27.187,81.648,26.889c55.715-0.292,85.195-9.388,85.195-9.388c-62.789,6.773-158.907,10.52-158.907-18.687
|
||||||
c0-20.641,28.321-28.47,36.281-28.184c7.958,0.3,13.562,12.673,33.307,5.603c3.247-0.295,1.48,4.423-1.18,7.369
|
c0-20.641,28.321-28.47,36.281-28.184c7.958,0.3,13.562,12.673,33.307,5.603c3.247-0.295,1.48,4.423-1.18,7.369
|
||||||
c-2.651,2.942-0.586,6.487,9.73,6.487c10.315,0,41.183,0.295,47.707,0c6.531-0.299,11.839-11.792-9.384-12.68
|
c-2.651,2.942-0.586,6.487,9.73,6.487c10.315,0,41.183,0.295,47.707,0c6.531-0.299,11.839-11.792-9.384-12.68
|
||||||
c-18.548,0.311,12.023-5.773,15.915-21.813c0.709-3.927,8.84-4.139,15.918-4.119c20.777,0.029,34.485,38.193,38.912,38.338
|
c-18.548,0.311,12.023-5.773,15.915-21.813c0.709-3.927,8.84-4.139,15.918-4.119c20.777,0.029,34.485,38.193,38.912,38.338
|
||||||
c4.416,0.15,17.979,1.621,17.683-4.273c-0.292-5.897-11.491-3.241-13.854-6.487c-2.359-3.234-10.023-15.504-7.366-21.104
|
c4.416,0.15,17.979,1.621,17.683-4.273c-0.292-5.897-11.491-3.241-13.854-6.487c-2.359-3.234-10.023-15.504-7.366-21.104
|
||||||
c2.65-5.59,12.674-21.229,24.463-22.988c11.789-1.777,42.451,7.361,47.459,0c5.012-7.372-6.783-11.512-15.918-28.611
|
c2.65-5.59,12.674-21.229,24.463-22.988c11.789-1.777,42.451,7.361,47.459,0c5.012-7.372-6.783-11.512-15.918-28.611
|
||||||
C243.779,80.572,238.768,71.728,220.195,71.427z"/>
|
C243.779,80.572,238.768,71.728,220.195,71.427z"/>
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
}>
|
}>
|
||||||
<div className='column center w100p pad0-75'>
|
<div className='column center w100p pad0-75'>
|
||||||
@ -209,24 +209,24 @@ export default class ConfigPage extends Page {
|
|||||||
</div>
|
</div>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab value='p2p' label={__("P2P settings")} icon={<SvgIcon viewBox="0 0 47 47">
|
<Tab value='p2p' label={__("P2P settings")} icon={<SvgIcon viewBox="0 0 47 47">
|
||||||
<g>
|
<g>
|
||||||
<path d="M17.567,15.938l-2.859-2.702c0.333-0.605,0.539-1.29,0.539-2.029c0-2.342-1.897-4.239-4.24-4.239
|
<path d="M17.567,15.938l-2.859-2.702c0.333-0.605,0.539-1.29,0.539-2.029c0-2.342-1.897-4.239-4.24-4.239
|
||||||
c-2.343,0-4.243,1.896-4.243,4.239c0,2.343,1.9,4.241,4.243,4.241c0.826,0,1.59-0.246,2.242-0.654l2.855,2.699
|
c-2.343,0-4.243,1.896-4.243,4.239c0,2.343,1.9,4.241,4.243,4.241c0.826,0,1.59-0.246,2.242-0.654l2.855,2.699
|
||||||
C16.536,16.922,17.023,16.399,17.567,15.938z"/>
|
C16.536,16.922,17.023,16.399,17.567,15.938z"/>
|
||||||
<path d="M29.66,15.6l3.799-6.393c0.374,0.107,0.762,0.184,1.169,0.184c2.347,0,4.244-1.898,4.244-4.241
|
<path d="M29.66,15.6l3.799-6.393c0.374,0.107,0.762,0.184,1.169,0.184c2.347,0,4.244-1.898,4.244-4.241
|
||||||
c0-2.342-1.897-4.239-4.244-4.239c-2.343,0-4.239,1.896-4.239,4.239c0,1.163,0.469,2.214,1.227,2.981l-3.787,6.375
|
c0-2.342-1.897-4.239-4.244-4.239c-2.343,0-4.239,1.896-4.239,4.239c0,1.163,0.469,2.214,1.227,2.981l-3.787,6.375
|
||||||
C28.48,14.801,29.094,15.169,29.66,15.6z"/>
|
C28.48,14.801,29.094,15.169,29.66,15.6z"/>
|
||||||
<path d="M42.762,20.952c-1.824,0-3.369,1.159-3.968,2.775l-5.278-0.521c0,0.04,0.006,0.078,0.006,0.117
|
<path d="M42.762,20.952c-1.824,0-3.369,1.159-3.968,2.775l-5.278-0.521c0,0.04,0.006,0.078,0.006,0.117
|
||||||
c0,0.688-0.076,1.36-0.213,2.009l5.276,0.521c0.319,2.024,2.062,3.576,4.177,3.576c2.342,0,4.238-1.896,4.238-4.238
|
c0,0.688-0.076,1.36-0.213,2.009l5.276,0.521c0.319,2.024,2.062,3.576,4.177,3.576c2.342,0,4.238-1.896,4.238-4.238
|
||||||
C47,22.85,45.104,20.952,42.762,20.952z"/>
|
C47,22.85,45.104,20.952,42.762,20.952z"/>
|
||||||
<path d="M28.197,37.624l-1.18-5.156c-0.666,0.232-1.359,0.398-2.082,0.481l1.182,5.157c-1.355,0.709-2.29,2.11-2.29,3.746
|
<path d="M28.197,37.624l-1.18-5.156c-0.666,0.232-1.359,0.398-2.082,0.481l1.182,5.157c-1.355,0.709-2.29,2.11-2.29,3.746
|
||||||
c0,2.342,1.896,4.237,4.243,4.237c2.342,0,4.238-1.896,4.238-4.237C32.311,39.553,30.479,37.692,28.197,37.624z"/>
|
c0,2.342,1.896,4.237,4.243,4.237c2.342,0,4.238-1.896,4.238-4.237C32.311,39.553,30.479,37.692,28.197,37.624z"/>
|
||||||
<path d="M14.357,25.37l-6.57,2.201c-0.758-1.158-2.063-1.926-3.548-1.926C1.896,25.645,0,27.542,0,29.884
|
<path d="M14.357,25.37l-6.57,2.201c-0.758-1.158-2.063-1.926-3.548-1.926C1.896,25.645,0,27.542,0,29.884
|
||||||
c0,2.345,1.896,4.242,4.239,4.242c2.341,0,4.242-1.897,4.242-4.242c0-0.098-0.021-0.188-0.029-0.284l6.591-2.207
|
c0,2.345,1.896,4.242,4.239,4.242c2.341,0,4.242-1.897,4.242-4.242c0-0.098-0.021-0.188-0.029-0.284l6.591-2.207
|
||||||
C14.746,26.752,14.51,26.077,14.357,25.37z"/>
|
C14.746,26.752,14.51,26.077,14.357,25.37z"/>
|
||||||
<circle cx="23.83" cy="23.323" r="7.271"/>
|
<circle cx="23.83" cy="23.323" r="7.271"/>
|
||||||
</g>
|
</g>
|
||||||
</SvgIcon>}>
|
</SvgIcon>}>
|
||||||
<div className='column center w100p pad0-75'>
|
<div className='column center w100p pad0-75'>
|
||||||
|
|
||||||
<div style={{marginTop: 10}}>{__('P2P Rats network settings')}:</div>
|
<div style={{marginTop: 10}}>{__('P2P Rats network settings')}:</div>
|
||||||
@ -301,67 +301,67 @@ export default class ConfigPage extends Page {
|
|||||||
</Tab>
|
</Tab>
|
||||||
<Tab value='performance' label={__("Performance settings")} icon={
|
<Tab value='performance' label={__("Performance settings")} icon={
|
||||||
<SvgIcon viewBox="0 0 477.578 477.578">
|
<SvgIcon viewBox="0 0 477.578 477.578">
|
||||||
<g>
|
|
||||||
<g>
|
<g>
|
||||||
<path d="M471.743,207.281l-28.773-8.078c-1.842-9.613-4.367-19.082-7.555-28.336l20.82-21.32c2.292-2.351,2.914-5.864,1.57-8.86
|
<g>
|
||||||
c-6.727-14.998-14.976-29.266-24.618-42.578c-1.918-2.668-5.28-3.882-8.461-3.055l-28.859,7.391
|
<path d="M471.743,207.281l-28.773-8.078c-1.842-9.613-4.367-19.082-7.555-28.336l20.82-21.32c2.292-2.351,2.914-5.864,1.57-8.86
|
||||||
c-6.416-7.385-13.342-14.31-20.726-20.726l7.391-28.859c0.813-3.18-0.398-6.534-3.055-8.461
|
c-6.727-14.998-14.976-29.266-24.618-42.578c-1.918-2.668-5.28-3.882-8.461-3.055l-28.859,7.391
|
||||||
c-13.312-9.645-27.579-17.897-42.578-24.625c-2.994-1.357-6.514-0.733-8.859,1.57l-21.32,20.82
|
c-6.416-7.385-13.342-14.31-20.726-20.726l7.391-28.859c0.813-3.18-0.398-6.534-3.055-8.461
|
||||||
c-9.257-3.187-18.729-5.712-28.344-7.555l-8.079-28.773c-0.969-3.452-4.117-5.837-7.703-5.836h-47.609
|
c-13.312-9.645-27.579-17.897-42.578-24.625c-2.994-1.357-6.514-0.733-8.859,1.57l-21.32,20.82
|
||||||
c-3.586-0.001-6.734,2.384-7.703,5.836l-8.078,28.773c-9.613,1.842-19.082,4.367-28.336,7.555l-21.32-20.82
|
c-9.257-3.187-18.729-5.712-28.344-7.555l-8.079-28.773c-0.969-3.452-4.117-5.837-7.703-5.836h-47.609
|
||||||
c-2.346-2.302-5.865-2.926-8.859-1.57c-14.999,6.726-29.267,14.975-42.579,24.617c-2.657,1.927-3.868,5.281-3.055,8.461
|
c-3.586-0.001-6.734,2.384-7.703,5.836l-8.078,28.773c-9.613,1.842-19.082,4.367-28.336,7.555l-21.32-20.82
|
||||||
l7.391,28.859c-7.385,6.416-14.311,13.342-20.727,20.727l-28.859-7.391c-3.181-0.834-6.546,0.381-8.461,3.055
|
c-2.346-2.302-5.865-2.926-8.859-1.57c-14.999,6.726-29.267,14.975-42.579,24.617c-2.657,1.927-3.868,5.281-3.055,8.461
|
||||||
c-9.645,13.312-17.897,27.579-24.625,42.578c-1.344,2.996-0.721,6.508,1.57,8.859l20.82,21.32
|
l7.391,28.859c-7.385,6.416-14.311,13.342-20.727,20.727l-28.859-7.391c-3.181-0.834-6.546,0.381-8.461,3.055
|
||||||
c-3.187,9.257-5.711,18.729-7.555,28.344l-28.773,8.078c-3.452,0.969-5.837,4.117-5.836,7.703v47.602
|
c-9.645,13.312-17.897,27.579-24.625,42.578c-1.344,2.996-0.721,6.508,1.57,8.859l20.82,21.32
|
||||||
c-0.001,3.586,2.384,6.734,5.836,7.703l28.773,8.078c1.842,9.615,4.367,19.087,7.555,28.344l-20.82,21.32
|
c-3.187,9.257-5.711,18.729-7.555,28.344l-28.773,8.078c-3.452,0.969-5.837,4.117-5.836,7.703v47.602
|
||||||
c-2.291,2.351-2.914,5.864-1.57,8.859c6.726,14.999,14.975,29.266,24.617,42.578c1.924,2.661,5.281,3.873,8.461,3.055
|
c-0.001,3.586,2.384,6.734,5.836,7.703l28.773,8.078c1.842,9.615,4.367,19.087,7.555,28.344l-20.82,21.32
|
||||||
l28.859-7.391c6.416,7.385,13.342,14.311,20.727,20.727l-7.391,28.859c-0.813,3.18,0.398,6.534,3.055,8.461
|
c-2.291,2.351-2.914,5.864-1.57,8.859c6.726,14.999,14.975,29.266,24.617,42.578c1.924,2.661,5.281,3.873,8.461,3.055
|
||||||
c13.312,9.645,27.579,17.897,42.578,24.625c2.996,1.34,6.506,0.718,8.859-1.57l21.32-20.82c9.257,3.187,18.729,5.711,28.344,7.555
|
l28.859-7.391c6.416,7.385,13.342,14.311,20.727,20.727l-7.391,28.859c-0.813,3.18,0.398,6.534,3.055,8.461
|
||||||
l8.078,28.773c0.969,3.452,4.118,5.837,7.703,5.836h47.602c3.586,0.001,6.734-2.384,7.703-5.836l8.078-28.766
|
c13.312,9.645,27.579,17.897,42.578,24.625c2.996,1.34,6.506,0.718,8.859-1.57l21.32-20.82c9.257,3.187,18.729,5.711,28.344,7.555
|
||||||
c9.615-1.848,19.087-4.375,28.344-7.562l21.32,20.82c2.351,2.291,5.864,2.914,8.859,1.57
|
l8.078,28.773c0.969,3.452,4.118,5.837,7.703,5.836h47.602c3.586,0.001,6.734-2.384,7.703-5.836l8.078-28.766
|
||||||
c14.998-6.727,29.266-14.976,42.578-24.618c2.657-1.927,3.868-5.281,3.055-8.461l-7.391-28.859
|
c9.615-1.848,19.087-4.375,28.344-7.562l21.32,20.82c2.351,2.291,5.864,2.914,8.859,1.57
|
||||||
c7.385-6.416,14.31-13.342,20.726-20.726l28.859,7.391c3.18,0.818,6.537-0.394,8.461-3.055
|
c14.998-6.727,29.266-14.976,42.578-24.618c2.657-1.927,3.868-5.281,3.055-8.461l-7.391-28.859
|
||||||
c9.646-13.312,17.897-27.58,24.625-42.579c1.344-2.996,0.721-6.508-1.57-8.859l-20.82-21.32
|
c7.385-6.416,14.31-13.342,20.726-20.726l28.859,7.391c3.18,0.818,6.537-0.394,8.461-3.055
|
||||||
c3.187-9.257,5.711-18.729,7.555-28.344l28.773-8.078c3.452-0.969,5.837-4.117,5.836-7.703v-47.609
|
c9.646-13.312,17.897-27.58,24.625-42.579c1.344-2.996,0.721-6.508-1.57-8.859l-20.82-21.32
|
||||||
C477.58,211.399,475.195,208.25,471.743,207.281z M461.578,256.531l-27.758,7.797c-2.985,0.837-5.217,3.325-5.727,6.383
|
c3.187-9.257,5.711-18.729,7.555-28.344l28.773-8.078c3.452-0.969,5.837-4.117,5.836-7.703v-47.609
|
||||||
c-2.001,12.012-5.146,23.805-9.391,35.219c-1.087,2.9-0.399,6.168,1.766,8.383l20.461,20.953
|
C477.58,211.399,475.195,208.25,471.743,207.281z M461.578,256.531l-27.758,7.797c-2.985,0.837-5.217,3.325-5.727,6.383
|
||||||
c-5.058,10.576-10.935,20.739-17.578,30.398l-28.375-7.266c-3.002-0.781-6.183,0.256-8.148,2.656
|
c-2.001,12.012-5.146,23.805-9.391,35.219c-1.087,2.9-0.399,6.168,1.766,8.383l20.461,20.953
|
||||||
c-7.76,9.386-16.392,18.016-25.781,25.773c-2.388,1.976-3.423,5.153-2.656,8.156l7.266,28.375
|
c-5.058,10.576-10.935,20.739-17.578,30.398l-28.375-7.266c-3.002-0.781-6.183,0.256-8.148,2.656
|
||||||
c-9.657,6.644-19.821,12.518-30.398,17.57l-20.954-20.46c-2.212-2.171-5.483-2.86-8.383-1.766
|
c-7.76,9.386-16.392,18.016-25.781,25.773c-2.388,1.976-3.423,5.153-2.656,8.156l7.266,28.375
|
||||||
c-11.414,4.245-23.207,7.392-35.219,9.398c-3.057,0.513-5.543,2.743-6.383,5.727l-7.797,27.75h-35.476l-7.797-27.758
|
c-9.657,6.644-19.821,12.518-30.398,17.57l-20.954-20.46c-2.212-2.171-5.483-2.86-8.383-1.766
|
||||||
c-0.837-2.985-3.325-5.217-6.383-5.727c-12.012-2.001-23.805-5.146-35.219-9.391c-2.899-1.096-6.172-0.407-8.383,1.766
|
c-11.414,4.245-23.207,7.392-35.219,9.398c-3.057,0.513-5.543,2.743-6.383,5.727l-7.797,27.75h-35.476l-7.797-27.758
|
||||||
l-20.953,20.461c-10.575-5.058-20.739-10.935-30.398-17.578l7.266-28.375c0.768-3.001-0.267-6.176-2.656-8.148
|
c-0.837-2.985-3.325-5.217-6.383-5.727c-12.012-2.001-23.805-5.146-35.219-9.391c-2.899-1.096-6.172-0.407-8.383,1.766
|
||||||
c-9.386-7.76-18.016-16.392-25.773-25.781c-1.978-2.386-5.153-3.42-8.156-2.656l-28.375,7.266
|
l-20.953,20.461c-10.575-5.058-20.739-10.935-30.398-17.578l7.266-28.375c0.768-3.001-0.267-6.176-2.656-8.148
|
||||||
c-6.641-9.659-12.516-19.823-17.57-30.398l20.46-20.954c2.164-2.216,2.852-5.483,1.766-8.383
|
c-9.386-7.76-18.016-16.392-25.773-25.781c-1.978-2.386-5.153-3.42-8.156-2.656l-28.375,7.266
|
||||||
c-4.247-11.413-7.391-23.206-9.391-35.219c-0.51-3.058-2.742-5.545-5.727-6.383L16,256.523v-35.477l27.758-7.797
|
c-6.641-9.659-12.516-19.823-17.57-30.398l20.46-20.954c2.164-2.216,2.852-5.483,1.766-8.383
|
||||||
c2.985-0.837,5.217-3.325,5.727-6.383c2.001-12.012,5.146-23.805,9.391-35.219c1.087-2.9,0.399-6.168-1.766-8.383l-20.461-20.953
|
c-4.247-11.413-7.391-23.206-9.391-35.219c-0.51-3.058-2.742-5.545-5.727-6.383L16,256.523v-35.477l27.758-7.797
|
||||||
c5.058-10.576,10.935-20.739,17.578-30.398l28.375,7.266c3.001,0.769,6.177-0.266,8.148-2.656
|
c2.985-0.837,5.217-3.325,5.727-6.383c2.001-12.012,5.146-23.805,9.391-35.219c1.087-2.9,0.399-6.168-1.766-8.383l-20.461-20.953
|
||||||
c7.76-9.386,16.392-18.016,25.781-25.773c2.388-1.976,3.423-5.153,2.656-8.156l-7.266-28.375
|
c5.058-10.576,10.935-20.739,17.578-30.398l28.375,7.266c3.001,0.769,6.177-0.266,8.148-2.656
|
||||||
c9.659-6.641,19.823-12.516,30.399-17.57l20.953,20.46c2.211,2.172,5.483,2.861,8.383,1.766
|
c7.76-9.386,16.392-18.016,25.781-25.773c2.388-1.976,3.423-5.153,2.656-8.156l-7.266-28.375
|
||||||
c11.412-4.243,23.202-7.388,35.211-9.391c3.058-0.51,5.545-2.742,6.383-5.727L221.047,16h35.484l7.797,27.758
|
c9.659-6.641,19.823-12.516,30.399-17.57l20.953,20.46c2.211,2.172,5.483,2.861,8.383,1.766
|
||||||
c0.837,2.985,3.325,5.217,6.383,5.727c12.012,2.001,23.805,5.146,35.219,9.391c2.899,1.096,6.172,0.407,8.383-1.766l20.953-20.461
|
c11.412-4.243,23.202-7.388,35.211-9.391c3.058-0.51,5.545-2.742,6.383-5.727L221.047,16h35.484l7.797,27.758
|
||||||
c10.576,5.058,20.739,10.935,30.398,17.578l-7.266,28.375c-0.768,3.001,0.267,6.176,2.656,8.148
|
c0.837,2.985,3.325,5.217,6.383,5.727c12.012,2.001,23.805,5.146,35.219,9.391c2.899,1.096,6.172,0.407,8.383-1.766l20.953-20.461
|
||||||
c9.386,7.76,18.016,16.392,25.773,25.781c1.97,2.397,5.152,3.433,8.156,2.656l28.375-7.266
|
c10.576,5.058,20.739,10.935,30.398,17.578l-7.266,28.375c-0.768,3.001,0.267,6.176,2.656,8.148
|
||||||
c6.644,9.657,12.518,19.821,17.57,30.398l-20.46,20.954c-2.164,2.216-2.852,5.483-1.766,8.383
|
c9.386,7.76,18.016,16.392,25.773,25.781c1.97,2.397,5.152,3.433,8.156,2.656l28.375-7.266
|
||||||
c4.243,11.412,7.388,23.202,9.391,35.211c0.51,3.058,2.742,5.545,5.727,6.383l27.758,7.797V256.531z"/>
|
c6.644,9.657,12.518,19.821,17.57,30.398l-20.46,20.954c-2.164,2.216-2.852,5.483-1.766,8.383
|
||||||
|
c4.243,11.412,7.388,23.202,9.391,35.211c0.51,3.058,2.742,5.545,5.727,6.383l27.758,7.797V256.531z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path d="M238.789,78.789c-88.366,0-160,71.634-160,160c0.098,88.325,71.675,159.902,160,160c88.366,0,160-71.634,160-160
|
||||||
|
S327.155,78.789,238.789,78.789z M345.95,334.638l-16.653-16.653l-11.313,11.313l16.653,16.653
|
||||||
|
c-24.277,21.798-55.27,34.651-87.849,36.434v-23.595h-16v23.595c-32.578-1.782-63.571-14.636-87.849-36.434l16.653-16.653
|
||||||
|
l-11.313-11.313l-16.653,16.653c-21.798-24.277-34.652-55.27-36.434-87.849h23.595v-16H95.194
|
||||||
|
c1.782-32.578,14.636-63.571,36.434-87.849l16.653,16.653l11.313-11.313l-16.653-16.653c24.277-21.798,55.27-34.651,87.849-36.434
|
||||||
|
v23.595h16V95.194c32.578,1.782,63.571,14.636,87.849,36.434l-16.653,16.653l11.313,11.313l16.653-16.653
|
||||||
|
c21.798,24.277,34.652,55.27,36.434,87.849h-23.595v16h23.595C380.602,279.367,367.748,310.36,345.95,334.638z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<path d="M307.224,168.133c-2.687-1.79-6.186-1.79-8.872,0l-58.062,38.711c-0.5-0.031-0.992-0.055-1.5-0.055
|
||||||
|
c-17.673,0-32,14.327-32,32s14.327,32,32,32c17.666-0.018,31.982-14.334,32-32c0-0.5-0.023-1-0.055-1.492l38.711-58.07
|
||||||
|
C311.895,175.55,310.901,170.583,307.224,168.133z M255.781,230.875c-1.094,1.716-1.532,3.768-1.234,5.781
|
||||||
|
c0.136,0.704,0.217,1.417,0.242,2.133c0,8.837-7.163,16-16,16s-16-7.163-16-16s7.163-16,16-16c0.769,0.03,1.534,0.119,2.289,0.266
|
||||||
|
c1.966,0.287,3.969-0.161,5.625-1.258l27.234-18.156L255.781,230.875z"/>
|
||||||
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<g>
|
|
||||||
<path d="M238.789,78.789c-88.366,0-160,71.634-160,160c0.098,88.325,71.675,159.902,160,160c88.366,0,160-71.634,160-160
|
|
||||||
S327.155,78.789,238.789,78.789z M345.95,334.638l-16.653-16.653l-11.313,11.313l16.653,16.653
|
|
||||||
c-24.277,21.798-55.27,34.651-87.849,36.434v-23.595h-16v23.595c-32.578-1.782-63.571-14.636-87.849-36.434l16.653-16.653
|
|
||||||
l-11.313-11.313l-16.653,16.653c-21.798-24.277-34.652-55.27-36.434-87.849h23.595v-16H95.194
|
|
||||||
c1.782-32.578,14.636-63.571,36.434-87.849l16.653,16.653l11.313-11.313l-16.653-16.653c24.277-21.798,55.27-34.651,87.849-36.434
|
|
||||||
v23.595h16V95.194c32.578,1.782,63.571,14.636,87.849,36.434l-16.653,16.653l11.313,11.313l16.653-16.653
|
|
||||||
c21.798,24.277,34.652,55.27,36.434,87.849h-23.595v16h23.595C380.602,279.367,367.748,310.36,345.95,334.638z"/>
|
|
||||||
</g>
|
|
||||||
<g>
|
|
||||||
<path d="M307.224,168.133c-2.687-1.79-6.186-1.79-8.872,0l-58.062,38.711c-0.5-0.031-0.992-0.055-1.5-0.055
|
|
||||||
c-17.673,0-32,14.327-32,32s14.327,32,32,32c17.666-0.018,31.982-14.334,32-32c0-0.5-0.023-1-0.055-1.492l38.711-58.07
|
|
||||||
C311.895,175.55,310.901,170.583,307.224,168.133z M255.781,230.875c-1.094,1.716-1.532,3.768-1.234,5.781
|
|
||||||
c0.136,0.704,0.217,1.417,0.242,2.133c0,8.837-7.163,16-16,16s-16-7.163-16-16s7.163-16,16-16c0.769,0.03,1.534,0.119,2.289,0.266
|
|
||||||
c1.966,0.287,3.969-0.161,5.625-1.258l27.234-18.156L255.781,230.875z"/>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</SvgIcon>
|
</SvgIcon>
|
||||||
}>
|
}>
|
||||||
<div className='column center w100p pad0-75'>
|
<div className='column center w100p pad0-75'>
|
||||||
|
@ -264,7 +264,7 @@ class Search extends Component {
|
|||||||
<div style={{width: 25, height: 25, margin: 2, marginRight: 8}}>
|
<div style={{width: 25, height: 25, margin: 2, marginRight: 8}}>
|
||||||
<Tooltip hint={__('display search results for current search request')}>
|
<Tooltip hint={__('display search results for current search request')}>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
id='open-recent-search'
|
id='open-recent-search'
|
||||||
checked={false}
|
checked={false}
|
||||||
uncheckedIcon={<svg viewBox="0 0 459 459">
|
uncheckedIcon={<svg viewBox="0 0 459 459">
|
||||||
<g>
|
<g>
|
||||||
|
@ -131,15 +131,15 @@ if (!gotTheLock) {
|
|||||||
logT('app', 'closed because of second application')
|
logT('app', 'closed because of second application')
|
||||||
app.exit(0);
|
app.exit(0);
|
||||||
} else {
|
} else {
|
||||||
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
||||||
// Someone tried to run a second instance, we should focus our window.
|
// Someone tried to run a second instance, we should focus our window.
|
||||||
logT('app', 'openned second application, just focus this one')
|
logT('app', 'openned second application, just focus this one')
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
if (mainWindow.isMinimized())
|
if (mainWindow.isMinimized())
|
||||||
mainWindow.restore();
|
mainWindow.restore();
|
||||||
mainWindow.focus();
|
mainWindow.focus();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// log autoupdate
|
// log autoupdate
|
||||||
|
@ -336,7 +336,7 @@ class p2p {
|
|||||||
server.close();
|
server.close();
|
||||||
})
|
})
|
||||||
this.p2pStatus = 2
|
this.p2pStatus = 2
|
||||||
this.send('p2pStatus', this.p2pStatus)
|
this.send('p2pStatus', this.p2pStatus)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -349,7 +349,7 @@ class p2p {
|
|||||||
this.connectToRelay(candidatePeer[0])
|
this.connectToRelay(candidatePeer[0])
|
||||||
}
|
}
|
||||||
this.p2pStatus = 0
|
this.p2pStatus = 0
|
||||||
this.send('p2pStatus', this.p2pStatus)
|
this.send('p2pStatus', this.p2pStatus)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -480,7 +480,7 @@ class p2p {
|
|||||||
peers = null
|
peers = null
|
||||||
this.relaySocket = null
|
this.relaySocket = null
|
||||||
this.p2pStatus = 0
|
this.p2pStatus = 0
|
||||||
this.send('p2pStatus', this.p2pStatus)
|
this.send('p2pStatus', this.p2pStatus)
|
||||||
// try reconnect to new relay server
|
// try reconnect to new relay server
|
||||||
let candidatePeer = this.peersList().filter(peer => peer.relay && peer.relay.server && peer != relayPeer)
|
let candidatePeer = this.peersList().filter(peer => peer.relay && peer.relay.server && peer != relayPeer)
|
||||||
if(candidatePeer && candidatePeer.length > 0 && tryes > 0) {
|
if(candidatePeer && candidatePeer.length > 0 && tryes > 0) {
|
||||||
|
@ -107,18 +107,18 @@ module.exports = function (send, recive, dataDirectory, version, env)
|
|||||||
|
|
||||||
const sphinxSingle = await single().waitConnection()
|
const sphinxSingle = await single().waitConnection()
|
||||||
let torrentsInfo = await sphinxSingle.query(`
|
let torrentsInfo = await sphinxSingle.query(`
|
||||||
SELECT
|
SELECT
|
||||||
MAX(id) as maxid,
|
MAX(id) as maxid,
|
||||||
COUNT(*) as torrentscount,
|
COUNT(*) as torrentscount,
|
||||||
SUM(files) as numfiles,
|
SUM(files) as numfiles,
|
||||||
SUM(size) as filessize
|
SUM(size) as filessize
|
||||||
FROM torrents
|
FROM torrents
|
||||||
`);
|
`);
|
||||||
let filesInfo = await sphinxSingle.query(`
|
let filesInfo = await sphinxSingle.query(`
|
||||||
SELECT
|
SELECT
|
||||||
MAX(id) as maxid
|
MAX(id) as maxid
|
||||||
FROM files
|
FROM files
|
||||||
`);
|
`);
|
||||||
if(torrentsInfo && torrentsInfo[0])
|
if(torrentsInfo && torrentsInfo[0])
|
||||||
{
|
{
|
||||||
torrentsInfo = torrentsInfo[0]
|
torrentsInfo = torrentsInfo[0]
|
||||||
@ -168,8 +168,8 @@ module.exports = function (send, recive, dataDirectory, version, env)
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
fs.readdirSync(__dirname + '/strategies').forEach((strategie) => {
|
fs.readdirSync(__dirname + '/strategies').forEach((strategie) => {
|
||||||
this.trackers.push(new (require('./strategies/' + strategie))(args))
|
this.trackers.push(new (require('./strategies/' + strategie))(args))
|
||||||
logT('tracker', 'loaded strategie', strategie)
|
logT('tracker', 'loaded strategie', strategie)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,60 +4,60 @@ const cheerio = require('cheerio')
|
|||||||
|
|
||||||
module.exports = class Stragegie
|
module.exports = class Stragegie
|
||||||
{
|
{
|
||||||
get name() { return '1337x' }
|
get name() { return '1337x' }
|
||||||
|
|
||||||
async findHash(hash)
|
async findHash(hash)
|
||||||
{
|
{
|
||||||
let html;
|
let html;
|
||||||
try {
|
try {
|
||||||
html = await fetch(`https://1337x.to/srch?search=${hash}`)
|
html = await fetch(`https://1337x.to/srch?search=${hash}`)
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!html)
|
if(!html)
|
||||||
return
|
return
|
||||||
html = await html.textConverted()
|
html = await html.textConverted()
|
||||||
const $ = cheerio.load(html)
|
const $ = cheerio.load(html)
|
||||||
|
|
||||||
this.href = $($('.table-list tr td a').get(1)).attr('href')
|
this.href = $($('.table-list tr td a').get(1)).attr('href')
|
||||||
if(this.href)
|
if(this.href)
|
||||||
this.id = this.href.match(/\/torrent\/([0-9]+)\//)[1];
|
this.id = this.href.match(/\/torrent\/([0-9]+)\//)[1];
|
||||||
|
|
||||||
return await this.parse();
|
return await this.parse();
|
||||||
}
|
}
|
||||||
|
|
||||||
async parse()
|
async parse()
|
||||||
{
|
{
|
||||||
let html;
|
let html;
|
||||||
try {
|
try {
|
||||||
html = await fetch('https://1337x.to' + this.href)
|
html = await fetch('https://1337x.to' + this.href)
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(!html)
|
if(!html)
|
||||||
return
|
return
|
||||||
html = await html.textConverted()
|
html = await html.textConverted()
|
||||||
const $ = cheerio.load(html)
|
const $ = cheerio.load(html)
|
||||||
const topicTitle = $('h1').text()
|
const topicTitle = $('h1').text()
|
||||||
if(!topicTitle)
|
if(!topicTitle)
|
||||||
return
|
return
|
||||||
|
|
||||||
let contentCategory;
|
let contentCategory;
|
||||||
try {
|
try {
|
||||||
contentCategory = $('.torrent-category-detail .list li').first().find('span').text()
|
contentCategory = $('.torrent-category-detail .list li').first().find('span').text()
|
||||||
} catch(er) {}
|
} catch(er) {}
|
||||||
|
|
||||||
let poster = $('.torrent-image img').attr('src') || $('#description img').attr('data-original');
|
let poster = $('.torrent-image img').attr('src') || $('#description img').attr('data-original');
|
||||||
if(poster)
|
if(poster)
|
||||||
poster = poster.replace(/^\/\//, 'https://');
|
poster = poster.replace(/^\/\//, 'https://');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: topicTitle.trim(),
|
name: topicTitle.trim(),
|
||||||
poster,
|
poster,
|
||||||
description: $('#description').text(),
|
description: $('#description').text(),
|
||||||
x1337ThreadId: parseInt(this.id),
|
x1337ThreadId: parseInt(this.id),
|
||||||
x1337Href: this.href,
|
x1337Href: this.href,
|
||||||
contentCategory
|
contentCategory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -54,7 +54,7 @@ describe("download", function() {
|
|||||||
const { app } = this
|
const { app } = this
|
||||||
await app.client.waitForExist('.torrentRow .progressDownloading')
|
await app.client.waitForExist('.torrentRow .progressDownloading')
|
||||||
await app.client.waitUntil(async () => {
|
await app.client.waitUntil(async () => {
|
||||||
return (await app.client.getText('.torrentRow .progressDownloading')) === '100.0%'
|
return (await app.client.getText('.torrentRow .progressDownloading')) === '100.0%'
|
||||||
}, 60000, 'expected that download will be finished', 200)
|
}, 60000, 'expected that download will be finished', 200)
|
||||||
|
|
||||||
// Check Buttons After finish
|
// Check Buttons After finish
|
||||||
|
Loading…
Reference in New Issue
Block a user