Skip to content
Snippets Groups Projects
Select Git revision
  • 0ce9b7821e0d3f2ac0fc0b733ce743c831727df9
  • mui5-annotation-on-video-stable default
  • get_setter_canvasSizeInformations
  • fix-error-div-into-p
  • annotation-on-video-v2
  • detached
  • annotation-on-video-r17
  • mui5
  • mui5-react-18
  • jacob-test
  • annotation-on-video protected
  • master
  • test-antoinev1
  • 20-fetch-thumbnail-on-annotation
  • add-research-field
  • Save
  • add-plugin
  • 14-wip-no-seek-to
  • 14-bug-on-video-time-control
  • 9_wip_videotests
  • _upgrade_material_ui
  • latest-tetras-16
  • v3.3.0
  • v3.2.0
  • v3.1.1
  • v3.1.0
  • v3.0.0
  • v3.0.0-rc.7
  • v3.0.0-rc.6
  • v3.0.0-rc.5
  • v3.0.0-rc.4
  • v3.0.0-rc.3
  • v3.0.0-rc.2
  • v3.0.0-rc.1
  • v3.0.0-beta.10
  • v3.0.0-beta.9
  • v3.0.0-beta.8
  • v3.0.0-beta.7
  • v3.0.0-beta.6
  • v3.0.0-beta.5
  • v3.0.0-beta.3
41 results

CanvasOverlayVideo.js

Blame
  • WorkspaceSelectionDialog.js 1.75 KiB
    import { compose } from 'redux';
    import { connect } from 'react-redux';
    import { withTranslation } from 'react-i18next';
    import { withStyles } from '@material-ui/core';
    import { withPlugins } from '../extend/withPlugins';
    import { WorkspaceSelectionDialog } from '../components/WorkspaceSelectionDialog';
    import * as actions from '../state/actions';
    import { getWorkspaceType } from '../state/selectors';
    
    /**
     * mapDispatchToProps - used to hook up connect to action creators
     * @memberof ManifestListItem
     * @private
     */
    const mapDispatchToProps = {
      updateWorkspace: actions.updateWorkspace,
    };
    
    /**
     * mapStateToProps - to hook up connect
     * @memberof Workspace
     * @private
     */
    const mapStateToProps = state => ({ workspaceType: getWorkspaceType(state) });
    
    /** */
    const styles = theme => ({
      card: {
        backgroundColor: 'transparent',
        borderRadius: '0',
        boxShadow: '0 0 transparent',
        display: 'flex',
      },
      content: {
        flex: '1 0 auto',
      },
      details: {
        display: 'flex',
        flexDirection: 'column',
      },
      headline: {
        paddingBottom: '6px',
      },
      list: {
        '&active': {
          outline: 'none',
        },
        '&focus': {
          outline: 'none',
        },
        outline: 'none',
      },
      media: {
        flex: '0 0 120px',
        height: '90px',
      },
      menuItem: {
        height: 'auto',
        overflow: 'auto',
        whiteSpace: 'inherit',
      },
      root: {
        '&:last-child': {
          paddingBottom: '12px',
        },
        paddingBottom: 0,
        paddingTop: 0,
        textAlign: 'left',
      },
      svgIcon: {
        flexShrink: 0,
        height: '90px',
        width: '120px',
      },
    });
    
    const enhance = compose(
      withTranslation(),
      withStyles(styles),
      connect(mapStateToProps, mapDispatchToProps),
      withPlugins('WorkspaceSelectionDialog'),
    );
    
    export default enhance(WorkspaceSelectionDialog);