A few documentation changes.

This commit is contained in:
Ken Sternberg
2024-05-15 08:21:40 -07:00
parent 234d52de3b
commit c46fc3e100
3 changed files with 13 additions and 10 deletions

View File

@ -86,6 +86,7 @@ export class AdminOverviewPage extends AKElement {
render(): TemplateResult { render(): TemplateResult {
const name = this.user?.user.name ?? this.user?.user.username; const name = this.user?.user.name ?? this.user?.user.username;
return html`<ak-page-header icon="" header="" description=${msg("General system status")}> return html`<ak-page-header icon="" header="" description=${msg("General system status")}>
<span slot="header"> ${msg(str`Welcome, ${name}.`)} </span> <span slot="header"> ${msg(str`Welcome, ${name}.`)} </span>
</ak-page-header> </ak-page-header>

View File

@ -4,6 +4,7 @@ import "@goauthentik/elements/cards/AggregateCard.js";
import { msg } from "@lit/localize"; import { msg } from "@lit/localize";
import { html } from "lit"; import { html } from "lit";
import { customElement, property } from "lit/decorators.js"; import { customElement, property } from "lit/decorators.js";
import { ifDefined } from "lit/directives/if-defined.js";
import { map } from "lit/directives/map.js"; import { map } from "lit/directives/map.js";
import PFList from "@patternfly/patternfly/components/List/list.css"; import PFList from "@patternfly/patternfly/components/List/list.css";
@ -11,18 +12,17 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
export type QuickAction = [label: string, url: string, isExternal?: boolean]; export type QuickAction = [label: string, url: string, isExternal?: boolean];
export interface IQuickActionsCard {
title?: string;
actions: QuickAction[];
}
/** /**
* class QuickActionsCard * class QuickActionsCard
* element ak-quick-actions-card * element ak-quick-actions-card
* *
* Specialized card for navigation. * Specialized card for navigation.
*/ */
export interface IQuickActionsCard {
title: string;
actions: QuickAction[];
}
@customElement("ak-quick-actions-card") @customElement("ak-quick-actions-card")
export class QuickActionsCard extends AKElement implements IQuickActionsCard { export class QuickActionsCard extends AKElement implements IQuickActionsCard {
static get styles() { static get styles() {

View File

@ -71,7 +71,9 @@ export const PromiseRejected: StoryObj = {
leftJustified: false, leftJustified: false,
failureMessage: undefined, failureMessage: undefined,
}, },
render: ({ icon, header, headerLink, subtext, leftJustified, failureMessage }: IAggregatePromiseCard) => { render: (
{ icon, header, headerLink, subtext, leftJustified, failureMessage }: IAggregatePromiseCard,
) => {
const runThis = (timeout: number, value: string) => const runThis = (timeout: number, value: string) =>
new Promise((_resolve, reject) => setTimeout(reject, timeout, value)); new Promise((_resolve, reject) => setTimeout(reject, timeout, value));