[refactoring] settings middleware

This commit is contained in:
les
2019-10-11 18:34:14 +02:00
parent 7f70eae363
commit aa63c3e7bd
12 changed files with 1218 additions and 952 deletions

View File

@@ -1,8 +1,7 @@
<template lang="pug">
el-card
nuxt-link.float-right(to='/')
v-icon(name='times' color='red')
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
h3 {{$t('common.info')}}
div(v-html='$t("about")')

View File

@@ -1,4 +1,4 @@
<template lang="pug">
<template lang='pug'>
#home
Nav
Home
@@ -11,7 +11,7 @@ import Nav from '~/components/Nav.vue'
export default {
name: 'Index',
async fetch ({ store, $axios }) {
try {
try {
const now = new Date()
const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
store.commit('setEvents', events)

View File

@@ -4,7 +4,6 @@
el-button(circle icon='el-icon-close' type='danger' size='small' plain)
h5 {{$t('common.settings')}}
el-divider {{$auth.user.email}}
el-form(action='/api/user' method='PUT' @submit.native.prevent='update_settings' inline label-width='200px')
el-form-item(:label="$t('settings.change_password')")