web/admin: fix linting errors

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-30 23:18:07 +02:00
parent c0cfd75a2e
commit f9382ed32e
4 changed files with 4 additions and 15 deletions

View File

@ -32,18 +32,6 @@ export class AdminURLManager {
return `/administration/sources/${rest}`; return `/administration/sources/${rest}`;
} }
static tokens(rest: string): string {
return `/administration/tokens/${rest}`;
}
}
export class UserURLManager {
static tokens(rest: string): string {
return `/-/user/tokens/${rest}`;
}
} }
export class AppURLManager { export class AppURLManager {

View File

@ -100,6 +100,9 @@ export class Sidebar extends LitElement {
PFNav, PFNav,
AKGlobal, AKGlobal,
css` css`
:host {
z-index: 100;
}
.pf-c-nav__link.pf-m-current::after, .pf-c-nav__link.pf-m-current::after,
.pf-c-nav__link.pf-m-current:hover::after, .pf-c-nav__link.pf-m-current:hover::after,
.pf-c-nav__item.pf-m-current:not(.pf-m-expanded) .pf-c-nav__link::after { .pf-c-nav__item.pf-m-current:not(.pf-m-expanded) .pf-c-nav__link::after {

View File

@ -4,7 +4,6 @@ import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import { Form } from "../../elements/forms/Form"; import { Form } from "../../elements/forms/Form";
import { ifDefined } from "lit-html/directives/if-defined";
import "../../elements/forms/HorizontalFormElement"; import "../../elements/forms/HorizontalFormElement";
import "../../elements/CodeMirror"; import "../../elements/CodeMirror";
import YAML from "yaml"; import YAML from "yaml";
@ -42,7 +41,7 @@ export class InvitationForm extends Form<Invitation> {
label=${gettext("Expires")} label=${gettext("Expires")}
?required=${true} ?required=${true}
name="expires"> name="expires">
<input type="date" value="${ifDefined(this.invitation?.expires)}" class="pf-c-form-control" required> <input type="date" class="pf-c-form-control" required>
</ak-form-element-horizontal> </ak-form-element-horizontal>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${gettext("Attributes")} label=${gettext("Attributes")}

View File

@ -12,7 +12,6 @@ import { Table, TableColumn } from "../../../elements/table/Table";
import { PAGE_SIZE } from "../../../constants"; import { PAGE_SIZE } from "../../../constants";
import { CoreApi, Token } from "authentik-api"; import { CoreApi, Token } from "authentik-api";
import { DEFAULT_CONFIG } from "../../../api/Config"; import { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminURLManager } from "../../../api/legacy";
import "./UserTokenForm"; import "./UserTokenForm";
@customElement("ak-user-token-list") @customElement("ak-user-token-list")