diff --git a/app.vue b/app.vue
index ffcefe3..3dfef03 100644
--- a/app.vue
+++ b/app.vue
@@ -5,6 +5,9 @@ useHead({
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} — TTTools` : 'TTTools';
},
+ htmlAttrs: {
+ lang: 'fr'
+ },
meta: [
{ name: "charset", content: "UTF-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1.0" },
@@ -35,7 +38,11 @@ const useIdFunction = () => useId()
-
+
+
+
+
+
diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue
index 202e877..950b36b 100644
--- a/components/calendar/Calendar.vue
+++ b/components/calendar/Calendar.vue
@@ -2,6 +2,7 @@
import { useCalendar } from '@/stores/CalendarStore'
import { computed, type Component, type ComputedRef } from 'vue'
+import { PhMagnifyingGlass } from '@phosphor-icons/vue'
import MonthlyLayout from './state/monthly/Layout.vue'
import CenturyLayout from './state/centennially/Layout.vue'
import DecadeLayout from './state/decennially/Layout.vue'
@@ -85,8 +86,18 @@ const currentViewComponent: ComputedRef = computed(() => {
}
})
+const { setCurrentMenu } = useUiStore()
+
onMounted(() => {
jumpToDate(selectedDate)
+
+ setCurrentMenu([
+ {
+ phIcon: PhMagnifyingGlass,
+ tooltip: 'Recherche avancée',
+ action: 'event-search'
+ }
+ ])
})
@@ -107,8 +118,8 @@ onMounted(() => {
-
-
-
+
+
+
diff --git a/components/calendar/CalendarEvent.vue b/components/calendar/CalendarEvent.vue
index 2127b68..736b6cb 100644
--- a/components/calendar/CalendarEvent.vue
+++ b/components/calendar/CalendarEvent.vue
@@ -59,13 +59,13 @@ function handleClosePopover() {
})
"
>
-
+
{{ eventTitle }}
-
void
- to?: string
-}
-
-export interface SidebarProps {
- menuItems: MenuItem[],
- isHome?: boolean
-}
diff --git a/components/global/Sidebar.vue b/components/global/sidebar/Sidebar.vue
similarity index 66%
rename from components/global/Sidebar.vue
rename to components/global/sidebar/Sidebar.vue
index 56142fb..fc92882 100644
--- a/components/global/Sidebar.vue
+++ b/components/global/sidebar/Sidebar.vue
@@ -1,8 +1,21 @@
@@ -31,7 +44,7 @@ defineProps()
-
+
@@ -40,7 +53,7 @@ defineProps()
-
+
@@ -50,26 +63,6 @@ defineProps()
-
-
diff --git a/components/global/sidebar/SidebarProps.ts b/components/global/sidebar/SidebarProps.ts
new file mode 100644
index 0000000..4414df0
--- /dev/null
+++ b/components/global/sidebar/SidebarProps.ts
@@ -0,0 +1,13 @@
+export type SidebarMenuActionType = "event-search"
+
+export interface SidebarMenuItem {
+ phIcon: Component
+ tooltip: string
+ action?: SidebarMenuActionType
+ to?: string
+}
+
+export interface SidebarProps {
+ menuItems: SidebarMenuItem[],
+ isHome?: boolean
+}
diff --git a/components/global/user/CTA.vue b/components/global/user/CTA.vue
index 72b76ee..d2618db 100644
--- a/components/global/user/CTA.vue
+++ b/components/global/user/CTA.vue
@@ -44,6 +44,8 @@ async function handleLogout() {
function gotoProfilePage() {
router.push({ path: '/profile' })
+
+ closeMenu()
}
diff --git a/pages/calendar-old.vue b/pages/calendar-old.vue
deleted file mode 100644
index 0737a76..0000000
--- a/pages/calendar-old.vue
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/calendar/[id].vue b/pages/calendar/[id].vue
index 0187568..8b233ee 100644
--- a/pages/calendar/[id].vue
+++ b/pages/calendar/[id].vue
@@ -1,7 +1,4 @@
-
-
-
-
-
+
diff --git a/pages/index.vue b/pages/index.vue
index 10c9254..a717792 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,15 +1,14 @@
-
-
+
+ TTTools
diff --git a/pages/profile.vue b/pages/profile.vue
index 4247710..7b62bc0 100644
--- a/pages/profile.vue
+++ b/pages/profile.vue
@@ -1,6 +1,4 @@
-
+
diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts
index 2d9fd4f..de29cf1 100644
--- a/stores/CalendarStore.ts
+++ b/stores/CalendarStore.ts
@@ -31,9 +31,7 @@ export const useCalendar = defineStore('calendar', () => {
})
const viewTypeOptions: Set = new Set([
'month',
- 'year',
- 'decade',
- 'century'
+ 'year'
])
const calendarId = ref(0)
diff --git a/stores/UiStore.ts b/stores/UiStore.ts
new file mode 100644
index 0000000..3b005fe
--- /dev/null
+++ b/stores/UiStore.ts
@@ -0,0 +1,14 @@
+import type { SidebarMenuItem } from "~/components/global/sidebar/SidebarProps"
+
+export const useUiStore = defineStore('ui', () => {
+ const currentMenu: Ref = ref([])
+
+ function setCurrentMenu(items: SidebarMenuItem[]) {
+ currentMenu.value = items
+ }
+
+ return {
+ currentMenu,
+ setCurrentMenu
+ }
+})