Bumping the JS libs to fix the build (#2616)

* bumping the js libs

* New linting rules

* More linting

* More

* Done linting

* npm >=4.5.0

* Bumping node

* Tweaking the build

* Fixing the damn build

* Fixing the apps
This commit is contained in:
Maxime Beauchemin
2017-04-13 15:04:09 -07:00
committed by GitHub
parent a2b30f35fc
commit 366ecefbaa
132 changed files with 611 additions and 553 deletions

View File

@@ -17,7 +17,7 @@ class CreatedContent extends React.PureComponent {
};
}
renderSliceTable() {
const mutator = (data) => data.map(slice => ({
const mutator = data => data.map(slice => ({
slice: <a href={slice.url}>{slice.title}</a>,
favorited: moment.utc(slice.dttm).fromNow(),
_favorited: slice.dttm,
@@ -34,7 +34,7 @@ class CreatedContent extends React.PureComponent {
);
}
renderDashboardTable() {
const mutator = (data) => data.map(dash => ({
const mutator = data => data.map(dash => ({
dashboard: <a href={dash.url}>{dash.title}</a>,
favorited: moment.utc(dash.dttm).fromNow(),
_favorited: dash.dttm,

View File

@@ -17,7 +17,7 @@ export default class Favorites extends React.PureComponent {
};
}
renderSliceTable() {
const mutator = (data) => data.map(slice => ({
const mutator = data => data.map(slice => ({
slice: <a href={slice.url}>{slice.title}</a>,
creator: <a href={slice.creator_url}>{slice.creator}</a>,
favorited: moment.utc(slice.dttm).fromNow(),
@@ -35,7 +35,7 @@ export default class Favorites extends React.PureComponent {
);
}
renderDashboardTable() {
const mutator = (data) => data.map(dash => ({
const mutator = data => data.map(dash => ({
dashboard: <a href={dash.url}>{dash.title}</a>,
creator: <a href={dash.creator_url}>{dash.creator}</a>,
favorited: moment.utc(dash.dttm).fromNow(),

View File

@@ -1,8 +1,9 @@
import React from 'react';
import TableLoader from './TableLoader';
import moment from 'moment';
import $ from 'jquery';
import TableLoader from './TableLoader';
const propTypes = {
user: React.PropTypes.object,
};

View File

@@ -44,7 +44,7 @@ export default class TableLoader extends React.PureComponent {
<Table {...tableProps}>
{this.state.data.map((row, i) => (
<Tr key={i}>
{columns.map(col => {
{columns.map((col) => {
if (row.hasOwnProperty('_' + col)) {
return (
<Td key={col} column={col} value={row['_' + col]}>

View File

@@ -1,15 +1,13 @@
/* eslint no-unused-vars: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import { Badge, Col, Label, Row, Tabs, Tab, Panel } from 'react-bootstrap';
import App from './components/App';
import { appSetup } from '../common';
const $ = window.$ = require('jquery');
/* eslint no-unused-vars: 0 */
const jQuery = window.jQuery = $;
require('bootstrap');
require('./main.css');
import './main.css';
appSetup();
const profileViewContainer = document.getElementById('app');
const bootstrap = JSON.parse(profileViewContainer.getAttribute('data-bootstrap'));
@@ -17,5 +15,5 @@ const bootstrap = JSON.parse(profileViewContainer.getAttribute('data-bootstrap')
const user = bootstrap.user;
ReactDOM.render(
<App user={user} />,
profileViewContainer
profileViewContainer,
);