web: fix linting errors

This commit is contained in:
Jens Langhammer 2021-02-16 22:35:55 +01:00
parent a647917074
commit 68eefd083e
6 changed files with 7 additions and 5 deletions

View File

@ -4,6 +4,7 @@ from typing import Optional
from django.http import HttpRequest, HttpResponse
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.views.decorators.clickjacking import xframe_options_sameorigin
from django.views.decorators.csrf import csrf_exempt
from structlog.stdlib import get_logger
@ -114,6 +115,7 @@ class SAMLSSOBindingRedirectView(SAMLSSOView):
return None
@method_decorator(xframe_options_sameorigin, name="dispatch")
@method_decorator(csrf_exempt, name="dispatch")
class SAMLSSOBindingPOSTView(SAMLSSOView):
"""SAML Handler for SSO/POST bindings"""

View File

@ -40,7 +40,7 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
} else if (item.user) {
return gettext(`User ${item.user.name}`);
} else {
return gettext(``);
return gettext("");
}
}

View File

@ -1,4 +1,3 @@
import { commands } from "codemirror";
import { CSSResult, customElement, html, LitElement, TemplateResult } from "lit-element";
import { COMMON_STYLES } from "../../common/styles";
import { SpinnerSize } from "../Spinner";

View File

@ -38,7 +38,7 @@ export class ApplicationViewPage extends LitElement {
render(): TemplateResult {
if (!this.application) {
return html`<ak-loading-state></ak-loading-state>`;;
return html`<ak-loading-state></ak-loading-state>`;
}
return html`<section class="pf-c-page__main-section pf-m-light">
<div class="pf-c-content">

View File

@ -4,6 +4,7 @@ import { COMMON_STYLES } from "../../common/styles";
import "../../elements/buttons/ModalButton";
import "../../elements/buttons/SpinnerButton";
import "./elements/utils/LoadingState";
import "./SAMLProviderViewPage";
import "./OAuth2ProviderViewPage";
@ -26,7 +27,7 @@ export class ProviderViewPage extends LitElement {
render(): TemplateResult {
if (!this.provider) {
return html`<ak-loading-state></ak-loading-state>`;;
return html`<ak-loading-state></ak-loading-state>`;
}
switch (this.provider?.object_type) {
case "saml":

View File

@ -1,5 +1,5 @@
import { html, TemplateResult } from "lit-html";
import { SpinnerSize } from "./elements/Spinner";
import "./elements/utils/LoadingState";
export function getCookie(name: string): string {
let cookieValue = "";