Skip to content

Commit 6423e75

Browse files
committed
Update all call-sites to asset files (static or build)
1 parent ce256f7 commit 6423e75

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# uxscoreboard
33

4-
![uxscoreboard preview](https://zac.codes/assets/img/projects/uxscoreboard_preview-xlarge.jpg)
4+
![uxscoreboard preview](https://zac.codes/assets/static/img/projects/uxscoreboard_preview-xlarge.jpg)
55

66
uxscoreboard | A sports scoreboard web app built on ES6, React, and Node.js.
77

src/components/Diamond/BaseballField.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { createDiamond } from 'helpers/baseball'
33
import s from './BaseballField.scss'
44

55
const BaseballField = ({ offense }) => (
6-
<img className={s.baseballField} src={`/assets/img/mlb/other/${createDiamond(offense)}.svg`} />
6+
<img className={s.baseballField} src={`/assets/static/img/mlb/other/${createDiamond(offense)}.svg`} />
77
)
88

99
export default BaseballField

src/components/Header/Item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const Item = ({ name, url, icon, screenWidth }) => (
77
<Link className={s.link} to={`/${url}`} title={`uxscoreboard | ${name} scores`} activeClassName='active'>
88
<span className={s.text}>
99
{ screenWidth < 667 &&
10-
<span className={s.icon} style={{backgroundImage:`url('/assets/icons/${icon}.svg')`}}></span>
10+
<span className={s.icon} style={{backgroundImage:`url('/assets/static/icons/${icon}.svg')`}}></span>
1111
}
1212
{name}
1313
</span>

src/components/Header/Logo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import s from './Header.scss'
44

55
const Logo = () => (
66
<Link to='/' title={'uxscoreboard'}>
7-
<img className={s.logo} src={'/assets/img/uxscoreboard.svg'} alt={'uxscoreboard'} />
7+
<img className={s.logo} src={'/assets/static/img/uxscoreboard.svg'} alt={'uxscoreboard'} />
88
</Link>
99
)
1010

src/components/Home/Item.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
transition-delay:0.11s;
3737
}
3838
.mlb, .mls, .nba, .nfl, .nhl { composes:link }
39-
.mlb::after { background-image:url('/assets/icons/baseball_light.svg') }
40-
.mls::after { background-image:url('/assets/icons/soccer_light.svg') }
41-
.nba::after { background-image:url('/assets/icons/basketball_light.svg') }
42-
.nfl::after { background-image:url('/assets/icons/football_light.svg') }
43-
.nhl::after { background-image:url('/assets/icons/hockey_light.svg');top:20%;bottom:20% }
39+
.mlb::after { background-image:url('/assets/static/icons/baseball_light.svg') }
40+
.mls::after { background-image:url('/assets/static/icons/soccer_light.svg') }
41+
.nba::after { background-image:url('/assets/static/icons/basketball_light.svg') }
42+
.nfl::after { background-image:url('/assets/static/icons/football_light.svg') }
43+
.nhl::after { background-image:url('/assets/static/icons/hockey_light.svg');top:20%;bottom:20% }
4444

4545
@media only screen and (min-width:$medium) {
4646
.item {

src/components/NotFound/NotFound.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
width: 100%;
55
position: absolute;
66
top: 0; right: 0; bottom: 0; left: 0;
7-
background: $real_black url('/assets/img/404/mr_robot-404.jpg') center center / contain no-repeat;
7+
background: $real_black url('/assets/static/img/404/mr_robot-404.jpg') center center / contain no-repeat;
88
}

src/components/Team/Team.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const makeBgImg = (code, league, isLoaded) => ({
99

1010
const Team = ({ name, code, filetype = 'svg', ws, ls, ts, score, league, hasLoaded, logoHasLoaded }) => (
1111
<section className={code === 'nyy' ? s[code] : s.container} style={makeBgImg(code, league)}>
12-
<LogoContainer src={`/assets/img/${league}/teams/${code}.${filetype}`} name={name} hasLoaded={hasLoaded} logoHasLoaded={logoHasLoaded} />
12+
<LogoContainer src={`/assets/static/img/${league}/teams/${code}.${filetype}`} name={name} hasLoaded={hasLoaded} logoHasLoaded={logoHasLoaded} />
1313
<main className={s.info}>
1414
<section className={s.leftSide}>
1515
<span className={s.name}>{ name.length >= 9 ? <small>{name}</small> : name }</span>

src/containers/Scoreboard/ScoreboardContainer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ class ScoreboardContainer extends Component {
6666
let img = ''
6767
if (this.state.seasonState.isPlayoffs) {
6868
if (this.state.seasonState.isFinals) {
69-
img = `url(/assets/img/${this.props.league}/other/finals.svg)`
69+
img = `url(/assets/static/img/${this.props.league}/other/finals.svg)`
7070
} else {
71-
img = `url(/assets/img/${this.props.league}/other/playoffs.svg)`
71+
img = `url(/assets/static/img/${this.props.league}/other/playoffs.svg)`
7272
}
7373
}
7474
if (this.state.seasonState.isAllStar) {
75-
img = `url(/assets/img/${this.props.league}/other/all-star-game.svg)`
75+
img = `url(/assets/static/img/${this.props.league}/other/all-star-game.svg)`
7676
}
7777
this.setState({ bgImg: img })
7878
}

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>uxscoreboard</title>
99
<meta name="description" content="uxscoreboard · A sports scoreboard web app built on ES6, React, and Node.js—features MLB, NBA, NFL, NHL, and MLS (coming soon) games.">
1010
<link rel="icon" href="/favicon.ico">
11-
<link rel="stylesheet" href="/assets/css/styles.css">
11+
<link rel="stylesheet" href="/assets/static/css/styles.css">
1212
<!--
1313
_ _
1414
| | | |

webpack.config.babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const duplicatePackageCheckerPlugin = new DuplicatePackageCheckerPlugin({
7878

7979
const extractTextPlugin = new ExtractTextPlugin({
8080
disable: !isProduction,
81-
filename: 'assets/css/bundle.[hash:12].css'
81+
filename: 'assets/build/css/bundle.[hash:12].css'
8282
})
8383

8484
const compressionPlugin = new CompressionPlugin({
@@ -146,7 +146,7 @@ const sharedCssLoaders = [
146146
const base = {
147147
output: {
148148
path: PATHS.build,
149-
filename: isProduction ? 'assets/js/bundle.[hash:12].min.js' : 'assets/js/bundle.[hash:12].js',
149+
filename: isProduction ? 'assets/build/js/bundle.[hash:12].min.js' : 'assets/build/js/bundle.[hash:12].js',
150150
publicPath: '/'
151151
},
152152
module: {

0 commit comments

Comments
 (0)