Added Logo

Added Document Download
Added zipjs
This commit is contained in:
2023-12-11 12:04:32 +01:00
parent 6ffc4f01d9
commit 5503c572f1
10 changed files with 528 additions and 22 deletions

View File

@@ -6,7 +6,6 @@ definePageMeta({
const supabase = useSupabaseClient()
const user = useSupabaseUser()
const toast = useToast()
console.log(user)
const {times, projects} = storeToRefs(useDataStore())
const {fetchTimes, getTimeTypes} = useDataStore()
@@ -20,6 +19,38 @@ const timeInfo = ref({
type: null
})
const columns = [
{
key: "user",
label: "Benutzer"
},
{
key:"start",
label:"Start"
},
{
key:"type",
label:"Typ"
},
{
key: "end",
label: "Ende"
},
{
key: "duration",
label: "Dauer"
},
{
key: "projectId",
label: "Projekt"
},
{
key: "notes",
label: "Notizen"
}
]
const runningTimeInfo = ref({
})
@@ -43,7 +74,8 @@ const startTime = async () => {
console.log(error)
} else if(data) {
timeInfo.value = data[0]
fetchTimes()
await fetchTimes()
runningTimeInfo.value = times.value.find(time => time.user == user.value.id && !time.end)
}
console.log(data)
@@ -77,10 +109,17 @@ const stopStartedTime = async () => {
}
}
if(times.value.find(time => time.user == user.value.id && !time.end)) {
runningTimeInfo.value = times.value.find(time => time.user == user.value.id && !time.end)
}
const selectStartedTime = () => {
runningTimeInfo.value = times.value.find(time => time.user == user.value.id && !time.end)
}
//selectStartedTime()
</script>
@@ -101,12 +140,12 @@ const selectStartedTime = () => {
>
Stop
</UButton>
<UButton
<!--<UButton
class="controlButton"
@click="selectStartedTime"
>
Zeit Wählen
</UButton>
</UButton>-->
<UButton
class="controlButton"
@click="showAddTimeModal = true"
@@ -227,6 +266,7 @@ const selectStartedTime = () => {
<UTable
class="mt-3"
v-if="times && user"
:columns="columns"
:rows="times.filter(time => time.user === user.id)"
/>