Skip to content

Commit

Permalink
eslint problem fixed, bump v0.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Jul 31, 2019
1 parent 2cd9b2d commit bcd550f
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 27 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Listen1 Mobile V0.7.2
# Listen1 Mobile V0.7.3

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)

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": "listen1-mobile",
"version": "0.7.2",
"version": "0.7.3",
"private": true,
"scripts": {
"start": "react-native start",
Expand Down
2 changes: 1 addition & 1 deletion src/components/option-row.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OptionRowClass extends React.PureComponent {
};

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);
const { option } = this.props;

return (
Expand Down
2 changes: 1 addition & 1 deletion src/redux/myplaylist.reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function handleAddToMyPlaylist(state, action) {
function handleAddToMyFavorite(state, action) {
const { payload: track } = action;

console.log(state.myFavoriteIds, track);
// console.log(state.myFavoriteIds, track);

if (state.myFavoriteIds[track.id] !== undefined) {
// track already in favorite
Expand Down
2 changes: 0 additions & 2 deletions src/views/myplaylist/import-playlist.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { TextInput } from 'react-native';
import { connect } from 'react-redux';
import { withTheme } from 'styled-components';
import { TouchableOpacity } from 'react-native-gesture-handler';
import { createMyPlaylist } from '../../redux/actions';
import { ThemeFlex, PrimaryText } from '../../components';
import Client from '../../api/client';

Expand All @@ -30,7 +29,6 @@ class ImportPlaylist extends React.Component {
};
};
props: {
dispatch: Function,
navigation: Object,
theme: Object,
};
Expand Down
2 changes: 1 addition & 1 deletion src/views/myplaylist/myplaylist-list.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class MyPlaylistList extends React.Component {
});
};
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex>
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/mini-player.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MiniPlayer extends React.Component {
const noTrack = this.props.playerState.nowplayingTrack === null;
const { isPlaying } = this.props.playerState;

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<TouchableOpacity
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/modal-lite-container.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ModalLiteContainer extends React.Component {
this.props.dispatch(removeTrack(item));
};
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ModalLite
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/modal-player.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class ModalPlayerView extends React.Component {

const isFav = this.getFavStatus();

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ModalPlayer>
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/player-control.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class PlayerControl extends React.PureComponent {
render() {
const { isPlaying } = this.props;

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<PlayControlRow>
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/player-info.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PlayerInfo extends React.PureComponent {
const { nowplayingTrack, isFav } = this.props;
const noTrack = nowplayingTrack === null;

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ModalSongInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/views/player/player-nav.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PlayerNav extends React.PureComponent {
};

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ModalNavbar>
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/add-to-playlist-popup.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AddToPlaylistPopup extends React.Component {
};

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<View style={{ flex: 1 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/nav-header.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class NavHeader extends Component {
render() {
const { searchText, isFocus } = this.state;

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<View
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/playlist-grid.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PlaylistGrid extends PureComponent {
this.requestData(this.state.result.length);
};
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);
const { refreshing } = this.state;
const itemDimension = 100;
const titleHeight = 50;
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/playlist-popup.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class PlaylistPopup extends React.PureComponent {
};

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<View style={{ flex: 1 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/playlist-tabs.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PlaylistTabs extends PureComponent {
render() {
const { text } = this.props.searchState;

console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex>
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/playlist.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Playlist extends React.Component {
info = this.state.info;
tracks = this.state.tracks;
}
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<Flex style={{ backgroundColor: this.props.theme.backgroundColor }}>
Expand Down
4 changes: 2 additions & 2 deletions src/views/playlist/search.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Search extends React.Component {
this.setState({ isRefreshing: true });
}

console.log(`searching ${text} in ${this.props.tabIndex}, page: ${page}`);
// console.log(`searching ${text} in ${this.props.tabIndex}, page: ${page}`);
this.setState({});
Client.search(text, searchPage, this.props.platformId).then(r => {
if (searchPage === 1) {
Expand Down Expand Up @@ -115,7 +115,7 @@ class Search extends React.Component {
}

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex>
Expand Down
2 changes: 1 addition & 1 deletion src/views/playlist/track-popup.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TrackPopupClass extends React.PureComponent {
];

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<View style={{ flex: 1 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/setting/about.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class About extends React.Component {
};

render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex>
Expand Down
3 changes: 1 addition & 2 deletions src/views/setting/export-local.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ class ExportLocal extends React.Component {
myPlaylistState: this.props.myPlaylistState,
});

console.log(jsonObj);
this.setState({ jsonString: JSON.stringify(jsonObj) });
}
onPressCopy = () => {
Clipboard.setString(this.state.jsonString);
showToast('已复制到剪切板');
};
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex style={{ padding: 20 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/setting/import-local.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ImportLocal extends React.Component {
showToast('恢复成功,请返回');
};
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex style={{ padding: 20 }}>
Expand Down
2 changes: 1 addition & 1 deletion src/views/setting/setting.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Setting extends React.Component {
this.props.navigation.navigate('ImportLocal');
}
render() {
console.log(`render ${this.constructor.name}`);
// console.log(`render ${this.constructor.name}`);

return (
<ThemeFlex>
Expand Down

0 comments on commit bcd550f

Please sign in to comment.