blueprints: v1 (#1573)

* managed: move flowexporter to managed

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* *: implement SerializerModel in all models

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* managed: add initial api

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* managed: start blueprint

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* managed: spec

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* version blueprint

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* yep

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* remove v2, improve v1

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* start custom tag, more rebrand

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* add default flows

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* move blueprints out of website

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* try new things

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* add !lookup, fix web

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* update and cleanup default

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* fix tags in lists

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* don't save field if its set to default value

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* more flow cleanup

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* format web

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* fix missing serializer for sms

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* ignore _set fields

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* remove custom file extension

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* migrate default flow to tenant

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* include blueprints

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* fix tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens L
2022-07-31 17:11:44 +02:00
committed by GitHub
parent 882250a85e
commit 89c84f10d0
119 changed files with 2171 additions and 748 deletions

View File

@ -72,8 +72,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow Dateien, die auf goauthentik.io zu finden sind und von authentik exportiert werden können."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml Dateien, die auf goauthentik.io zu finden sind und von authentik exportiert werden können."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -56,8 +56,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -59,8 +59,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow, que se pueden encontrar en goauthentik.io y que authentik puede exportar."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml, que se pueden encontrar en goauthentik.io y que authentik puede exportar."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -62,7 +62,7 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ""
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts

View File

@ -59,8 +59,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr "Pliki .akflow, które można znaleźć na goauthentik.io i mogą być wyeksportowane przez authentik."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr "Pliki .yaml, które można znaleźć na goauthentik.io i mogą być wyeksportowane przez authentik."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -51,10 +51,10 @@ msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ""
".akflow files, which can be found on goauthentik.io and can be exported by "
".yaml files, which can be found on goauthentik.io and can be exported by "
"authentik."
msgstr ""
"Pliki .akflow, które można znaleźć na goauthentik.io i mogą być "
"Pliki .yaml, które można znaleźć na goauthentik.io i mogą być "
"wyeksportowane przez authentik."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts

View File

@ -56,7 +56,7 @@ msgid "-"
msgstr ""
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ""
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts

View File

@ -59,8 +59,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow dosyaları, goauthentik.io'da bulunabilir ve authentik tarafından ihraç edilebilir."
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml dosyaları, goauthentik.io'da bulunabilir ve authentik tarafından ihraç edilebilir."
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -60,8 +60,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow 文件,可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml 文件,可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -61,8 +61,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow 文件,这些文件可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml 文件,这些文件可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -56,9 +56,9 @@ msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ""
".akflow files, which can be found on goauthentik.io and can be exported by "
".yaml files, which can be found on goauthentik.io and can be exported by "
"authentik."
msgstr ".akflow 文件,可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
msgstr ".yaml 文件,可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -61,8 +61,8 @@ msgid "-"
msgstr "-"
#: src/pages/flows/FlowImportForm.ts
msgid ".akflow files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".akflow 文件,这些文件可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
msgid ".yaml files, which can be found on goauthentik.io and can be exported by authentik."
msgstr ".yaml 文件,这些文件可以在 goauthentik.io 上找到,也可以通过 authentik 导出。"
#: src/pages/stages/authenticator_totp/AuthenticatorTOTPStageForm.ts
msgid "6 digits, widely compatible"

View File

@ -7,7 +7,7 @@ import { t } from "@lingui/macro";
import { customElement } from "lit/decorators.js";
import { SourcesApi, StatusEnum } from "@goauthentik/api";
import { SourcesApi, TaskStatusEnum } from "@goauthentik/api";
interface LDAPSyncStats {
healthy: number;
@ -50,7 +50,7 @@ export class LDAPSyncStatusChart extends AKChart<LDAPSyncStats> {
});
health.forEach((task) => {
if (task.status !== StatusEnum.Successful) {
if (task.status !== TaskStatusEnum.Successful) {
sourceKey = "failed";
}
const now = new Date().getTime();

View File

@ -32,7 +32,7 @@ export class FlowImportForm extends Form<Flow> {
<ak-form-element-horizontal label=${t`Flow`} name="flow">
<input type="file" value="" class="pf-c-form-control" />
<p class="pf-c-form__helper-text">
${t`.akflow files, which can be found on goauthentik.io and can be exported by authentik.`}
${t`.yaml files, which can be found on goauthentik.io and can be exported by authentik.`}
</p>
</ak-form-element-horizontal>
</form>`;

View File

@ -24,7 +24,7 @@ import PFPage from "@patternfly/patternfly/components/Page/page.css";
import PFGrid from "@patternfly/patternfly/layouts/Grid/grid.css";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import { LDAPSource, SourcesApi, StatusEnum } from "@goauthentik/api";
import { LDAPSource, SourcesApi, TaskStatusEnum } from "@goauthentik/api";
@customElement("ak-source-ldap-view")
export class LDAPSourceViewPage extends LitElement {
@ -145,9 +145,9 @@ export class LDAPSourceViewPage extends LitElement {
return html`<ul class="pf-c-list">
${tasks.map((task) => {
let header = "";
if (task.status === StatusEnum.Warning) {
if (task.status === TaskStatusEnum.Warning) {
header = t`Task finished with warnings`;
} else if (task.status === StatusEnum.Error) {
} else if (task.status === TaskStatusEnum.Error) {
header = t`Task finished with errors`;
} else {
header = t`Last sync: ${task.taskFinishTimestamp.toLocaleString()}`;

View File

@ -14,7 +14,7 @@ import { customElement, property } from "lit/decorators.js";
import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css";
import { AdminApi, StatusEnum, Task } from "@goauthentik/api";
import { AdminApi, Task, TaskStatusEnum } from "@goauthentik/api";
@customElement("ak-system-task-list")
export class SystemTaskListPage extends TablePage<Task> {
@ -67,11 +67,11 @@ export class SystemTaskListPage extends TablePage<Task> {
taskStatus(task: Task): TemplateResult {
switch (task.status) {
case StatusEnum.Successful:
case TaskStatusEnum.Successful:
return html`<ak-label color=${PFColor.Green}>${t`Successful`}</ak-label>`;
case StatusEnum.Warning:
case TaskStatusEnum.Warning:
return html`<ak-label color=${PFColor.Orange}>${t`Warning`}</ak-label>`;
case StatusEnum.Error:
case TaskStatusEnum.Error:
return html`<ak-label color=${PFColor.Red}>${t`Error`}</ak-label>`;
default:
return html`<ak-label color=${PFColor.Grey}>${t`Unknown`}</ak-label>`;