Color Changes
Login Changes Misc
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
|
|
||||||
const user = useSupabaseUser()
|
const user = useSupabaseUser()
|
||||||
|
console.log(user)
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const supabase = useSupabaseClient()
|
const supabase = useSupabaseClient()
|
||||||
@@ -142,6 +143,32 @@ useSeoMeta({
|
|||||||
twitterCard: 'summary_large_image'
|
twitterCard: 'summary_large_image'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const items = [
|
||||||
|
[{
|
||||||
|
label: user.value ? user.value.email : "",
|
||||||
|
slot: 'account',
|
||||||
|
disabled: true
|
||||||
|
}], [{
|
||||||
|
label: 'Settings',
|
||||||
|
icon: 'i-heroicons-cog-8-tooth'
|
||||||
|
}], [{
|
||||||
|
label: 'Documentation',
|
||||||
|
icon: 'i-heroicons-book-open'
|
||||||
|
}, {
|
||||||
|
label: 'Changelog',
|
||||||
|
icon: 'i-heroicons-megaphone'
|
||||||
|
}, {
|
||||||
|
label: 'Status',
|
||||||
|
icon: 'i-heroicons-signal'
|
||||||
|
}], [{
|
||||||
|
label: 'Sign out',
|
||||||
|
icon: 'i-heroicons-arrow-left-on-rectangle',
|
||||||
|
click: () => {
|
||||||
|
supabase.auth.signOut()
|
||||||
|
router.push("/login")
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -150,8 +177,28 @@ useSeoMeta({
|
|||||||
<template #logo>
|
<template #logo>
|
||||||
spaces.software
|
spaces.software
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right v-if="user">
|
||||||
<UColorModeButton/>
|
<UColorModeButton/>
|
||||||
|
<UDropdown :items="items" :ui="{ item: { disabled: 'cursor-text select-text' } }" :popper="{ placement: 'bottom-start' }">
|
||||||
|
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" />
|
||||||
|
|
||||||
|
<template #account="{ item }">
|
||||||
|
<div class="text-left">
|
||||||
|
<p>
|
||||||
|
Signed in as
|
||||||
|
</p>
|
||||||
|
<p class="truncate font-medium text-gray-900 dark:text-white">
|
||||||
|
{{ item.label }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template #item="{ item }">
|
||||||
|
<span class="truncate">{{ item.label }}</span>
|
||||||
|
|
||||||
|
<UIcon :name="item.icon" class="flex-shrink-0 h-4 w-4 text-gray-400 dark:text-gray-500 ms-auto" />
|
||||||
|
</template>
|
||||||
|
</UDropdown>
|
||||||
</template>
|
</template>
|
||||||
</UHeader>
|
</UHeader>
|
||||||
<div class="m-3" id="contentContainer">
|
<div class="m-3" id="contentContainer">
|
||||||
|
|||||||
@@ -170,6 +170,8 @@ const fileUploadFormData = ref({
|
|||||||
path: ""
|
path: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const selectedDocuments = ref([])
|
||||||
|
|
||||||
let tags = ["Eingangsrechnung","Ausgangrechnung","Mahnung", "Dokument"]
|
let tags = ["Eingangsrechnung","Ausgangrechnung","Mahnung", "Dokument"]
|
||||||
const folders = [
|
const folders = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<script setup >
|
<script setup >
|
||||||
|
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
layout: "notLoggedIn"
|
layout: "notLoggedIn"
|
||||||
})
|
})
|
||||||
@@ -6,6 +7,7 @@ definePageMeta({
|
|||||||
const supabase = useSupabaseClient()
|
const supabase = useSupabaseClient()
|
||||||
const user = useSupabaseUser()
|
const user = useSupabaseUser()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const {fetchData} = useDataStore()
|
||||||
|
|
||||||
const email = ref("")
|
const email = ref("")
|
||||||
const password = ref("")
|
const password = ref("")
|
||||||
@@ -21,7 +23,10 @@ const onSubmit = async () => {
|
|||||||
alert(error.toString())
|
alert(error.toString())
|
||||||
} else {
|
} else {
|
||||||
console.log("Login Successful")
|
console.log("Login Successful")
|
||||||
|
await fetchData()
|
||||||
router.push("/")
|
router.push("/")
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -27,11 +27,15 @@ const createEvent = async () => {
|
|||||||
.insert([newEventData.value])
|
.insert([newEventData.value])
|
||||||
.select()
|
.select()
|
||||||
|
|
||||||
if(error) console.log(error)
|
if(error) {
|
||||||
|
console.log(error)
|
||||||
|
} else {
|
||||||
|
openNewEventModal.value = false
|
||||||
|
newEventData.value = {}
|
||||||
|
fetchEvents()
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
openNewEventModal.value = false
|
|
||||||
newEventData.value = {}
|
|
||||||
fetchEvents()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -50,7 +54,10 @@ const calendarOptions = reactive({
|
|||||||
select: function (info) {
|
select: function (info) {
|
||||||
//console.log(info)
|
//console.log(info)
|
||||||
newEventData.value.resourceId = info.resource.id
|
newEventData.value.resourceId = info.resource.id
|
||||||
newEventData.value.resourceType = info.resource.extendedProps.type
|
if(info.resource.extendedProps){
|
||||||
|
newEventData.value.resourceType = info.resource.extendedProps.type
|
||||||
|
}
|
||||||
|
|
||||||
newEventData.value.start = info.startStr
|
newEventData.value.start = info.startStr
|
||||||
newEventData.value.end = info.endStr
|
newEventData.value.end = info.endStr
|
||||||
openNewEventModal.value = true
|
openNewEventModal.value = true
|
||||||
|
|||||||
@@ -1,6 +1,49 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
|
<UButton @click="showCreateProject = true">+ Projekt</UButton>
|
||||||
|
<UModal v-model="showCreateProject">
|
||||||
|
<UCard>
|
||||||
|
<template #header>
|
||||||
|
Projekt erstellen
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<UFormGroup
|
||||||
|
label="Name:"
|
||||||
|
>
|
||||||
|
<UInput
|
||||||
|
v-model="createProjectData.name"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Kunde:"
|
||||||
|
>
|
||||||
|
<USelectMenu
|
||||||
|
v-model="createProjectData.customer"
|
||||||
|
:options="customers"
|
||||||
|
option-attribute="name"
|
||||||
|
value-attribute="id"
|
||||||
|
searchable
|
||||||
|
:search-attributes="['name']"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Notizen:"
|
||||||
|
>
|
||||||
|
<UTextarea
|
||||||
|
v-model="createProjectData.notes"
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
|
||||||
|
<template #footer>
|
||||||
|
<UButton
|
||||||
|
@click="createProject"
|
||||||
|
>
|
||||||
|
Erstellen
|
||||||
|
</UButton>
|
||||||
|
</template>
|
||||||
|
</UCard>
|
||||||
|
</UModal>
|
||||||
|
<!-- TODO: USelect im Modal anpassen -->
|
||||||
<UTable
|
<UTable
|
||||||
:rows="projects"
|
:rows="projects"
|
||||||
:columns="projectColumns"
|
:columns="projectColumns"
|
||||||
|
|||||||
@@ -205,11 +205,11 @@ usersSelected.value = usersForList
|
|||||||
|
|
||||||
|
|
||||||
const showCreateTask = ref(false)
|
const showCreateTask = ref(false)
|
||||||
const taskCategories = ["Offen","In Bearbeitung", "Dringend"]
|
const taskCategories = ["Offen","In Bearbeitung", "Dringend","Erledigt"]
|
||||||
const createTaskData = ref({
|
const createTaskData = ref({
|
||||||
name: "",
|
name: "",
|
||||||
description: "",
|
description: "",
|
||||||
categorie: "Neu"
|
categorie: "Offen"
|
||||||
/*users: ["86e67794-0ea8-41b0-985a-1072e84f56e9"]*/
|
/*users: ["86e67794-0ea8-41b0-985a-1072e84f56e9"]*/
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ const timeInfo = ref({
|
|||||||
|
|
||||||
const runningTimeInfo = ref({
|
const runningTimeInfo = ref({
|
||||||
|
|
||||||
|
})
|
||||||
|
const showAddTimeModal = ref(false)
|
||||||
|
const addTimeInfo = ref({
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -103,7 +107,67 @@ const selectStartedTime = () => {
|
|||||||
>
|
>
|
||||||
Zeit Wählen
|
Zeit Wählen
|
||||||
</UButton>
|
</UButton>
|
||||||
|
<UButton
|
||||||
|
class="controlButton"
|
||||||
|
@click="showAddTimeModal = true"
|
||||||
|
>
|
||||||
|
Erstellen
|
||||||
|
</UButton>
|
||||||
|
|
||||||
|
<UModal
|
||||||
|
v-model="showAddTimeModal"
|
||||||
|
>
|
||||||
|
<UCard>
|
||||||
|
<template #header>
|
||||||
|
Zeiteintrag erstellen
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<UFormGroup
|
||||||
|
label="Start:"
|
||||||
|
>
|
||||||
|
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Ende:"
|
||||||
|
>
|
||||||
|
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Dauer:"
|
||||||
|
>
|
||||||
|
<UInput
|
||||||
|
|
||||||
|
/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Benutzer:"
|
||||||
|
>
|
||||||
|
<USelectMenu/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Projekt:"
|
||||||
|
>
|
||||||
|
<USelectMenu/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Typ:"
|
||||||
|
>
|
||||||
|
<USelectMenu/>
|
||||||
|
</UFormGroup>
|
||||||
|
<UFormGroup
|
||||||
|
label="Notizen:"
|
||||||
|
>
|
||||||
|
<UTextarea/>
|
||||||
|
</UFormGroup>
|
||||||
|
|
||||||
|
|
||||||
|
<template #footer>
|
||||||
|
<UButton>
|
||||||
|
Erstellen
|
||||||
|
</UButton>
|
||||||
|
</template>
|
||||||
|
</UCard>
|
||||||
|
</UModal>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
25
spaces/tailwind.config.ts
Normal file
25
spaces/tailwind.config.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
import type {Config} from 'tailwindcss'
|
||||||
|
import defaultTheme from 'tailwindcss/defaultTheme'
|
||||||
|
|
||||||
|
export default <Partial<Config>>{
|
||||||
|
theme: {
|
||||||
|
extend: {
|
||||||
|
colors: {
|
||||||
|
green: {
|
||||||
|
50: "#f4fbf2",
|
||||||
|
100: "#E7F7E1",
|
||||||
|
200: "#cdeec4",
|
||||||
|
300: "#a6e095",
|
||||||
|
400: "#69c350",
|
||||||
|
500: "#53ad3a",
|
||||||
|
600: "#418e2b",
|
||||||
|
700: "#357025",
|
||||||
|
800: "#2d5922",
|
||||||
|
900: "#254a1d",
|
||||||
|
950: "#10280b"
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user