cleaning
This commit is contained in:
@@ -2,5 +2,6 @@
|
|||||||
"registration_email": "registration_email",
|
"registration_email": "registration_email",
|
||||||
"recover_email": "recover_email",
|
"recover_email": "recover_email",
|
||||||
"press here": "press here",
|
"press here": "press here",
|
||||||
"register.request": "register.request"
|
"register.request": "register.request",
|
||||||
|
"email.registration": "email.registration"
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,6 @@
|
|||||||
"registration_email": "registration_email",
|
"registration_email": "registration_email",
|
||||||
"recover_email": "recover_email",
|
"recover_email": "recover_email",
|
||||||
"press here": "press here",
|
"press here": "press here",
|
||||||
"register.request": "register.request"
|
"register.request": "register.request",
|
||||||
|
"email.registration": "email.registration"
|
||||||
}
|
}
|
||||||
@@ -2,5 +2,6 @@
|
|||||||
"registration_email": "registration_email",
|
"registration_email": "registration_email",
|
||||||
"recover_email": "recover_email",
|
"recover_email": "recover_email",
|
||||||
"press here": "press here",
|
"press here": "press here",
|
||||||
"register.request": "register.request"
|
"register.request": "register.request",
|
||||||
|
"email.registration": "email.registration"
|
||||||
}
|
}
|
||||||
@@ -241,7 +241,6 @@ export default {
|
|||||||
end_datetime = moment(this.date.end)
|
end_datetime = moment(this.date.end)
|
||||||
.set('hour', end_hour).set('minute', end_minute)
|
.set('hour', end_hour).set('minute', end_minute)
|
||||||
} else {
|
} else {
|
||||||
console.log(this.date)
|
|
||||||
start_datetime = moment(this.date).set('hour', start_hour).set('minute', start_minute)
|
start_datetime = moment(this.date).set('hour', start_hour).set('minute', start_minute)
|
||||||
end_datetime = moment(this.date).set('hour', end_hour).set('minute', end_minute)
|
end_datetime = moment(this.date).set('hour', end_hour).set('minute', end_minute)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
el-card(:title='$t("common.admin")' width='80%' :visible='open' :before-close='close')
|
el-card
|
||||||
nuxt-link.float-right(to='/')
|
nuxt-link.float-right(to='/')
|
||||||
v-icon(name='times' color='red')
|
v-icon(name='times' color='red')
|
||||||
h5 {{$t('common.admin')}}
|
h5 {{$t('common.admin')}}
|
||||||
@@ -224,11 +224,6 @@ export default {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close (done) {
|
|
||||||
console.log('oppure qui !')
|
|
||||||
this.$router.replace('/')
|
|
||||||
// done()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -59,7 +59,6 @@ export default {
|
|||||||
// key: to => to.fullPath,
|
// key: to => to.fullPath,
|
||||||
// Called to know which transition to apply
|
// Called to know which transition to apply
|
||||||
// transition(to, from) {
|
// transition(to, from) {
|
||||||
// console.log('dentro transition')
|
|
||||||
// if (!from) return 'slide-left'
|
// if (!from) return 'slide-left'
|
||||||
// return +to.params.id < +from.params.id ? 'slide-right' : 'slide-left'
|
// return +to.params.id < +from.params.id ? 'slide-right' : 'slide-left'
|
||||||
// },
|
// },
|
||||||
@@ -109,9 +108,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['delEvent']),
|
...mapActions(['delEvent']),
|
||||||
keydown (e) {
|
|
||||||
console.error(e)
|
|
||||||
},
|
|
||||||
comment_filter (value) {
|
comment_filter (value) {
|
||||||
return value.replace(/<a.*href="([^">]+).*>(?:.(?!\<\/a\>))*.<\/a>/, (orig, url) => {
|
return value.replace(/<a.*href="([^">]+).*>(?:.(?!\<\/a\>))*.<\/a>/, (orig, url) => {
|
||||||
// get extension
|
// get extension
|
||||||
|
|||||||
@@ -58,7 +58,6 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapGetters } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
import path from 'path'
|
|
||||||
import Calendar from '@/components/Calendar'
|
import Calendar from '@/components/Calendar'
|
||||||
import List from '@/components/List'
|
import List from '@/components/List'
|
||||||
import Search from '@/components/Search'
|
import Search from '@/components/Search'
|
||||||
|
|||||||
@@ -27,11 +27,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
async change () {
|
async change () {
|
||||||
if (!this.password) return
|
if (!this.password) return
|
||||||
// this.$auth.user.password = this.password
|
|
||||||
const user_data = { id : this.$auth.user.id, password: this.password }
|
const user_data = { id : this.$auth.user.id, password: this.password }
|
||||||
try {
|
try {
|
||||||
const user = await this.$axios.$put('/user', user_data)
|
const user = await this.$axios.$put('/user', user_data)
|
||||||
console.error(user)
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ moment.locale('it')
|
|||||||
const botController = {
|
const botController = {
|
||||||
bot: null,
|
bot: null,
|
||||||
async initialize() {
|
async initialize() {
|
||||||
console.error('dentro bot inizialiteds')
|
|
||||||
const settings = await settingsController.settings()
|
const settings = await settingsController.settings()
|
||||||
if (!settings.mastodon_auth || !settings.mastodon_auth.access_token) return
|
if (!settings.mastodon_auth || !settings.mastodon_auth.access_token) return
|
||||||
const mastodon_auth = settings.mastodon_auth
|
const mastodon_auth = settings.mastodon_auth
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ const ics = require('ics')
|
|||||||
const exportController = {
|
const exportController = {
|
||||||
|
|
||||||
async export(req, res) {
|
async export(req, res) {
|
||||||
console.log('type ', req.params.type)
|
|
||||||
console.error(req)
|
|
||||||
const type = req.params.type
|
const type = req.params.type
|
||||||
const tags = req.query.tags
|
const tags = req.query.tags
|
||||||
const places = req.query.places
|
const places = req.query.places
|
||||||
|
|||||||
@@ -206,7 +206,6 @@ const userController = {
|
|||||||
|
|
||||||
async update(req, res) {
|
async update(req, res) {
|
||||||
const user = await User.findByPk(req.body.id)
|
const user = await User.findByPk(req.body.id)
|
||||||
console.error(req.body.id)
|
|
||||||
if (user) {
|
if (user) {
|
||||||
if (!user.is_active && req.body.is_active) {
|
if (!user.is_active && req.body.is_active) {
|
||||||
await mail.send(user.email, 'confirm', { user, config: config.SHARED_CONF })
|
await mail.send(user.email, 'confirm', { user, config: config.SHARED_CONF })
|
||||||
|
|||||||
@@ -15,8 +15,10 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
is_admin: DataTypes.BOOLEAN,
|
is_admin: DataTypes.BOOLEAN,
|
||||||
is_active: DataTypes.BOOLEAN
|
is_active: DataTypes.BOOLEAN
|
||||||
}, {
|
}, {
|
||||||
defaultScope: {
|
scopes: {
|
||||||
attributes: { exclude: ['password', 'recover_code'] }
|
withoutPassword: {
|
||||||
|
attributes: { exclude: ['password', 'recover_code'] }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
p= t('registration_email')
|
p= t('email.registration')
|
||||||
|
|
||||||
hr
|
hr
|
||||||
small #{config.title} / #{config.description}
|
small #{config.title} / #{config.description}
|
||||||
|
|||||||
Reference in New Issue
Block a user