Removing defunct components

This commit is contained in:
James Barnsley
2019-04-11 09:35:59 +12:00
parent 413d93a181
commit dcd75c7d70
6 changed files with 852 additions and 1011 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -98,7 +98,7 @@
// Release details
// These are automatically injected to built HTML
var build = "1554926560";
var build = "1554932015";
var version = "3.34.3";
// Construct the script tag

View File

@ -1,28 +1,23 @@
import React from 'react'
import Icon from './Icon'
import React, { memo } from 'react';
import Icon from './Icon';
export default class ContextMenuTrigger extends React.Component{
export default memo((props) => {
constructor(props){
super(props);
}
handleClick(e){
const handleClick = (e) => {
e.preventDefault();
e.stopPropagation();
this.props.onTrigger(e);
props.onTrigger(e);
}
render(){
var className = 'context-menu-trigger mouse-contextable touch-contextable'
if (this.props.className){
className += ' '+this.props.className
}
return (
<span className={className} onClick={e => this.handleClick(e)}>
<Icon name="more_horiz" />
</span>
);
let className = 'context-menu-trigger mouse-contextable touch-contextable'
if (props.className){
className += ' '+props.className
}
}
return (
<span className={className} onClick={e => handleClick(e)}>
<Icon name="more_horiz" />
</span>
);
});

View File

@ -1,14 +1,12 @@
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import VolumeControl from './VolumeControl'
import MuteControl from './MuteControl'
import SnapcastPowerButton from './SnapcastPowerButton'
import Icon from '../Icon'
import VolumeControl from './VolumeControl';
import MuteControl from './MuteControl';
import Icon from '../Icon';
import * as helpers from '../../helpers';
import * as coreActions from '../../services/core/actions';
import * as pusherActions from '../../services/pusher/actions';
import * as snapcastActions from '../../services/snapcast/actions';

View File

@ -1,34 +0,0 @@
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Icon from '../Icon'
import * as helpers from '../../helpers';
import * as snapcastActions from '../../services/snapcast/actions';
export default class SnapcastPowerButton extends React.Component{
constructor(props){
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e){
this.props.onClick(e);
}
render(){
var classname = "snapcast-power-button";
if (this.props.className){
classname += " "+this.props.className;
}
return (
<span className={classname} onClick={e => this.handleClick(e)}>
<Icon name="power_settings_new" />
</span>
);
}
}