From 2a1af968387cba66f9cec6812fda74157197f35f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 6 Apr 2022 10:46:06 +0200 Subject: [PATCH] web/admin: fix linting Signed-off-by: Jens Langhammer --- web/src/locales/de.po | 5 +++++ web/src/locales/en.po | 5 +++++ web/src/locales/es.po | 5 +++++ web/src/locales/fr_FR.po | 5 +++++ web/src/locales/pl.po | 5 +++++ web/src/locales/pseudo-LOCALE.po | 5 +++++ web/src/locales/tr.po | 5 +++++ web/src/locales/zh-Hans.po | 5 +++++ web/src/locales/zh-Hant.po | 5 +++++ web/src/locales/zh_TW.po | 5 +++++ web/src/pages/tenants/TenantForm.ts | 4 +++- 11 files changed, 53 insertions(+), 1 deletion(-) diff --git a/web/src/locales/de.po b/web/src/locales/de.po index b7d40634d..276909ab0 100644 --- a/web/src/locales/de.po +++ b/web/src/locales/de.po @@ -498,6 +498,7 @@ msgstr "Der für die SAML Assertion verwendete Attributname. Kann eine URN OID, #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "Attribute" @@ -4537,6 +4538,10 @@ msgstr "Legen Sie einen benutzerdefinierten HTTP-Basic Authentication-Header fes msgid "Set custom attributes using YAML or JSON." msgstr "Selbstdefinierte Attribute können mittels YAML oder JSON festgelegt werden." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 0d542d7bb..7626f3e48 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -489,6 +489,7 @@ msgstr "Attribute name used for SAML Assertions. Can be a URN OID, a schema refe #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "Attributes" @@ -4625,6 +4626,10 @@ msgstr "Set a custom HTTP-Basic Authentication header based on values from authe msgid "Set custom attributes using YAML or JSON." msgstr "Set custom attributes using YAML or JSON." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/es.po b/web/src/locales/es.po index a6de7cb2a..9ea06c304 100644 --- a/web/src/locales/es.po +++ b/web/src/locales/es.po @@ -485,6 +485,7 @@ msgstr "Nombre de atributo utilizado para aserciones SAML. Puede ser un OID de U #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "atributos" @@ -4530,6 +4531,10 @@ msgstr "Establezca un encabezado de autenticación básica HTTP personalizado en msgid "Set custom attributes using YAML or JSON." msgstr "Establece atributos personalizados con YAML o JSON." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/fr_FR.po b/web/src/locales/fr_FR.po index e3794d1f4..4aa3243cc 100644 --- a/web/src/locales/fr_FR.po +++ b/web/src/locales/fr_FR.po @@ -490,6 +490,7 @@ msgstr "Nom de l'attribut utilisé pour les assertions SAML. Peut être un OID U #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "Attributs" @@ -4579,6 +4580,10 @@ msgstr "Définir un en-tête d'authentification HTTP-Basic personnalisé basé s msgid "Set custom attributes using YAML or JSON." msgstr "Définissez des attributs personnalisés via YAML ou JSON." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/pl.po b/web/src/locales/pl.po index e19364bb8..abfefae81 100644 --- a/web/src/locales/pl.po +++ b/web/src/locales/pl.po @@ -485,6 +485,7 @@ msgstr "Nazwa atrybutu używana w asercjach SAML. Może być identyfikatorem URN #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "Atrybuty" @@ -4527,6 +4528,10 @@ msgstr "Ustaw niestandardowy nagłówek HTTP-Basic Authentication na podstawie w msgid "Set custom attributes using YAML or JSON." msgstr "Ustaw atrybuty niestandardowe za pomocą YAML lub JSON." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index d9e4c9954..347369a9f 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -481,6 +481,7 @@ msgstr "" #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "" @@ -4605,6 +4606,10 @@ msgstr "" msgid "Set custom attributes using YAML or JSON." msgstr "" +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/tr.po b/web/src/locales/tr.po index 8828b30f0..8d4353cbb 100644 --- a/web/src/locales/tr.po +++ b/web/src/locales/tr.po @@ -485,6 +485,7 @@ msgstr "SAML Onaylamaları için kullanılan öznitelik adı. URN OID, şema ref #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "Öznitellikler" @@ -4532,6 +4533,10 @@ msgstr "authentik değerlerine göre özel bir HTTP-Basic Kimlik Doğrulama baş msgid "Set custom attributes using YAML or JSON." msgstr "YAML veya JSON kullanarak özel nitelikleri ayarlayın." +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/zh-Hans.po b/web/src/locales/zh-Hans.po index 7affe66f6..e2820ea71 100644 --- a/web/src/locales/zh-Hans.po +++ b/web/src/locales/zh-Hans.po @@ -486,6 +486,7 @@ msgstr "用于 SAML 断言的属性名称。可以是 URN OID、Schema Reference #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "属性" @@ -4500,6 +4501,10 @@ msgstr "根据来自 authentik 的值设置自定义 HTTP-Basic 身份验证标 msgid "Set custom attributes using YAML or JSON." msgstr "使用 YAML 或 JSON 设置自定义属性。" +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/zh-Hant.po b/web/src/locales/zh-Hant.po index ed9ac94b0..d25112cb5 100644 --- a/web/src/locales/zh-Hant.po +++ b/web/src/locales/zh-Hant.po @@ -486,6 +486,7 @@ msgstr "用于 SAML 断言的属性名称。可以是 URN OID, 模式引用或 #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "属性" @@ -4500,6 +4501,10 @@ msgstr "根据来自 authentik 的值设置自定义 HTTP-Basic 身份验证标 msgid "Set custom attributes using YAML or JSON." msgstr "使用 YAML 或 JSON 设置自定义属性。" +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/locales/zh_TW.po b/web/src/locales/zh_TW.po index dd86b6843..30ddc1b40 100644 --- a/web/src/locales/zh_TW.po +++ b/web/src/locales/zh_TW.po @@ -486,6 +486,7 @@ msgstr "用于 SAML 断言的属性名称。可以是 URN OID, 模式引用或 #: src/pages/groups/GroupForm.ts #: src/pages/stages/invitation/InvitationForm.ts +#: src/pages/tenants/TenantForm.ts #: src/pages/users/UserForm.ts msgid "Attributes" msgstr "属性" @@ -4500,6 +4501,10 @@ msgstr "根据来自 authentik 的值设置自定义 HTTP-Basic 身份验证标 msgid "Set custom attributes using YAML or JSON." msgstr "使用 YAML 或 JSON 设置自定义属性。" +#: src/pages/tenants/TenantForm.ts +msgid "Set custom attributes using YAML or JSON. Any attributes set here will be inherited by users, if the request is handled by this tenant." +msgstr "" + #: src/pages/users/RelatedUserList.ts #: src/pages/users/UserListPage.ts msgid "Set password" diff --git a/web/src/pages/tenants/TenantForm.ts b/web/src/pages/tenants/TenantForm.ts index bb161f5b0..2e629dac4 100644 --- a/web/src/pages/tenants/TenantForm.ts +++ b/web/src/pages/tenants/TenantForm.ts @@ -1,6 +1,7 @@ -import { t } from "@lingui/macro"; import YAML from "yaml"; +import { t } from "@lingui/macro"; + import { TemplateResult, html } from "lit"; import { customElement } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; @@ -15,6 +16,7 @@ import { } from "@goauthentik/api"; import { DEFAULT_CONFIG } from "../../api/Config"; +import "../../elements/CodeMirror"; import "../../elements/forms/FormGroup"; import "../../elements/forms/HorizontalFormElement"; import { ModelForm } from "../../elements/forms/ModelForm";