Skip to content

Commit

Permalink
🔥 Sunset radio player
Browse files Browse the repository at this point in the history
Does not work with current API
  • Loading branch information
timmo001 committed Apr 27, 2019
1 parent 1e4990c commit 0eeca08
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ A touch-compatible web frontend for controlling the home. Integrates with
- Supports MJPEG and related image-based camera/image feeds. Images can also
be used
- Light control with brightness, temperature, color and effects support
- Supports Radio playback from TuneIn
- Add weather and weather icons using Home Assistant's
[Dark Sky](https://www.home-assistant.io/components/weather.darksky/)
component
Expand Down
4 changes: 0 additions & 4 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ A touch-compatible web frontend for controlling the home. Integrates with
- Supports MJPEG and related image-based camera/image feeds. Images can also
be used
- Light control with brightness, temperature, color and effects support
- Supports Radio playback from TuneIn
- Add weather and weather icons using Home Assistant's
[Dark Sky](https://www.home-assistant.io/components/weather.darksky/)
component
Expand All @@ -53,8 +52,6 @@ A touch-compatible web frontend for controlling the home. Integrates with
![Dark Theme Screenshot][dark-theme]
![More Info Dark Screenshot][more-info-dark]

![Radio Screenshot][radio]

![Forest Theme][forest-theme]

[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg
Expand Down Expand Up @@ -87,7 +84,6 @@ A touch-compatible web frontend for controlling the home. Integrates with
[more-info-light]: https://raw.githubusercontent.com/timmo001/home-panel/master/docs/resources/more-info-light.png
[project-stage-shield]: https://img.shields.io/badge/project%20stage-beta-green.svg
[pulls-shield]: https://img.shields.io/docker/pulls/timmo001/home-panel.svg
[radio]: https://raw.githubusercontent.com/timmo001/home-panel/master/docs/resources/radio.png
[releases-shield]: https://img.shields.io/github/release/timmo001/home-panel.svg
[releases]: https://github.com/timmo001/home-panel/releases
[setup-docs]: https://timmo.dev/home-panel/setup/
Expand Down
6 changes: 1 addition & 5 deletions src/Components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ class Header extends React.PureComponent {
over,
handleMouseOver,
handleMouseLeave,
handleRadioHide,
handleConfigUI
} = this.props;
const { anchorEl } = this.state;
Expand Down Expand Up @@ -401,8 +400,7 @@ class Header extends React.PureComponent {
justify="space-between"
alignItems="center"
wrap="nowrap"
spacing={8}
onClick={handleRadioHide}>
spacing={8}>
<Grid
item
className={classes.weatherContainer}
Expand Down Expand Up @@ -528,9 +526,7 @@ Header.propTypes = {
handleMouseOver: PropTypes.func.isRequired,
handleMouseLeave: PropTypes.func.isRequired,
setTheme: PropTypes.func.isRequired,
handleRadioToggle: PropTypes.func.isRequired,
handleLogOut: PropTypes.func.isRequired,
handleRadioHide: PropTypes.func.isRequired,
handleConfigUI: PropTypes.func.isRequired,
handleEditConfig: PropTypes.func.isRequired,
handleEditConfigRaw: PropTypes.func.isRequired
Expand Down
14 changes: 0 additions & 14 deletions src/Components/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import arrayMove from 'array-move';
import Header from './Header';
import Page from './Cards/Page';
import PageNavigation from './PageNavigation';
import Radio from './Radio/Radio';
import EditCard from './EditConfig/EditCard';
import EditPage from './EditConfig/EditPage';
import EditGroup from './EditConfig/EditGroup';
Expand Down Expand Up @@ -43,7 +42,6 @@ class Main extends React.PureComponent {
moved: true,
over: false,
hovered: false,
radioShown: false,
editing: false,
addingPage: false,
currentPage: 0
Expand Down Expand Up @@ -86,13 +84,6 @@ class Main extends React.PureComponent {

handleButtonRelease = () => clearTimeout(this.buttonPressTimer);

handleRadioShow = () => this.setState({ radioShown: true });

handleRadioHide = () => this.setState({ radioShown: false });

handleRadioToggle = () =>
this.setState({ radioShown: !this.state.radioShown });

handleLogOut = () => {
localStorage.removeItem('hass_tokens');
localStorage.setItem('been_here', true);
Expand Down Expand Up @@ -277,7 +268,6 @@ class Main extends React.PureComponent {
const {
moved,
over,
radioShown,
currentPage,
editing,
addingCard,
Expand Down Expand Up @@ -310,16 +300,13 @@ class Main extends React.PureComponent {
handleMouseOver={this.onMouseMoveHandler}
handleMouseLeave={this.onMouseLeaveHandler}
setTheme={this.props.setTheme}
handleRadioToggle={this.handleRadioToggle}
handleLogOut={this.handleLogOut}
handleRadioHide={this.handleRadioHide}
handleConfigUI={this.handleConfigUI}
handleEditConfig={this.handleEditConfig}
handleEditConfigRaw={this.handleEditConfigRaw}
/>
<div
className={classes.pageContainer}
onClick={this.handleRadioHide}
style={{
height: pages && (moved || over) ? 'calc(100% - 72px)' : 'inherit'
}}>
Expand Down Expand Up @@ -351,7 +338,6 @@ class Main extends React.PureComponent {
handlePageChange={this.handlePageChange}
/>
)}
<Radio show={radioShown} handleRadioHide={this.handleRadioHide} />
{addingCard && (
<EditCard
add
Expand Down

0 comments on commit 0eeca08

Please sign in to comment.