Skip to content

Commit 6c14896

Browse files
committed
refactor(*) replace .jsx file extensions with .js
1 parent 244cc2d commit 6c14896

File tree

26 files changed

+29
-29
lines changed

26 files changed

+29
-29
lines changed

src/bootstrap.jsx renamed to src/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ReactDOM from 'react-dom';
66
import { ReduxRouter } from 'redux-router';
77
import { Provider } from 'react-redux';
88

9-
import routes from './routes.jsx';
9+
import routes from './routes.js';
1010

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

src/components/Footer/Footer.jsx renamed to src/components/Footer/Footer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import TwitterButton from './../TwitterButton/TwitterButton.jsx';
3+
import TwitterButton from './../TwitterButton/TwitterButton.js';
44

55
const Footer = () => (
66
<footer className="footer container">
File renamed without changes.

src/components/Profile/Profile.jsx renamed to src/components/Profile/Profile.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22

3-
import Panel from '../common/Panel.jsx';
4-
import Tr from '../common/Tr.jsx';
5-
import DisplayInfosPanel from '../common/DisplayInfosPanel.jsx';
3+
import Panel from '../common/Panel.js';
4+
import Tr from '../common/Tr.js';
5+
import DisplayInfosPanel from '../common/DisplayInfosPanel.js';
66

77
const Profile = ({profile}) => {
88
if (profile && profile.data) {

src/components/ProfileList/ProfileList.jsx renamed to src/components/ProfileList/ProfileList.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Link } from 'react-router';
33

4-
import ProfileBox from './../ProfileBox/ProfileBox.jsx';
4+
import ProfileBox from './../ProfileBox/ProfileBox.js';
55

66
const ProfileList = ({results}) => {
77
if (results === null) {

src/components/Repos/Repos.jsx renamed to src/components/Repos/Repos.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from 'react';
22

3-
import Panel from '../common/Panel.jsx';
4-
import DisplayInfosPanel from '../common/DisplayInfosPanel.jsx';
5-
import DisplayStars from '../common/DisplayStars.jsx';
6-
import ReposPaginator from '../ReposPaginator/ReposPaginator.jsx';
3+
import Panel from '../common/Panel.js';
4+
import DisplayInfosPanel from '../common/DisplayInfosPanel.js';
5+
import DisplayStars from '../common/DisplayStars.js';
6+
import ReposPaginator from '../ReposPaginator/ReposPaginator.js';
77

88
export default class Repos extends React.Component {
99

src/components/ReposPaginator/ReposPaginator.jsx renamed to src/components/ReposPaginator/ReposPaginator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
import Spinner from '../common/Spinner.jsx';
3+
import Spinner from '../common/Spinner.js';
44

55
export default class ReposPaginator extends React.Component {
66

src/components/SearchBox/SearchBox.jsx renamed to src/components/SearchBox/SearchBox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import ProfileList from './../ProfileList/ProfileList.jsx';
3-
import Spinner from '../common/Spinner.jsx';
2+
import ProfileList from './../ProfileList/ProfileList.js';
3+
import Spinner from '../common/Spinner.js';
44

55
/**
66
* This component doesn't have state nor it has to know about connect or redux.

src/components/common/DisplayInfosPanel.jsx renamed to src/components/common/DisplayInfosPanel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import Panel from './Panel.jsx';
4-
import Spinner from './Spinner.jsx';
3+
import Panel from './Panel.js';
4+
import Spinner from './Spinner.js';
55

66
const DisplayInfosPanel = ({infos, originalTitle}) => {
77
const fetching = infos ? infos.fetching : false;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/containers/App/App.jsx renamed to src/containers/App/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22

33
import { connect } from 'react-redux';
44

5-
import Header from '../../components/Header/Header.jsx';
6-
import Footer from '../../components/Footer/Footer.jsx';
5+
import Header from '../../components/Header/Header.js';
6+
import Footer from '../../components/Footer/Footer.js';
77

88
const App = ({ children }) => {
99
return (

src/containers/Github/Github.jsx renamed to src/containers/Github/Github.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import IntroBox from '../../components/IntroBox/IntroBox.jsx';
4-
import SearchBox from '../../components/SearchBox/SearchBox.jsx';
3+
import IntroBox from '../../components/IntroBox/IntroBox.js';
4+
import SearchBox from '../../components/SearchBox/SearchBox.js';
55

66
import { connect } from 'react-redux';
77
import { bindActionCreators } from 'redux';

src/containers/GithubUser/GithubUser.jsx renamed to src/containers/GithubUser/GithubUser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import Profile from '../../components/Profile/Profile.jsx';
4-
import Repos from '../../components/Repos/Repos.jsx';
3+
import Profile from '../../components/Profile/Profile.js';
4+
import Repos from '../../components/Repos/Repos.js';
55

66
import { connect } from 'react-redux';
77
import { bindActionCreators } from 'redux';
File renamed without changes.

src/containers/Redux/Redux.jsx renamed to src/containers/Redux/Redux.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Link } from 'react-router';
33

44
import { connect } from 'react-redux';
55

6-
import CounterButton from '../../components/CounterButton/CounterButton.jsx';
6+
import CounterButton from '../../components/CounterButton/CounterButton.js';
77

88
const Redux = ({ counter }) => {
99
return (

src/containers/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { default as App } from './App/App.jsx';
2-
export { default as Github } from './Github/Github.jsx';
3-
export { default as GithubUser } from './GithubUser/GithubUser.jsx';
4-
export { default as Home } from './Home/Home.jsx';
5-
export { default as Redux } from './Redux/Redux.jsx';
1+
export { default as App } from './App/App.js';
2+
export { default as Github } from './Github/Github.js';
3+
export { default as GithubUser } from './GithubUser/GithubUser.js';
4+
export { default as Home } from './Home/Home.js';
5+
export { default as Redux } from './Redux/Redux.js';
File renamed without changes.

test/components/common/CounterButton.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import expect from 'expect';
22
import TestUtils from 'react-addons-test-utils';
33
import React from 'react';
44

5-
import { CounterButton } from '../../../src/components/CounterButton/CounterButton.jsx';
5+
import { CounterButton } from '../../../src/components/CounterButton/CounterButton.js';
66

77
function setup({counter = 0} = {}) {
88
const props = {

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ var config = {
125125
entry: {
126126
"js/bundle": [
127127
'webpack/hot/only-dev-server',//removed on build mode
128-
"./src/bootstrap.jsx"
128+
"./src/bootstrap.js"
129129
],
130130
"css/main": "./src/style/main.scss"
131131
},

0 commit comments

Comments
 (0)