diff --git a/packages/editor-ui/src/components/AnnotationTagsContainer.ee.vue b/packages/editor-ui/src/components/AnnotationTagsContainer.ee.vue deleted file mode 100644 index efc69968f5..0000000000 --- a/packages/editor-ui/src/components/AnnotationTagsContainer.ee.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/packages/editor-ui/src/components/RBAC.test.ts b/packages/editor-ui/src/components/RBAC.test.ts deleted file mode 100644 index 511786c318..0000000000 --- a/packages/editor-ui/src/components/RBAC.test.ts +++ /dev/null @@ -1,57 +0,0 @@ -import RBAC from '@/components/RBAC.vue'; -import { createComponentRenderer } from '@/__tests__/render'; -import { useRBACStore } from '@/stores/rbac.store'; - -const renderComponent = createComponentRenderer(RBAC); - -vi.mock('vue-router', () => ({ - useRoute: vi.fn(() => ({ - path: '/workflows', - params: {}, - })), - RouterLink: vi.fn(), -})); - -vi.mock('@/stores/rbac.store', () => ({ - useRBACStore: vi.fn(), -})); - -describe('RBAC', () => { - it('renders default slot when hasScope is true', async () => { - vi.mocked(useRBACStore).mockImplementation( - () => - ({ - hasScope: () => true, - }) as unknown as ReturnType, - ); - - const wrapper = renderComponent({ - props: { scope: 'worfklow:list' }, - slots: { - default: 'Default Content', - fallback: 'Fallback Content', - }, - }); - - expect(wrapper.getByText('Default Content')).toBeInTheDocument(); - }); - - it('renders fallback slot when hasScope is false', async () => { - vi.mocked(useRBACStore).mockImplementation( - () => - ({ - hasScope: () => false, - }) as unknown as ReturnType, - ); - - const wrapper = renderComponent({ - props: { scope: 'worfklow:list' }, - slots: { - default: 'Default Content', - fallback: 'Fallback Content', - }, - }); - - expect(wrapper.getByText('Fallback Content')).toBeInTheDocument(); - }); -}); diff --git a/packages/editor-ui/src/components/RBAC.vue b/packages/editor-ui/src/components/RBAC.vue deleted file mode 100644 index 741f2771c7..0000000000 --- a/packages/editor-ui/src/components/RBAC.vue +++ /dev/null @@ -1,61 +0,0 @@ - diff --git a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeStickyNote.vue b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeStickyNote.vue index 6a0d0ac8ec..1fb597be69 100644 --- a/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeStickyNote.vue +++ b/packages/editor-ui/src/components/canvas/elements/nodes/render-types/CanvasNodeStickyNote.vue @@ -4,7 +4,7 @@ import { useCanvasNode } from '@/composables/useCanvasNode'; import type { CanvasNodeStickyNoteRender } from '@/types'; import { ref, computed, useCssModule, onMounted, onBeforeUnmount } from 'vue'; import { NodeResizer } from '@vue-flow/node-resizer'; -import type { OnResize } from '@vue-flow/node-resizer/dist/types'; +import type { OnResize } from '@vue-flow/node-resizer'; import type { XYPosition } from '@vue-flow/core'; defineOptions({ diff --git a/packages/editor-ui/src/plugins/components.ts b/packages/editor-ui/src/plugins/components.ts index d87d7f0ac6..38c600a8f4 100644 --- a/packages/editor-ui/src/plugins/components.ts +++ b/packages/editor-ui/src/plugins/components.ts @@ -6,7 +6,6 @@ import ElementPlus, { ElLoading, ElMessageBox } from 'element-plus'; import { N8nPlugin } from 'n8n-design-system'; import { useMessage } from '@/composables/useMessage'; import EnterpriseEdition from '@/components/EnterpriseEdition.ee.vue'; -import RBAC from '@/components/RBAC.vue'; import ParameterInputList from '@/components/ParameterInputList.vue'; export const GlobalComponentsPlugin: Plugin = { @@ -14,7 +13,6 @@ export const GlobalComponentsPlugin: Plugin = { const messageService = useMessage(); app.component('EnterpriseEdition', EnterpriseEdition); - app.component('RBAC', RBAC); app.component('ParameterInputList', ParameterInputList); app.use(ElementPlus);