Skip to content

Commit

Permalink
removes sass and immutability helper
Browse files Browse the repository at this point in the history
  • Loading branch information
minaorangina committed Oct 31, 2017
1 parent be18d60 commit 857003d
Show file tree
Hide file tree
Showing 9 changed files with 8,137 additions and 32 deletions.
8,111 changes: 8,111 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,15 @@
"css-loader": "^0.25.0",
"dotenv": "^4.0.0",
"express": "^4.14.0",
"immutability-helper": "^2.0.0",
"lodash.isequal": "^4.5.0",
"moment": "^2.15.1",
"morgan": "^1.7.0",
"node-sass": "^3.10.1",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-redux": "^4.4.5",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0",
"request": "^2.75.0",
"sass-loader": "^4.0.2",
"soap": "0.11.4",
"socket.io": "^1.5.0",
"style-loader": "^0.13.1",
Expand Down
2 changes: 1 addition & 1 deletion src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { store } from './store.js';
import { getArrivals } from './actions.js';
import ArrivalsContainer from './containers/arrivals.js';

require('../scss/main.scss');
require('../styles.css');

const { direction } = store.getState();
store.dispatch(getArrivals('train', direction));
Expand Down
2 changes: 2 additions & 0 deletions src/js/components/arrivals.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Card from './card';
const Arrivals = ({ train, dlr, direction, changeDirection }) => {

const headerText = (direction === 'home' ? 'Going home' : 'Going to work');
const headerIcon = (direction === 'home' ? 0x1f3E0 : 0x1f680);

const renderArrivals = (direction) => {
if (direction === 'home') {
Expand Down Expand Up @@ -55,6 +56,7 @@ const Arrivals = ({ train, dlr, direction, changeDirection }) => {
<h3 className="header">
<i className={ direction === 'home' ? 'ion-android-home' : 'ion-briefcase' } />
{ headerText }
{ String.fromCharCode(headerIcon) }
</h3>
{ renderArrivals(direction) }
<button
Expand Down
6 changes: 0 additions & 6 deletions src/scss/_base.scss

This file was deleted.

2 changes: 0 additions & 2 deletions src/scss/main.scss

This file was deleted.

37 changes: 20 additions & 17 deletions src/scss/_styles.scss → src/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500);

body {
font-family: Roboto, sans-serif;
font-size: 20px;
}

.container {
max-width: 500px;
Expand Down Expand Up @@ -40,32 +46,29 @@ h2, h3 {
margin: 10px;
}

.arrival-item {
&.cancelled {
text-decoration: line-through;
}
.arrival-item.cancelled {
text-decoration: line-through;
}

.info {
font-size: 0.8em;
font-style: italic;
&.delayed {
color: rgb(228, 151, 19);
font-weight: bold;
}
&.cancelled {
color: rgb(158, 7, 16);
font-weight: bold;
}
}

.info.delayed {
color: rgb(228, 151, 19);
font-weight: bold;
}
.info.cancelled {
color: rgb(158, 7, 16);
font-weight: bold;
}
.ion-android-home, .ion-briefcase {
font-size: 32px;
&::after {
content: ' ';
}
}

}
.ion-android-home::after, .ion-briefcase::after {
content: ' ';
}
button {
outline: none;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
module: {
rules: [
{ test: /\.js$/, exclude: /node_modules/, use: 'babel-loader' },
{ test: /\.s?css$/, use: ['style-loader', 'css-loader', 'sass-loader'] }
{ test: /\.css$/, use: ['style-loader', 'css-loader'] }
]
},
devServer: {
Expand Down
4 changes: 2 additions & 2 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports = {
exclude: /node_modules/
},
{
test: /\.scss$/,
loaders: ["style-loader", "css-loader", "sass-loader"]
test: /\.css$/,
loaders: ["style-loader", "css-loader"]
}
]
},
Expand Down

0 comments on commit 857003d

Please sign in to comment.