added login logic

This commit is contained in:
Sockenklaus
2021-10-20 01:22:42 +02:00
parent 2896902e12
commit 60618a5eee
10 changed files with 336 additions and 205 deletions

View File

@@ -1,5 +1,7 @@
<template lang="pug">
p {{ state }}
MonthPicker(:selectedMonth="selectedMonth" :selectedYear="selectedYear" @getMonth="selectedMonth = $event" @getYear="selectedYear = $event")
Schedule( :startDate="new Date(selectedYear, selectedMonth)")
@@ -12,6 +14,9 @@ Schedule( :startDate="new Date(selectedYear, selectedMonth)")
import { getYear, getMonth, eachMonthOfInterval, getDaysInMonth, getISODay } from 'date-fns'
import Schedule from '/src/components/Schedule.vue'
import MonthPicker from '/src/components/MonthPicker.vue'
import { useUser } from '@/stores/user'
const state = useUser()
const selectedMonth = ref(getMonth(new Date()))
const selectedYear = ref(getYear(new Date()))