Move board to src/game

This commit is contained in:
thepaperpilot 2024-03-09 20:36:41 -06:00
parent 46d0a9aa2e
commit e0da9588d2
8 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,7 @@
import Board from "features/boards/Board.vue"; import Board from "game/boards/Board.vue";
import CircleProgress from "features/boards/CircleProgress.vue"; import CircleProgress from "game/boards/CircleProgress.vue";
import SVGNode from "features/boards/SVGNode.vue"; import SVGNode from "game/boards/SVGNode.vue";
import SquareProgress from "features/boards/SquareProgress.vue"; import SquareProgress from "game/boards/SquareProgress.vue";
import { import {
NodePosition, NodePosition,
makeDraggable, makeDraggable,
@ -9,7 +9,7 @@ import {
setupActions, setupActions,
setupDraggableNode, setupDraggableNode,
setupUniqueIds setupUniqueIds
} from "features/boards/board"; } from "game/boards/board";
import { jsx } from "features/feature"; import { jsx } from "features/feature";
import { createResource } from "features/resources/resource"; import { createResource } from "features/resources/resource";
import { createUpgrade } from "features/upgrades/upgrade"; import { createUpgrade } from "features/upgrades/upgrade";

View file

@ -91,3 +91,4 @@ function onInit(panzoomInstance: PanZoom) {
margin: -50px -10px; margin: -50px -10px;
} }
</style> </style>
game/boards/board

View file

@ -1,5 +1,5 @@
import Board from "features/boards/Board.vue"; import Board from "./Board.vue";
import Draggable from "features/boards/Draggable.vue"; import Draggable from "./Draggable.vue";
import { Component, GatherProps, GenericComponent, jsx } from "features/feature"; import { Component, GatherProps, GenericComponent, jsx } from "features/feature";
import { globalBus } from "game/events"; import { globalBus } from "game/events";
import { Persistent, persistent } from "game/persistence"; import { Persistent, persistent } from "game/persistence";

View file

@ -3,7 +3,7 @@ import {
placeInAvailableSpace, placeInAvailableSpace,
setupUniqueIds, setupUniqueIds,
unwrapNodeRef unwrapNodeRef
} from "features/boards/board"; } from "game/boards/board";
import { beforeEach, describe, expect, test } from "vitest"; import { beforeEach, describe, expect, test } from "vitest";
import { Ref, ref } from "vue"; import { Ref, ref } from "vue";
import "../utils"; import "../utils";