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 2, 2020
2 parents 7d771a9 + 1545bcb commit 6ad8d26
Show file tree
Hide file tree
Showing 14 changed files with 118 additions and 88 deletions.
2 changes: 1 addition & 1 deletion IRIS_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.53.0
3.53.1
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.53.0"
__version__ = "3.53.1"

logger = logging.getLogger(__name__)

Expand Down
131 changes: 76 additions & 55 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.

14 changes: 7 additions & 7 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 = "1603873501";
var version = "3.53.0";
var build = "1604338606";
var version = "3.53.1";

// 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.53.0",
"manifest_version": "3.53.1",
"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.53.0",
"version": "3.53.1",
"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.53.0
version = 3.53.1
url = https://github.com/jaedb/iris
author = James Barnsley
author_email = [email protected]
Expand Down
10 changes: 7 additions & 3 deletions src/js/components/GridItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,21 @@ class GridItem extends React.Component {

renderSecondary = ({
uri,
tracks_total = 0,
tracks,
tracks_total,
tracks = [],
followers,
albums_uris,
artists,
}) => {
let trackCount = 0;
if (tracks) trackCount = tracks.length;
if (tracks_total) trackCount = tracks_total;

switch (uriType(uri)) {
case 'playlist':
return (
<span className="grid__item__secondary__content">
<I18n path="specs.tracks" count={tracks.length || tracks_total} />
<I18n path="specs.tracks" count={trackCount} />
</span>
);

Expand Down
18 changes: 12 additions & 6 deletions src/js/components/Services.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,31 +299,37 @@ class Services extends React.Component {
}
} = this.props;

const spotify_icon = (
const spotify_icon = spotifyUser ? (
<Thumbnail
className="menu-item__thumbnail"
circle
size="small"
images={spotifyUser ? spotifyUser.images : null}
images={spotifyUser.images}
/>
) : (
<Thumbnail className="menu-item__thumbnail" circle size="small" />
);

const lastfm_icon = (
const lastfm_icon = lastfmUser ? (
<Thumbnail
className="menu-item__thumbnail"
circle
size="small"
images={lastfmUser ? lastfmUser.images : null}
images={lastfmUser.images}
/>
) : (
<Icon type="fontawesome" name="lastfm" className="menu-item__icon" />
);

const genius_icon = (
const genius_icon = geniusUser ? (
<Thumbnail
className="menu-item__thumbnail"
circle
size="small"
images={geniusUser ? geniusUser.images : null}
images={geniusUser.images}
/>
) : (
<Icon name="genius" type="svg" className="menu-item__icon" />
);

return (
Expand Down
12 changes: 6 additions & 6 deletions src/js/locale/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,27 @@ fields:
followers: Followers
popularity: Popularity
time:
seconds:
seconds:
short: secs
singular: second
plural: seconds
minutes:
minutes:
short: mins
singular: minute
plural: minutes
hours:
hours:
short: hrs
singular: hour
plural: hours
days:
days:
short: days
singular: day
plural: days
weeks:
weeks:
short: wks
singular: week
plural: weeks
years:
years:
short: yrs
singular: year
plural: years
Expand Down
3 changes: 1 addition & 2 deletions src/js/views/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Thumbnail from '../components/Thumbnail';
import PinButton from '../components/Fields/PinButton';
import { nice_number } from '../components/NiceNumber';
import { Dater, dater } from '../components/Dater';
import LazyLoadListener from '../components/LazyLoadListener';
import FollowButton from '../components/Fields/FollowButton';
import Loader from '../components/Loader';
import ContextMenuTrigger from '../components/ContextMenuTrigger';
Expand All @@ -22,12 +21,12 @@ import * as spotifyActions from '../services/spotify/actions';
import {
uriSource,
getFromUri,
isLoading,
sourceIcon,
decodeMopidyUri,
} from '../util/helpers';
import { i18n, I18n } from '../locale';
import { makeItemSelector, makeLoadingSelector } from '../util/selectors';
import { sortItems } from '../util/arrays';

class Playlist extends React.Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class Settings extends React.Component {
<I18n path="settings.interface.title" />
<a name="interface" />
</h4>

<div className="field dropdown">
<div className="name"><I18n path="settings.interface.language.label" /></div>
<div className="input">
Expand Down

0 comments on commit 6ad8d26

Please sign in to comment.