mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix linting and clean up
This commit is contained in:
parent
197e6ab6d7
commit
b09766a0a2
@ -58,8 +58,6 @@ export default {
|
|||||||
return this.sliderData.sliderIndex // have a shorter notation
|
return this.sliderData.sliderIndex // have a shorter notation
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,8 @@
|
|||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
@input-valid="handleInputValid"
|
@input-valid="handleInputValid"
|
||||||
>
|
>
|
||||||
<!-- <template v-slot="{ errors }"> --> <!-- leave this here in case the scoped variable is needed in the future nobody would remember this -->
|
<!-- leave this here in case the scoped variable is needed in the future nobody would remember this -->
|
||||||
|
<!-- <template v-slot="{ errors }"> -->
|
||||||
<template>
|
<template>
|
||||||
<ds-input
|
<ds-input
|
||||||
id="name"
|
id="name"
|
||||||
@ -238,7 +239,6 @@ export default {
|
|||||||
this.minimumAge &&
|
this.minimumAge &&
|
||||||
this.noCommercial &&
|
this.noCommercial &&
|
||||||
this.noPolitical
|
this.noPolitical
|
||||||
console.log('valid : ', isValid)
|
|
||||||
return isValid
|
return isValid
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -14,7 +14,10 @@
|
|||||||
: $t('components.registration.signup.title', metadata)
|
: $t('components.registration.signup.title', metadata)
|
||||||
}}
|
}}
|
||||||
</h1> -->
|
</h1> -->
|
||||||
<ds-text v-if="token" v-html="$t('registration.signup.form.invitation-code', { code: token })" />
|
<ds-text
|
||||||
|
v-if="token"
|
||||||
|
v-html="$t('registration.signup.form.invitation-code', { code: token })"
|
||||||
|
/>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
{{
|
{{
|
||||||
invitation
|
invitation
|
||||||
@ -127,23 +130,19 @@ export default {
|
|||||||
return this.$t('components.registration.signup.form.success', { email })
|
return this.$t('components.registration.signup.form.success', { email })
|
||||||
},
|
},
|
||||||
valid() {
|
valid() {
|
||||||
let isValid
|
const isValid = isEmail(this.formData.email)
|
||||||
if (isEmail(this.formData.email)) {
|
|
||||||
this.formData.email = normalizeEmail(this.formData.email)
|
|
||||||
isValid = true
|
|
||||||
} else {
|
|
||||||
isValid = false
|
|
||||||
}
|
|
||||||
return isValid
|
return isValid
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sendValidation() {
|
sendValidation() {
|
||||||
|
if (this.formData.email && isEmail(this.formData.email)) {
|
||||||
|
this.formData.email = normalizeEmail(this.formData.email)
|
||||||
|
}
|
||||||
const { email } = this.formData
|
const { email } = this.formData
|
||||||
const value = {
|
const value = {
|
||||||
email,
|
email,
|
||||||
}
|
}
|
||||||
// console.log('sendValidation !!! value: ', value)
|
|
||||||
this.sliderData.validateCallback(this.valid, value)
|
this.sliderData.validateCallback(this.valid, value)
|
||||||
},
|
},
|
||||||
handleInput() {
|
handleInput() {
|
||||||
|
|||||||
@ -46,7 +46,6 @@ export default {
|
|||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
// Code that will run only after the entire view has been rendered
|
// Code that will run only after the entire view has been rendered
|
||||||
console.log('mounted !!! this.sliderData.collectedInputData.inviteCode: ', this.sliderData.collectedInputData.inviteCode)
|
|
||||||
this.formData.inviteCode = this.sliderData.collectedInputData.inviteCode
|
this.formData.inviteCode = this.sliderData.collectedInputData.inviteCode
|
||||||
? this.sliderData.collectedInputData.inviteCode
|
? this.sliderData.collectedInputData.inviteCode
|
||||||
: ''
|
: ''
|
||||||
@ -55,8 +54,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
valid() {
|
valid() {
|
||||||
const isValid =
|
const isValid = this.formData.inviteCode.length === 6
|
||||||
this.formData.inviteCode.length === 6
|
|
||||||
return isValid
|
return isValid
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -64,8 +64,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
valid() {
|
valid() {
|
||||||
const isValid =
|
const isValid = this.formData.nonce.length === 6
|
||||||
this.formData.nonce.length === 6
|
|
||||||
return isValid
|
return isValid
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -11,8 +11,7 @@ storiesOf('RegistrationSlider', module)
|
|||||||
.add('invite-code empty', () => ({
|
.add('invite-code empty', () => ({
|
||||||
components: { RegistrationSlider },
|
components: { RegistrationSlider },
|
||||||
store: helpers.store,
|
store: helpers.store,
|
||||||
data: () => ({
|
data: () => ({}),
|
||||||
}),
|
|
||||||
template: `
|
template: `
|
||||||
<registration-slider registrationType="invite-code" />
|
<registration-slider registrationType="invite-code" />
|
||||||
`,
|
`,
|
||||||
@ -48,8 +47,7 @@ storiesOf('RegistrationSlider', module)
|
|||||||
.add('public-registration empty', () => ({
|
.add('public-registration empty', () => ({
|
||||||
components: { RegistrationSlider },
|
components: { RegistrationSlider },
|
||||||
store: helpers.store,
|
store: helpers.store,
|
||||||
data: () => ({
|
data: () => ({}),
|
||||||
}),
|
|
||||||
template: `
|
template: `
|
||||||
<registration-slider registrationType="public-registration" />
|
<registration-slider registrationType="public-registration" />
|
||||||
`,
|
`,
|
||||||
|
|||||||
@ -60,7 +60,6 @@
|
|||||||
import links from '~/constants/links.js'
|
import links from '~/constants/links.js'
|
||||||
import metadata from '~/constants/metadata.js'
|
import metadata from '~/constants/metadata.js'
|
||||||
import ComponentSlider from '~/components/ComponentSlider/ComponentSlider'
|
import ComponentSlider from '~/components/ComponentSlider/ComponentSlider'
|
||||||
import HcEmpty from '~/components/Empty/Empty'
|
|
||||||
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
||||||
import RegistrationItemCreateUserAccount from './RegistrationItemCreateUserAccount'
|
import RegistrationItemCreateUserAccount from './RegistrationItemCreateUserAccount'
|
||||||
import RegistrationItemEnterEmail from '~/components/Registration/RegistrationItemEnterEmail'
|
import RegistrationItemEnterEmail from '~/components/Registration/RegistrationItemEnterEmail'
|
||||||
@ -71,7 +70,6 @@ export default {
|
|||||||
name: 'RegistrationSlider',
|
name: 'RegistrationSlider',
|
||||||
components: {
|
components: {
|
||||||
ComponentSlider,
|
ComponentSlider,
|
||||||
HcEmpty,
|
|
||||||
LocaleSwitch,
|
LocaleSwitch,
|
||||||
RegistrationItemCreateUserAccount,
|
RegistrationItemCreateUserAccount,
|
||||||
RegistrationItemEnterEmail,
|
RegistrationItemEnterEmail,
|
||||||
@ -198,7 +196,6 @@ export default {
|
|||||||
},
|
},
|
||||||
buttonCallback() {
|
buttonCallback() {
|
||||||
if (this.sliderData.sliders[this.sliderIndex].name === 'enter-email') {
|
if (this.sliderData.sliders[this.sliderIndex].name === 'enter-email') {
|
||||||
console.log('buttonCallback !!! enter-email')
|
|
||||||
this.sliderData.collectedInputData.emailSend = true
|
this.sliderData.collectedInputData.emailSend = true
|
||||||
this.sliderData.sliders[this.sliderIndex].button.title = 'Resend E-Mail' // Wolle
|
this.sliderData.sliders[this.sliderIndex].button.title = 'Resend E-Mail' // Wolle
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user