Commit d307baec authored by Rémy Marronnier's avatar Rémy Marronnier

fakeResults wip

parent 4481ac09
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<v-expansion-panel> <v-expansion-panel>
<v-expansion-panel-header>Item</v-expansion-panel-header> <v-expansion-panel-header>Item</v-expansion-panel-header>
<v-expansion-panel-content v-for="(item,i) in 5" :key="i"> <v-expansion-panel-content v-for="(item,i) in 5" :key="i">
<Contract></Contract> <Contract v-for="aid in aids" :key="aid"></Contract>
</v-expansion-panel-content> </v-expansion-panel-content>
</v-expansion-panel> </v-expansion-panel>
</v-expansion-panels> </v-expansion-panels>
...@@ -18,6 +18,14 @@ export default { ...@@ -18,6 +18,14 @@ export default {
name: "Eligible", name: "Eligible",
components: { components: {
Contract Contract
},
data() {
return {
aids: []
};
},
beforeCreate() {
this.aids = this.$store.state.results.eligible;
} }
}; };
</script> </script>
......
...@@ -18,6 +18,9 @@ export default { ...@@ -18,6 +18,9 @@ export default {
name: "Contract", name: "Contract",
components: { components: {
AidSummary AidSummary
},
data() {
return {};
} }
}; };
</script> </script>
......
import { CLARA_API_URL } from "./config"; //import { CLARA_API_URL } from "./config";
import { LoremIpsum } from "lorem-ipsum"; import { LoremIpsum } from "lorem-ipsum";
const filters = [ export function contractsService() {
{ const contracts = [
name: "travailler-en-alternance", {
description: "Travailler en alternance", name: "mobilite",
value: false description: "Aides à la mobilité",
}, icon: "mobilite",
{ },
name: "s-informer-sur-contrats-specifiques", {
description: "S'informer sur les contrats spécifiques", name: "orientation",
value: false description: "Aides à la définition du projet professionnel, à l'orientation, ou à la reconversion",
}, icon: "orientation",
{ },
name: "travailler-a-l-international", {
description: "Travailler en Europe ou à l'international", name: "creation-entreprise",
value: false description: "Aides à la création ou reprise d'entreprise",
}, icon: "creation-entreprise",
{ },
name: "garder-enfant", {
description: "Faire garder son enfant", name: "appui-embauche",
value: false description: "Appui à l'embauche",
}, icon: "appui-embauche",
{ },
name: "creer-entreprise", {
description: "Créer ou reprendre une entreprise", name: "contrat-specifique",
value: false description: "Contrats spécifiques",
}, icon: "contrat-specifique",
{ },
name: "accompagne-recherche-emploi", {
description: "Être accompagné/e pour la recherche d'emploi", name: "emploi-international",
value: false description: "Emplois internationaux",
}, icon: "emploi-international",
{ },
name: "trouver-change-de-metier", {
description: "Trouver un métier, changer de métier", name: "formation",
value: false description: "Dispositifs de formation, certification, obtention de diplôme",
}, icon: "formation",
{ },
name: "se-deplacer", {
description: "Se déplacer", name: "aide-regionale",
value: false description: "Aides régionales",
}, icon: "aide-regionale",
{ },
name: "aides-employeurs", {
description: "Connaître les aides au bénéfice des employeurs", name: "senior",
value: false description: "Aides pour les séniors",
}, icon: "senior",
{ },
name: "se-former-valoriser-ses-competences", {
description: "Financer une formation, obtenir un diplôme", name: "alternance",
value: false description: "Aides pour l'alternance'",
} icon: "alternance",
]; },
];
return contracts;
}
export function filtersService() {
const filters = [