mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 10:19:45 +08:00
d37333be89
* refactor: removed unused subscription code
* refactor: removed management api's
* refactor: cleanup of connections
* refactor: refactored comments edge
* refactor: simplified connection resolving
* feat: added story connection edge
* fix: added story index
* feat: added user pagination and user edge
* fix: added filter to comment query
* fix: removed unused resolvers
* fix: creating a comment reply should require auth
* refactor: cleanup of graph files
* feat: removed display name, made username non-unique
* fix: fixed tests
* fix: fixed tests
* fix: added more api docs
* fix: fixed bug with installer
* refactor: fixes and updates
* fix: added linting for graphql, fixed schema
* feat: added docker build tests
* fix: upped output timeout
* fix: fixed stacktraces in production builds
* fix: removed `git add`
- `git add` was causing issues with
partial staged changs on files
* feat: improved error messaging for auth
* refactor: cleaned up queue names
* fix: merge error
36 lines
1.6 KiB
TypeScript
36 lines
1.6 KiB
TypeScript
import { ERROR_CODES } from "talk-common/errors";
|
|
|
|
export const ERROR_TRANSLATIONS: Record<ERROR_CODES, string> = {
|
|
COMMENT_BODY_EXCEEDS_MAX_LENGTH: "error-commentBodyExceedsMaxLength",
|
|
COMMENT_BODY_TOO_SHORT: "error-commentBodyTooShort",
|
|
COMMENT_NOT_FOUND: "error-commentNotFound",
|
|
COMMENTING_DISABLED: "error-commentingDisabled",
|
|
DUPLICATE_EMAIL: "error-duplicateEmail",
|
|
DUPLICATE_STORY_URL: "error-duplicateStoryURL",
|
|
DUPLICATE_USER: "error-duplicateUser",
|
|
EMAIL_ALREADY_SET: "error-emailAlreadySet",
|
|
EMAIL_EXCEEDS_MAX_LENGTH: "error-emailExceedsMaxLength",
|
|
EMAIL_INVALID_FORMAT: "error-emailInvalidFormat",
|
|
EMAIL_NOT_SET: "error-emailNotSet",
|
|
INTERNAL_ERROR: "error-internalError",
|
|
LOCAL_PROFILE_ALREADY_SET: "error-localProfileAlreadySet",
|
|
LOCAL_PROFILE_NOT_SET: "error-localProfileNotSet",
|
|
NOT_FOUND: "error-notFound",
|
|
PASSWORD_TOO_SHORT: "error-passwordTooShort",
|
|
STORY_CLOSED: "error-storyClosed",
|
|
STORY_NOT_FOUND: "error-storyNotFound",
|
|
STORY_URL_NOT_PERMITTED: "error-storyURLNotPermitted",
|
|
TENANT_INSTALLED_ALREADY: "error-tenantInstalledAlready",
|
|
TENANT_NOT_FOUND: "error-tenantNotFound",
|
|
TOKEN_INVALID: "error-tokenInvalid",
|
|
TOKEN_NOT_FOUND: "error-tokenNotFound",
|
|
USER_NOT_ENTITLED: "error-userNotEntitled",
|
|
USER_NOT_FOUND: "error-userNotFound",
|
|
USERNAME_ALREADY_SET: "error-usernameAlreadySet",
|
|
USERNAME_CONTAINS_INVALID_CHARACTERS:
|
|
"error-usernameContainsInvalidCharacters",
|
|
USERNAME_EXCEEDS_MAX_LENGTH: "error-usernameExceedsMaxLength",
|
|
USERNAME_TOO_SHORT: "error-usernameTooShort",
|
|
AUTHENTICATION_ERROR: "error-authenticationError",
|
|
};
|