Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View File

@@ -0,0 +1,18 @@
import * as React from 'react';
import { StandardProps } from '..';
export interface ToolbarProps extends StandardProps<
React.HTMLAttributes<HTMLDivElement>,
ToolbarClassKey
> {
disableGutters?: boolean;
}
export type ToolbarClassKey =
| 'root'
| 'gutters'
;
declare const Toolbar: React.ComponentType<ToolbarProps>;
export default Toolbar;

View File

@@ -0,0 +1,40 @@
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
// weak
import React from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
root: _extends({
position: 'relative',
display: 'flex',
alignItems: 'center'
}, theme.mixins.toolbar),
gutters: theme.mixins.gutters({})
});
function Toolbar(props) {
const { children, classes, className: classNameProp, disableGutters } = props,
other = _objectWithoutProperties(props, ['children', 'classes', 'className', 'disableGutters']);
const className = classNames(classes.root, {
[classes.gutters]: !disableGutters
}, classNameProp);
return React.createElement(
'div',
_extends({ className: className }, other),
children
);
}
Toolbar.defaultProps = {
disableGutters: false
};
export default withStyles(styles, { name: 'MuiToolbar' })(Toolbar);

View File

@@ -0,0 +1,2 @@
export { default } from './Toolbar';
export * from './Toolbar';

View File

@@ -0,0 +1 @@
export { default } from './Toolbar';