update UI

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2024-01-15 23:40:45 +01:00
parent 076efa6597
commit eb02c448aa
No known key found for this signature in database
16 changed files with 162 additions and 154 deletions

View File

@ -43491,13 +43491,14 @@ components:
format: date-time
description: Current server time
readOnly: true
embedded_outpost_disabled:
type: boolean
description: Whether the embedded outpost is disabled
readOnly: true
embedded_outpost_host:
type: string
description: Get the FQDN configured on the embedded outpost
readOnly: true
embedded_outpost_disabled:
type: boolean
readOnly: true
required:
- brand
- embedded_outpost_disabled

View File

@ -1,7 +1,9 @@
import { first } from "@goauthentik/app/common/utils";
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import "@goauthentik/components/ak-switch-input";
import "@goauthentik/components/ak-text-input";
import "@goauthentik/components/ak-textarea-input";
import "@goauthentik/elements/CodeMirror";
import { CodeMirrorMode } from "@goauthentik/elements/CodeMirror";
import { Form } from "@goauthentik/elements/forms/Form";
import "@goauthentik/elements/forms/FormGroup";
import "@goauthentik/elements/forms/HorizontalFormElement";
@ -111,21 +113,21 @@ export class AdminSettingsForm extends Form<SettingsRequest> {
</ak-text-input>
<ak-switch-input
name="defaultUserChangeName"
label=${msg("Default user change name")}
label=${msg("Allow users' to change name")}
?checked="${this._settings?.defaultUserChangeName}"
help=${msg("Enable the ability for users to change their name.")}
>
</ak-switch-input>
<ak-switch-input
name="defaultUserChangeEmail"
label=${msg("Default user change email")}
label=${msg("Allow users' to change email")}
?checked="${this._settings?.defaultUserChangeEmail}"
help=${msg("Enable the ability for users to change their email.")}
>
</ak-switch-input>
<ak-switch-input
name="defaultUserChangeUsername"
label=${msg("Default user change username")}
label=${msg("Allow users' to change username")}
?checked="${this._settings?.defaultUserChangeUsername}"
help=${msg("Enable the ability for users to change their username.")}
>
@ -151,20 +153,19 @@ export class AdminSettingsForm extends Form<SettingsRequest> {
<ak-utils-time-delta-help></ak-utils-time-delta-help>`}
>
</ak-text-input>
<ak-textarea-input
name="footerLinks"
label=${msg("Footer links")}
.value="${this._settings?.footerLinks}"
.bighelp=${html`
<p class="pf-c-form__helper-text">
${msg(
"This option configures the footer links on the flow executor pages. It must be a valid JSON list and can be used as follows:",
)}
<code>[{"name": "Link Name","href":"https://goauthentik.io"}]</code>
</p>
`}
>
</ak-textarea-input>
<ak-form-element-horizontal label=${msg("Footer links")} name="footerLinks">
<ak-codemirror
mode=${CodeMirrorMode.YAML}
.parseValue=${false}
value="${first(this._settings?.footerLinks, [])}"
></ak-codemirror>
<p class="pf-c-form__helper-text">
${msg(
"This option configures the footer links on the flow executor pages. It must be a valid JSON list and can be used as follows:",
)}
<code>[{"name": "Link Name","href":"https://goauthentik.io"}]</code>
</p>
</ak-form-element-horizontal>
<ak-switch-input
name="gdprCompliance"
label=${msg("GDPR compliance")}

View File

@ -87,22 +87,28 @@ export class AdminSettingsPage extends AKElement {
<span slot="header"> ${msg("System settings")} </span>
</ak-page-header>
<section class="pf-c-page__main-section pf-m-no-padding-mobile pf-l-grid pf-m-gutter">
<ak-admin-settings-form id="form" .settings=${this.settings}>
</ak-admin-settings-form>
<ak-spinner-button
.callAction=${async () => {
await this.save();
}}
class="pf-m-primary"
>${msg("Save")}</ak-spinner-button
>
<ak-spinner-button
.callAction=${() => {
this.resetForm();
}}
class="pf-m-secondary"
>${msg("Cancel")}</ak-spinner-button
>
<div class="pf-c-card">
<div class="pf-c-card__body">
<ak-admin-settings-form id="form" .settings=${this.settings}>
</ak-admin-settings-form>
</div>
<div class="pf-c-card__footer">
<ak-spinner-button
.callAction=${async () => {
await this.save();
}}
class="pf-m-primary"
>${msg("Save")}</ak-spinner-button
>
<ak-spinner-button
.callAction=${() => {
this.resetForm();
}}
class="pf-m-secondary"
>${msg("Cancel")}</ak-spinner-button
>
</div>
</div>
</section>
`;
}

View File

@ -6287,21 +6287,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6325,6 +6316,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -6562,21 +6562,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6600,6 +6591,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -6203,21 +6203,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6241,6 +6232,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -8242,21 +8242,12 @@ Les liaisons avec les groupes/utilisateurs sont vérifiées par rapport à l'uti
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8280,6 +8271,15 @@ Les liaisons avec les groupes/utilisateurs sont vérifiées par rapport à l'uti
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -8149,21 +8149,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8199,6 +8190,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="s31aa94a0b3c7edb2">
<source>Select endpoint to connect to</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -7974,21 +7974,12 @@ Bindingen naar groepen/gebruikers worden gecontroleerd tegen de gebruiker van de
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8039,6 +8030,15 @@ Bindingen naar groepen/gebruikers worden gecontroleerd tegen de gebruiker van de
</trans-unit>
<trans-unit id="s31aa94a0b3c7edb2">
<source>Select endpoint to connect to</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -6410,21 +6410,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6448,6 +6439,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -8135,21 +8135,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8174,4 +8165,13 @@ Bindings to groups/users are checked against the user of the event.</source>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body></file></xliff>

View File

@ -6196,21 +6196,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6234,6 +6225,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -4603,21 +4603,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -5143,6 +5134,15 @@ Bindings to groups/users are checked against the user of the event.</source>
<trans-unit id="sc54aafeea9c9bab0">
<source>Connected services</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>
</xliff>

View File

@ -8244,21 +8244,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8282,6 +8273,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -6244,21 +6244,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -6282,6 +6273,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>

View File

@ -8120,21 +8120,12 @@ Bindings to groups/users are checked against the user of the event.</source>
attempt to get an avatar from Gravatar, and if the user has not
configured on there, it will fallback to a generated avatar.</source>
</trans-unit>
<trans-unit id="sea247dfb18f696d2">
<source>Default user change name</source>
</trans-unit>
<trans-unit id="s078ffec0257621c0">
<source>Enable the ability for users to change their name.</source>
</trans-unit>
<trans-unit id="s26ad11b21253152b">
<source>Default user change email</source>
</trans-unit>
<trans-unit id="s5fc6c14d106f40d3">
<source>Enable the ability for users to change their email.</source>
</trans-unit>
<trans-unit id="s23564aa839755965">
<source>Default user change username</source>
</trans-unit>
<trans-unit id="s6d816a95ca43a99d">
<source>Enable the ability for users to change their username.</source>
</trans-unit>
@ -8158,6 +8149,15 @@ Bindings to groups/users are checked against the user of the event.</source>
</trans-unit>
<trans-unit id="see1eb81c1f734079">
<source>System settings</source>
</trans-unit>
<trans-unit id="s240ec6a18ae3199b">
<source>Allow users' to change name</source>
</trans-unit>
<trans-unit id="s9ec441cc5049a080">
<source>Allow users' to change email</source>
</trans-unit>
<trans-unit id="s9887891e7e8d2500">
<source>Allow users' to change username</source>
</trans-unit>
</body>
</file>