Skip to content

Commit

Permalink
Implement ReportContent page
Browse files Browse the repository at this point in the history
  • Loading branch information
infinite-persistence authored and Sean Yesmunt committed Apr 21, 2021
1 parent e5e4a56 commit cb2c33a
Show file tree
Hide file tree
Showing 12 changed files with 881 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Japanese, Afrikaans, Filipino, Thai and Vietnamese language support ([#5684](https://github.com/lbryio/lbry-desktop/issues/5684))
- Highlight comments made by content owner _community pr!_ ([#5744](https://github.com/lbryio/lbry-desktop/pull/5744))
- Ability to report infringing content directly from the application ([#5808](https://github.com/lbryio/lbry-desktop/pull/5808))

### Changed

Expand Down
69 changes: 69 additions & 0 deletions static/app-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1784,6 +1784,75 @@
"Credits sent": "Credits sent",
"Unresolved": "Unresolved",
"Received amount did not match order code %chargeCode%. Contact hello@lbry.com to resolve the payment.": "Received amount did not match order code %chargeCode%. Contact hello@lbry.com to resolve the payment.",
"publish": "publish",
"Sexual content": "Sexual content",
"Violent or repulsive content": "Violent or repulsive content",
"Hateful or abusive content": "Hateful or abusive content",
"Harmful or dangerous acts": "Harmful or dangerous acts",
"Child abuse": "Child abuse",
"Promotes terrorism": "Promotes terrorism",
"Spam or misleading": "Spam or misleading",
"Infringes my rights": "Infringes my rights",
"Next": "Next",
"Graphic sexual activity": "Graphic sexual activity",
"Nudity": "Nudity",
"Suggestive, but without nudity": "Suggestive, but without nudity",
"Content involving minors": "Content involving minors",
"Sexual Abusive title or description": "Sexual Abusive title or description",
"Other sexual content": "Other sexual content",
"Timestamp": "Timestamp",
"Provide additional details": "Provide additional details",
"e.g. John Doe": "e.g. John Doe",
"e.g. john@example.com": "e.g. john@example.com",
"e.g. satoshi@example.com": "e.g. satoshi@example.com",
"Your channel": "Your channel",
"Set to \"Anonymous\" if you do not want to associate your channel in this report.": "Set to \"Anonymous\" if you do not want to associate your channel in this report.",
"Send report?": "Send report?",
"Send Report": "Send Report",
"Contact details": "Contact details",
"Report submitted": "Report submitted",
"We will review and respond shortly.": "We will review and respond shortly.",
"Adults fighting": "Adults fighting",
"Physical attack": "Physical attack",
"Youth violence": "Youth violence",
"Animal abuse": "Animal abuse",
"Promotes hatred or violence": "Promotes hatred or violence",
"Bullying": "Bullying",
"Hateful Abusive title or description": "Hateful Abusive title or description",
"Pharmaceutical or drug abuse": "Pharmaceutical or drug abuse",
"Abuse of fire or explosives": "Abuse of fire or explosives",
"Suicide or self injury": "Suicide or self injury",
"Other dangerous acts": "Other dangerous acts",
"Mass advertising": "Mass advertising",
"Pharmaceutical drugs for sale": "Pharmaceutical drugs for sale",
"Misleading text": "Misleading text",
"Misleading thumbnail": "Misleading thumbnail",
"Scams or fraud": "Scams or fraud",
"Copyright issue": "Copyright issue",
"Other legal issue": "Other legal issue",
"Affected party": "Affected party",
"Myself": "Myself",
"My company, organization, or client": "My company, organization, or client",
"Copyright owner name": "Copyright owner name",
"Relationship to copyrighted content": "Relationship to copyrighted content",
"(between 10 to 500 characters)": "(between 10 to 500 characters)",
"Remove now": "Remove now",
"Additional email (optional)": "Additional email (optional)",
"Phone number": "Phone number",
"Address": "Address",
"City": "City",
"State/province": "State/province",
"Zip code": "Zip code",
"Signature": "Signature",
"Your name": "Your name",
"Acting on behalf of": "Acting on behalf of",
"Self": "Self",
"Client": "Client",
"Title of specific law": "Title of specific law",
"Specific law": "Specific law",
"Law URL": "Law URL",
"Clarification": "Clarification",
"Client name": "Client name",
"We apologize for this inconvenience, but have added this additional step to prevent abuse. Users on VPN or shared connections will continue to see this message and are not eligible for Rewards.": "We apologize for this inconvenience, but have added this additional step to prevent abuse. Users on VPN or shared connections will continue to see this message and are not eligible for Rewards.",
"Help LBRY Save Crypto": "Help LBRY Save Crypto",
"The US government is attempting to destroy the cryptocurrency industry. Can you help?": "The US government is attempting to destroy the cryptocurrency industry. Can you help?",
Expand Down
29 changes: 29 additions & 0 deletions ui/component/reportContent/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { connect } from 'react-redux';
import { doReportContent } from 'redux/actions/reportContent';
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
import { selectIsReportingContent, selectReportContentError } from 'redux/selectors/reportContent';
import { makeSelectClaimForClaimId, doClaimSearch } from 'lbry-redux';
import { withRouter } from 'react-router';
import ReportContent from './view';

const select = (state, props) => {
const { search } = props.location;
const urlParams = new URLSearchParams(search);
const claimId = urlParams.get('claimId');

return {
isReporting: selectIsReportingContent(state),
error: selectReportContentError(state),
activeChannelClaim: selectActiveChannelClaim(state),
incognito: selectIncognito(state),
claimId: claimId,
claim: makeSelectClaimForClaimId(claimId)(state),
};
};

const perform = (dispatch) => ({
doClaimSearch: (options) => dispatch(doClaimSearch(options)),
doReportContent: (category, params) => dispatch(doReportContent(category, params)),
});

export default withRouter(connect(select, perform)(ReportContent));
Loading

0 comments on commit cb2c33a

Please sign in to comment.