Bug 38201: Rename the '@k' alias to koha-vue
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d80916696f
commit
7d5bd4b9ae
|
|
@ -8,7 +8,7 @@
|
|||
import BaseResource from "../../BaseResource.vue";
|
||||
import { useBaseResource } from "../../../composables/base-resource.js";
|
||||
import { APIClient } from "../../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
export default {
|
||||
name: "ButtonSubmit",
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
import AgreementResource from "./AgreementResource.vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { setWarning, removeMessages } from "../../messages";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup(props, { emit }) {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ import { inject, ref, reactive, useTemplateRef } from "vue";
|
|||
import { storeToRefs } from "pinia";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import { build_url_params, build_url } from "../../composables/datatables";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
import { createVNode, onMounted, ref, render } from "vue";
|
||||
import { useDataTable } from "../../composables/datatables";
|
||||
import { useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import { build_url_params, build_url } from "../../composables/datatables";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
import { createVNode, onMounted, render } from "vue";
|
||||
import { useDataTable } from "../../composables/datatables";
|
||||
import { useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ import { setError } from "../../messages";
|
|||
import { createVNode, onBeforeMount, onMounted, ref, render } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { useDataTable } from "../../composables/datatables";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@
|
|||
import ButtonSubmit from "../ButtonSubmit.vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { ref, inject, useTemplateRef, onBeforeMount } from "vue";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ import Dialog from "../Dialog.vue";
|
|||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import "vue-select/dist/vue-select.css";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import { inject, onMounted, ref, useTemplateRef } from "vue";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import { inject, onBeforeMount, ref } from "vue";
|
|||
import ButtonSubmit from "../ButtonSubmit.vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import { inject, onBeforeMount, ref } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import { inject, ref, onMounted } from "vue";
|
|||
import { useRouter } from "vue-router";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ import UsageStatisticsDataProvidersCounterLogs from "./UsageStatisticsDataProvid
|
|||
import UsageStatisticsDataProviderDetails from "./UsageStatisticsDataProviderDetails.vue";
|
||||
import UsageStatisticsProviderDataList from "./UsageStatisticsProviderDataList.vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
import { inject, onMounted, ref, useTemplateRef, watch } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import { onMounted, ref } from "vue";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ import { inject, ref } from "vue";
|
|||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ import ButtonSubmit from "../ButtonSubmit.vue";
|
|||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import UsageStatisticsReportBuilder from "./UsageStatisticsReportBuilder.vue";
|
||||
import UsageStatisticsSavedReports from "./UsageStatisticsSavedReports.vue";
|
||||
import { $__ } from "@k/i18n/";
|
||||
import { $__ } from "@koha-vue/i18n/";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
import { inject, onMounted, ref, useTemplateRef, watch } from "vue";
|
||||
import KohaTable from "../KohaTable.vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ import ButtonSubmit from "../ButtonSubmit.vue";
|
|||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { inject, onMounted, ref } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import {
|
|||
useTemplateRef,
|
||||
} from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
DataTable.use(DataTablesLib);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import Dialog from "../Dialog.vue";
|
|||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import "vue-select/dist/vue-select.css";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ import { inject, ref } from "vue";
|
|||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import SettingsProcessings from "./SettingsProcessings.vue";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
<script>
|
||||
import { inject, onMounted, ref } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@
|
|||
import { inject, onMounted, ref } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ import { APIClient } from "../../fetch/api-client.js";
|
|||
import Toolbar from "../Toolbar.vue";
|
||||
import ToolbarButton from "../ToolbarButton.vue";
|
||||
import { onBeforeRouteUpdate, useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ import { useDataTable } from "../../composables/datatables";
|
|||
import Toolbar from "../Toolbar.vue";
|
||||
import ToolbarButton from "../ToolbarButton.vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup(props) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@
|
|||
import { inject, onBeforeMount, ref } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@
|
|||
import { inject, onBeforeMount, ref } from "vue";
|
||||
import { APIClient } from "../../fetch/api-client";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import Toolbar from "./Toolbar.vue";
|
|||
import { ref, inject, onBeforeMount, computed } from "vue";
|
||||
import { APIClient } from "../fetch/api-client.js";
|
||||
import KohaTable from "./KohaTable.vue";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
inheritAttrs: false,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import BaseResource from "../BaseResource.vue";
|
|||
import { useBaseResource } from "../../composables/base-resource.js";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { APIClient } from "../../fetch/api-client.js";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,16 @@ import { computed, inject, ref } from "vue";
|
|||
import { useRoute, useRouter } from "vue-router";
|
||||
import { build_url } from "../composables/datatables";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { $__, $__x, $__n, $__nx, $__p, $__px, $__np, $__npx } from "@k/i18n";
|
||||
import {
|
||||
$__,
|
||||
$__x,
|
||||
$__n,
|
||||
$__nx,
|
||||
$__p,
|
||||
$__px,
|
||||
$__np,
|
||||
$__npx,
|
||||
} from "@koha-vue/i18n";
|
||||
|
||||
export function useBaseResource(instancedResource) {
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import { routes as routesDef } from "../routes/acquisitions";
|
|||
import { useMainStore } from "../stores/main";
|
||||
import { useVendorStore } from "../stores/vendors";
|
||||
import { useNavigationStore } from "../stores/navigation";
|
||||
import i18n from "@k/i18n";
|
||||
import i18n from "@koha-vue/i18n";
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ const router = createRouter({
|
|||
});
|
||||
|
||||
import App from "../../components/Admin/RecordSources/Main.vue";
|
||||
import i18n from "@k/i18n";
|
||||
import i18n from "@koha-vue/i18n";
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import { useVendorStore } from "../stores/vendors";
|
|||
import { useERMStore } from "../stores/erm";
|
||||
import { useNavigationStore } from "../stores/navigation";
|
||||
import { useReportsStore } from "../stores/usage-reports";
|
||||
import i18n from "@k/i18n";
|
||||
import i18n from "@koha-vue/i18n";
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import { routes as routesDef } from "../routes/preservation";
|
|||
import { useMainStore } from "../stores/main";
|
||||
import { usePreservationStore } from "../stores/preservation";
|
||||
import { useNavigationStore } from "../stores/navigation";
|
||||
import i18n from "@k/i18n";
|
||||
import i18n from "@koha-vue/i18n";
|
||||
|
||||
const pinia = createPinia();
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { markRaw } from "vue";
|
|||
import Home from "../components/Vendors/Home.vue";
|
||||
import ResourceWrapper from "../components/ResourceWrapper.vue";
|
||||
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
const vendorSearchBreadcrumb = ({ match, query }) => {
|
||||
if (!query || !query.supplier) return match.meta.self;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { markRaw } from "vue";
|
|||
|
||||
import ResourceWrapper from "../../components/ResourceWrapper.vue";
|
||||
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export default {
|
||||
title: $__("Administration"),
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import UsageStatisticsReportsViewer from "../components/ERM/UsageStatisticsRepor
|
|||
|
||||
import ResourceWrapper from "../components/ResourceWrapper.vue";
|
||||
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export const routes = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import SettingsProcessingsFormAdd from "../components/Preservation/SettingsProce
|
|||
|
||||
import ResourceWrapper from "../components/ResourceWrapper.vue";
|
||||
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export const routes = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { reactive, toRefs } from "vue";
|
||||
import { withAuthorisedValueActions } from "../composables/authorisedValues";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export const useERMStore = defineStore("erm", () => {
|
||||
const store = reactive({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { reactive, toRefs } from "vue";
|
||||
import { $__ } from "@k/i18n";
|
||||
import { $__ } from "@koha-vue/i18n";
|
||||
|
||||
export const useReportsStore = defineStore("reports", () => {
|
||||
const store = reactive({
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ module.exports = [
|
|||
__dirname,
|
||||
"koha-tmpl/intranet-tmpl/prog/js/fetch"
|
||||
),
|
||||
"@k": path.resolve(
|
||||
"@koha-vue": path.resolve(
|
||||
__dirname,
|
||||
"koha-tmpl/intranet-tmpl/prog/js/vue"
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in New Issue