Skip to content

Commit

Permalink
refactor(*) replace .jsx file extensions with .js
Browse files Browse the repository at this point in the history
  • Loading branch information
topheman committed Dec 3, 2015
1 parent 244cc2d commit 6c14896
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/bootstrap.jsx → src/bootstrap.js
Expand Up @@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
import { ReduxRouter } from 'redux-router';
import { Provider } from 'react-redux';

import routes from './routes.jsx';
import routes from './routes.js';

import configureStore from './redux/configure-store.js';

Expand Down
@@ -1,6 +1,6 @@
import React from 'react';

import TwitterButton from './../TwitterButton/TwitterButton.jsx';
import TwitterButton from './../TwitterButton/TwitterButton.js';

const Footer = () => (
<footer className="footer container">
Expand Down
File renamed without changes.
File renamed without changes.
@@ -1,8 +1,8 @@
import React from 'react';

import Panel from '../common/Panel.jsx';
import Tr from '../common/Tr.jsx';
import DisplayInfosPanel from '../common/DisplayInfosPanel.jsx';
import Panel from '../common/Panel.js';
import Tr from '../common/Tr.js';
import DisplayInfosPanel from '../common/DisplayInfosPanel.js';

const Profile = ({profile}) => {
if (profile && profile.data) {
Expand Down
File renamed without changes.
@@ -1,7 +1,7 @@
import React from 'react';
import { Link } from 'react-router';

import ProfileBox from './../ProfileBox/ProfileBox.jsx';
import ProfileBox from './../ProfileBox/ProfileBox.js';

const ProfileList = ({results}) => {
if (results === null) {
Expand Down
@@ -1,9 +1,9 @@
import React from 'react';

import Panel from '../common/Panel.jsx';
import DisplayInfosPanel from '../common/DisplayInfosPanel.jsx';
import DisplayStars from '../common/DisplayStars.jsx';
import ReposPaginator from '../ReposPaginator/ReposPaginator.jsx';
import Panel from '../common/Panel.js';
import DisplayInfosPanel from '../common/DisplayInfosPanel.js';
import DisplayStars from '../common/DisplayStars.js';
import ReposPaginator from '../ReposPaginator/ReposPaginator.js';

export default class Repos extends React.Component {

Expand Down
@@ -1,6 +1,6 @@
import React from 'react';

import Spinner from '../common/Spinner.jsx';
import Spinner from '../common/Spinner.js';

export default class ReposPaginator extends React.Component {

Expand Down
@@ -1,6 +1,6 @@
import React from 'react';
import ProfileList from './../ProfileList/ProfileList.jsx';
import Spinner from '../common/Spinner.jsx';
import ProfileList from './../ProfileList/ProfileList.js';
import Spinner from '../common/Spinner.js';

/**
* This component doesn't have state nor it has to know about connect or redux.
Expand Down
@@ -1,7 +1,7 @@
import React from 'react';

import Panel from './Panel.jsx';
import Spinner from './Spinner.jsx';
import Panel from './Panel.js';
import Spinner from './Spinner.js';

const DisplayInfosPanel = ({infos, originalTitle}) => {
const fetching = infos ? infos.fetching : false;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/containers/App/App.jsx → src/containers/App/App.js
Expand Up @@ -2,8 +2,8 @@ import React from 'react';

import { connect } from 'react-redux';

import Header from '../../components/Header/Header.jsx';
import Footer from '../../components/Footer/Footer.jsx';
import Header from '../../components/Header/Header.js';
import Footer from '../../components/Footer/Footer.js';

const App = ({ children }) => {
return (
Expand Down
@@ -1,7 +1,7 @@
import React from 'react';

import IntroBox from '../../components/IntroBox/IntroBox.jsx';
import SearchBox from '../../components/SearchBox/SearchBox.jsx';
import IntroBox from '../../components/IntroBox/IntroBox.js';
import SearchBox from '../../components/SearchBox/SearchBox.js';

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
Expand Down
@@ -1,7 +1,7 @@
import React from 'react';

import Profile from '../../components/Profile/Profile.jsx';
import Repos from '../../components/Repos/Repos.jsx';
import Profile from '../../components/Profile/Profile.js';
import Repos from '../../components/Repos/Repos.js';

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
Expand Down
File renamed without changes.
Expand Up @@ -3,7 +3,7 @@ import { Link } from 'react-router';

import { connect } from 'react-redux';

import CounterButton from '../../components/CounterButton/CounterButton.jsx';
import CounterButton from '../../components/CounterButton/CounterButton.js';

const Redux = ({ counter }) => {
return (
Expand Down
10 changes: 5 additions & 5 deletions src/containers/index.js
@@ -1,5 +1,5 @@
export { default as App } from './App/App.jsx';
export { default as Github } from './Github/Github.jsx';
export { default as GithubUser } from './GithubUser/GithubUser.jsx';
export { default as Home } from './Home/Home.jsx';
export { default as Redux } from './Redux/Redux.jsx';
export { default as App } from './App/App.js';
export { default as Github } from './Github/Github.js';
export { default as GithubUser } from './GithubUser/GithubUser.js';
export { default as Home } from './Home/Home.js';
export { default as Redux } from './Redux/Redux.js';
File renamed without changes.
2 changes: 1 addition & 1 deletion test/components/common/CounterButton.spec.js
Expand Up @@ -2,7 +2,7 @@ import expect from 'expect';
import TestUtils from 'react-addons-test-utils';
import React from 'react';

import { CounterButton } from '../../../src/components/CounterButton/CounterButton.jsx';
import { CounterButton } from '../../../src/components/CounterButton/CounterButton.js';

function setup({counter = 0} = {}) {
const props = {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -125,7 +125,7 @@ var config = {
entry: {
"js/bundle": [
'webpack/hot/only-dev-server',//removed on build mode
"./src/bootstrap.jsx"
"./src/bootstrap.js"
],
"css/main": "./src/style/main.scss"
},
Expand Down

0 comments on commit 6c14896

Please sign in to comment.