minor
This commit is contained in:
parent
2dc6e7adb3
commit
24a99d0eb0
8 changed files with 39 additions and 38 deletions
|
@ -1,10 +1,9 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
v-card.h-event.event.mt-1
|
v-card.h-event.event.mt-1
|
||||||
nuxt-link(:to='`/event/${event.id}`')
|
nuxt-link(:to='`/event/${event.id}`')
|
||||||
v-img.align-end(:src="`/media/thumb/${event.image_path}`"
|
v-img.align-end.white--text(:src="`/media/thumb/${event.image_path}`"
|
||||||
gradient="to bottom, rgba(255,255,255,.1), rgba(255,255,255,.9)"
|
gradient="to bottom, rgba(0,0,0,.1), rgba(0,0,0,.7)"
|
||||||
height="250" position="top top"
|
height="250" position="top top")
|
||||||
:class="settings['theme.is_dark']?'light--text':'dark--text'")
|
|
||||||
v-card-title {{event.title}}
|
v-card-title {{event.title}}
|
||||||
//- v-list-item
|
//- v-list-item
|
||||||
v-list-item-content
|
v-list-item-content
|
||||||
|
@ -20,12 +19,15 @@
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-chip.ml-1(v-for='tag in event.tags' link :key='tag' outlined color='primary' small) {{tag}}
|
v-chip.ml-1(v-for='tag in event.tags' link :key='tag' outlined color='primary' small) {{tag}}
|
||||||
v-spacer
|
v-spacer
|
||||||
v-btn(icon)
|
//- v-btn(icon color='yellow')
|
||||||
v-icon mdi-bookmark
|
|
||||||
v-btn(icon color='yellow')
|
|
||||||
v-icon mdi-share-variant
|
v-icon mdi-share-variant
|
||||||
v-btn(icon color='primary' nuxt :to='`/event/${event.id}`')
|
v-menu(offset-y)
|
||||||
v-icon mdi-chevron-right
|
template(v-slot:activator="{on}")
|
||||||
|
v-btn(icon v-on='on' color='primary')
|
||||||
|
v-icon mdi-dots-vertical
|
||||||
|
v-list
|
||||||
|
v-list-item
|
||||||
|
v-list-item-title test
|
||||||
|
|
||||||
//- <!-- //- v-card.event.h-event.mt-1(max-width="400")
|
//- <!-- //- v-card.event.h-event.mt-1(max-width="400")
|
||||||
//- p ciao
|
//- p ciao
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<template lang='pug'>
|
<template lang='pug'>
|
||||||
div
|
div
|
||||||
p(v-html="$t('event.follow_me_description', { title: settings.title, account: `@${settings.instance_name}@${domain}`})")
|
p(v-html="$t('event.follow_me_description', { title: settings.title, account: `@${settings.instance_name}@${domain}`})")
|
||||||
el-input(v-model='instance_hostname' ref='instance')
|
v-text-field(v-model='instance_hostname' ref='instance')
|
||||||
a(slot='append' :href='link' target='_blank')
|
a(slot='append' :href='link' target='_blank')
|
||||||
el-button(:disabled='(!couldGo || !proceed)' plain type="primary" icon='el-icon-document') {{$t("common.follow")}}
|
v-btn(:disabled='(!couldGo || !proceed)' plain type="primary" icon='el-icon-document') {{$t("common.follow")}}
|
||||||
p.mt-2 <img class='instance_thumb' :src="instance.thumbnail"/> {{instance.title}}
|
p.mt-2 <img class='instance_thumb' :src="instance.thumbnail"/> {{instance.title}}
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -10,9 +10,6 @@
|
||||||
v-btn(small @click='resetLogo') Reset
|
v-btn(small @click='resetLogo') Reset
|
||||||
v-img(:src='`${settings.baseurl}/favicon.ico?${logoKey}`'
|
v-img(:src='`${settings.baseurl}/favicon.ico?${logoKey}`'
|
||||||
max-width="100px" max-height="80px" contain)
|
max-width="100px" max-height="80px" contain)
|
||||||
//- el-button-group
|
|
||||||
el-button(size='small' type='primary' plain) Select file
|
|
||||||
el-button(size='small' type='success' plain @click='resetLogo') Reset
|
|
||||||
|
|
||||||
v-switch.mt-5(v-model='is_dark'
|
v-switch.mt-5(v-model='is_dark'
|
||||||
inset
|
inset
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template lang='pug'>
|
<template lang='pug'>
|
||||||
el-card.mt-5
|
v-card.mt-5
|
||||||
h4(slot='header')
|
h4(slot='header')
|
||||||
nuxt-link(to='/')
|
nuxt-link(to='/')
|
||||||
img(src='/favicon.ico')
|
img(src='/favicon.ico')
|
||||||
|
@ -13,9 +13,9 @@
|
||||||
br
|
br
|
||||||
br
|
br
|
||||||
a(:href='authorizeURL')
|
a(:href='authorizeURL')
|
||||||
el-button.mr-1(plain type='success' icon='el-icon-check') {{$t('common.authorize')}}
|
v-btn.mr-1(plain color='success') {{$t('common.authorize')}}
|
||||||
a(href='/')
|
a(href='/')
|
||||||
el-button.mt-1(plain type='danger') {{$t('common.cancel')}}
|
v-btn.mt-1(plain color='danger') {{$t('common.cancel')}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
v-card-subtitle(v-text="$t('login.description')")
|
v-card-subtitle(v-text="$t('login.description')")
|
||||||
|
|
||||||
v-card-text
|
v-card-text
|
||||||
v-form
|
v-form(v-model='valid' ref='form')
|
||||||
v-text-field(v-model='email' type='email'
|
v-text-field(v-model='email' type='email'
|
||||||
:rules='validators.email' autofocus
|
:rules='validators.email' autofocus
|
||||||
:placeholder='$t("common.email")'
|
:placeholder='$t("common.email")'
|
||||||
|
@ -18,9 +18,13 @@
|
||||||
type='password'
|
type='password'
|
||||||
:placeholder='$t("common.password")')
|
:placeholder='$t("common.password")')
|
||||||
|
|
||||||
|
v-card-actions
|
||||||
|
v-spacer
|
||||||
|
v-btn(text @click='forgot' small) {{$t('login.forgot_password')}}
|
||||||
|
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-btn(color='success'
|
v-btn(color='success'
|
||||||
:disabled='disabled'
|
:disabled='!valid'
|
||||||
@click='submit') {{$t('common.login')}}
|
@click='submit') {{$t('common.login')}}
|
||||||
|
|
||||||
v-btn(v-if='settings.allow_registration'
|
v-btn(v-if='settings.allow_registration'
|
||||||
|
@ -28,7 +32,6 @@
|
||||||
text
|
text
|
||||||
color='orange') {{$t('login.not_registered')}}
|
color='orange') {{$t('login.not_registered')}}
|
||||||
|
|
||||||
v-btn(text @click='forgot') {{$t('login.forgot_password')}}
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -42,19 +45,17 @@ export default {
|
||||||
validators,
|
validators,
|
||||||
password: '',
|
password: '',
|
||||||
email: '',
|
email: '',
|
||||||
loading: false
|
loading: false,
|
||||||
|
valid: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['settings']),
|
...mapState(['settings'])
|
||||||
disabled () {
|
|
||||||
return !this.email || !this.password
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async forgot () {
|
async forgot () {
|
||||||
if (!this.email) {
|
if (!this.email) {
|
||||||
this.$root.$message({ message: this.$t('login.insert_email'), color: 'error' })
|
// this.$root.$message({ message: this.$t('login.insert_email'), color: 'error' })
|
||||||
this.$refs.email.focus()
|
this.$refs.email.focus()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -64,7 +65,6 @@ export default {
|
||||||
this.$root.$message({ message: this.$t('login.check_email'), color: 'success' })
|
this.$root.$message({ message: this.$t('login.check_email'), color: 'success' })
|
||||||
},
|
},
|
||||||
async submit (e) {
|
async submit (e) {
|
||||||
if (this.disabled) { return false }
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
try {
|
try {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
v-card-text
|
v-card-text
|
||||||
|
|
||||||
p(v-html="$t('register.description')")
|
p(v-html="$t('register.description')")
|
||||||
v-form(ref='form')
|
v-form(ref='form' v-model='valid')
|
||||||
v-text-field(ref='email'
|
v-text-field(ref='email'
|
||||||
v-model='user.email' type='email'
|
v-model='user.email' type='email'
|
||||||
:rules="validators.email"
|
:rules="validators.email"
|
||||||
|
@ -23,7 +23,8 @@
|
||||||
:label="$t('common.description')")
|
:label="$t('common.description')")
|
||||||
|
|
||||||
v-card-actions
|
v-card-actions
|
||||||
v-btn(@click='register' color='primary') {{$t('common.send')}}
|
v-spacer
|
||||||
|
v-btn(@click='register' :disabled='!valid' color='primary') {{$t('common.send')}}
|
||||||
v-icon mdi-chevron-right
|
v-icon mdi-chevron-right
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -38,7 +39,8 @@ export default {
|
||||||
return {
|
return {
|
||||||
validators,
|
validators,
|
||||||
loading: false,
|
loading: false,
|
||||||
user: {}
|
user: {},
|
||||||
|
valid: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// https://nuxtjs.org/api/pages-validate/
|
// https://nuxtjs.org/api/pages-validate/
|
||||||
|
|
|
@ -64,11 +64,11 @@
|
||||||
v-btn(type='text' @click='showFollowMe=true') {{$t('event.interact_with_me')}}
|
v-btn(type='text' @click='showFollowMe=true') {{$t('event.interact_with_me')}}
|
||||||
span(v-if='settings.enable_resources && event.resources.length') - {{$tc('common.n_resources', event.resources.length)}}
|
span(v-if='settings.enable_resources && event.resources.length') - {{$tc('common.n_resources', event.resources.length)}}
|
||||||
|
|
||||||
v-dialog(:visible.sync='showFollowMe' destroy-on-close)
|
v-dialog(v-model='showFollowMe' destroy-on-close)
|
||||||
h4(slot='title') {{$t('common.follow_me_title')}}
|
h4(slot='title') {{$t('common.follow_me_title')}}
|
||||||
FollowMe
|
FollowMe
|
||||||
|
|
||||||
v-dialog.showResource#resourceDialog(:visible.sync='showResources' fullscreen
|
v-dialog.showResource#resourceDialog(v-model='showResources' fullscreen
|
||||||
width='95vw'
|
width='95vw'
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
@keydown.native.right='$refs.carousel.next()'
|
@keydown.native.right='$refs.carousel.next()'
|
||||||
|
@ -78,9 +78,9 @@
|
||||||
v-img(:src='attachment.url')
|
v-img(:src='attachment.url')
|
||||||
v-card.mb-1(v-if='settings.enable_resources' v-for='resource in event.resources' :key='resource.id' :class='{disabled: resource.hidden}')
|
v-card.mb-1(v-if='settings.enable_resources' v-for='resource in event.resources' :key='resource.id' :class='{disabled: resource.hidden}')
|
||||||
span
|
span
|
||||||
el-dropdown.mr-2(v-if='$auth.user && $auth.user.is_admin')
|
v-dropdown.mr-2(v-if='$auth.user && $auth.user.is_admin')
|
||||||
el-button(circle icon='el-icon-more' size='mini')
|
v-btn(circle icon='el-icon-more' size='mini')
|
||||||
el-dropdown-menu(slot='dropdown')
|
v-menu(slot='dropdown')
|
||||||
el-dropdown-item(v-if='!resource.hidden' icon='el-icon-remove' @click.native='hideResource(resource, true)') {{$t('admin.hide_resource')}}
|
el-dropdown-item(v-if='!resource.hidden' icon='el-icon-remove' @click.native='hideResource(resource, true)') {{$t('admin.hide_resource')}}
|
||||||
el-dropdown-item(v-else icon='el-icon-success' @click.native='hideResource(resource, false)') {{$t('admin.show_resource')}}
|
el-dropdown-item(v-else icon='el-icon-success' @click.native='hideResource(resource, false)') {{$t('admin.show_resource')}}
|
||||||
el-dropdown-item(icon='el-icon-delete' @click.native='deleteResource(resource)') {{$t('admin.delete_resource')}}
|
el-dropdown-item(icon='el-icon-delete' @click.native='deleteResource(resource)') {{$t('admin.delete_resource')}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
el-main
|
v-main
|
||||||
|
|
||||||
p {{$auth.user.email}}
|
p {{$auth.user.email}}
|
||||||
//- el-form(action='/api/user' method='PUT' @submit.native.prevent='update_settings' inline label-width='200px')
|
//- el-form(action='/api/user' method='PUT' @submit.native.prevent='update_settings' inline label-width='200px')
|
||||||
|
@ -7,9 +7,9 @@
|
||||||
//- el-input(v-model='password' type='password')
|
//- el-input(v-model='password' type='password')
|
||||||
//- el-button(type='success' native-type='submit') {{$t('common.save')}}
|
//- el-button(type='success' native-type='submit') {{$t('common.save')}}
|
||||||
|
|
||||||
el-divider {{$t('settings.danger_section')}}
|
p {{$t('settings.danger_section')}}
|
||||||
p {{$t('settings.remove_account')}}
|
p {{$t('settings.remove_account')}}
|
||||||
el-button(type='danger' @click='remove_account') {{$t('common.remove')}}
|
v-btn(color='danger' @click='remove_account') {{$t('common.remove')}}
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
|
|
Loading…
Reference in a new issue