Skip to content

Commit

Permalink
move ExternalToolElementDisplayState.composable.ts to @data-external-…
Browse files Browse the repository at this point in the history
…tool
  • Loading branch information
MarvinOehlerkingCap committed Oct 19, 2023
1 parent 9006597 commit d9e8373
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/components/data-board-external-tool-element/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useErrorHandler } from "@/components/error-handling/ErrorHandler.composable";
import { ExternalToolDisplayData } from "@/store/external-tool";
import { useContextExternalToolApi } from "@data-external-tool";
import { ref, Ref } from "vue";
import { ExternalToolDisplayData } from "../../store/external-tool";
import { useErrorHandler } from "../error-handling/ErrorHandler.composable";
import { useContextExternalToolApi } from "./index";

export const useExternalToolElementDisplayState = () => {
const { handleError } = useErrorHandler();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useErrorHandler } from "@/components/error-handling/ErrorHandler.composable";
import { ExternalToolDisplayData } from "@/store/external-tool";
import { externalToolDisplayDataFactory } from "@@/tests/test-utils";
import { useContextExternalToolApi } from "@data-external-tool";
import { createMock, DeepMocked } from "@golevelup/ts-jest";
import { useErrorHandler } from "../error-handling/ErrorHandler.composable";
import { useExternalToolElementDisplayState } from "./ExternalToolElementDisplayState.composable";
import { useContextExternalToolApi } from "./index";

jest.mock("@data-external-tool");
jest.mock("@/components/error-handling/ErrorHandler.composable");
Expand Down
1 change: 1 addition & 0 deletions src/components/data-external-tool/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./ContextExternalToolApi.composable";
export * from "./ExternalToolElementDisplayState.composable";
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@@/tests/test-utils";
import createComponentMocks from "@@/tests/test-utils/componentMocks";
import { useBoardFocusHandler, useContentElementState } from "@data-board";
import { useExternalToolElementDisplayState } from "@data-board-external-tool-element";
import { useExternalToolElementDisplayState } from "@data-external-tool";
import { createMock, DeepMocked } from "@golevelup/ts-jest";
import { mdiPuzzleOutline } from "@mdi/js";
import { useDeleteConfirmationDialog } from "@ui-confirmation-dialog";
Expand All @@ -22,7 +22,7 @@ import Vue, { ref } from "vue";
import ExternalToolElement from "./ExternalToolElement.vue";

jest.mock("@data-board");
jest.mock("@data-board-external-tool-element");
jest.mock("@data-external-tool");
jest.mock("@ui-confirmation-dialog");

const EMPTY_TEST_ELEMENT: ExternalToolElementResponse = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import { useI18n } from "@/composables/i18n.composable";
import { ExternalToolElementResponse } from "@/serverApi/v3";
import { ContextExternalTool } from "@/store/external-tool/context-external-tool";
import { useBoardFocusHandler, useContentElementState } from "@data-board";
import { useExternalToolElementDisplayState } from "@data-board-external-tool-element";
import { useExternalToolElementDisplayState } from "@data-external-tool";
import { mdiPuzzleOutline } from "@mdi/js";
import {
computed,
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"paths": {
"@data-board": ["src/components/data-board"],
"@data-external-tool": ["src/components/data-external-tool"],
"@data-board-external-tool-element": ["src/components/data-board-external-tool-element"],
"@feature-board-file-element": [
"src/components/feature-board-file-element"
],
Expand Down
3 changes: 0 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ module.exports = defineConfig({
alias: {
"@data-board": getDir("src/components/data-board"),
"@data-external-tool": getDir("src/components/data-external-tool"),
"@data-board-external-tool-element": getDir(
"src/components/data-board-external-tool-element"
),
"@feature-board-file-element": getDir(
"src/components/feature-board-file-element"
),
Expand Down

0 comments on commit d9e8373

Please sign in to comment.