Refonte inventaire et objets #236

Merged
kazhnuz merged 27 commits from inventaire into master 2023-02-18 19:06:28 +01:00
Showing only changes of commit f8b9a3d272 - Show all commits

24
src/views/ObjetsView.vue Normal file
View file

@ -0,0 +1,24 @@
<script setup lang="ts">
import DynTable from "@/components/tableaux/DynTable.vue";
import { useConfigStore } from "@/stores/config";
import { onMounted } from "vue";
import { useRoute } from "vue-router";
import MarkdownFile from "../components/MarkdownFile.vue";
import { objectFields } from "@/data/fields";
const store = useConfigStore();
const route = useRoute();
const objectTest = ["base", "potions"];
onMounted(() => {
store.loadJdr(`${route.params.jdr}`);
});
</script>
<template>
<main>
<MarkdownFile :path="`rules/inventaire/objets`">
<DynTable :fields="objectFields" :files="objectTest" />
</MarkdownFile>
</main>
</template>