Improve performance
This commit is contained in:
parent
c703af8187
commit
1ab3d71d6f
@ -24,12 +24,12 @@ localhost {
|
|||||||
}
|
}
|
||||||
|
|
||||||
route /* {
|
route /* {
|
||||||
reverse_proxy http://localhost:3000
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_errors {
|
handle_errors {
|
||||||
rewrite @404 /404.html
|
rewrite @404 /404.html
|
||||||
reverse_proxy http://localhost:3000
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
route /api/* {
|
route /api/* {
|
||||||
|
|||||||
@ -1,3 +1,14 @@
|
|||||||
|
/* roboto-regular - latin */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: local('Roboto'), local('Roboto-Regular'),
|
||||||
|
url('/fonts/roboto-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
||||||
|
url('/fonts/roboto-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.page-enter-active, .page-leave-active {
|
.page-enter-active, .page-leave-active {
|
||||||
transition: opacity .5s;
|
transition: opacity .5s;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
:rules="usernameRules"
|
:rules="usernameRules"
|
||||||
label="Username"
|
label="Username"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-account"
|
:prepend-icon="mdiAccount"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
|
||||||
<v-text-field
|
<v-text-field
|
||||||
@ -15,7 +15,7 @@
|
|||||||
:rules="passwordRules"
|
:rules="passwordRules"
|
||||||
label="Password"
|
label="Password"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-lock"
|
:prepend-icon="mdiLock"
|
||||||
type="password"
|
type="password"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
@ -35,9 +35,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mdiLock, mdiAccount } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoginForm',
|
name: 'LoginForm',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
mdiLock,
|
||||||
|
mdiAccount,
|
||||||
valid: false,
|
valid: false,
|
||||||
form: {
|
form: {
|
||||||
username: '',
|
username: '',
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<v-menu bottom left>
|
<v-menu bottom left>
|
||||||
<template v-slot:activator="{ on }">
|
<template v-slot:activator="{ on }">
|
||||||
<v-btn aria-label="menu" icon v-on="on">
|
<v-btn aria-label="menu" icon v-on="on">
|
||||||
<v-icon>mdi-dots-vertical</v-icon>
|
<v-icon>{{ mdiDotsVertical }}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -25,6 +25,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mdiDotsVertical } from '@mdi/js'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -32,6 +33,9 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['isAuthenticated', 'loggedInUser']),
|
...mapGetters(['isAuthenticated', 'loggedInUser']),
|
||||||
},
|
},
|
||||||
|
data: () => ({
|
||||||
|
mdiDotsVertical,
|
||||||
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
async logout() {
|
async logout() {
|
||||||
await this.$auth.logout()
|
await this.$auth.logout()
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
:rules="usernameRules"
|
:rules="usernameRules"
|
||||||
label="Username"
|
label="Username"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-account"
|
:prepend-icon="mdiAccount"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
|
||||||
<v-text-field
|
<v-text-field
|
||||||
@ -15,7 +15,7 @@
|
|||||||
:rules="emailRules"
|
:rules="emailRules"
|
||||||
label="Email"
|
label="Email"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-at"
|
:prepend-icon="mdiAt"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
|
||||||
<v-text-field
|
<v-text-field
|
||||||
@ -23,7 +23,7 @@
|
|||||||
:rules="passwordRules"
|
:rules="passwordRules"
|
||||||
label="Password"
|
label="Password"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-lock"
|
:prepend-icon="mdiLock"
|
||||||
type="password"
|
type="password"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
:rules="confirmRules"
|
:rules="confirmRules"
|
||||||
label="Confirm your password"
|
label="Confirm your password"
|
||||||
required
|
required
|
||||||
prepend-icon="mdi-lock"
|
:prepend-icon="mdiLock"
|
||||||
type="password"
|
type="password"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
@ -53,9 +53,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mdiLock, mdiAccount, mdiAt } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'RegisterForm',
|
name: 'RegisterForm',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
mdiLock,
|
||||||
|
mdiAccount,
|
||||||
|
mdiAt,
|
||||||
valid: false,
|
valid: false,
|
||||||
form: {
|
form: {
|
||||||
username: '',
|
username: '',
|
||||||
|
|||||||
@ -99,6 +99,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
vuetify: {
|
vuetify: {
|
||||||
customVariables: ['~/assets/variables.scss'],
|
customVariables: ['~/assets/variables.scss'],
|
||||||
|
defaultAssets: false,
|
||||||
theme: {
|
theme: {
|
||||||
dark: false,
|
dark: false,
|
||||||
themes: {
|
themes: {
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
"timeago.js": "^4.0.2"
|
"timeago.js": "^4.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@mdi/js": "^5.1.45",
|
||||||
"@nuxtjs/eslint-config": "^2.0.2",
|
"@nuxtjs/eslint-config": "^2.0.2",
|
||||||
"@nuxtjs/eslint-module": "^1.1.0",
|
"@nuxtjs/eslint-module": "^1.1.0",
|
||||||
"@nuxtjs/vuetify": "^1.0.0",
|
"@nuxtjs/vuetify": "^1.0.0",
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<v-col cols="12" sm="8" md="6">
|
<v-col cols="12" sm="8" md="6">
|
||||||
<v-card color="primary" dark>
|
<v-card color="primary" dark>
|
||||||
<v-btn icon to="/" aria-label="Go back">
|
<v-btn icon to="/" aria-label="Go back">
|
||||||
<v-icon>mdi-arrow-left</v-icon>
|
<v-icon>{{ mdiArrowLeft }}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-card-title class="text-center justify-center py-6">
|
<v-card-title class="text-center justify-center py-6">
|
||||||
<h1 class="font-weight-bold display-2">Account</h1>
|
<h1 class="font-weight-bold display-2">Account</h1>
|
||||||
@ -29,6 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mdiArrowLeft } from '@mdi/js'
|
||||||
import LoginForm from '~/components/LoginForm'
|
import LoginForm from '~/components/LoginForm'
|
||||||
import RegisterForm from '~/components/RegisterForm'
|
import RegisterForm from '~/components/RegisterForm'
|
||||||
|
|
||||||
@ -41,6 +42,7 @@ export default {
|
|||||||
RegisterForm,
|
RegisterForm,
|
||||||
},
|
},
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
mdiArrowLeft,
|
||||||
tab: 0,
|
tab: 0,
|
||||||
tabs: ['Login', 'Register'],
|
tabs: ['Login', 'Register'],
|
||||||
}),
|
}),
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
class="mr-2"
|
class="mr-2"
|
||||||
@click="editItem(item)"
|
@click="editItem(item)"
|
||||||
>
|
>
|
||||||
mdi-eye
|
{{ mdiEye }}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
<v-icon
|
<v-icon
|
||||||
aria-label="Edit Note"
|
aria-label="Edit Note"
|
||||||
@ -53,7 +53,7 @@
|
|||||||
class="mr-2"
|
class="mr-2"
|
||||||
@click="editItem(item)"
|
@click="editItem(item)"
|
||||||
>
|
>
|
||||||
mdi-pencil
|
{{ mdiPencil }}}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
<v-icon
|
<v-icon
|
||||||
aria-label="Delete Note"
|
aria-label="Delete Note"
|
||||||
@ -62,7 +62,7 @@
|
|||||||
dark
|
dark
|
||||||
@click="deleteItem(item)"
|
@click="deleteItem(item)"
|
||||||
>
|
>
|
||||||
mdi-delete
|
{{ mdiDelete }}
|
||||||
</v-icon>
|
</v-icon>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:no-data>
|
<template v-slot:no-data>
|
||||||
@ -74,11 +74,15 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { format } from 'timeago.js'
|
import { format } from 'timeago.js'
|
||||||
|
import { mdiEye, mdiPencil, mdiDelete } from '@mdi/js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Notes',
|
name: 'Notes',
|
||||||
title: 'Notes',
|
title: 'Notes',
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
mdiEye,
|
||||||
|
mdiPencil,
|
||||||
|
mdiDelete,
|
||||||
loading: true,
|
loading: true,
|
||||||
notes: [],
|
notes: [],
|
||||||
headers: [
|
headers: [
|
||||||
|
|||||||
BIN
frontend/static/fonts/roboto-v20-latin-regular.woff
Normal file
BIN
frontend/static/fonts/roboto-v20-latin-regular.woff
Normal file
Binary file not shown.
BIN
frontend/static/fonts/roboto-v20-latin-regular.woff2
Normal file
BIN
frontend/static/fonts/roboto-v20-latin-regular.woff2
Normal file
Binary file not shown.
@ -801,6 +801,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
|
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
|
||||||
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
|
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
|
||||||
|
|
||||||
|
"@mdi/js@^5.1.45":
|
||||||
|
version "5.1.45"
|
||||||
|
resolved "https://registry.yarnpkg.com/@mdi/js/-/js-5.1.45.tgz#92ac075c7080d29b430bd76ec8dc0536b800f4b0"
|
||||||
|
integrity sha512-44He8VMteUIWE0lIZjAIH/QoxNXbGoeqA1uwzJKwRpiaU6d5n2JjvL+11uH5nQQTJtU1nQFdKpB/j5S6rM3jtQ==
|
||||||
|
|
||||||
"@nuxt/babel-preset-app@2.12.2":
|
"@nuxt/babel-preset-app@2.12.2":
|
||||||
version "2.12.2"
|
version "2.12.2"
|
||||||
resolved "https://registry.yarnpkg.com/@nuxt/babel-preset-app/-/babel-preset-app-2.12.2.tgz#0e87c4f4f578868e74f6fa9e2a38cace5c77dac8"
|
resolved "https://registry.yarnpkg.com/@nuxt/babel-preset-app/-/babel-preset-app-2.12.2.tgz#0e87c4f4f578868e74f6fa9e2a38cace5c77dac8"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user