Building to sub /assets/ folder

This commit is contained in:
James Barnsley
2019-03-06 13:28:37 +13:00
parent f8770428a2
commit ac2a6acdc8
28 changed files with 142 additions and 85 deletions

View File

@ -270,8 +270,9 @@ class Track extends React.Component{
* Rebuild a track URI with some ugly-ass handling of encoding.
*
* Basically the ID part of a Mopidy URI needs to be encoded, but the rest of the URI can't be.
* This means we need to break down the URI (decoded) and then reconstruct with an encoded ID
* because the URI is passed to us from a URL.
* This means we need to break down the URI (decoded) and then reconstruct with an encoded ID.
* This is all required because he URI is passed to us *from* a URL which has been encoded for
* obvious reasons.
*
* @param uri String
* @return String
@ -294,6 +295,8 @@ const mapStateToProps = (state, ownProps) => {
var uri = decodeURIComponent(ownProps.match.params.uri);
uri = rebuildUri(uri);
console.log(uri);
return {
uri: uri,
slim_mode: state.ui.slim_mode,