Permalink
Browse files

lint

  • Loading branch information...
jeremybarbet committed Dec 4, 2017
1 parent 0881cff commit 7002f5807f8e9a2005b3892299dbc9e400c3514f
View
@@ -1,15 +1,16 @@
import React, { Component } from 'react';
import { AppRegistry, Navigator } from 'react-native';
import { AppRegistry } from 'react-native';
import { Router, Scene } from 'react-native-router-flux';
import List from './sources/listView/index';
import Add from './sources/addView/index';
import Detail from './sources/detailView/index';
export default class Statiks extends Component {
render() {
return (
<Router hideNavBar={true}>
<Router hideNavBar>
<Scene key="root">
<Scene
key="list"
@@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import _variables from './variables';
export default StyleSheet.create({
// Layout
layout: {
flex: 1,
@@ -5,6 +5,7 @@ import { diff } from './diff';
import Storage from './storage';
const ApiUtils = {
checkStatus(response, username, network) {
if (response.status >= 200 && response.status < 300) {
return response;
View
@@ -1,4 +1,5 @@
export function diff(a, b) { // eslint-disable-line
if (a === b) {
return {
changed: 'equal',
@@ -1,6 +1,7 @@
import _variables from '../_styles/variables';
export function luminosity(hex, value) {
let hexValue = hex;
hexValue = String(hexValue).replace(/[^0-9a-f]/gi, '');
@@ -22,6 +23,7 @@ export function luminosity(hex, value) {
}
export function colors(network) {
const list = {
total: _variables.graySaturate,
dribbble: '#ea4c89',
@@ -1,6 +1,7 @@
import { AsyncStorage } from 'react-native';
export default Storage = { // eslint-disable-line
/**
* Get a one or more value for a key or array of keys from AsyncStorage
*/
View
@@ -6,6 +6,7 @@ const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
* Function to retrieve to last change into history of a network
*/
export function getLastChange(obj, data) {
const lastChange = Object.keys(obj).filter(item => obj[item].changed !== 'equal').last();
if (lastChange !== undefined) {
@@ -18,6 +19,7 @@ export function getLastChange(obj, data) {
* Namespace to manage total object
*/
const objTotal = {
result: {},
/**
@@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import _variables from '../_styles/variables';
export default StyleSheet.create({
// Global
itemFeedback: {
position: 'absolute',
@@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import _variables from '../_styles/variables';
export default StyleSheet.create({
// Item container
itemContainer: {
marginHorizontal: 15,
View
@@ -1,6 +1,7 @@
import { StyleSheet } from 'react-native';
export default StyleSheet.create({
addContainer: {
paddingTop: 10,
},
View
@@ -7,6 +7,7 @@ import apiUtils from './_utils/apiUtils';
const networks = [];
export function fetchy(uri, username, network, details, current, sync, total) {
const obj = {
network: {},
history: {},
@@ -24,6 +25,7 @@ export function fetchy(uri, username, network, details, current, sync, total) {
}
export default api = { // eslint-disable-line
/**
* Dribbble API connection
*/
@@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import _variables from '../_styles/variables';
export default StyleSheet.create({
/*
* Network data
*/
@@ -3,6 +3,7 @@ import { StyleSheet } from 'react-native';
import _variables from '../_styles/variables';
export default StyleSheet.create({
detailGlobal: {
borderTopLeftRadius: 4,
borderTopRightRadius: 4,
View
@@ -6,6 +6,7 @@ const NAV_BAR_HEIGHT = 39;
const STATUS_BAR_HEIGHT = 20;
export default StyleSheet.create({
/*
* Global styles
*/
@@ -5,6 +5,7 @@ import _variables from '../_styles/variables';
const { width } = Dimensions.get('window');
export default StyleSheet.create({
// Item container
itemContainer: {
marginHorizontal: 15,
@@ -23,6 +23,7 @@ const Icon = createIconSetFromFontello(fontelloConfig);
const AnimatedScrollView = Animated.createAnimatedComponent(ScrollView);
export default class List extends Component {
state = {
data: '',
isRefreshing: false,
@@ -3,6 +3,7 @@ import { PixelRatio, StyleSheet } from 'react-native';
import _variables from '../_styles/variables';
export default StyleSheet.create({
listContainer: {
paddingTop: 10,
},
@@ -6,6 +6,7 @@ import global from '../_styles/global';
import style from './style';
export default class Empty extends Component {
render() {
return (
<View style={[global.layout, style.defaultContainer]}>
@@ -5,6 +5,7 @@ import global from '../_styles/global';
import style from './style';
export default class Error extends Component {
render() {
return (
<View style={[global.layout, style.defaultContainer]}>
@@ -5,6 +5,7 @@ import _variables from '../_styles/variables';
const { width } = Dimensions.get('window');
export default StyleSheet.create({
// Default illustration style
defaultContainer: {
flexDirection: 'column',

0 comments on commit 7002f58

Please sign in to comment.