mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
* Read IP blocks from database * begin building general blocking solution * add new frontend files * Add UI for managing blockers * correctly reset local data after creating blocker * Tweak wording * Add UI for managing blockers * restructure admin pages * improve test coverage * Improve blocker UI * add blocker to block emails from registration * lint fix * fix * lint fixes * fix import * add new permission for managing blockers * improve permission check * fix managing permissions from admin * improve navbar display for non fullAccess admin * update block error strings * lint fix * add option to errorHandler to skip logging * validate blocker value during input * improve blocker form display * chore(subproj): reconcile habitica-images * fix(scripts): use same Mongo version for dev/test * fix(whitespace): eof * documentation improvements * remove nconf import * remove old test --------- Co-authored-by: Kalista Payne <kalista@habitica.com> Co-authored-by: Kalista Payne <sabrecat@gmail.com>
46 lines
2.5 KiB
JavaScript
46 lines
2.5 KiB
JavaScript
// When this file grows, it can be split into multiple ones.
|
|
export default {
|
|
taskIdRequired: 'req.params.taskId must contain a task id.',
|
|
keepOrRemove: 'req.query.keep must be either "keep" or "remove".',
|
|
keepOrRemoveAll: 'req.query.keep must be either "keep-all" or "remove-all".',
|
|
|
|
queryPageInteger: 'req.query.page must be an integer greater than or equal to 0.',
|
|
|
|
missingTypeKeyEquip: '"key" and "type" are required parameters.',
|
|
|
|
chatIdRequired: 'req.params.chatId must contain a chatId.',
|
|
messageIdRequired: 'req.params.messageId must contain a message ID.',
|
|
|
|
guildsOnlyPaginate: 'Only public guilds support pagination.',
|
|
guildsPaginateBooleanString: 'req.query.paginate must be a boolean string.',
|
|
groupIdRequired: 'req.params.groupId must contain a groupId.',
|
|
groupWithIDNotFound: 'Group with id "<%= groupId %>" not found.',
|
|
groupRemainOrLeaveChallenges: 'req.query.keep must be either "remain-in-challenges" or "leave-challenges"',
|
|
managerIdRequired: 'req.body.managerId must contain a User ID.',
|
|
noPrivAccess: 'You don\'t have the required privileges.',
|
|
notPartyLeader: 'You are not the leader of a Party.',
|
|
|
|
eventRequired: '"req.params.event" is required.',
|
|
countRequired: '"req.query.count" is required.',
|
|
|
|
missingPaymentId: 'Missing "req.query.paymentId"',
|
|
missingCustomerId: 'Missing "req.query.customerId"',
|
|
missingPaypalBlock: 'Missing "req.session.paypalBlock"',
|
|
missingSubKey: 'Missing "req.query.sub"',
|
|
invalidGemsBlock: 'The supplied gemsBlock does not exists',
|
|
|
|
postIdRequired: '"postId" must be a valid UUID.',
|
|
noNewsPosterAccess: 'You don\'t have news poster access.',
|
|
|
|
ipAddressBlocked: 'Your connection to Habitica has been blocked. For additional information, or to request an appeal, email admin@habitica.com with your Habitica username or User ID.',
|
|
clientBlocked: 'This client or third-party tool has been blocked. For additional information, email admin@habitica.com with your Habitica username or User ID.',
|
|
clientRateLimited: 'This User ID or IP address has been rate limited due to an excess amount of requests to the Habitica API v3. More info can be found in the response headers and at https://github.com/HabitRPG/habitica/wiki/API-Usage-Guidelines#rate-limiting .',
|
|
|
|
invalidPlatform: 'Invalid platform specified',
|
|
|
|
directionUpDown: '"direction" is required and must be "up" or "down".',
|
|
invalidTaskIdentifier: 'A task is identified by its UUID or alias.',
|
|
invalidTaskScorings: 'This API route expects a body in the form of [{id, direction}].',
|
|
summaryLengthExceedsMax: 'Summary length is too high.',
|
|
};
|