Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Nov 20, 2020
2 parents 025b76d + 88c0292 commit 4dbe9c5
Show file tree
Hide file tree
Showing 35 changed files with 634 additions and 425 deletions.
2 changes: 1 addition & 1 deletion IRIS_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.54.1
3.54.2
2 changes: 1 addition & 1 deletion mopidy_iris/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from mopidy import config, ext

__version__ = "3.54.1"
__version__ = "3.54.2"

logger = logging.getLogger(__name__)

Expand Down
37 changes: 24 additions & 13 deletions mopidy_iris/static/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.css.map

Large diffs are not rendered by default.

385 changes: 233 additions & 152 deletions mopidy_iris/static/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mopidy_iris/static/app.min.css

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions mopidy_iris/static/app.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions mopidy_iris/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@

// Release details
// These are automatically injected to built HTML
var build = "1605168871";
var version = "3.54.1";
var build = "1605864468";
var version = "3.54.2";

// Construct the script tag
var js = document.createElement("script");
Expand Down
2 changes: 1 addition & 1 deletion mopidy_iris/static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"manifest_version": "3.54.1",
"manifest_version": "3.54.2",
"short_name": "Iris",
"name": "Iris",
"icons": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mopidy-iris",
"version": "3.54.1",
"version": "3.54.2",
"description": "Mopidy HTTP interface",
"repository": "https://github.com/jaedb/iris",
"author": "James Barnsley <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = Mopidy-Iris
version = 3.54.1
version = 3.54.2
url = https://github.com/jaedb/iris
author = James Barnsley
author_email = [email protected]
Expand Down
11 changes: 1 addition & 10 deletions src/js/components/Loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,9 @@ export default memo((props) => {
<div className={classNameString}>
<LoaderRing
stroke={mini ? 2 : 3}
radius={mini ? 11 : 60}
radius={mini ? 12 : 60}
progress={progress}
/>
</div>
);

return (
<div className={classNameString}>
<div className="loader__spinner">
<div className="loader__spinner__background" />
<div className="loader__spinner__foreground" />
</div>
</div>
);
});
18 changes: 15 additions & 3 deletions src/js/components/PlaybackControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ class PlaybackControls extends React.Component {
this.state = {
expanded: false,
current_track: null,
stream_title: null,
transition_track: null,
transition_direction: null,
};
}

static getDerivedStateFromProps({ current_track }, state) {
static getDerivedStateFromProps({ current_track, stream_title }, state) {
return {
...state,
current_track,
stream_title,
};
}

Expand Down Expand Up @@ -211,6 +213,7 @@ class PlaybackControls extends React.Component {
const {
current_track,
expanded,
stream_title,
transition_track,
transition_direction,
} = this.state;
Expand Down Expand Up @@ -254,10 +257,17 @@ class PlaybackControls extends React.Component {
</Link>
<div className="text">
<div className="title">
{current_track ? current_track.name : <span>-</span>}
{stream_title && <span>{stream_title}</span>}
{!stream_title && current_track && <span>{current_track.name}</span>}
{!stream_title && !current_track && <span>-</span>}
</div>
<div className="artist">
{current_track ? <LinksSentence items={current_track.artists} /> : <LinksSentence />}
{
(current_track && current_track.artists
&& <LinksSentence items={current_track.artists} />)
|| (stream_title && <span className="links-sentence">{stream_title}</span>)
|| <LinksSentence />
}
</div>
</div>
</div>
Expand Down Expand Up @@ -338,11 +348,13 @@ const mapStateToProps = (state) => {
items,
next_track_uri,
current_track,
stream_title,
} = state.core;

return {
snapcast_enabled: state.pusher.config.snapcast_enabled,
current_track: current_track ? items[current_track.uri] || current_track : null,
stream_title,
next_track: items[next_track_uri],
radio_enabled: (!!(state.ui.radio && state.ui.radio.enabled)),
play_state: state.mopidy.play_state,
Expand Down
7 changes: 7 additions & 0 deletions src/js/components/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export default class Track extends React.Component {
const {
track,
track_context,
stream_title,
play_state,
selected,
can_sort,
Expand All @@ -314,6 +315,12 @@ export default class Track extends React.Component {
{track.artists ? <LinksSentence items={track.artists} /> : '-'}
</li>,
);
} else if (track.playing && stream_title) {
track_details.push(
<li className="details__item details__item--artists" key="stream_title">
<span className="links-sentence">{stream_title}</span>
</li>,
);
}

if (track.album) {
Expand Down
1 change: 1 addition & 0 deletions src/js/components/TrackList.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ const mapStateToProps = (state) => ({
dragger: state.ui.dragger,
current_track: state.core.current_track,
context_menu: state.ui.context_menu,
stream_title: state.core.stream_title,
});

const mapDispatchToProps = (dispatch) => ({
Expand Down
Loading

0 comments on commit 4dbe9c5

Please sign in to comment.