forked from BiosBoy/coconat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added major improvements and optimizations inside Webpack Configurati…
…on file
- Loading branch information
Showing
23 changed files
with
4,713 additions
and
1,758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
{ | ||
"presets": [ | ||
["@babel/env", { | ||
"targets": { | ||
"browsers": ["last 2 versions"] | ||
} | ||
}], | ||
"@babel/env", | ||
"@babel/react", | ||
"@babel/typescript" | ||
], | ||
"plugins": [ | ||
"@babel/plugin-transform-object-assign", | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-syntax-dynamic-import", | ||
["@babel/plugin-transform-async-to-generator", { | ||
"module": "bluebird", | ||
"method": "coroutine" | ||
}] | ||
"@babel/plugin-syntax-dynamic-import" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React, { PureComponent } from 'react'; | ||
import styles from '../styles/index.scss'; | ||
|
||
class Body extends PureComponent { | ||
render() { | ||
return ( | ||
<div className={styles.body}> | ||
<img | ||
className={styles.bodyImg} | ||
src='https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/SNice.svg/1200px-SNice.svg.png' | ||
alt='main_img' | ||
/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Body; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import Header from './Header'; | ||
import Footer from './Footer'; | ||
import HelloWorld from './HelloWorld'; | ||
|
||
export { Header, Footer, HelloWorld }; | ||
import Body from './Body'; | ||
|
||
export { Header, Footer, Body }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const initialState = { | ||
common: { | ||
appName: 'react-suspense' | ||
app: { | ||
appName: 'reactStarterKit' | ||
} | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { takeLatest } from 'redux-saga/effects'; | ||
import { testSaga } from './testSaga'; | ||
import { someSaga } from './someSaga'; | ||
import { SOME_SAGA } from '../../constants'; | ||
|
||
export default function* watchSagas() { | ||
yield takeLatest(SOME_SAGA, testSaga); | ||
yield takeLatest(SOME_SAGA, someSaga); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,41 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Roboto'); | ||
|
||
* { | ||
color: white; | ||
font-family: 'Roboto', sans-serif; | ||
} | ||
|
||
.appWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: auto; | ||
height: 100%; | ||
} | ||
|
||
.extra { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 25vh; | ||
font-size: 25px; | ||
text-align: center; | ||
width: 300px; | ||
height: 30px; | ||
background: linear-gradient(to right, #1110 0%, #f9db2d 50%, #1110 100%); | ||
} | ||
|
||
.appHeader { | ||
composes: extra; | ||
background: green; | ||
} | ||
|
||
.helloWorld { | ||
composes: extra; | ||
background: red; | ||
.body { | ||
display: block; | ||
} | ||
|
||
.helloStart { | ||
composes: extra; | ||
color: purple; | ||
.bodyImg { | ||
margin: 40px; | ||
width: 50vh; | ||
} | ||
|
||
.appFooter { | ||
composes: extra; | ||
background: yellow; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.