From b70fe42b245cf4042249eda39b46342ca600c0ad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 30 Jan 2025 09:15:12 +0100 Subject: [PATCH] Bug 38993: Use the @fetch alias --- .../intranet-tmpl/prog/js/fetch/api-client.js | 22 +++++++++---------- .../prog/js/vue/fetch/api-client.js | 18 +++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js b/koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js index 1faf8a9aca1..842604660b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js +++ b/koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js @@ -1,17 +1,17 @@ /* keep tidy */ import HttpClient from "./http-client.js"; -import ArticleRequestAPIClient from "./article-request-api-client.js"; -import AVAPIClient from "./authorised-values-api-client.js"; -import CataloguingAPIClient from "./cataloguing-api-client.js"; -import CirculationAPIClient from "./circulation-api-client.js"; -import ClubAPIClient from "./club-api-client.js"; -import CoverImageAPIClient from "./cover-image-api-client.js"; -import LocalizationAPIClient from "./localization-api-client.js"; -import PatronAPIClient from "./patron-api-client.js"; -import RecallAPIClient from "./recall-api-client.js"; -import SysprefAPIClient from "./system-preferences-api-client.js"; -import TicketAPIClient from "./ticket-api-client.js"; +import ArticleRequestAPIClient from "@fetch/article-request-api-client.js"; +import AVAPIClient from "@fetch/authorised-values-api-client.js"; +import CataloguingAPIClient from "@fetch/cataloguing-api-client.js"; +import CirculationAPIClient from "@fetch/circulation-api-client.js"; +import ClubAPIClient from "@fetch/club-api-client.js"; +import CoverImageAPIClient from "@fetch/cover-image-api-client.js"; +import LocalizationAPIClient from "@fetch/localization-api-client.js"; +import PatronAPIClient from "@fetch/patron-api-client.js"; +import RecallAPIClient from "@fetch/recall-api-client.js"; +import SysprefAPIClient from "@fetch/system-preferences-api-client.js"; +import TicketAPIClient from "@fetch/ticket-api-client.js"; export const APIClient = { article_request: new ArticleRequestAPIClient(HttpClient), diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js index bda3763d838..c12f54beebf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/api-client.js @@ -1,14 +1,14 @@ import HttpClient from "./http-client"; -import ERMAPIClient from "./../../fetch/erm-api-client"; -import PatronAPIClient from "./../../fetch/patron-api-client"; -import AcquisitionAPIClient from "./../../fetch/acquisition-api-client"; -import AdditionalFieldsAPIClient from "./../../fetch/additional-fields-api-client"; -import AVAPIClient from "./../../fetch/authorised-values-api-client"; -import ItemAPIClient from "./../../fetch/item-api-client"; -import RecordSourcesAPIClient from "./../../fetch/record-sources-api-client"; -import SysprefAPIClient from "./../../fetch/system-preferences-api-client"; -import PreservationAPIClient from "./../../fetch/preservation-api-client"; +import ERMAPIClient from "@fetch/erm-api-client"; +import PatronAPIClient from "@fetch/patron-api-client"; +import AcquisitionAPIClient from "@fetch/acquisition-api-client"; +import AdditionalFieldsAPIClient from "@fetch/additional-fields-api-client"; +import AVAPIClient from "@fetch/authorised-values-api-client"; +import ItemAPIClient from "@fetch/item-api-client"; +import RecordSourcesAPIClient from "@fetch/record-sources-api-client"; +import SysprefAPIClient from "@fetch/system-preferences-api-client"; +import PreservationAPIClient from "@fetch/preservation-api-client"; export const APIClient = { erm: new ERMAPIClient(HttpClient), -- 2.34.1