Skip to content

Commit

Permalink
Implement MODAL.REPORT_CONTENT
Browse files Browse the repository at this point in the history
  • Loading branch information
infinite-persistence committed Apr 1, 2021
1 parent 4659d49 commit d92f95c
Show file tree
Hide file tree
Showing 9 changed files with 976 additions and 0 deletions.
69 changes: 69 additions & 0 deletions static/app-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1718,5 +1718,74 @@
"lbry.tv is being retired in favor of %odysee% and new sign ups are disabled. Sign up on %odysee% instead": "lbry.tv is being retired in favor of %odysee% and new sign ups are disabled. Sign up on %odysee% instead",
"lbry.tv is being retired in favor of %odysee%": "lbry.tv is being retired in favor of %odysee%",
"You will have to switch to the %desktop_app% or %odysee% in the near future. Your existing login details will work on %odysee% and all of your %credits% and other settings will be there.": "You will have to switch to the %desktop_app% or %odysee% in the near future. Your existing login details will work on %odysee% and all of your %credits% and other settings will be there.",
"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.",
"Submit report?": "Submit report?",
"Report": "Report",
"Contact details: %email%": "Contact details: %email%",
"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",
"--end--": "--end--"
}
3 changes: 3 additions & 0 deletions ui/constants/form-field.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export const FF_MAX_CHARS_DEFAULT = 2000;
export const FF_MAX_CHARS_IN_COMMENT = 2000;
export const FF_MAX_CHARS_IN_DESCRIPTION = 5000;
export const FF_MAX_CHARS_REPORT_CONTENT_DETAILS = 500;
export const FF_MAX_CHARS_REPORT_CONTENT_ADDRESS = 255;
export const FF_MAX_CHARS_REPORT_CONTENT_SHORT = 100;
1 change: 1 addition & 0 deletions ui/constants/modal_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ export const SYNC_ENABLE = 'SYNC_ENABLE';
export const IMAGE_UPLOAD = 'image_upload';
export const MOBILE_SEARCH = 'mobile_search';
export const VIEW_IMAGE = 'view_image';
export const REPORT_CONTENT = 'report_content';
20 changes: 20 additions & 0 deletions ui/modal/modalReportContent/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doReportContent } from 'redux/actions/reportContent';
import { selectActiveChannelClaim, selectIncognito } from 'redux/selectors/app';
import { selectIsReportingContent, selectReportContentError } from 'redux/selectors/reportContent';
import ModalReportContent from './view';

const select = (state) => ({
isReporting: selectIsReportingContent(state),
error: selectReportContentError(state),
activeChannelClaim: selectActiveChannelClaim(state),
incognito: selectIncognito(state),
});

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

export default connect(select, perform)(ModalReportContent);
Loading

0 comments on commit d92f95c

Please sign in to comment.