Change layout

This commit is contained in:
Hubert Van De Walle 2020-04-28 19:57:49 +02:00
parent 3d2f950433
commit cbe1a8a7b7
5 changed files with 34 additions and 25 deletions

View File

@ -4,7 +4,7 @@
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> <pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>
<root level="TRACE"> <root level="DEBUG">
<appender-ref ref="STDOUT"/> <appender-ref ref="STDOUT"/>
</root> </root>
<logger name="org.eclipse.jetty" level="INFO"/> <logger name="org.eclipse.jetty" level="INFO"/>

View File

@ -1,17 +1,6 @@
.page-enter-active { .page-enter-active, .page-leave-active {
animation: bounce-in .5s; transition: opacity .5s;
} }
.page-leave-active { .page-enter, .page-leave-to {
animation: bounce-in .5s reverse; opacity: 0;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
50% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
} }

View File

@ -2,14 +2,25 @@
<v-app-bar fixed app color="primary" dark> <v-app-bar fixed app color="primary" dark>
<v-btn to="/" text rounded>Simple Notes</v-btn> <v-btn to="/" text rounded>Simple Notes</v-btn>
<v-spacer /> <v-spacer />
<div v-if="isAuthenticated"> <v-menu bottom left>
<v-btn to="/notes" class="mr-2" text rounded>My notes</v-btn> <template v-slot:activator="{ on }">
<v-btn class="mr-2" outlined> <v-btn icon v-on="on">
Welcome {{ loggedInUser.username }} <v-icon>mdi-dots-vertical</v-icon>
</v-btn> </v-btn>
<v-btn outlined @click="logout">Logout</v-btn> </template>
</div>
<v-btn v-else to="/account" text rounded>Account</v-btn> <v-list>
<v-list-item v-if="isAuthenticated" to="/notes">
My notes
</v-list-item>
<v-list-item v-if="isAuthenticated" @click="logout">
Logout
</v-list-item>
<v-list-item v-else>
<v-btn to="/account" text rounded>Account</v-btn>
</v-list-item>
</v-list>
</v-menu>
</v-app-bar> </v-app-bar>
</template> </template>

View File

@ -7,7 +7,7 @@
:key="index" :key="index"
class="d-flex" class="d-flex"
cols="12" cols="12"
lg="6" md="6"
> >
<v-card <v-card
:color="item.color" :color="item.color"

View File

@ -35,6 +35,15 @@
</div> </div>
</template> </template>
<template v-slot:item.actions="{ item }"> <template v-slot:item.actions="{ item }">
<v-icon
small
color="secondary"
dark
class="mr-2"
@click="editItem(item)"
>
mdi-eye
</v-icon>
<v-icon <v-icon
small small
color="secondary" color="secondary"