eslint
This commit is contained in:
parent
0727da3236
commit
a752a67370
@ -130,38 +130,38 @@ export default class ConfigPage extends Page {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='column w100p'>
|
<div className='column w100p'>
|
||||||
<Toggle
|
<Toggle
|
||||||
style={{marginTop: '10px'}}
|
style={{marginTop: '10px'}}
|
||||||
label={__('Adult filter')}
|
label={__('Adult filter')}
|
||||||
toggled={this.options.filters && this.options.filters.adultFilter}
|
toggled={this.options.filters && this.options.filters.adultFilter}
|
||||||
onToggle={(e, checked) => {
|
onToggle={(e, checked) => {
|
||||||
if(!this.options.filters)
|
if(!this.options.filters)
|
||||||
return
|
return
|
||||||
|
|
||||||
this.options.filters.adultFilter = checked
|
this.options.filters.adultFilter = checked
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div className='fs0-75' style={{color: 'grey'}}>
|
<div className='fs0-75' style={{color: 'grey'}}>
|
||||||
* - {__('* - enabled means ignoring all adult content')}
|
* - {__('* - enabled means ignoring all adult content')}
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{
|
{
|
||||||
this.options.filters // bug with props
|
this.options.filters // bug with props
|
||||||
&&
|
&&
|
||||||
<div className='w100p'>
|
<div className='w100p'>
|
||||||
<InputSize
|
<InputSize
|
||||||
value={this.options.filters && this.options.filters.size}
|
value={this.options.filters && this.options.filters.size}
|
||||||
enabled={this.options.filters && this.options.filters.sizeEnabled}
|
enabled={this.options.filters && this.options.filters.sizeEnabled}
|
||||||
maxSize={this.options.filters && this.options.filters.maxSize}
|
maxSize={this.options.filters && this.options.filters.maxSize}
|
||||||
onChange={({size, maxSize, enabled}) => {
|
onChange={({size, maxSize, enabled}) => {
|
||||||
this.options.filters.size = size
|
this.options.filters.size = size
|
||||||
this.options.filters.maxSize = maxSize
|
this.options.filters.maxSize = maxSize
|
||||||
this.options.filters.sizeEnabled = enabled
|
this.options.filters.sizeEnabled = enabled
|
||||||
this.forceUpdate()
|
this.forceUpdate()
|
||||||
}} />
|
}} />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@ const expand = (sphinx) => {
|
|||||||
{
|
{
|
||||||
if(values[val] === null)
|
if(values[val] === null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
names += '`' + val + '`,';
|
names += '`' + val + '`,';
|
||||||
valuesData += sphinx.escape(values[val]) + ',';
|
valuesData += sphinx.escape(values[val]) + ',';
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ const expand = (sphinx) => {
|
|||||||
{
|
{
|
||||||
data = `(${parseValues(values)})`
|
data = `(${parseValues(values)})`
|
||||||
}
|
}
|
||||||
|
|
||||||
let query = `INSERT INTO ${table}(${names}) VALUES ${data}`;
|
let query = `INSERT INTO ${table}(${names}) VALUES ${data}`;
|
||||||
queryCall(query, (...responce) => {
|
queryCall(query, (...responce) => {
|
||||||
if(callback)
|
if(callback)
|
||||||
|
@ -256,7 +256,7 @@ module.exports = (callback, dataDirectory, onClose) => {
|
|||||||
const probablyCoruptedFiles = await findFiles(`${sphinx.directoryPath}/**/*.+(meta|ram)`)
|
const probablyCoruptedFiles = await findFiles(`${sphinx.directoryPath}/**/*.+(meta|ram)`)
|
||||||
let brokenFiles = await Promise.all(probablyCoruptedFiles.map(file => checkNullFile(file)))
|
let brokenFiles = await Promise.all(probablyCoruptedFiles.map(file => checkNullFile(file)))
|
||||||
brokenFiles = probablyCoruptedFiles.filter((file, index) => !brokenFiles[index])
|
brokenFiles = probablyCoruptedFiles.filter((file, index) => !brokenFiles[index])
|
||||||
|
|
||||||
brokenFiles.forEach(file => {
|
brokenFiles.forEach(file => {
|
||||||
console.log('FIXDB: clean file because of broken', file)
|
console.log('FIXDB: clean file because of broken', file)
|
||||||
fs.unlinkSync(file)
|
fs.unlinkSync(file)
|
||||||
|
@ -269,7 +269,7 @@ app.get('*', function(req, res)
|
|||||||
return
|
return
|
||||||
|
|
||||||
loadBootstrapPeers('https://api.myjson.com/bins/1e5rmh')
|
loadBootstrapPeers('https://api.myjson.com/bins/1e5rmh')
|
||||||
loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
|
loadBootstrapPeers('https://jsonblob.com/api/jsonBlob/013a4415-3533-11e8-8290-a901f3cf34aa')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -787,7 +787,7 @@ app.get('*', function(req, res)
|
|||||||
|
|
||||||
// save feed
|
// save feed
|
||||||
await feed.save()
|
await feed.save()
|
||||||
|
|
||||||
// stop bootstrap interval
|
// stop bootstrap interval
|
||||||
if(config.p2pBootstrap && p2pBootstrapLoop)
|
if(config.p2pBootstrap && p2pBootstrapLoop)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user