mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-08-21 16:14:37 -05:00
tslint curly spaces
This commit is contained in:
@@ -31,7 +31,7 @@ module.exports = exports = {
|
||||
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
|
||||
"no-plusplus": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"object-curly-spacing": "off",
|
||||
"object-curly-spacing": ["warn", "never", {"objectsInObjects": false, "arraysInObjects": false}],
|
||||
"object-curly-newline": "off",
|
||||
"linebreak-style": "off",
|
||||
"eqeqeq": "off",
|
||||
|
||||
@@ -42,11 +42,11 @@ class CollectionDB {
|
||||
if ((new Date(data[0].updated)) > (new Date(cookie))) {
|
||||
this[type].clear();
|
||||
this[type].insert(data);
|
||||
cookies.set(`${this.format}_${type}`, data[0].updated, { path: '/' });
|
||||
cookies.set(`${this.format}_${type}`, data[0].updated, {path: '/'});
|
||||
}
|
||||
}
|
||||
else {
|
||||
cookies.set(`${this.format}_${type}`, data[0].updated, { path: '/' });
|
||||
cookies.set(`${this.format}_${type}`, data[0].updated, {path: '/'});
|
||||
}
|
||||
});
|
||||
return resolve();
|
||||
|
||||
@@ -97,10 +97,10 @@ export default function search_api(input) {
|
||||
return ({'$regex': new RegExp(item.trim(), 'i')});
|
||||
});
|
||||
|
||||
creatureResults = creatureResults.find({'gsx$types': {'$or': subtypesList} });
|
||||
creatureResults = creatureResults.find({'gsx$types': {'$or': subtypesList}});
|
||||
locationResults = locationResults.find({'$or': [{'gsx$initiative': {'$or': subtypesList}}, {'gsx$types': {'$or': subtypesList}}]});
|
||||
attackResults = attackResults.limit(0);
|
||||
battlegearResults = battlegearResults.find({'gsx$types': {'$or': subtypesList} });
|
||||
battlegearResults = battlegearResults.find({'gsx$types': {'$or': subtypesList}});
|
||||
mugicResults = mugicResults.limit(0);
|
||||
}
|
||||
|
||||
@@ -111,8 +111,8 @@ export default function search_api(input) {
|
||||
tribesList.push({'$regex': new RegExp(tribe, 'i')});
|
||||
}
|
||||
if (tribesList.length > 0) {
|
||||
creatureResults = creatureResults.find({'gsx$tribe': {'$or': tribesList} });
|
||||
mugicResults = mugicResults.find({'gsx$tribe': {'$or': tribesList} });
|
||||
creatureResults = creatureResults.find({'gsx$tribe': {'$or': tribesList}});
|
||||
mugicResults = mugicResults.find({'gsx$tribe': {'$or': tribesList}});
|
||||
attackResults = attackResults.limit(0);
|
||||
battlegearResults = battlegearResults.limit(0);
|
||||
locationResults = locationResults.limit(0);
|
||||
@@ -170,11 +170,11 @@ export default function search_api(input) {
|
||||
}
|
||||
if (elementsList.length > 0) {
|
||||
if (input.elements.and) {
|
||||
creatureResults = creatureResults.find({'gsx$elements': {'$and': elementsList} });
|
||||
creatureResults = creatureResults.find({'gsx$elements': {'$and': elementsList}});
|
||||
attackResults = attackResults.find({'$and': elementsList2});
|
||||
}
|
||||
else {
|
||||
creatureResults = creatureResults.find({'gsx$elements': {'$or': elementsList} });
|
||||
creatureResults = creatureResults.find({'gsx$elements': {'$or': elementsList}});
|
||||
attackResults = attackResults.find({'$or': elementsList2});
|
||||
}
|
||||
|
||||
@@ -272,11 +272,11 @@ export default function search_api(input) {
|
||||
setsList.push({'$eq': key.toUpperCase()});
|
||||
}
|
||||
if (setsList.length > 0) {
|
||||
attackResults = attackResults.find({'gsx$set': {'$or': setsList} });
|
||||
battlegearResults = battlegearResults.find({'gsx$set': {'$or': setsList} });
|
||||
creatureResults = creatureResults.find({'gsx$set': {'$or': setsList} });
|
||||
locationResults = locationResults.find({'gsx$set': {'$or': setsList} });
|
||||
mugicResults = mugicResults.find({'gsx$set': {'$or': setsList} });
|
||||
attackResults = attackResults.find({'gsx$set': {'$or': setsList}});
|
||||
battlegearResults = battlegearResults.find({'gsx$set': {'$or': setsList}});
|
||||
creatureResults = creatureResults.find({'gsx$set': {'$or': setsList}});
|
||||
locationResults = locationResults.find({'gsx$set': {'$or': setsList}});
|
||||
mugicResults = mugicResults.find({'gsx$set': {'$or': setsList}});
|
||||
}
|
||||
|
||||
// Rarity
|
||||
@@ -286,11 +286,11 @@ export default function search_api(input) {
|
||||
rarityList.push({'$eq': key.split(" ").map(st => {return st.charAt(0).toUpperCase()+st.slice(1)}).join(" ")});
|
||||
}
|
||||
if (rarityList.length > 0) {
|
||||
attackResults = attackResults.find({'gsx$rarity': {'$or': rarityList} });
|
||||
battlegearResults = battlegearResults.find({'gsx$rarity': {'$or': rarityList} });
|
||||
creatureResults = creatureResults.find({'gsx$rarity': {'$or': rarityList} });
|
||||
locationResults = locationResults.find({'gsx$rarity': {'$or': rarityList} });
|
||||
mugicResults = mugicResults.find({'gsx$rarity': {'$or': rarityList} });
|
||||
attackResults = attackResults.find({'gsx$rarity': {'$or': rarityList}});
|
||||
battlegearResults = battlegearResults.find({'gsx$rarity': {'$or': rarityList}});
|
||||
creatureResults = creatureResults.find({'gsx$rarity': {'$or': rarityList}});
|
||||
locationResults = locationResults.find({'gsx$rarity': {'$or': rarityList}});
|
||||
mugicResults = mugicResults.find({'gsx$rarity': {'$or': rarityList}});
|
||||
}
|
||||
|
||||
// Gender
|
||||
|
||||
@@ -35,7 +35,7 @@ s.hyphen = {
|
||||
@inject((stores, props, context) => props) @observer
|
||||
export default class EnterTheCode extends React.Component {
|
||||
@observable code = "";
|
||||
message = observable({contents: null}, { contents: observable.ref });
|
||||
message = observable({contents: null}, {contents: observable.ref});
|
||||
@observable fan = null;
|
||||
|
||||
render() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom';
|
||||
import {render} from 'react-dom';
|
||||
import {BrowserRouter as Router, Link, Route, Switch} from 'react-router-dom';
|
||||
import loadable from '@loadable/component';
|
||||
import s from '../styles/app.style';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Interactive from 'react-interactive';
|
||||
import { Link, Route } from 'react-router-dom';
|
||||
import {Link, Route} from 'react-router-dom';
|
||||
import {observable} from 'mobx';
|
||||
import {observer, inject} from 'mobx-react';
|
||||
import s from '../../styles/app.style';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Interactive from 'react-interactive';
|
||||
import { Link } from 'react-router-dom';
|
||||
import {Link} from 'react-router-dom';
|
||||
import API from '../../SpreadsheetData';
|
||||
import s from '../../../styles/app.style';
|
||||
import {observer, inject} from 'mobx-react';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import {observable} from "mobx";
|
||||
import {observer, inject} from 'mobx-react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import {Link} from 'react-router-dom';
|
||||
import API from '../../SpreadsheetData';
|
||||
import {Rarity, Ability} from '../../Snippets';
|
||||
import s from '../../../styles/app.style';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Interactive from 'react-interactive';
|
||||
import { Link, Route } from 'react-router-dom';
|
||||
import {Link, Route} from 'react-router-dom';
|
||||
import {observable} from 'mobx';
|
||||
import {observer, inject} from 'mobx-react';
|
||||
import loki from 'lokijs';
|
||||
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
<span style={{ paddingRight: '7px' }}>–</span>
|
||||
<span style={{paddingRight: '7px'}}>–</span>
|
||||
{content}
|
||||
</li>
|
||||
),
|
||||
|
||||
@@ -84,8 +84,8 @@ const config = {
|
||||
],
|
||||
plugins: [
|
||||
'@babel/plugin-transform-runtime',
|
||||
['@babel/plugin-proposal-decorators', {legacy: true }],
|
||||
['@babel/plugin-proposal-class-properties', { loose: true }],
|
||||
['@babel/plugin-proposal-decorators', {legacy: true}],
|
||||
['@babel/plugin-proposal-class-properties', {loose: true}],
|
||||
'@babel/plugin-syntax-dynamic-import',
|
||||
'@babel/proposal-object-rest-spread',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user