Update views for new router architecture
This commit is contained in:
parent
f7e7c24164
commit
40692b1cf3
5 changed files with 52 additions and 67 deletions
|
|
@ -2,9 +2,7 @@
|
|||
<h1 v-if="page" class="sr-only">{{ page.content.title }}</h1>
|
||||
<div class="with-sidebar">
|
||||
<Menu />
|
||||
<main>
|
||||
<RouterView />
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,9 @@
|
|||
<template>
|
||||
<main>
|
||||
<Projects />
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Menu from "../components/Menu.vue";
|
||||
import Projects from "../components/Projects.vue";
|
||||
|
||||
const { data } = defineProps({
|
||||
data: Object,
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<template>
|
||||
<main>
|
||||
<h2 id="tabslist" class="sr-only">Inspirations</h2>
|
||||
<Tabs :tabs="tabs" @update:currentTab="changeTab" />
|
||||
<Selector />
|
||||
|
|
@ -17,6 +18,7 @@
|
|||
</template>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
<template>
|
||||
<h1 class="sr-only">{{ data.content.title }}</h1>
|
||||
<div class="with-sidebar">
|
||||
<Menu />
|
||||
<main class="wrapper">
|
||||
<h2 id="tabslist" class="sr-only">Status</h2>
|
||||
<Tabs :tabs="tabs" @update:currentTab="changeTab" />
|
||||
|
|
@ -13,20 +10,17 @@
|
|||
<p>Vous n’avez pas de nouvelles notifications</p>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Menu from "../components/Menu.vue";
|
||||
import Tabs from "../components/Tabs.vue";
|
||||
|
||||
import { usePageStore } from "../stores/page"
|
||||
import { useUserStore } from "../stores/user";
|
||||
import { ref, computed } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
const { data } = defineProps({
|
||||
data: Object
|
||||
});
|
||||
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const user = useUserStore().user;
|
||||
const currentTab = ref("all");
|
||||
const tabs = computed(() => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
<template>
|
||||
<h1 class="sr-only">{{ data.content.title }}</h1>
|
||||
<div class="with-sidebar">
|
||||
<Menu />
|
||||
<main class="wrapper">
|
||||
<h2 id="tabslist" class="sr-only">Status</h2>
|
||||
<Tabs :tabs="tabs" @update:currentTab="changeTab" />
|
||||
|
|
@ -13,20 +10,17 @@
|
|||
<button class="btn">Demander un RDV</button>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Menu from "../components/Menu.vue";
|
||||
import Tabs from "../components/Tabs.vue";
|
||||
|
||||
import { usePageStore } from "../stores/page"
|
||||
import { useUserStore } from "../stores/user";
|
||||
import { ref, computed } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
|
||||
const { data } = defineProps({
|
||||
data: Object
|
||||
});
|
||||
|
||||
const { page } = storeToRefs(usePageStore());
|
||||
const user = useUserStore().user;
|
||||
const currentTab = ref("future");
|
||||
const tabs = computed(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue