Skip to content

Commit

Permalink
stateful composable useStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Théo Chambon committed Oct 12, 2023
1 parent 53bb659 commit 9e942ea
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions composables/useStrategyAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@ import { ref } from "vue";
import { useDisplay } from "vuetify";
import { replaceAndEscape } from "../services/Common";


export default function () {
// import fonctions
const { fetchCodeLangues, createLabels, getLabelFromCode } = useReferentielsAPI();
const { suggestionTheses, getFacetsTheses, getThese, queryThesesAPI, getItemsTriTheses, disableOrFiltersTheses, getItemsTriMapTheses } = useThesesAPI();
const { suggestionPersonne, getFacetsPersonnes, getPersonne, queryPersonnesAPI, getItemsTriPersonnes, disableOrFiltersPersonnes, getItemsTriMapPersonnes } = usePersonnesAPI();


/**
* Initialisation
*/
const router = useRouter();

const domaine = ref("theses");
const currentPageNumber = ref();
const currentShowingNumber = ref();
Expand All @@ -26,6 +16,15 @@ const checkedFilters = ref([]);
const currentWorkingFacetName = ref("");
const labelMap = ref(new Map());

export default function () {
// import fonctions
const { fetchCodeLangues, createLabels, getLabelFromCode } = useReferentielsAPI();
const { suggestionTheses, getFacetsTheses, getThese, queryThesesAPI, getItemsTriTheses, disableOrFiltersTheses, getItemsTriMapTheses } = useThesesAPI();
const { suggestionPersonne, getFacetsPersonnes, getPersonne, queryPersonnesAPI, getItemsTriPersonnes, disableOrFiltersPersonnes, getItemsTriMapPersonnes } = usePersonnesAPI();


const router = useRouter();

fetchCodeLangues();

/**
Expand Down

0 comments on commit 9e942ea

Please sign in to comment.