# Pull Request Template ## Description This PR adds new eslint rules to the code base. **Error rules** | Rule name | Type | Files updated | | ----------------- | --- | - | | `vue/block-order` | error | ✅ | | `vue/component-name-in-template-casing` | error | ✅ | | `vue/component-options-name-casing` | error | ✅ | | `vue/custom-event-name-casing` | error | ✅ | | `vue/define-emits-declaration` | error | ✅ | | `vue/no-unused-properties` | error | ✅ | | `vue/define-macros-order` | error | ✅ | | `vue/define-props-declaration` | error | ✅ | | `vue/match-component-import-name` | error | ✅ | | `vue/next-tick-style` | error | ✅ | | `vue/no-bare-strings-in-template` | error | ✅ | | `vue/no-empty-component-block` | error | ✅ | | `vue/no-multiple-objects-in-class` | error | ✅ | | `vue/no-required-prop-with-default` | error | ✅ | | `vue/no-static-inline-styles` | error | ✅ | | `vue/no-template-target-blank` | error | ✅ | | `vue/no-this-in-before-route-enter` | error | ✅ | | `vue/no-undef-components` | error | ✅ | | `vue/no-unused-emit-declarations` | error | ✅ | | `vue/no-unused-refs` | error | ✅ | | `vue/no-use-v-else-with-v-for` | error | ✅ | | `vue/no-useless-v-bind` | error | ✅ | | `vue/no-v-text` | error | ✅ | | `vue/padding-line-between-blocks` | error | ✅ | | ~`vue/prefer-prop-type-boolean-first`~ | ~error~ | ❌ (removed this rule, cause a bug in displaying custom attributes) | | `vue/prefer-separate-static-class` | error | ✅ | | `vue/prefer-true-attribute-shorthand` | error | ✅ | | `vue/require-explicit-slots` | error | ✅ | | `vue/require-macro-variable-name` | error | ✅ | **Warn rules** | Rule name | Type | Files updated | | ---- | ------------- | ------------- | | `vue/no-root-v-if` | warn | ❎ | Fixes https://linear.app/chatwoot/issue/CW-3492/vue-eslint-rules ## Type of change - [x] New feature (non-breaking change which adds functionality) ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules --------- Co-authored-by: Fayaz Ahmed <fayazara@gmail.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Shivam Mishra <scm.mymail@gmail.com> Co-authored-by: Pranav <pranav@chatwoot.com>
143 lines
3.9 KiB
JSON
143 lines
3.9 KiB
JSON
{
|
|
"COMPONENTS": {
|
|
"FILE_BUBBLE": {
|
|
"DOWNLOAD": "Download",
|
|
"UPLOADING": "Uploading..."
|
|
},
|
|
"FORM_BUBBLE": {
|
|
"SUBMIT": "Submit"
|
|
},
|
|
"MESSAGE_BUBBLE": {
|
|
"RETRY": "Send message again",
|
|
"ERROR_MESSAGE": "Couldn't send, try again"
|
|
}
|
|
},
|
|
"TEAM_AVAILABILITY": {
|
|
"ONLINE": "We are online",
|
|
"OFFLINE": "We are away at the moment"
|
|
},
|
|
"REPLY_TIME": {
|
|
"IN_A_FEW_MINUTES": "Typically replies in a few minutes",
|
|
"IN_A_FEW_HOURS": "Typically replies in a few hours",
|
|
"IN_A_DAY": "Typically replies in a day",
|
|
"BACK_IN": "We will be back online"
|
|
},
|
|
"DAY_NAMES": [
|
|
"Sunday",
|
|
"Monday",
|
|
"Tuesday",
|
|
"Wednesday",
|
|
"Thursday",
|
|
"Friday",
|
|
"Saturday"
|
|
],
|
|
"START_CONVERSATION": "Start Conversation",
|
|
"END_CONVERSATION": "End Conversation",
|
|
"CONTINUE_CONVERSATION": "Continue conversation",
|
|
"YOU": "You",
|
|
"START_NEW_CONVERSATION": "Start a new conversation",
|
|
"VIEW_UNREAD_MESSAGES": "You have unread messages",
|
|
"UNREAD_VIEW": {
|
|
"VIEW_MESSAGES_BUTTON": "See new messages",
|
|
"CLOSE_MESSAGES_BUTTON": "Close",
|
|
"COMPANY_FROM": "from",
|
|
"BOT": "Bot"
|
|
},
|
|
"BUBBLE": {
|
|
"LABEL": "Chat with us"
|
|
},
|
|
"POWERED_BY": "Powered by Chatwoot",
|
|
"EMAIL_PLACEHOLDER": "Please enter your email",
|
|
"CHAT_PLACEHOLDER": "Type your message",
|
|
"TODAY": "Today",
|
|
"YESTERDAY": "Yesterday",
|
|
"PRE_CHAT_FORM": {
|
|
"FIELDS": {
|
|
"FULL_NAME": {
|
|
"LABEL": "Full Name",
|
|
"PLACEHOLDER": "Please enter your full name",
|
|
"REQUIRED_ERROR": "Full Name is required"
|
|
},
|
|
"EMAIL_ADDRESS": {
|
|
"LABEL": "Email Address",
|
|
"PLACEHOLDER": "Please enter your email address",
|
|
"REQUIRED_ERROR": "Email Address is required",
|
|
"VALID_ERROR": "Please enter a valid email address"
|
|
},
|
|
"PHONE_NUMBER": {
|
|
"LABEL": "Phone Number",
|
|
"PLACEHOLDER": "Please enter your phone number",
|
|
"REQUIRED_ERROR": "Phone Number is required",
|
|
"DIAL_CODE_VALID_ERROR": "Please select a country code",
|
|
"VALID_ERROR": "Please enter a valid phone number",
|
|
"DROPDOWN_EMPTY": "No results found",
|
|
"DROPDOWN_SEARCH": "Search country"
|
|
},
|
|
"MESSAGE": {
|
|
"LABEL": "Message",
|
|
"PLACEHOLDER": "Please enter your message",
|
|
"ERROR": "Message too short"
|
|
}
|
|
},
|
|
"CAMPAIGN_HEADER": "Please provide your name and email before starting the conversation",
|
|
"IS_REQUIRED": "is required",
|
|
"REQUIRED": "Required",
|
|
"REGEX_ERROR": "Please provide a valid input"
|
|
},
|
|
"FILE_SIZE_LIMIT": "File exceeds the {MAXIMUM_FILE_UPLOAD_SIZE} attachment limit",
|
|
"CHAT_FORM": {
|
|
"INVALID": {
|
|
"FIELD": "Invalid field"
|
|
}
|
|
},
|
|
"EMOJI": {
|
|
"PLACEHOLDER": "Search emojis",
|
|
"NOT_FOUND": "No emoji match your search",
|
|
"ARIA_LABEL": "Emoji picker"
|
|
},
|
|
"CSAT": {
|
|
"TITLE": "Rate your conversation",
|
|
"SUBMITTED_TITLE": "Thank you for submitting the rating",
|
|
"PLACEHOLDER": "Tell us more..."
|
|
},
|
|
"EMAIL_TRANSCRIPT": {
|
|
"BUTTON_TEXT": "Request a conversation transcript",
|
|
"SEND_EMAIL_SUCCESS": "The chat transcript was sent successfully",
|
|
"SEND_EMAIL_ERROR": "There was an error, please try again"
|
|
},
|
|
"INTEGRATIONS": {
|
|
"DYTE": {
|
|
"CLICK_HERE_TO_JOIN": "Click here to join",
|
|
"LEAVE_THE_ROOM": "Leave the call"
|
|
}
|
|
},
|
|
"PORTAL": {
|
|
"POPULAR_ARTICLES": "Popular Articles",
|
|
"VIEW_ALL_ARTICLES": "View all articles",
|
|
"IFRAME_LOAD_ERROR": "There was an error loading the article, please refresh the page and try again."
|
|
},
|
|
"ATTACHMENTS": {
|
|
"image": {
|
|
"CONTENT": "Picture message"
|
|
},
|
|
"audio": {
|
|
"CONTENT": "Audio message"
|
|
},
|
|
"video": {
|
|
"CONTENT": "Video message"
|
|
},
|
|
"file": {
|
|
"CONTENT": "File Attachment"
|
|
},
|
|
"location": {
|
|
"CONTENT": "Location"
|
|
},
|
|
"fallback": {
|
|
"CONTENT": "has shared a url"
|
|
}
|
|
},
|
|
"FOOTER_REPLY_TO": {
|
|
"REPLY_TO": "Replying to:"
|
|
}
|
|
}
|