web: bump prettier from 2.8.8 to 3.0.0 in /web (#6329)
* web: bump prettier from 2.8.8 to 3.0.0 in /web Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * update formatting and config Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -92,8 +92,10 @@ export class RecentEventsCard extends Table<Event> {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    renderEmpty(): TemplateResult {
 | 
			
		||||
        return super.renderEmpty(html`<ak-empty-state header=${msg("No Events found.")}>
 | 
			
		||||
            <div slot="body">${msg("No matching events could be found.")}</div>
 | 
			
		||||
        </ak-empty-state>`);
 | 
			
		||||
        return super.renderEmpty(
 | 
			
		||||
            html`<ak-empty-state header=${msg("No Events found.")}>
 | 
			
		||||
                <div slot="body">${msg("No matching events could be found.")}</div>
 | 
			
		||||
            </ak-empty-state>`,
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -121,23 +121,22 @@ export class BoundStagesList extends Table<FlowStageBinding> {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    renderEmpty(): TemplateResult {
 | 
			
		||||
        return super.renderEmpty(html`<ak-empty-state
 | 
			
		||||
            header=${msg("No Stages bound")}
 | 
			
		||||
            icon="pf-icon-module"
 | 
			
		||||
        >
 | 
			
		||||
            <div slot="body">${msg("No stages are currently bound to this flow.")}</div>
 | 
			
		||||
            <div slot="primary">
 | 
			
		||||
                <ak-forms-modal>
 | 
			
		||||
                    <span slot="submit"> ${msg("Create")} </span>
 | 
			
		||||
                    <span slot="header"> ${msg("Create Stage binding")} </span>
 | 
			
		||||
                    <ak-stage-binding-form slot="form" targetPk=${ifDefined(this.target)}>
 | 
			
		||||
                    </ak-stage-binding-form>
 | 
			
		||||
                    <button slot="trigger" class="pf-c-button pf-m-primary">
 | 
			
		||||
                        ${msg("Bind stage")}
 | 
			
		||||
                    </button>
 | 
			
		||||
                </ak-forms-modal>
 | 
			
		||||
            </div>
 | 
			
		||||
        </ak-empty-state>`);
 | 
			
		||||
        return super.renderEmpty(
 | 
			
		||||
            html`<ak-empty-state header=${msg("No Stages bound")} icon="pf-icon-module">
 | 
			
		||||
                <div slot="body">${msg("No stages are currently bound to this flow.")}</div>
 | 
			
		||||
                <div slot="primary">
 | 
			
		||||
                    <ak-forms-modal>
 | 
			
		||||
                        <span slot="submit"> ${msg("Create")} </span>
 | 
			
		||||
                        <span slot="header"> ${msg("Create Stage binding")} </span>
 | 
			
		||||
                        <ak-stage-binding-form slot="form" targetPk=${ifDefined(this.target)}>
 | 
			
		||||
                        </ak-stage-binding-form>
 | 
			
		||||
                        <button slot="trigger" class="pf-c-button pf-m-primary">
 | 
			
		||||
                            ${msg("Bind stage")}
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </ak-forms-modal>
 | 
			
		||||
                </div>
 | 
			
		||||
            </ak-empty-state>`,
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    renderToolbar(): TemplateResult {
 | 
			
		||||
 | 
			
		||||
@ -40,16 +40,14 @@ export class FlowViewPage extends AKElement {
 | 
			
		||||
    flow!: Flow;
 | 
			
		||||
 | 
			
		||||
    static get styles(): CSSResult[] {
 | 
			
		||||
        return [PFBase, PFPage, PFDescriptionList, PFButton, PFCard, PFContent, PFGrid].concat(
 | 
			
		||||
            css`
 | 
			
		||||
                img.pf-icon {
 | 
			
		||||
                    max-height: 24px;
 | 
			
		||||
                }
 | 
			
		||||
                ak-tabs {
 | 
			
		||||
                    height: 100%;
 | 
			
		||||
                }
 | 
			
		||||
            `,
 | 
			
		||||
        );
 | 
			
		||||
        return [PFBase, PFPage, PFDescriptionList, PFButton, PFCard, PFContent, PFGrid].concat(css`
 | 
			
		||||
            img.pf-icon {
 | 
			
		||||
                max-height: 24px;
 | 
			
		||||
            }
 | 
			
		||||
            ak-tabs {
 | 
			
		||||
                height: 100%;
 | 
			
		||||
            }
 | 
			
		||||
        `);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    render(): TemplateResult {
 | 
			
		||||
 | 
			
		||||
@ -170,27 +170,26 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    renderEmpty(): TemplateResult {
 | 
			
		||||
        return super.renderEmpty(html`<ak-empty-state
 | 
			
		||||
            header=${msg("No Policies bound.")}
 | 
			
		||||
            icon="pf-icon-module"
 | 
			
		||||
        >
 | 
			
		||||
            <div slot="body">${msg("No policies are currently bound to this object.")}</div>
 | 
			
		||||
            <div slot="primary">
 | 
			
		||||
                <ak-forms-modal size=${PFSize.Medium}>
 | 
			
		||||
                    <span slot="submit"> ${msg("Create")} </span>
 | 
			
		||||
                    <span slot="header"> ${msg("Create Binding")} </span>
 | 
			
		||||
                    <ak-policy-binding-form
 | 
			
		||||
                        slot="form"
 | 
			
		||||
                        targetPk=${ifDefined(this.target)}
 | 
			
		||||
                        ?policyOnly=${this.policyOnly}
 | 
			
		||||
                    >
 | 
			
		||||
                    </ak-policy-binding-form>
 | 
			
		||||
                    <button slot="trigger" class="pf-c-button pf-m-primary">
 | 
			
		||||
                        ${msg("Create Binding")}
 | 
			
		||||
                    </button>
 | 
			
		||||
                </ak-forms-modal>
 | 
			
		||||
            </div>
 | 
			
		||||
        </ak-empty-state>`);
 | 
			
		||||
        return super.renderEmpty(
 | 
			
		||||
            html`<ak-empty-state header=${msg("No Policies bound.")} icon="pf-icon-module">
 | 
			
		||||
                <div slot="body">${msg("No policies are currently bound to this object.")}</div>
 | 
			
		||||
                <div slot="primary">
 | 
			
		||||
                    <ak-forms-modal size=${PFSize.Medium}>
 | 
			
		||||
                        <span slot="submit"> ${msg("Create")} </span>
 | 
			
		||||
                        <span slot="header"> ${msg("Create Binding")} </span>
 | 
			
		||||
                        <ak-policy-binding-form
 | 
			
		||||
                            slot="form"
 | 
			
		||||
                            targetPk=${ifDefined(this.target)}
 | 
			
		||||
                            ?policyOnly=${this.policyOnly}
 | 
			
		||||
                        >
 | 
			
		||||
                        </ak-policy-binding-form>
 | 
			
		||||
                        <button slot="trigger" class="pf-c-button pf-m-primary">
 | 
			
		||||
                            ${msg("Create Binding")}
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </ak-forms-modal>
 | 
			
		||||
                </div>
 | 
			
		||||
            </ak-empty-state>`,
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    renderToolbar(): TemplateResult {
 | 
			
		||||
 | 
			
		||||
@ -191,9 +191,8 @@ export class LDAPProviderViewPage extends AKElement {
 | 
			
		||||
                                    class="pf-c-form-control"
 | 
			
		||||
                                    readonly
 | 
			
		||||
                                    type="text"
 | 
			
		||||
                                    value=${`cn=${
 | 
			
		||||
                                        this.me?.user.username
 | 
			
		||||
                                    },ou=users,${this.provider?.baseDn?.toLowerCase()}`}
 | 
			
		||||
                                    value=${`cn=${this.me?.user
 | 
			
		||||
                                        .username},ou=users,${this.provider?.baseDn?.toLowerCase()}`}
 | 
			
		||||
                                />
 | 
			
		||||
                            </div>
 | 
			
		||||
                            <div class="pf-c-form__group">
 | 
			
		||||
 | 
			
		||||
@ -120,58 +120,62 @@ export class SAMLProviderViewPage extends AKElement {
 | 
			
		||||
    renderRelatedObjects(): TemplateResult {
 | 
			
		||||
        const relatedObjects = [];
 | 
			
		||||
        if (this.provider?.assignedApplicationName) {
 | 
			
		||||
            relatedObjects.push(html`<div class="pf-c-description-list__group">
 | 
			
		||||
                <dt class="pf-c-description-list__term">
 | 
			
		||||
                    <span class="pf-c-description-list__text">${msg("Metadata")}</span>
 | 
			
		||||
                </dt>
 | 
			
		||||
                <dd class="pf-c-description-list__description">
 | 
			
		||||
                    <div class="pf-c-description-list__text">
 | 
			
		||||
                        <a
 | 
			
		||||
                            class="pf-c-button pf-m-primary"
 | 
			
		||||
                            target="_blank"
 | 
			
		||||
                            href=${ifDefined(this.provider?.urlDownloadMetadata)}
 | 
			
		||||
                        >
 | 
			
		||||
                            ${msg("Download")}
 | 
			
		||||
                        </a>
 | 
			
		||||
                        <ak-action-button
 | 
			
		||||
                            class="pf-m-secondary"
 | 
			
		||||
                            .apiRequest=${() => {
 | 
			
		||||
                                if (!navigator.clipboard) {
 | 
			
		||||
                                    return Promise.resolve(
 | 
			
		||||
                                        showMessage({
 | 
			
		||||
                                            level: MessageLevel.info,
 | 
			
		||||
                                            message: this.provider?.urlDownloadMetadata || "",
 | 
			
		||||
                                        }),
 | 
			
		||||
            relatedObjects.push(
 | 
			
		||||
                html`<div class="pf-c-description-list__group">
 | 
			
		||||
                    <dt class="pf-c-description-list__term">
 | 
			
		||||
                        <span class="pf-c-description-list__text">${msg("Metadata")}</span>
 | 
			
		||||
                    </dt>
 | 
			
		||||
                    <dd class="pf-c-description-list__description">
 | 
			
		||||
                        <div class="pf-c-description-list__text">
 | 
			
		||||
                            <a
 | 
			
		||||
                                class="pf-c-button pf-m-primary"
 | 
			
		||||
                                target="_blank"
 | 
			
		||||
                                href=${ifDefined(this.provider?.urlDownloadMetadata)}
 | 
			
		||||
                            >
 | 
			
		||||
                                ${msg("Download")}
 | 
			
		||||
                            </a>
 | 
			
		||||
                            <ak-action-button
 | 
			
		||||
                                class="pf-m-secondary"
 | 
			
		||||
                                .apiRequest=${() => {
 | 
			
		||||
                                    if (!navigator.clipboard) {
 | 
			
		||||
                                        return Promise.resolve(
 | 
			
		||||
                                            showMessage({
 | 
			
		||||
                                                level: MessageLevel.info,
 | 
			
		||||
                                                message: this.provider?.urlDownloadMetadata || "",
 | 
			
		||||
                                            }),
 | 
			
		||||
                                        );
 | 
			
		||||
                                    }
 | 
			
		||||
                                    return navigator.clipboard.writeText(
 | 
			
		||||
                                        this.provider?.urlDownloadMetadata || "",
 | 
			
		||||
                                    );
 | 
			
		||||
                                }
 | 
			
		||||
                                return navigator.clipboard.writeText(
 | 
			
		||||
                                    this.provider?.urlDownloadMetadata || "",
 | 
			
		||||
                                );
 | 
			
		||||
                            }}
 | 
			
		||||
                        >
 | 
			
		||||
                            ${msg("Copy download URL")}
 | 
			
		||||
                        </ak-action-button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </dd>
 | 
			
		||||
            </div>`);
 | 
			
		||||
                                }}
 | 
			
		||||
                            >
 | 
			
		||||
                                ${msg("Copy download URL")}
 | 
			
		||||
                            </ak-action-button>
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </dd>
 | 
			
		||||
                </div>`,
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
        if (this.signer) {
 | 
			
		||||
            relatedObjects.push(html`<div class="pf-c-description-list__group">
 | 
			
		||||
                <dt class="pf-c-description-list__term">
 | 
			
		||||
                    <span class="pf-c-description-list__text"
 | 
			
		||||
                        >${msg("Download signing certificate")}</span
 | 
			
		||||
                    >
 | 
			
		||||
                </dt>
 | 
			
		||||
                <dd class="pf-c-description-list__description">
 | 
			
		||||
                    <div class="pf-c-description-list__text">
 | 
			
		||||
                        <a
 | 
			
		||||
                            class="pf-c-button pf-m-primary"
 | 
			
		||||
                            href=${this.signer.certificateDownloadUrl}
 | 
			
		||||
                            >${msg("Download")}</a
 | 
			
		||||
            relatedObjects.push(
 | 
			
		||||
                html`<div class="pf-c-description-list__group">
 | 
			
		||||
                    <dt class="pf-c-description-list__term">
 | 
			
		||||
                        <span class="pf-c-description-list__text"
 | 
			
		||||
                            >${msg("Download signing certificate")}</span
 | 
			
		||||
                        >
 | 
			
		||||
                    </div>
 | 
			
		||||
                </dd>
 | 
			
		||||
            </div>`);
 | 
			
		||||
                    </dt>
 | 
			
		||||
                    <dd class="pf-c-description-list__description">
 | 
			
		||||
                        <div class="pf-c-description-list__text">
 | 
			
		||||
                            <a
 | 
			
		||||
                                class="pf-c-button pf-m-primary"
 | 
			
		||||
                                href=${this.signer.certificateDownloadUrl}
 | 
			
		||||
                                >${msg("Download")}</a
 | 
			
		||||
                            >
 | 
			
		||||
                        </div>
 | 
			
		||||
                    </dd>
 | 
			
		||||
                </div>`,
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
        return html` <div class="pf-c-card pf-l-grid__item pf-m-12-col">
 | 
			
		||||
            <div class="pf-c-card__title">${msg("Related objects")}</div>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user