From 3ce70f4e14152282927297f2d6568198ce67bdc0 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Thu, 25 Jul 2024 19:42:48 +0530 Subject: [PATCH] fix: apply ESLint rule vue/component-name-in-template-casing --- .eslintrc.js | 7 +++ app/javascript/dashboard/App.vue | 19 +++---- .../components/Accordion/AccordionItem.vue | 2 +- .../dashboard/components/ChatList.vue | 18 +++---- .../dashboard/components/ChatListHeader.vue | 2 +- .../dashboard/components/ConversationItem.vue | 2 +- .../dashboard/components/CustomAttribute.vue | 4 +- .../components/CustomSnoozeModal.vue | 2 +- .../components/SnackbarContainer.vue | 2 +- .../components/app/PaymentPendingBanner.vue | 2 +- .../app/PendingEmailVerificationBanner.vue | 2 +- .../dashboard/components/app/UpdateBanner.vue | 2 +- .../components/app/UpgradeBanner.vue | 2 +- .../components/buttons/FormSubmitButton.vue | 2 +- .../components/buttons/ResolveAction.vue | 12 ++--- .../components/layout/AvailabilityStatus.vue | 20 +++---- .../dashboard/components/layout/Sidebar.vue | 4 +- .../layout/sidebarComponents/AgentDetails.vue | 2 +- .../layout/sidebarComponents/OptionsMenu.vue | 34 ++++++------ .../layout/sidebarComponents/Primary.vue | 12 ++--- .../layout/sidebarComponents/Secondary.vue | 6 +-- .../sidebarComponents/SecondaryNavItem.vue | 2 +- .../components/ui/DateRangePicker.vue | 2 +- .../components/ui/DateTimePicker.vue | 2 +- .../components/ui/Dropdown/DropdownList.vue | 8 +-- .../dashboard/components/ui/WootButton.vue | 4 +- .../widgets/AutomationActionInput.vue | 6 +-- .../widgets/AutomationFileInput.vue | 2 +- .../components/widgets/ChannelItem.vue | 2 +- .../components/widgets/ColorPicker.vue | 2 +- .../components/widgets/DashboardApp/Frame.vue | 2 +- .../components/widgets/LabelSelector.vue | 4 +- .../components/widgets/TableFooter.vue | 4 +- .../components/widgets/ThumbnailGroup.vue | 2 +- .../components/widgets/UserAvatarWithName.vue | 2 +- .../components/widgets/WootWriter/Editor.vue | 6 +-- .../widgets/WootWriter/ReplyBottomPanel.vue | 6 +-- .../widgets/conversation/CannedResponse.vue | 4 +- .../ConversationAdvancedFilter.vue | 2 +- .../conversation/ConversationBasicFilter.vue | 4 +- .../widgets/conversation/ConversationBox.vue | 10 ++-- .../widgets/conversation/ConversationCard.vue | 18 +++---- .../conversation/ConversationHeader.vue | 10 ++-- .../conversation/EmptyState/EmptyState.vue | 11 ++-- .../EmptyState/EmptyStateMessage.vue | 2 +- .../EmptyState/FeaturePlaceholder.vue | 8 +-- .../widgets/conversation/Message.vue | 26 +++++----- .../widgets/conversation/MessagesView.vue | 10 ++-- .../widgets/conversation/MoreActions.vue | 4 +- .../widgets/conversation/ReplyBox.vue | 28 +++++----- .../widgets/conversation/ReplyToMessage.vue | 2 +- .../widgets/conversation/VariableList.vue | 4 +- .../conversation/WhatsappTemplates/Modal.vue | 4 +- .../conversation/bubble/ImageAudioVideo.vue | 2 +- .../conversation/bubble/InstagramStory.vue | 6 +-- .../bubble/InstagramStoryReply.vue | 2 +- .../conversation/bubble/Integration.vue | 2 +- .../widgets/conversation/bubble/ReplyTo.vue | 2 +- .../widgets/conversation/bubble/Text.vue | 6 +-- .../conversation/components/GalleryView.vue | 2 +- .../conversation/components/SLACardLabel.vue | 2 +- .../components/SLAPopoverCard.vue | 8 +-- .../conversation/contextMenu/Index.vue | 32 ++++++------ .../contextMenu/agentLoadingPlaceholder.vue | 2 +- .../conversation/contextMenu/menuItem.vue | 2 +- .../conversation/LabelSuggestion.vue | 12 ++--- .../conversationBulkActions/AgentSelector.vue | 4 +- .../conversationBulkActions/Index.vue | 10 ++-- .../conversationBulkActions/UpdateActions.vue | 8 +-- .../conversation/linear/CreateIssue.vue | 2 +- .../conversation/linear/CreateOrLinkIssue.vue | 4 +- .../widgets/conversation/linear/Issue.vue | 4 +- .../widgets/conversation/linear/LinkIssue.vue | 6 +-- .../linear/SearchableDropdown.vue | 6 +-- .../widgets/conversation/linear/index.vue | 4 +- .../widgets/modal/ConfirmDeleteModal.vue | 4 +- .../widgets/modal/ConfirmationModal.vue | 4 +- .../components/widgets/modal/DeleteModal.vue | 4 +- .../widgets/modal/WootKeyShortcutModal.vue | 38 +++++++------- .../modules/contact/ContactMergeModal.vue | 2 +- .../contact/components/AddCustomAttribute.vue | 4 +- .../contact/components/ContactAttribute.vue | 2 +- .../components/ContactDropdownItem.vue | 2 +- .../contact/components/ContactFields.vue | 8 +-- .../contact/components/ContactIntro.vue | 4 +- .../contact/components/ContactPanel.vue | 10 ++-- .../contact/components/MergeContact.vue | 8 +-- .../components/MessageContextMenu.vue | 16 +++--- .../modules/notes/NotesOnContactPage.vue | 2 +- .../modules/notes/components/AddNote.vue | 2 +- .../modules/notes/components/ContactNote.vue | 2 +- .../modules/notes/components/NoteList.vue | 6 +-- .../search/components/MessageContent.vue | 4 +- .../components/SearchResultContactsList.vue | 6 +-- .../SearchResultConversationItem.vue | 2 +- .../SearchResultConversationsList.vue | 6 +-- .../components/SearchResultMessagesList.vue | 10 ++-- .../modules/search/components/SearchView.vue | 10 ++-- .../widget-preview/components/Widget.vue | 2 +- .../widget-preview/components/WidgetBody.vue | 2 +- .../components/WidgetFooter.vue | 6 +-- .../dashboard/routes/dashboard/Dashboard.vue | 14 ++--- .../contacts/components/ContactInfoPanel.vue | 20 +++---- .../contacts/components/ContactLabels.vue | 2 +- .../components/ContactsAdvancedFilters.vue | 2 +- .../contacts/components/ContactsTable.vue | 8 +-- .../contacts/components/ContactsView.vue | 18 +++---- .../contacts/components/ImportContacts.vue | 4 +- .../contacts/pages/ContactManageView.vue | 12 ++--- .../conversation/ContactConversations.vue | 4 +- .../dashboard/conversation/ContactPanel.vue | 38 +++++++------- .../conversation/ConversationAction.vue | 21 ++++---- .../conversation/ConversationParticipant.vue | 6 +-- .../conversation/ConversationView.vue | 10 ++-- .../dashboard/conversation/Macros/List.vue | 2 +- .../conversation/Macros/MacroItem.vue | 2 +- .../conversation/contact/ContactInfo.vue | 20 +++---- .../conversation/contact/ContactInfoRow.vue | 4 +- .../conversation/contact/ConversationForm.vue | 24 ++++----- .../conversation/contact/CreateContact.vue | 2 +- .../conversation/contact/EditContact.vue | 2 +- .../conversation/contact/NewConversation.vue | 2 +- .../contact/WhatsappTemplates.vue | 4 +- .../customAttributes/CustomAttributes.vue | 2 +- .../conversation/labels/LabelBox.vue | 6 +-- .../conversation/search/PopOverSearch.vue | 2 +- .../helpcenter/components/AddLocale.vue | 4 +- .../helpcenter/components/ArticleEditor.vue | 4 +- .../components/ArticleSearch/ArticleView.vue | 2 +- .../ArticleSearch/SearchPopover.vue | 6 +-- .../ArticleSearch/SearchResults.vue | 2 +- .../helpcenter/components/ArticleTable.vue | 2 +- .../components/Header/ArticleHeader.vue | 22 ++++---- .../components/HelpCenterLayout.vue | 18 +++---- .../helpcenter/components/PortalListItem.vue | 2 +- .../helpcenter/components/PortalPopover.vue | 2 +- .../helpcenter/components/Sidebar/Sidebar.vue | 6 +-- .../components/Sidebar/SidebarHeader.vue | 2 +- .../pages/articles/ArticleSettings.vue | 4 +- .../helpcenter/pages/articles/EditArticle.vue | 8 +-- .../pages/articles/ListAllArticles.vue | 8 +-- .../helpcenter/pages/articles/NewArticle.vue | 6 +-- .../pages/categories/AddCategory.vue | 2 +- .../pages/categories/EditCategory.vue | 2 +- .../pages/categories/ListAllCategories.vue | 6 +-- .../pages/categories/NameEmojiInput.vue | 2 +- .../helpcenter/pages/portals/EditPortal.vue | 6 +-- .../pages/portals/EditPortalBasic.vue | 2 +- .../pages/portals/EditPortalCustomization.vue | 2 +- .../pages/portals/ListAllPortals.vue | 8 +-- .../helpcenter/pages/portals/NewPortal.vue | 2 +- .../pages/portals/PortalCustomization.vue | 2 +- .../pages/portals/PortalSettingsFinish.vue | 4 +- .../routes/dashboard/inbox/InboxList.vue | 6 +-- .../routes/dashboard/inbox/InboxView.vue | 6 +-- .../dashboard/inbox/components/InboxCard.vue | 2 +- .../inbox/components/InboxContextMenu.vue | 2 +- .../inbox/components/InboxItemHeader.vue | 4 +- .../inbox/components/InboxListHeader.vue | 4 +- .../inbox/components/InboxOptionMenu.vue | 2 +- .../components/NotificationPanel.vue | 2 +- .../components/NotificationPanelItem.vue | 2 +- .../components/NotificationPanelList.vue | 6 +-- .../components/NotificationTable.vue | 6 +-- .../components/NotificationsView.vue | 4 +- .../dashboard/settings/SettingsHeader.vue | 2 +- .../routes/dashboard/settings/Wrapper.vue | 2 +- .../dashboard/settings/agentBots/Index.vue | 2 +- .../agentBots/components/AgentBotRow.vue | 4 +- .../agentBots/components/CSMLBotEditor.vue | 2 +- .../agentBots/components/CSMLMonacoEditor.vue | 2 +- .../settings/agentBots/csml/Edit.vue | 8 +-- .../dashboard/settings/agentBots/csml/New.vue | 2 +- .../dashboard/settings/agents/EditAgent.vue | 6 +-- .../dashboard/settings/agents/Index.vue | 6 +-- .../settings/attributes/CustomAttribute.vue | 2 +- .../dashboard/settings/attributes/Index.vue | 4 +- .../dashboard/settings/auditlogs/Index.vue | 2 +- .../dashboard/settings/automation/Index.vue | 4 +- .../dashboard/settings/billing/Index.vue | 4 +- .../settings/campaigns/AddCampaign.vue | 4 +- .../dashboard/settings/campaigns/Campaign.vue | 4 +- .../settings/campaigns/CampaignCard.vue | 4 +- .../settings/campaigns/CampaignsTable.vue | 6 +-- .../settings/campaigns/EditCampaign.vue | 2 +- .../dashboard/settings/campaigns/Index.vue | 4 +- .../dashboard/settings/canned/AddCanned.vue | 8 +-- .../dashboard/settings/canned/EditCanned.vue | 8 +-- .../dashboard/settings/canned/Index.vue | 4 +- .../dashboard/settings/inbox/AddAgents.vue | 2 +- .../dashboard/settings/inbox/ChannelList.vue | 4 +- .../dashboard/settings/inbox/FinishSetup.vue | 4 +- .../dashboard/settings/inbox/ImapSettings.vue | 4 +- .../routes/dashboard/settings/inbox/Index.vue | 2 +- .../settings/inbox/PreChatForm/Settings.vue | 4 +- .../dashboard/settings/inbox/Settings.vue | 36 ++++++------- .../dashboard/settings/inbox/SmtpSettings.vue | 10 ++-- .../settings/inbox/WidgetBuilder.vue | 6 +-- .../dashboard/settings/inbox/channels/Api.vue | 2 +- .../settings/inbox/channels/Email.vue | 10 ++-- .../settings/inbox/channels/Facebook.vue | 4 +- .../settings/inbox/channels/Line.vue | 2 +- .../dashboard/settings/inbox/channels/Sms.vue | 6 +-- .../settings/inbox/channels/Telegram.vue | 2 +- .../settings/inbox/channels/Website.vue | 4 +- .../settings/inbox/channels/Whatsapp.vue | 8 +-- .../emailChannels/ForwardToOption.vue | 2 +- .../channels/emailChannels/OAuthChannel.vue | 2 +- .../inbox/channels/microsoft/Reauthorize.vue | 2 +- .../inbox/components/BotConfiguration.vue | 6 +-- .../components/InboxReconnectionRequired.vue | 2 +- .../components/SenderNameExamplePreview.vue | 6 +-- .../inbox/components/WeeklyAvailability.vue | 8 +-- .../settings/inbox/facebook/Reauthorize.vue | 2 +- .../inbox/settingsPage/CollaboratorsPage.vue | 8 +-- .../inbox/settingsPage/ConfigurationPage.vue | 52 +++++++++---------- .../integrations/DashboardApps/Index.vue | 4 +- .../dashboard/settings/integrations/Index.vue | 2 +- .../integrations/IntegrationHooks.vue | 6 +-- .../settings/integrations/ShowIntegration.vue | 2 +- .../dashboard/settings/integrations/Slack.vue | 10 ++-- .../integrations/Webhooks/EditWebHook.vue | 2 +- .../settings/integrations/Webhooks/Index.vue | 6 +-- .../integrations/Webhooks/NewWebHook.vue | 2 +- .../integrations/Webhooks/WebhookRow.vue | 2 +- .../dashboard/settings/labels/Index.vue | 7 +-- .../dashboard/settings/macros/Index.vue | 2 +- .../dashboard/settings/macros/MacroEditor.vue | 2 +- .../dashboard/settings/macros/MacroForm.vue | 4 +- .../dashboard/settings/macros/MacroNode.vue | 2 +- .../dashboard/settings/macros/MacroNodes.vue | 6 +-- .../settings/macros/MacrosTableRow.vue | 4 +- .../settings/profile/AccessToken.vue | 4 +- .../settings/profile/AudioAlertTone.vue | 4 +- .../settings/profile/AudioNotifications.vue | 6 +-- .../settings/profile/ChangePassword.vue | 4 +- .../dashboard/settings/profile/Index.vue | 40 +++++++------- .../settings/profile/MessageSignature.vue | 6 +-- .../profile/NotificationPreferences.vue | 14 ++--- .../settings/profile/UserBasicDetails.vue | 4 +- .../settings/profile/UserProfilePicture.vue | 2 +- .../settings/reports/AgentReports.vue | 2 +- .../dashboard/settings/reports/BotReports.vue | 6 +-- .../settings/reports/CsatResponses.vue | 6 +-- .../settings/reports/InboxReports.vue | 2 +- .../dashboard/settings/reports/Index.vue | 4 +- .../settings/reports/LabelReports.vue | 2 +- .../settings/reports/LiveReports.vue | 20 +++---- .../settings/reports/ReportContainer.vue | 2 +- .../settings/reports/TeamReports.vue | 2 +- .../reports/components/BotMetrics.vue | 8 +-- .../reports/components/CsatMetrics.vue | 6 +-- .../settings/reports/components/CsatTable.vue | 4 +- .../reports/components/FilterSelector.vue | 16 +++--- .../Filters/v3/ActiveFilterChip.vue | 6 +-- .../components/Filters/v3/AddFilterChip.vue | 16 +++--- .../reports/components/ReportFilters.vue | 6 +-- .../reports/components/SLA/SLAFilter.vue | 6 +-- .../components/SLA/SLAReportFilters.vue | 2 +- .../reports/components/SLA/SLAReportItem.vue | 4 +- .../reports/components/SLA/SLATable.vue | 14 ++--- .../reports/components/SLA/SLAViewDetails.vue | 2 +- .../reports/components/WootReports.vue | 4 +- .../components/overview/AgentTable.vue | 8 +-- .../components/overview/MetricCard.vue | 2 +- .../routes/dashboard/settings/sla/AddSLA.vue | 2 +- .../routes/dashboard/settings/sla/Index.vue | 10 ++-- .../routes/dashboard/settings/sla/SlaForm.vue | 2 +- .../sla/components/BaseEmptyState.vue | 4 +- .../settings/sla/components/SLAEmptyState.vue | 4 +- .../settings/sla/components/SLAListItem.vue | 12 ++--- .../sla/components/SLAListItemLoading.vue | 4 +- .../sla/components/SLAPaywallEnterprise.vue | 4 +- .../settings/teams/AgentSelector.vue | 2 +- .../settings/teams/Create/AddAgents.vue | 4 +- .../settings/teams/Create/CreateTeam.vue | 4 +- .../settings/teams/Edit/EditAgents.vue | 6 +-- .../settings/teams/Edit/EditTeam.vue | 6 +-- .../dashboard/settings/teams/FinishSetup.vue | 4 +- .../dashboard/settings/teams/TeamForm.vue | 2 +- .../routes/dashboard/suspended/Index.vue | 2 +- .../portal/components/PublicArticleSearch.vue | 4 +- .../portal/components/PublicSearchInput.vue | 2 +- app/javascript/shared/components/ChatCard.vue | 6 +-- .../shared/components/ChatOptions.vue | 2 +- .../components/CustomerSatisfaction.vue | 4 +- .../components/FluentIcon/DashboardIcon.vue | 2 +- .../shared/components/FluentIcon/Index.vue | 2 +- .../shared/components/GreetingsEditor.vue | 4 +- .../shared/components/IframeLoader.vue | 2 +- .../shared/components/emoji/EmojiInput.vue | 4 +- .../components/ui/MultiselectDropdown.vue | 2 +- .../ui/MultiselectDropdownItems.vue | 11 ++-- .../ui/dropdown/DropdownSubMenu.vue | 2 +- .../components/ui/label/LabelDropdown.vue | 8 +-- app/javascript/survey/App.vue | 2 +- app/javascript/survey/components/Feedback.vue | 8 +-- app/javascript/survey/views/Response.vue | 10 ++-- app/javascript/v3/App.vue | 2 +- .../v3/components/Button/SubmitButton.vue | 2 +- app/javascript/v3/components/Form/Input.vue | 4 +- .../v3/components/Form/ProfileAvatar.vue | 2 +- .../v3/components/Form/RadioTags.vue | 4 +- app/javascript/v3/components/Form/Select.vue | 4 +- .../v3/components/Form/Textarea.vue | 4 +- .../v3/components/GoogleOauth/Button.vue | 2 +- .../v3/components/SnackBar/Container.vue | 2 +- .../v3/views/auth/confirmation/Index.vue | 2 +- .../v3/views/auth/password/Edit.vue | 6 +-- .../v3/views/auth/reset/password/Index.vue | 2 +- app/javascript/v3/views/auth/signup/Index.vue | 6 +-- .../auth/signup/components/Signup/Form.vue | 12 ++--- .../signup/components/Testimonials/Index.vue | 2 +- app/javascript/v3/views/login/Index.vue | 10 ++-- app/javascript/widget/App.vue | 2 +- .../widget/components/AgentMessage.vue | 12 ++--- .../widget/components/AgentMessageBubble.vue | 14 ++--- .../widget/components/ArticleCategoryCard.vue | 4 +- .../widget/components/ArticleHero.vue | 2 +- .../widget/components/ArticleList.vue | 2 +- .../widget/components/ArticleListItem.vue | 2 +- .../widget/components/AvailableAgents.vue | 2 +- .../widget/components/ChatAttachment.vue | 8 +-- .../widget/components/ChatFooter.vue | 12 ++--- .../widget/components/ChatHeader.vue | 4 +- .../widget/components/ChatHeaderExpanded.vue | 2 +- .../widget/components/ChatInputWrap.vue | 10 ++-- .../widget/components/ChatSendButton.vue | 4 +- .../widget/components/ContinueChatButton.vue | 4 +- .../widget/components/ConversationWrap.vue | 8 +-- .../widget/components/FileBubble.vue | 2 +- .../widget/components/FooterReplyTo.vue | 2 +- .../widget/components/Form/PhoneInput.vue | 4 +- .../widget/components/GroupedAvatars.vue | 2 +- .../widget/components/HeaderActions.vue | 6 +-- .../widget/components/PreChat/Form.vue | 6 +-- .../widget/components/ReplyToChip.vue | 2 +- .../widget/components/TeamAvailability.vue | 4 +- .../widget/components/UnreadMessage.vue | 2 +- .../widget/components/UnreadMessageList.vue | 6 +-- .../widget/components/UserMessage.vue | 18 +++---- .../components/dropdown/DropdownMenuItem.vue | 2 +- .../components/layouts/ViewWithHeader.vue | 8 +-- .../widget/components/template/Article.vue | 2 +- .../widget/components/template/EmailInput.vue | 4 +- .../components/template/IntegrationCard.vue | 2 +- app/javascript/widget/views/ArticleViewer.vue | 2 +- app/javascript/widget/views/Campaigns.vue | 2 +- app/javascript/widget/views/Home.vue | 6 +-- app/javascript/widget/views/Messages.vue | 4 +- app/javascript/widget/views/PreChatForm.vue | 2 +- .../widget/views/UnreadMessages.vue | 2 +- 352 files changed, 1019 insertions(+), 1037 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 1481e550f..d28505a30 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -33,6 +33,13 @@ module.exports = { order: ['script', 'template', 'style'], }, ], + 'vue/component-name-in-template-casing': [ + 'error', + 'PascalCase', + { + registeredComponentsOnly: true, + }, + ], 'vue/max-attributes-per-line': [ 'error', { diff --git a/app/javascript/dashboard/App.vue b/app/javascript/dashboard/App.vue index 67bb3d692..6604f7cc5 100644 --- a/app/javascript/dashboard/App.vue +++ b/app/javascript/dashboard/App.vue @@ -128,23 +128,20 @@ export default { :class="{ 'app-rtl--wrapper': isRTLView }" :dir="isRTLView ? 'rtl' : 'ltr'" > - + - - - + + + - +