Welcome to mirror list, hosted at ThFree Co, Russian Federation.

constants.js « abuse_report « admin « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b290581598aaa533639dbe58cc93466655d71f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import { s__, n__, __ } from '~/locale';

export const STATUS_OPEN = 'open';
export const STATUS_CLOSED = 'closed';

export const SUCCESS_ALERT = 'success';
export const FAILED_ALERT = 'danger';

export const ERROR_MESSAGE = __('Something went wrong. Please try again.');

export const REPORT_HEADER_I18N = {
  adminProfile: s__('AbuseReport|Admin profile'),
  open: __('Open'),
  closed: __('Closed'),
};

export const ACTIONS_I18N = {
  actions: s__('AbuseReport|Actions'),
  confirm: s__('AbuseReport|Confirm'),
  action: s__('AbuseReport|Action'),
  reason: s__('AbuseReport|Reason'),
  comment: s__('AbuseReport|Comment'),
  closeReport: s__('AbuseReport|Close report'),
  requiredFieldFeedback: __('This field is required.'),
};

export const NO_ACTION = { value: '', text: s__('AbuseReport|No action') };

export const USER_ACTION_OPTIONS = [
  NO_ACTION,
  { value: 'block_user', text: s__('AbuseReport|Block user') },
  { value: 'ban_user', text: s__('AbuseReport|Ban user') },
  { value: 'delete_user', text: s__('AbuseReport|Delete user') },
];

export const REASON_OPTIONS = [
  { value: '', text: '' },
  { value: 'spam', text: s__('AbuseReport|Confirmed spam') },
  { value: 'offensive', text: s__('AbuseReport|Confirmed offensive or abusive behavior') },
  { value: 'phishing', text: s__('AbuseReport|Confirmed phishing') },
  { value: 'crypto', text: s__('AbuseReport|Confirmed crypto mining') },
  {
    value: 'credentials',
    text: s__('AbuseReport|Confirmed posting of personal information or credentials'),
  },
  {
    value: 'copyright',
    text: s__('AbuseReport|Confirmed violation of a copyright or a trademark'),
  },
  { value: 'malware', text: s__('AbuseReport|Confirmed posting of malware') },
  { value: 'other', text: s__('AbuseReport|Something else') },
  { value: 'unconfirmed', text: s__('AbuseReport|Abuse unconfirmed') },
];

export const USER_DETAILS_I18N = {
  createdAt: s__('AbuseReport|Member since'),
  email: s__('AbuseReport|Email'),
  plan: s__('AbuseReport|Tier'),
  verification: s__('AbuseReport|Verification'),
  creditCard: s__('AbuseReport|Credit card'),
  otherReports: s__('AbuseReport|Abuse reports'),
  normalLocation: s__('AbuseReport|Normal location'),
  lastSignInIp: s__('AbuseReport|Last login'),
  snippets: s__('AbuseReport|Snippets'),
  groups: s__('AbuseReport|Groups'),
  notes: s__('AbuseReport|Comments'),
  snippetsCount: (count) => n__(`%d snippet`, `%d snippets`, count),
  groupsCount: (count) => n__(`%d group`, `%d groups`, count),
  notesCount: (count) => n__(`%d comment`, `%d comments`, count),
  verificationMethods: {
    email: s__('AbuseReport|Email'),
    phone: s__('AbuseReport|Phone'),
    creditCard: s__('AbuseReport|Credit card'),
  },
  otherReport: s__(
    'AbuseReport|%{reportLinkStart}Reported%{reportLinkEnd} for %{category} %{timeAgo}.',
  ),
  registeredWith: s__('AbuseReport|Registered with name %{name}.'),
  similarRecords: s__(
    'AbuseReport|Card matches %{cardMatchesLinkStart}%{count} accounts%{cardMatchesLinkEnd}',
  ),
};

export const REPORTED_CONTENT_I18N = {
  reportTypes: {
    profile: s__('AbuseReport|Reported profile'),
    comment: s__('AbuseReport|Reported comment'),
    issue: s__('AbuseReport|Reported issue'),
    merge_request: s__('AbuseReport|Reported merge request'),
    unknown: s__('AbuseReport|Reported content'),
  },
  viewScreenshot: s__('AbuseReport|View screenshot'),
  screenshotTitle: s__('AbuseReport|Screenshot of reported abuse'),
  goToType: {
    profile: s__('AbuseReport|Go to profile'),
    comment: s__('AbuseReport|Go to comment'),
    issue: s__('AbuseReport|Go to issue'),
    merge_request: s__('AbuseReport|Go to merge request'),
    unknown: s__('AbuseReport|Go to content'),
  },
  reportedBy: s__('AbuseReport|Reported by'),
  deletedReporter: s__('AbuseReport|No user found'),
};

export const HISTORY_ITEMS_I18N = {
  activity: s__('AbuseReport|Activity'),
  reportedByForCategory: s__('AbuseReport|Reported by %{name} for %{category}.'),
  deletedReporter: s__('AbuseReport|No user found'),
};