[Glitch] Run eslint --fix
I don't like it changing files this way, but it's basically what
c49213f0ea and a few others did.
			
			
This commit is contained in:
		@@ -68,75 +68,75 @@ class ActionBar extends React.PureComponent {
 | 
			
		||||
 | 
			
		||||
  handleReplyClick = () => {
 | 
			
		||||
    this.props.onReply(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleReblogClick = (e) => {
 | 
			
		||||
    this.props.onReblog(this.props.status, e);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleFavouriteClick = (e) => {
 | 
			
		||||
    this.props.onFavourite(this.props.status, e);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleBookmarkClick = (e) => {
 | 
			
		||||
    this.props.onBookmark(this.props.status, e);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleDeleteClick = () => {
 | 
			
		||||
    this.props.onDelete(this.props.status, this.context.router.history);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleRedraftClick = () => {
 | 
			
		||||
    this.props.onDelete(this.props.status, this.context.router.history, true);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleEditClick = () => {
 | 
			
		||||
    this.props.onEdit(this.props.status, this.context.router.history);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleDirectClick = () => {
 | 
			
		||||
    this.props.onDirect(this.props.status.get('account'), this.context.router.history);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleMentionClick = () => {
 | 
			
		||||
    this.props.onMention(this.props.status.get('account'), this.context.router.history);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleMuteClick = () => {
 | 
			
		||||
    this.props.onMute(this.props.status.get('account'));
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleConversationMuteClick = () => {
 | 
			
		||||
    this.props.onMuteConversation(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleBlockClick = () => {
 | 
			
		||||
    this.props.onBlock(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleReport = () => {
 | 
			
		||||
    this.props.onReport(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handlePinClick = () => {
 | 
			
		||||
    this.props.onPin(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleShare = () => {
 | 
			
		||||
    navigator.share({
 | 
			
		||||
      text: this.props.status.get('search_index'),
 | 
			
		||||
      url: this.props.status.get('url'),
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleEmbed = () => {
 | 
			
		||||
    this.props.onEmbed(this.props.status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleCopy = () => {
 | 
			
		||||
    const url = this.props.status.get('url');
 | 
			
		||||
    navigator.clipboard.writeText(url);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  render () {
 | 
			
		||||
    const { status, intl } = this.props;
 | 
			
		||||
 
 | 
			
		||||
@@ -138,7 +138,7 @@ export default class Card extends React.PureComponent {
 | 
			
		||||
    } else {
 | 
			
		||||
      this.setState({ embedded: true });
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  setRef = c => {
 | 
			
		||||
    this.node = c;
 | 
			
		||||
@@ -146,17 +146,17 @@ export default class Card extends React.PureComponent {
 | 
			
		||||
    if (this.node) {
 | 
			
		||||
      this._setDimensions();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleImageLoad = () => {
 | 
			
		||||
    this.setState({ previewLoaded: true });
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleReveal = e => {
 | 
			
		||||
    e.preventDefault();
 | 
			
		||||
    e.stopPropagation();
 | 
			
		||||
    this.setState({ revealed: true });
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  renderVideo () {
 | 
			
		||||
    const { card }  = this.props;
 | 
			
		||||
 
 | 
			
		||||
@@ -56,28 +56,28 @@ class DetailedStatus extends ImmutablePureComponent {
 | 
			
		||||
  handleAccountClick = (e) => {
 | 
			
		||||
    if (e.button === 0 && !(e.ctrlKey || e.altKey || e.metaKey) && this.context.router) {
 | 
			
		||||
      e.preventDefault();
 | 
			
		||||
      let state = {...this.context.router.history.location.state};
 | 
			
		||||
      let state = { ...this.context.router.history.location.state };
 | 
			
		||||
      state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
 | 
			
		||||
      this.context.router.history.push(`/@${this.props.status.getIn(['account', 'acct'])}`, state);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    e.stopPropagation();
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  parseClick = (e, destination) => {
 | 
			
		||||
    if (e.button === 0 && !(e.ctrlKey || e.altKey || e.metaKey) && this.context.router) {
 | 
			
		||||
      e.preventDefault();
 | 
			
		||||
      let state = {...this.context.router.history.location.state};
 | 
			
		||||
      let state = { ...this.context.router.history.location.state };
 | 
			
		||||
      state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;
 | 
			
		||||
      this.context.router.history.push(destination, state);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    e.stopPropagation();
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleOpenVideo = (options) => {
 | 
			
		||||
    this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), options);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  _measureHeight (heightJustChanged) {
 | 
			
		||||
    if (this.props.measureHeight && this.node) {
 | 
			
		||||
@@ -92,7 +92,7 @@ class DetailedStatus extends ImmutablePureComponent {
 | 
			
		||||
  setRef = c => {
 | 
			
		||||
    this.node = c;
 | 
			
		||||
    this._measureHeight();
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  componentDidUpdate (prevProps, prevState) {
 | 
			
		||||
    this._measureHeight(prevState.height !== this.state.height);
 | 
			
		||||
@@ -100,7 +100,7 @@ class DetailedStatus extends ImmutablePureComponent {
 | 
			
		||||
 | 
			
		||||
  handleChildUpdate = () => {
 | 
			
		||||
    this._measureHeight();
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleModalLink = e => {
 | 
			
		||||
    e.preventDefault();
 | 
			
		||||
@@ -114,12 +114,12 @@ class DetailedStatus extends ImmutablePureComponent {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    window.open(href, 'mastodon-intent', 'width=445,height=600,resizable=no,menubar=no,status=no,scrollbars=yes');
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  handleTranslate = () => {
 | 
			
		||||
    const { onTranslate, status } = this.props;
 | 
			
		||||
    onTranslate(status);
 | 
			
		||||
  }
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  render () {
 | 
			
		||||
    const status = (this.props.status && this.props.status.get('reblog')) ? this.props.status.get('reblog') : this.props.status;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user