Skip to content

Commit

Permalink
Move client object stores services to src/api
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Oct 13, 2023
1 parent 09126a8 commit fded7e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fetcher } from "@/api/schema/fetcher";
import { fetcher } from "@/api/schema";

const getObjectStores = fetcher.path("/api/object_stores").method("get").create();

Expand Down
3 changes: 1 addition & 2 deletions client/src/components/ObjectStore/SelectObjectStore.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<script setup lang="ts">
import { onMounted, ref, watch } from "vue";
import { getSelectableObjectStores } from "@/api/objectStores";
import { errorMessageAsString } from "@/utils/simple-error";
import { getSelectableObjectStores } from "./services";
import LoadingSpan from "@/components/LoadingSpan.vue";
import DescribeObjectStore from "@/components/ObjectStore/DescribeObjectStore.vue";
import ObjectStoreBadges from "@/components/ObjectStore/ObjectStoreBadges.vue";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { ref, watch } from "vue";
import { getObjectStoreDetails } from "@/api/objectStores";
import { errorMessageAsString } from "@/utils/simple-error";
import { getObjectStoreDetails } from "./services";
import type { ConcreteObjectStoreModel } from "./types";
import LoadingSpan from "@/components/LoadingSpan.vue";
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/ObjectStore/mockServices.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getSelectableObjectStores } from "./services";
import { getSelectableObjectStores } from "@/api/objectStores";

jest.mock("./services");
jest.mock("@/api/objectStores");

const OBJECT_STORES = [
{ object_store_id: "object_store_1", badges: [], quota: { enabled: false }, private: false },
Expand Down

0 comments on commit fded7e1

Please sign in to comment.