mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Paramterize all emails
This commit is contained in:
parent
0ee3a308a7
commit
3a216226bc
@ -17,7 +17,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- "APPLICATION_NAME={$APPLICATION_NAME:-'Human Connection'}"
|
- "APPLICATION_NAME={$APPLICATION_NAME:-'Human Connection'}"
|
||||||
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
|
- NUXT_BUILD=/tmp/nuxt # avoid file permission issues when `rm -rf .nuxt/`
|
||||||
- PUBLIC_REGISTRATION=false
|
- PUBLIC_REGISTRATION=true
|
||||||
command: yarn run dev
|
command: yarn run dev
|
||||||
backend:
|
backend:
|
||||||
image: schoolsinmotion/backend:build-and-test
|
image: schoolsinmotion/backend:build-and-test
|
||||||
@ -33,7 +33,7 @@ services:
|
|||||||
- SMTP_PORT=25
|
- SMTP_PORT=25
|
||||||
- SMTP_IGNORE_TLS=true
|
- SMTP_IGNORE_TLS=true
|
||||||
- "DEBUG=${DEBUG}"
|
- "DEBUG=${DEBUG}"
|
||||||
- PUBLIC_REGISTRATION=false
|
- PUBLIC_REGISTRATION=true
|
||||||
maintenance:
|
maintenance:
|
||||||
image: schoolsinmotion/maintenance:latest
|
image: schoolsinmotion/maintenance:latest
|
||||||
build:
|
build:
|
||||||
|
|||||||
@ -49,8 +49,9 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{{ $t('components.password-reset.change-password.help') }}
|
{{ $t('components.password-reset.change-password.help') }}
|
||||||
<br />
|
</p>
|
||||||
<a href="mailto:support@human-connection.org">support@human-connection.org</a>
|
<p>
|
||||||
|
<a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>
|
||||||
</p>
|
</p>
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</template>
|
</template>
|
||||||
@ -60,6 +61,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import emails from '../../constants/emails.js'
|
||||||
import PasswordStrength from '../Password/Strength'
|
import PasswordStrength from '../Password/Strength'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
||||||
@ -77,6 +79,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
const passwordForm = PasswordForm({ translate: this.$t })
|
const passwordForm = PasswordForm({ translate: this.$t })
|
||||||
return {
|
return {
|
||||||
|
supportEmail: emails.SUPPORT,
|
||||||
formData: {
|
formData: {
|
||||||
...passwordForm.formData,
|
...passwordForm.formData,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
</ds-text>
|
</ds-text>
|
||||||
<ds-text align="center">
|
<ds-text align="center">
|
||||||
{{ $t('components.registration.create-user-account.help') }}
|
{{ $t('components.registration.create-user-account.help') }}
|
||||||
<a :href="supportEmail.href">{{ supportEmail.label }}</a>
|
<a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>
|
||||||
</ds-text>
|
</ds-text>
|
||||||
<ds-space centered>
|
<ds-space centered>
|
||||||
<nuxt-link to="/login">{{ $t('site.back-to-login') }}</nuxt-link>
|
<nuxt-link to="/login">{{ $t('site.back-to-login') }}</nuxt-link>
|
||||||
@ -128,9 +128,9 @@
|
|||||||
import PasswordStrength from '../Password/Strength'
|
import PasswordStrength from '../Password/Strength'
|
||||||
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
||||||
import PasswordForm from '~/components/utils/PasswordFormHelper'
|
import PasswordForm from '~/components/utils/PasswordFormHelper'
|
||||||
import { SUPPORT_EMAIL } from '~/constants/emails.js'
|
|
||||||
import { VERSION } from '~/constants/terms-and-conditions-version.js'
|
import { VERSION } from '~/constants/terms-and-conditions-version.js'
|
||||||
import { SignupVerificationMutation } from '~/graphql/Registration.js'
|
import { SignupVerificationMutation } from '~/graphql/Registration.js'
|
||||||
|
import emails from '~/constants/emails'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@ -140,7 +140,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
const passwordForm = PasswordForm({ translate: this.$t })
|
const passwordForm = PasswordForm({ translate: this.$t })
|
||||||
return {
|
return {
|
||||||
supportEmail: SUPPORT_EMAIL,
|
supportEmail: emails.SUPPORT,
|
||||||
formData: {
|
formData: {
|
||||||
name: '',
|
name: '',
|
||||||
about: '',
|
about: '',
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
export const SUPPORT_EMAIL = {
|
export default {
|
||||||
href: 'mailto:support@human-connection.org',
|
SUPPORT: 'support@human-connection.org',
|
||||||
label: 'support@human-connection.org',
|
MODERATION: 'moderation@human-connection.org',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,10 +20,7 @@
|
|||||||
<ds-text>{{ $t('maintenance.explanation') }}</ds-text>
|
<ds-text>{{ $t('maintenance.explanation') }}</ds-text>
|
||||||
<ds-text>
|
<ds-text>
|
||||||
{{ $t('maintenance.questions') }}
|
{{ $t('maintenance.questions') }}
|
||||||
<a href="mailto:support@human-connection.org" class="email-link">
|
<a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>
|
||||||
support@human-connection.org
|
|
||||||
</a>
|
|
||||||
.
|
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
@ -35,6 +32,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import emails from '~/constants/emails.js'
|
||||||
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -42,5 +40,8 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
LocaleSwitch,
|
LocaleSwitch,
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return { supportEmail: emails.SUPPORT }
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -25,9 +25,7 @@
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
{{ $t('code-of-conduct.get-help') }}
|
{{ $t('code-of-conduct.get-help') }}
|
||||||
<a class="hc-editor-link-blot" href="moderation@human-connection.org" target="_blank">
|
<a :href="'mailto:' + moderationEmail">{{ moderationEmail }}</a>
|
||||||
moderation@human-connection.org
|
|
||||||
</a>
|
|
||||||
</p>
|
</p>
|
||||||
<br />
|
<br />
|
||||||
</ds-container>
|
</ds-container>
|
||||||
@ -35,6 +33,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import emails from '~/constants/emails.js'
|
||||||
export default {
|
export default {
|
||||||
layout: 'basic',
|
layout: 'basic',
|
||||||
head() {
|
head() {
|
||||||
@ -44,6 +43,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
moderationEmail: emails.MODERATION,
|
||||||
sections: ['preamble', 'purpose'],
|
sections: ['preamble', 'purpose'],
|
||||||
listSections: [
|
listSections: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
</ds-list-item>
|
</ds-list-item>
|
||||||
</ds-list>
|
</ds-list>
|
||||||
{{ $t('settings.email.verification-error.support') }}
|
{{ $t('settings.email.verification-error.support') }}
|
||||||
<a href="mailto:support@human-connection.org">support@human-connection.org</a>
|
<a :href="'mailto:' + supportEmail">{{ supportEmail }}</a>
|
||||||
</ds-text>
|
</ds-text>
|
||||||
</client-only>
|
</client-only>
|
||||||
</ds-space>
|
</ds-space>
|
||||||
@ -38,6 +38,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import emails from '~/constants/emails.js'
|
||||||
import { VerifyEmailAddressMutation } from '~/graphql/EmailAddress.js'
|
import { VerifyEmailAddressMutation } from '~/graphql/EmailAddress.js'
|
||||||
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
||||||
|
|
||||||
@ -57,6 +58,11 @@ export default {
|
|||||||
}, 3000)
|
}, 3000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
supportEmail: emails.SUPPORT,
|
||||||
|
}
|
||||||
|
},
|
||||||
async asyncData(context) {
|
async asyncData(context) {
|
||||||
const {
|
const {
|
||||||
store,
|
store,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user