mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Fixes after review of beta2
This commit is contained in:
+1
-1
@@ -269,7 +269,7 @@ by default.
|
||||
'OIDC_ENABLED': True,
|
||||
'OIDC_RP_INITIATED_LOGOUT_ENABLED': True,
|
||||
'OIDC_RP_INITIATED_LOGOUT_ALWAYS_PROMPT': True,
|
||||
'OIDC_RSA_PRIVATE_KEY': env('OIDC_RSA_PRIVATE_KEY'),
|
||||
'OIDC_RSA_PRIVATE_KEY': env.str('OIDC_RSA_PRIVATE_KEY', multiline=True),
|
||||
'SCOPES': {
|
||||
'openid': 'OpenID Connect scope',
|
||||
'read': 'Read scope',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div v-if="alignments">
|
||||
<v-card>
|
||||
<v-toolbar dense elevation="0" class="mr-2">
|
||||
<v-toolbar-title>$gettext('Alignment')</v-toolbar-title>
|
||||
<v-toolbar-title>{{ $gettext('Alignment') }}</v-toolbar-title>
|
||||
<v-spacer />
|
||||
<v-btn icon="mdi-arrow-left" size="x-small" @click="previousWeek">
|
||||
</v-btn>
|
||||
@@ -153,8 +153,8 @@ const boxes = ref([
|
||||
])
|
||||
|
||||
const now = DateTime.now()
|
||||
const currentWeek = ref(now.year)
|
||||
const currentYear = ref(now.weekNumber)
|
||||
const currentYear = ref(now.year)
|
||||
const currentWeek = ref(now.weekNumber)
|
||||
const dmarcDisabled = ref(false)
|
||||
const loading = ref(false)
|
||||
const panel = ref(null)
|
||||
|
||||
@@ -42,3 +42,9 @@ busStore.$onAction(({ name, after }) => {
|
||||
}
|
||||
}, true)
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.v-application {
|
||||
background-color: #f7f8fa;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -19,59 +19,61 @@
|
||||
v-for="element in displayableElements"
|
||||
:key="element.label"
|
||||
>
|
||||
<v-card>
|
||||
<v-card-text>
|
||||
<template
|
||||
v-for="param in displayableParams(element.parameters)"
|
||||
:key="param.name"
|
||||
>
|
||||
<div class="my-4">
|
||||
<template v-if="param.widget === 'SeparatorField'">
|
||||
<h2>{{ param.label }}</h2>
|
||||
</template>
|
||||
<template v-else-if="param.widget === 'BooleanField'">
|
||||
<v-switch
|
||||
v-if="param.widget === 'BooleanField'"
|
||||
v-model="parameters[param.name]"
|
||||
:label="param.label"
|
||||
:hint="param.help_text"
|
||||
:error="formErrors[param.name] !== undefined"
|
||||
color="primary"
|
||||
density="compact"
|
||||
:error-messages="formErrors[param.name]"
|
||||
persistent-hint
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<label class="m-label">{{ param.label }}</label>
|
||||
<v-select
|
||||
v-if="param.widget === 'ChoiceField'"
|
||||
v-model="parameters[param.name]"
|
||||
:items="param.choices"
|
||||
item-title="text"
|
||||
:hint="param.help_text"
|
||||
persistent-hint
|
||||
density="compact"
|
||||
variant="outlined"
|
||||
/>
|
||||
<v-text-field
|
||||
v-else
|
||||
v-model="parameters[param.name]"
|
||||
:hint="param.help_text"
|
||||
persistent-hint
|
||||
:error="formErrors[param.name] !== undefined"
|
||||
:error-messages="formErrors[param.name]"
|
||||
:type="
|
||||
param.widget === 'PasswordField' ? 'password' : 'text'
|
||||
"
|
||||
density="compact"
|
||||
variant="outlined"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
<v-container fluid class="pa-0">
|
||||
<v-card>
|
||||
<v-card-text>
|
||||
<template
|
||||
v-for="param in displayableParams(element.parameters)"
|
||||
:key="param.name"
|
||||
>
|
||||
<div class="my-4">
|
||||
<template v-if="param.widget === 'SeparatorField'">
|
||||
<h2>{{ param.label }}</h2>
|
||||
</template>
|
||||
<template v-else-if="param.widget === 'BooleanField'">
|
||||
<v-switch
|
||||
v-if="param.widget === 'BooleanField'"
|
||||
v-model="parameters[param.name]"
|
||||
:label="param.label"
|
||||
:hint="param.help_text"
|
||||
:error="formErrors[param.name] !== undefined"
|
||||
color="primary"
|
||||
density="compact"
|
||||
:error-messages="formErrors[param.name]"
|
||||
persistent-hint
|
||||
/>
|
||||
</template>
|
||||
<template v-else>
|
||||
<label class="m-label">{{ param.label }}</label>
|
||||
<v-select
|
||||
v-if="param.widget === 'ChoiceField'"
|
||||
v-model="parameters[param.name]"
|
||||
:items="param.choices"
|
||||
item-title="text"
|
||||
:hint="param.help_text"
|
||||
persistent-hint
|
||||
density="compact"
|
||||
variant="outlined"
|
||||
/>
|
||||
<v-text-field
|
||||
v-else
|
||||
v-model="parameters[param.name]"
|
||||
:hint="param.help_text"
|
||||
persistent-hint
|
||||
:error="formErrors[param.name] !== undefined"
|
||||
:error-messages="formErrors[param.name]"
|
||||
:type="
|
||||
param.widget === 'PasswordField' ? 'password' : 'text'
|
||||
"
|
||||
density="compact"
|
||||
variant="outlined"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-container>
|
||||
</v-tabs-window-item>
|
||||
</v-tabs-window>
|
||||
<v-btn
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<span class="text-h4">{{ $gettext('Edit domain') }}</span>
|
||||
<div class="mt-4" />
|
||||
<DomainEditForm :domain="domain" />
|
||||
</div>
|
||||
<v-toolbar flat>
|
||||
<v-toolbar-title>{{ $gettext('Edit domain') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<DomainEditForm :domain="domain" />
|
||||
</template>
|
||||
|
||||
<script setup lang="js">
|
||||
@@ -23,3 +22,9 @@ domainsStore
|
||||
.getDomain(route.params.id)
|
||||
.then((response) => (domain.value = response.data))
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.v-toolbar {
|
||||
background-color: #f7f8fa !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
{{ $gettext('DMARC') }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
|
||||
<v-tabs-window v-model="tab">
|
||||
<v-tabs-window-item>
|
||||
<v-row>
|
||||
@@ -117,3 +118,9 @@ function refreshDomain() {
|
||||
background-color: #f7f8fa !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
.v-window__container {
|
||||
width: 100% !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<span class="text-h4">{{ $gettext('Edit account') }}</span>
|
||||
<div class="mt-4" />
|
||||
<v-toolbar flat>
|
||||
<v-toolbar-title>{{ $gettext('Edit account') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<AccountEditForm />
|
||||
</template>
|
||||
|
||||
@@ -10,3 +11,9 @@ import { useGettext } from 'vue3-gettext'
|
||||
|
||||
const { $gettext } = useGettext()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.v-toolbar {
|
||||
background-color: #f7f8fa !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<span class="text-h4">{{ $gettext('Edit alias') }}</span>
|
||||
<div class="mt-4" />
|
||||
<AliasEditForm :alias="alias" />
|
||||
</div>
|
||||
<v-toolbar flat>
|
||||
<v-toolbar-title>{{ $gettext('Edit alias') }}</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<AliasEditForm :alias="alias" />
|
||||
</template>
|
||||
|
||||
<script setup lang="js">
|
||||
@@ -12,3 +11,9 @@ import { useGettext } from 'vue3-gettext'
|
||||
|
||||
const { $gettext } = useGettext()
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.v-toolbar {
|
||||
background-color: #f7f8fa !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -206,7 +206,7 @@ OAUTH2_PROVIDER = {
|
||||
'OIDC_ENABLED': True,
|
||||
'OIDC_RP_INITIATED_LOGOUT_ENABLED': True,
|
||||
'OIDC_RP_INITIATED_LOGOUT_ALWAYS_PROMPT': True,
|
||||
'OIDC_RSA_PRIVATE_KEY': env('OIDC_RSA_PRIVATE_KEY'),
|
||||
'OIDC_RSA_PRIVATE_KEY': env.str('OIDC_RSA_PRIVATE_KEY', multiline=True),
|
||||
'SCOPES': {
|
||||
'openid': 'OpenID Connect scope',
|
||||
'read': 'Read scope',
|
||||
|
||||
+1
-1
@@ -53,4 +53,4 @@ rq>=1.13.0
|
||||
django-rq
|
||||
|
||||
# Sieve
|
||||
sievelib>=1.4
|
||||
sievelib>=1.4.1
|
||||
|
||||
Reference in New Issue
Block a user