From 68cff4c59e500f46f503c0ab3005f025d8724feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 28 Dec 2023 09:49:58 +0100 Subject: [PATCH] refactor(editor): Improve linting for component and prop names (no-changelog) (#8169) --- packages/@n8n_io/eslint-config/frontend.js | 18 +- .../src/components/N8nActionBox/ActionBox.vue | 24 +- .../N8nActionDropdown/ActionDropdown.vue | 34 +- .../N8nActionToggle/ActionToggle.vue | 20 +- .../src/components/N8nAlert/Alert.vue | 2 +- .../src/components/N8nAvatar/Avatar.vue | 8 +- .../src/components/N8nBadge/Badge.vue | 10 +- .../src/components/N8nButton/Button.vue | 6 +- .../src/components/N8nCallout/Callout.vue | 10 +- .../src/components/N8nCard/Card.vue | 10 +- .../src/components/N8nCheckbox/Checkbox.vue | 12 +- .../components/N8nColorPicker/ColorPicker.vue | 8 +- .../src/components/N8nDatatable/Datatable.vue | 24 +- .../src/components/N8nFormBox/FormBox.vue | 24 +- .../src/components/N8nFormInput/FormInput.vue | 54 +- .../components/N8nFormInputs/FormInputs.vue | 50 +- .../src/components/N8nHeading/Heading.vue | 2 +- .../src/components/N8nIcon/Icon.vue | 8 +- .../components/N8nIconButton/IconButton.vue | 4 +- .../N8nInfoAccordion/InfoAccordion.vue | 30 +- .../src/components/N8nInfoTip/InfoTip.vue | 14 +- .../src/components/N8nInput/Input.vue | 18 +- .../__snapshots__/Input.spec.ts.snap | 2 +- .../components/N8nInputLabel/InputLabel.vue | 18 +- .../components/N8nInputNumber/InputNumber.vue | 8 +- .../N8nKeyboardShortcut.vue | 2 +- .../src/components/N8nLink/Link.vue | 18 +- .../src/components/N8nLoading/Loading.vue | 16 +- .../src/components/N8nMarkdown/Markdown.vue | 6 +- .../src/components/N8nMenu/Menu.vue | 64 +- .../src/components/N8nMenuItem/MenuItem.vue | 30 +- .../N8nNodeCreatorNode/NodeCreatorNode.vue | 18 +- .../src/components/N8nNodeIcon/NodeIcon.vue | 10 +- .../src/components/N8nNotice/Notice.vue | 14 +- .../__snapshots__/Notice.spec.ts.snap | 2 +- .../src/components/N8nOption/Option.vue | 8 +- .../components/N8nPagination/Pagination.vue | 8 +- .../src/components/N8nPopover/Popover.vue | 10 +- .../src/components/N8nPulse/Pulse.vue | 2 +- .../N8nRadioButtons/RadioButton.vue | 2 +- .../N8nRadioButtons/RadioButtons.vue | 8 +- .../N8nRecycleScroller/RecycleScroller.vue | 12 +- .../N8nResizeWrapper/ResizeWrapper.vue | 2 +- .../src/components/N8nRoute/Route.vue | 2 +- .../src/components/N8nSelect/Select.vue | 14 +- .../N8nSelect/__tests__/Select.spec.ts | 10 +- .../src/components/N8nSpinner/Spinner.vue | 4 +- .../src/components/N8nSticky/Sticky.vue | 68 +- .../src/components/N8nTabs/Tabs.vue | 50 +- .../src/components/N8nTag/Tag.vue | 2 +- .../src/components/N8nTags/Tags.vue | 20 +- .../src/components/N8nText/Text.vue | 2 +- .../src/components/N8nTooltip/Tooltip.vue | 10 +- .../src/components/N8nTree/Tree.vue | 12 +- .../src/components/N8nUserInfo/UserInfo.vue | 18 +- .../components/N8nUserSelect/UserSelect.vue | 22 +- .../src/components/N8nUserStack/UserStack.vue | 10 +- .../src/components/N8nUsersList/UsersList.vue | 16 +- packages/design-system/src/plugin.ts | 116 +-- .../src/styleguide/ColorCircles.vue | 14 +- .../design-system/src/styleguide/Sizes.vue | 14 +- .../src/styleguide/VariableTable.vue | 14 +- .../styleguide/components/SpacingPreview.vue | 2 +- packages/editor-ui/src/App.vue | 28 +- .../editor-ui/src/components/AboutModal.vue | 4 +- .../src/components/ActivationModal.vue | 4 +- packages/editor-ui/src/components/Banner.vue | 12 +- .../src/components/BinaryDataDisplay.vue | 12 +- .../src/components/BinaryDataDisplayEmbed.vue | 6 +- .../src/components/BreakpointsObserver.vue | 38 +- .../src/components/CanvasControls.vue | 24 +- .../src/components/ChangePasswordModal.vue | 10 +- .../src/components/ChatEmbedModal.vue | 16 +- .../components/CodeNodeEditor/AskAI/AskAI.vue | 20 +- .../CodeNodeEditor/CodeNodeEditor.vue | 136 ++-- .../src/components/CollectionParameter.vue | 14 +- .../src/components/CollectionWorkflowCard.vue | 6 +- .../CommunityPackageInstallModal.vue | 14 +- .../CommunityPackageManageConfirmModal.vue | 8 +- .../src/components/ContactPromptModal.vue | 12 +- .../components/ContextMenu/ContextMenu.vue | 6 +- .../editor-ui/src/components/CopyInput.vue | 2 +- .../src/components/CredentialCard.vue | 26 +- .../CredentialEdit/AuthTypeSelector.vue | 6 +- .../CredentialEdit/CredentialConfig.vue | 58 +- .../CredentialEdit/CredentialEdit.vue | 72 +- .../CredentialEdit/CredentialInfo.vue | 4 +- .../CredentialEdit/CredentialInputs.vue | 16 +- .../CredentialEdit/CredentialSharing.ee.vue | 14 +- .../src/components/CredentialIcon.vue | 4 +- .../CredentialPicker/CredentialPicker.vue | 4 +- .../CredentialPicker/CredentialsDropdown.vue | 6 +- .../src/components/CredentialsSelect.vue | 16 +- .../src/components/CredentialsSelectModal.vue | 34 +- .../src/components/DeleteUserModal.vue | 24 +- .../editor-ui/src/components/Draggable.vue | 10 +- .../src/components/DraggableTarget.vue | 2 +- .../components/DuplicateWorkflowDialog.vue | 20 +- .../src/components/EnterpriseEdition.ee.vue | 2 +- .../src/components/Error/NodeErrorView.vue | 16 +- .../src/components/ExecutionFilter.vue | 22 +- .../src/components/ExecutionTime.vue | 12 +- .../src/components/ExecutionsList.vue | 34 +- .../ExecutionsView/ExecutionCard.vue | 18 +- .../ExecutionsView/ExecutionPreview.vue | 32 +- .../ExecutionsInfoAccordion.vue | 18 +- .../ExecutionsView/ExecutionsLandingPage.vue | 4 +- .../ExecutionsView/ExecutionsList.vue | 30 +- .../ExecutionsView/ExecutionsSidebar.vue | 24 +- .../ExpandableInput/ExpandableInputEdit.vue | 8 +- .../ExpandableInputPreview.vue | 2 +- .../src/components/ExpressionEdit.vue | 94 +-- .../ExpressionEditorModalOutput.vue | 62 +- .../components/ExpressionParameterInput.vue | 32 +- .../ExternalSecretsProviderCard.ee.vue | 6 +- ...rnalSecretsProviderConnectionSwitch.ee.vue | 4 +- .../ExternalSecretsProviderModal.ee.vue | 8 +- .../src/components/FeatureComingSoon.vue | 2 +- .../FilterConditions/CombinatorSelect.vue | 2 +- .../components/FilterConditions/Condition.vue | 32 +- .../FilterConditions/FilterConditions.vue | 18 +- .../FilterConditions/OperatorSelect.vue | 10 +- .../components/FixedCollectionParameter.vue | 56 +- .../editor-ui/src/components/GoBackButton.vue | 6 +- .../src/components/HtmlEditor/HtmlEditor.vue | 42 +- .../src/components/ImportCurlModal.vue | 20 +- .../src/components/ImportParameter.vue | 2 +- .../InlineExpressionEditorOutput.vue | 48 +- .../src/components/InlineNameEdit.vue | 10 +- .../src/components/InlineTextEdit.vue | 20 +- .../editor-ui/src/components/InputPanel.vue | 122 ++-- .../src/components/InviteUsersModal.vue | 12 +- .../MainHeader/CollaborationPane.vue | 2 +- .../src/components/MainHeader/MainHeader.vue | 16 +- .../src/components/MainHeader/TabBar.vue | 14 +- .../components/MainHeader/WorkflowDetails.vue | 54 +- .../editor-ui/src/components/MainSidebar.vue | 8 +- .../src/components/MfaSetupModal.vue | 16 +- packages/editor-ui/src/components/Modal.vue | 12 +- .../editor-ui/src/components/ModalDrawer.vue | 8 +- .../editor-ui/src/components/ModalRoot.vue | 4 +- packages/editor-ui/src/components/Modals.vue | 42 +- .../src/components/MultipleParameter.vue | 48 +- .../src/components/NDVDraggablePanels.vue | 22 +- .../src/components/NDVFloatingNodes.vue | 14 +- packages/editor-ui/src/components/Node.vue | 52 +- .../src/components/Node/NodeCreation.vue | 10 +- .../Node/NodeCreator/ItemTypes/ActionItem.vue | 14 +- .../NodeCreator/ItemTypes/CategoryItem.vue | 4 +- .../Node/NodeCreator/ItemTypes/NodeItem.vue | 16 +- .../NodeCreator/ItemTypes/SubcategoryItem.vue | 6 +- .../Node/NodeCreator/ItemTypes/ViewItem.vue | 6 +- .../Node/NodeCreator/Modes/ActionsMode.vue | 30 +- .../Node/NodeCreator/Modes/NodesMode.vue | 10 +- .../Node/NodeCreator/NodeCreator.vue | 8 +- .../Node/NodeCreator/Panel/NoResults.vue | 6 +- .../Node/NodeCreator/Panel/NoResultsIcon.vue | 2 +- .../Node/NodeCreator/Panel/NodesListPanel.vue | 14 +- .../Node/NodeCreator/Panel/SearchBar.vue | 4 +- .../Renderers/CategorizedItemsRenderer.vue | 8 +- .../NodeCreator/Renderers/ItemsRenderer.vue | 20 +- .../__tests__/NodesListPanel.test.ts | 18 +- .../__tests__/useKeyboardNavigation.test.ts | 6 +- .../src/components/NodeCredentials.vue | 82 +-- .../src/components/NodeDetailsView.vue | 76 +- .../src/components/NodeExecuteButton.vue | 4 +- .../editor-ui/src/components/NodeIcon.vue | 6 +- .../editor-ui/src/components/NodeList.vue | 12 +- .../editor-ui/src/components/NodeSettings.vue | 78 +- .../src/components/NodeSettingsTabs.vue | 2 +- .../editor-ui/src/components/NodeTitle.vue | 10 +- .../editor-ui/src/components/NodeWebhooks.vue | 14 +- .../components/OnboardingCallSignupModal.vue | 6 +- .../editor-ui/src/components/OutputPanel.vue | 70 +- .../src/components/PanelDragButton.vue | 2 +- .../src/components/ParameterInput.vue | 272 +++---- .../src/components/ParameterInputExpanded.vue | 34 +- .../src/components/ParameterInputFull.vue | 86 +-- .../src/components/ParameterInputHint.vue | 8 +- .../src/components/ParameterInputList.vue | 100 +-- .../src/components/ParameterInputWrapper.vue | 38 +- .../src/components/ParameterIssues.vue | 4 +- .../src/components/ParameterOptions.vue | 8 +- .../src/components/PersonalizationModal.vue | 38 +- .../src/components/PushConnectionTracker.vue | 2 +- .../ResourceLocator/ResourceLocator.vue | 44 +- .../ResourceLocatorDropdown.vue | 62 +- .../ResourceMapper/MappingFields.vue | 24 +- .../ResourceMapper/MappingModeSelect.vue | 2 +- .../ResourceMapper/MatchingColumnsSelect.vue | 10 +- .../ResourceMapper/ResourceMapper.vue | 46 +- packages/editor-ui/src/components/RunData.vue | 122 ++-- .../RunDataAi/AiRunContentBlock.vue | 16 +- .../src/components/RunDataAi/RunDataAi.vue | 14 +- .../components/RunDataAi/RunDataAiContent.vue | 8 +- .../editor-ui/src/components/RunDataJson.vue | 34 +- .../src/components/RunDataJsonActions.vue | 2 +- .../src/components/RunDataSchema.vue | 18 +- .../src/components/RunDataSchemaItem.vue | 10 +- .../src/components/RunDataSearch.vue | 2 +- .../editor-ui/src/components/RunDataTable.vue | 26 +- packages/editor-ui/src/components/RunInfo.vue | 4 +- .../editor-ui/src/components/SSOLogin.vue | 2 +- .../editor-ui/src/components/SaveButton.vue | 8 +- .../editor-ui/src/components/ScopesNotice.vue | 2 +- .../EventDestinationCard.ee.vue | 18 +- .../EventDestinationSettingsModal.ee.vue | 80 +-- .../EventSelection.ee.vue | 30 +- .../src/components/SettingsSidebar.vue | 4 +- .../editor-ui/src/components/ShortenName.vue | 2 +- .../components/SourceControlPullModal.ee.vue | 2 +- .../components/SourceControlPushModal.ee.vue | 16 +- .../src/components/SqlEditor/SqlEditor.vue | 38 +- packages/editor-ui/src/components/Sticky.vue | 44 +- .../SuggestedTemplatesPage.vue | 9 +- .../SuggestedTemplatesPreviewModal.vue | 8 +- .../SuggestedTemplatesSection.vue | 8 +- .../src/components/TagsContainer.vue | 8 +- .../editor-ui/src/components/TagsDropdown.vue | 14 +- .../components/TagsManager/TagsManager.vue | 26 +- .../TagsManager/TagsView/TagsTable.vue | 48 +- .../TagsManager/TagsView/TagsTableHeader.vue | 4 +- .../TagsManager/TagsView/TagsView.vue | 10 +- .../editor-ui/src/components/Telemetry.vue | 30 +- .../editor-ui/src/components/TemplateCard.vue | 22 +- .../src/components/TemplateDetails.vue | 26 +- .../src/components/TemplateFilters.vue | 28 +- .../editor-ui/src/components/TemplateList.vue | 20 +- .../src/components/TemplatesInfoCard.vue | 10 +- .../src/components/TemplatesInfoCarousel.vue | 72 +- .../editor-ui/src/components/TextEdit.vue | 34 +- .../editor-ui/src/components/TitledList.vue | 2 +- .../editor-ui/src/components/TriggerPanel.vue | 52 +- .../editor-ui/src/components/ValueSurvey.vue | 14 +- .../src/components/VariableSelector.vue | 18 +- .../src/components/VariableSelectorItem.vue | 50 +- .../editor-ui/src/components/VariablesRow.vue | 16 +- .../editor-ui/src/components/VersionCard.vue | 6 +- .../src/components/WorkerList.ee.vue | 4 +- .../src/components/Workers/WorkerCard.ee.vue | 4 +- .../src/components/WorkflowActivator.vue | 10 +- .../editor-ui/src/components/WorkflowCard.vue | 34 +- .../WorkflowHistoryContent.vue | 10 +- .../WorkflowHistory/WorkflowHistoryList.vue | 6 +- .../WorkflowHistoryListItem.vue | 2 +- .../WorkflowHistoryVersionRestoreModal.vue | 2 +- .../src/components/WorkflowLMChat.vue | 26 +- .../src/components/WorkflowPreview.vue | 2 +- .../src/components/WorkflowSettings.vue | 22 +- .../src/components/WorkflowShareModal.ee.vue | 32 +- .../src/components/banners/BaseBanner.vue | 4 +- .../banners/EmailConfirmationBanner.vue | 6 +- .../banners/NonProductionLicenseBanner.vue | 4 +- .../src/components/banners/TrialBanner.vue | 6 +- .../components/banners/TrialOverBanner.vue | 6 +- .../src/components/banners/V1Banner.vue | 6 +- .../__snapshots__/V1Banner.spec.ts.snap | 8 +- .../forms/ResourceFiltersDropdown.vue | 26 +- .../forms/ResourceOwnershipSelect.ee.vue | 2 +- .../src/components/layouts/PageViewLayout.vue | 4 +- .../layouts/ResourcesListLayout.vue | 110 +-- .../src/composables/useNodeHelpers.ts | 2 +- packages/editor-ui/src/mixins/copyPaste.ts | 26 +- packages/editor-ui/src/mixins/nodeBase.ts | 12 +- .../editor-ui/src/mixins/pushConnection.ts | 12 +- packages/editor-ui/src/plugins/components.ts | 2 +- packages/editor-ui/src/plugins/icons/index.ts | 2 +- .../editor-ui/src/stores/workflows.store.ts | 3 +- packages/editor-ui/src/views/AuthView.vue | 2 +- .../editor-ui/src/views/CanvasAddButton.vue | 4 +- .../src/views/ChangePasswordView.vue | 2 +- .../editor-ui/src/views/CredentialsView.vue | 44 +- packages/editor-ui/src/views/ErrorView.vue | 2 +- .../src/views/ForgotMyPasswordView.vue | 2 +- packages/editor-ui/src/views/MfaView.vue | 18 +- packages/editor-ui/src/views/NodeView.vue | 680 +++++++++--------- .../editor-ui/src/views/SamlOnboarding.vue | 2 +- .../editor-ui/src/views/SettingsApiView.vue | 10 +- .../editor-ui/src/views/SettingsAuditLogs.vue | 2 +- .../src/views/SettingsCommunityNodesView.vue | 26 +- .../src/views/SettingsExternalSecrets.vue | 2 +- .../src/views/SettingsFakeDoorView.vue | 2 +- .../editor-ui/src/views/SettingsLdapView.vue | 42 +- .../src/views/SettingsLogStreamingView.vue | 12 +- .../src/views/SettingsPersonalView.vue | 12 +- .../src/views/SettingsSourceControl.vue | 40 +- packages/editor-ui/src/views/SettingsSso.vue | 8 +- .../src/views/SettingsUsageAndPlan.vue | 18 +- .../editor-ui/src/views/SettingsUsersView.vue | 16 +- packages/editor-ui/src/views/SetupView.vue | 2 +- .../AppsRequiringCredsNotice.vue | 4 +- .../SetupTemplateFormStep.vue | 8 +- .../SetupWorkflowFromTemplateView.vue | 16 +- packages/editor-ui/src/views/SigninView.vue | 6 +- packages/editor-ui/src/views/SignoutView.vue | 6 +- packages/editor-ui/src/views/SignupView.vue | 2 +- .../src/views/TemplatesCollectionView.vue | 56 +- .../src/views/TemplatesSearchView.vue | 74 +- .../editor-ui/src/views/TemplatesView.vue | 2 +- .../src/views/TemplatesWorkflowView.vue | 56 +- .../editor-ui/src/views/VariablesView.vue | 20 +- packages/editor-ui/src/views/WorkerView.vue | 2 +- .../editor-ui/src/views/WorkflowHistory.vue | 22 +- .../editor-ui/src/views/WorkflowsView.vue | 68 +- 304 files changed, 3428 insertions(+), 3516 deletions(-) diff --git a/packages/@n8n_io/eslint-config/frontend.js b/packages/@n8n_io/eslint-config/frontend.js index 9e202c14a5..f4aae5fa26 100644 --- a/packages/@n8n_io/eslint-config/frontend.js +++ b/packages/@n8n_io/eslint-config/frontend.js @@ -4,7 +4,7 @@ module.exports = { plugins: ['vue'], - extends: ['plugin:vue/vue3-essential', '@vue/typescript', './base'], + extends: ['plugin:vue/vue3-recommended', '@vue/typescript', './base'], env: { browser: true, @@ -37,6 +37,22 @@ module.exports = { 'vue/no-unused-components': 'error', 'vue/multi-word-component-names': 'off', '@typescript-eslint/no-explicit-any': 'error', + 'vue/component-name-in-template-casing': [ + 'error', + 'PascalCase', + { + registeredComponentsOnly: true, + }, + ], + 'vue/no-reserved-component-names': [ + 'error', + { + disallowVueBuiltInComponents: true, + disallowVue3BuiltInComponents: false, + }, + ], + 'vue/prop-name-casing': ['error', 'camelCase'], + 'vue/attribute-hyphenation': ['error', 'always'], // TODO: fix these '@typescript-eslint/no-unsafe-call': 'off', diff --git a/packages/design-system/src/components/N8nActionBox/ActionBox.vue b/packages/design-system/src/components/N8nActionBox/ActionBox.vue index d3ec2bb29f..8230d1fbc5 100644 --- a/packages/design-system/src/components/N8nActionBox/ActionBox.vue +++ b/packages/design-system/src/components/N8nActionBox/ActionBox.vue @@ -1,37 +1,37 @@ @@ -43,7 +43,7 @@ import N8nCallout from '../N8nCallout'; import { defineComponent } from 'vue'; export default defineComponent({ - name: 'n8n-action-box', + name: 'N8nActionBox', components: { N8nButton, N8nHeading, diff --git a/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.vue b/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.vue index 77a212c20c..db7487f655 100644 --- a/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.vue +++ b/packages/design-system/src/components/N8nActionDropdown/ActionDropdown.vue @@ -1,27 +1,27 @@ @@ -75,7 +75,7 @@ export interface IActionDropdownItem { // It can be used in different parts of editor UI while ActionToggle // is designed to be used in card components. export default defineComponent({ - name: 'n8n-action-dropdown', + name: 'N8nActionDropdown', components: { ElDropdown, ElDropdownMenu, @@ -83,10 +83,6 @@ export default defineComponent({ N8nIcon, N8nKeyboardShortcut, }, - data() { - const testIdPrefix = this.$attrs['data-test-id']; - return { testIdPrefix }; - }, props: { items: { type: Array as PropType, @@ -121,6 +117,10 @@ export default defineComponent({ default: false, }, }, + data() { + const testIdPrefix = this.$attrs['data-test-id']; + return { testIdPrefix }; + }, methods: { getItemClasses(item: IActionDropdownItem): Record { return { diff --git a/packages/design-system/src/components/N8nActionToggle/ActionToggle.vue b/packages/design-system/src/components/N8nActionToggle/ActionToggle.vue index 29087d9b6a..799f4c09c4 100644 --- a/packages/design-system/src/components/N8nActionToggle/ActionToggle.vue +++ b/packages/design-system/src/components/N8nActionToggle/ActionToggle.vue @@ -1,6 +1,6 @@ @@ -49,7 +49,7 @@ import N8nIcon from '../N8nIcon'; import type { UserAction } from '@/types'; export default defineComponent({ - name: 'n8n-action-toggle', + name: 'N8nActionToggle', components: { ElDropdown, ElDropdownMenu, diff --git a/packages/design-system/src/components/N8nAlert/Alert.vue b/packages/design-system/src/components/N8nAlert/Alert.vue index b48be58892..c2f64a245b 100644 --- a/packages/design-system/src/components/N8nAlert/Alert.vue +++ b/packages/design-system/src/components/N8nAlert/Alert.vue @@ -2,7 +2,7 @@
- +
diff --git a/packages/design-system/src/components/N8nAvatar/Avatar.vue b/packages/design-system/src/components/N8nAvatar/Avatar.vue index a8f49733c0..5460717d4c 100644 --- a/packages/design-system/src/components/N8nAvatar/Avatar.vue +++ b/packages/design-system/src/components/N8nAvatar/Avatar.vue @@ -24,7 +24,10 @@ const sizes: { [size: string]: number } = { import { defineComponent } from 'vue'; export default defineComponent({ - name: 'n8n-avatar', + name: 'N8nAvatar', + components: { + Avatar, + }, props: { firstName: { type: String, @@ -48,9 +51,6 @@ export default defineComponent({ ], }, }, - components: { - Avatar, - }, computed: { initials() { return ( diff --git a/packages/design-system/src/components/N8nBadge/Badge.vue b/packages/design-system/src/components/N8nBadge/Badge.vue index 7c6aed8b2f..b370b138cb 100644 --- a/packages/design-system/src/components/N8nBadge/Badge.vue +++ b/packages/design-system/src/components/N8nBadge/Badge.vue @@ -1,8 +1,8 @@ @@ -12,6 +12,9 @@ import N8nText from '../N8nText'; import { defineComponent } from 'vue'; export default defineComponent({ + components: { + N8nText, + }, props: { theme: { type: String, @@ -30,9 +33,6 @@ export default defineComponent({ default: false, }, }, - components: { - N8nText, - }, }); diff --git a/packages/design-system/src/components/N8nButton/Button.vue b/packages/design-system/src/components/N8nButton/Button.vue index bc794cf01d..779a7add0f 100644 --- a/packages/design-system/src/components/N8nButton/Button.vue +++ b/packages/design-system/src/components/N8nButton/Button.vue @@ -9,9 +9,9 @@ aria-live="polite" v-bind="$attrs" > - - - + + + {{ label }} diff --git a/packages/design-system/src/components/N8nCallout/Callout.vue b/packages/design-system/src/components/N8nCallout/Callout.vue index dfb98ab612..3c93e3bfac 100644 --- a/packages/design-system/src/components/N8nCallout/Callout.vue +++ b/packages/design-system/src/components/N8nCallout/Callout.vue @@ -1,12 +1,12 @@