forked from goauthentik/authentik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website/docs: update preview status of different features (goauthenti…
…k#11817) * remove preview from RAC Signed-off-by: Jens Langhammer <[email protected]> * add preview page instead of info box Signed-off-by: Jens Langhammer <[email protected]> * remove preview from rbac Signed-off-by: Jens Langhammer <[email protected]> * add preview to gdtc Signed-off-by: Jens Langhammer <[email protected]> * add preview to kerberos source Signed-off-by: Jens Langhammer <[email protected]> --------- Signed-off-by: Jens Langhammer <[email protected]>
- Loading branch information
Showing
16 changed files
with
100 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,11 +129,7 @@ export class RACProviderViewPage extends AKElement { | |
if (!this.provider) { | ||
return html``; | ||
} | ||
return html`<div slot="header" class="pf-c-banner pf-m-info"> | ||
${msg("RAC is in preview.")} | ||
<a href="mailto:hello+feature/[email protected]">${msg("Send us feedback!")}</a> | ||
</div> | ||
${this.provider?.assignedApplicationName | ||
return html`${this.provider?.assignedApplicationName | ||
? html`` | ||
: html`<div slot="header" class="pf-c-banner pf-m-warning"> | ||
${msg("Warning: Provider is not used by an Application.")} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import { msg } from "@lit/localize"; | |
import { CSSResult, TemplateResult, html } from "lit"; | ||
import { customElement, property } from "lit/decorators.js"; | ||
|
||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; | ||
import PFButton from "@patternfly/patternfly/components/Button/button.css"; | ||
import PFBase from "@patternfly/patternfly/patternfly-base.css"; | ||
|
||
|
@@ -53,17 +52,13 @@ export class ObjectPermissionModal extends AKElement { | |
objectPk?: string | number; | ||
|
||
static get styles(): CSSResult[] { | ||
return [PFBase, PFButton, PFBanner]; | ||
return [PFBase, PFButton]; | ||
} | ||
|
||
render(): TemplateResult { | ||
return html` | ||
<ak-forms-modal .showSubmitButton=${false} cancelText=${msg("Close")}> | ||
<span slot="header"> ${msg("Update Permissions")} </span> | ||
<div class="pf-c-banner pf-m-info" slot="above-form"> | ||
${msg("RBAC is in preview.")} | ||
<a href="mailto:[email protected]">${msg("Send us feedback!")}</a> | ||
</div> | ||
<ak-rbac-object-permission-modal-form | ||
slot="form" | ||
.model=${this.model} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ import { msg } from "@lit/localize"; | |
import { html, nothing } from "lit"; | ||
import { customElement, property } from "lit/decorators.js"; | ||
|
||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; | ||
import PFCard from "@patternfly/patternfly/components/Card/card.css"; | ||
import PFPage from "@patternfly/patternfly/components/Page/page.css"; | ||
import PFGrid from "@patternfly/patternfly/layouts/Grid/grid.css"; | ||
|
@@ -31,66 +30,60 @@ export class ObjectPermissionPage extends AKElement { | |
embedded = false; | ||
|
||
static get styles() { | ||
return [PFBase, PFGrid, PFPage, PFCard, PFBanner]; | ||
return [PFBase, PFGrid, PFPage, PFCard]; | ||
} | ||
|
||
render() { | ||
return html`${!this.embedded | ||
? html`<div class="pf-c-banner pf-m-info"> | ||
${msg("RBAC is in preview.")} | ||
<a href="mailto:[email protected]">${msg("Send us feedback!")}</a> | ||
</div>` | ||
return html` <ak-tabs pageIdentifier="permissionPage" ?vertical=${!this.embedded}> | ||
${this.model === RbacPermissionsAssignedByUsersListModelEnum.CoreUser | ||
? this.renderCoreUser() | ||
: nothing} | ||
<ak-tabs pageIdentifier="permissionPage" ?vertical=${!this.embedded}> | ||
${this.model === RbacPermissionsAssignedByUsersListModelEnum.CoreUser | ||
? this.renderCoreUser() | ||
: nothing} | ||
${this.model === RbacPermissionsAssignedByUsersListModelEnum.RbacRole | ||
? this.renderRbacRole() | ||
: nothing} | ||
<section | ||
slot="page-object-user" | ||
data-tab-title="${msg("User Object Permissions")}" | ||
class="pf-c-page__main-section pf-m-no-padding-mobile" | ||
> | ||
<div class="pf-l-grid pf-m-gutter"> | ||
<div class="pf-c-card pf-l-grid__item pf-m-12-col"> | ||
<div class="pf-c-card__title">${msg("User Object Permissions")}</div> | ||
<div class="pf-c-card__body"> | ||
${msg("Permissions set on users which affect this object.")} | ||
</div> | ||
<div class="pf-c-card__body"> | ||
<ak-rbac-user-object-permission-table | ||
.model=${this.model} | ||
.objectPk=${this.objectPk} | ||
> | ||
</ak-rbac-user-object-permission-table> | ||
</div> | ||
${this.model === RbacPermissionsAssignedByUsersListModelEnum.RbacRole | ||
? this.renderRbacRole() | ||
: nothing} | ||
<section | ||
slot="page-object-user" | ||
data-tab-title="${msg("User Object Permissions")}" | ||
class="pf-c-page__main-section pf-m-no-padding-mobile" | ||
> | ||
<div class="pf-l-grid pf-m-gutter"> | ||
<div class="pf-c-card pf-l-grid__item pf-m-12-col"> | ||
<div class="pf-c-card__title">${msg("User Object Permissions")}</div> | ||
<div class="pf-c-card__body"> | ||
${msg("Permissions set on users which affect this object.")} | ||
</div> | ||
<div class="pf-c-card__body"> | ||
<ak-rbac-user-object-permission-table | ||
.model=${this.model} | ||
.objectPk=${this.objectPk} | ||
> | ||
</ak-rbac-user-object-permission-table> | ||
</div> | ||
</div> | ||
</section> | ||
<section | ||
slot="page-object-role" | ||
data-tab-title="${msg("Role Object Permissions")}" | ||
class="pf-c-page__main-section pf-m-no-padding-mobile" | ||
> | ||
<div class="pf-l-grid pf-m-gutter"> | ||
<div class="pf-c-card pf-l-grid__item pf-m-12-col"> | ||
<div class="pf-c-card__title">${msg("Role Object Permissions")}</div> | ||
<div class="pf-c-card__body"> | ||
${msg("Permissions set on roles which affect this object.")} | ||
</div> | ||
<div class="pf-c-card__body"> | ||
<ak-rbac-role-object-permission-table | ||
.model=${this.model} | ||
.objectPk=${this.objectPk} | ||
> | ||
</ak-rbac-role-object-permission-table> | ||
</div> | ||
</div> | ||
</section> | ||
<section | ||
slot="page-object-role" | ||
data-tab-title="${msg("Role Object Permissions")}" | ||
class="pf-c-page__main-section pf-m-no-padding-mobile" | ||
> | ||
<div class="pf-l-grid pf-m-gutter"> | ||
<div class="pf-c-card pf-l-grid__item pf-m-12-col"> | ||
<div class="pf-c-card__title">${msg("Role Object Permissions")}</div> | ||
<div class="pf-c-card__body"> | ||
${msg("Permissions set on roles which affect this object.")} | ||
</div> | ||
<div class="pf-c-card__body"> | ||
<ak-rbac-role-object-permission-table | ||
.model=${this.model} | ||
.objectPk=${this.objectPk} | ||
> | ||
</ak-rbac-role-object-permission-table> | ||
</div> | ||
</div> | ||
</section> | ||
</ak-tabs>`; | ||
</div> | ||
</section> | ||
</ak-tabs>`; | ||
} | ||
|
||
renderCoreUser() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,10 @@ import { TablePage } from "@goauthentik/elements/table/TablePage"; | |
import "@patternfly/elements/pf-tooltip/pf-tooltip.js"; | ||
|
||
import { msg } from "@lit/localize"; | ||
import { CSSResult, TemplateResult, html } from "lit"; | ||
import { TemplateResult, html } from "lit"; | ||
import { customElement, property } from "lit/decorators.js"; | ||
import { ifDefined } from "lit/directives/if-defined.js"; | ||
|
||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; | ||
|
||
import { RbacApi, Role } from "@goauthentik/api"; | ||
|
||
@customElement("ak-role-list") | ||
|
@@ -37,10 +35,6 @@ export class RoleListPage extends TablePage<Role> { | |
@property() | ||
order = "name"; | ||
|
||
static get styles(): CSSResult[] { | ||
return [...super.styles, PFBanner]; | ||
} | ||
|
||
async apiEndpoint(): Promise<PaginatedResponse<Role>> { | ||
return new RbacApi(DEFAULT_CONFIG).rbacRolesList(await this.defaultEndpointConfig()); | ||
} | ||
|
@@ -78,10 +72,6 @@ export class RoleListPage extends TablePage<Role> { | |
description=${ifDefined(this.pageDescription())} | ||
> | ||
</ak-page-header> | ||
<div class="pf-c-banner pf-m-info"> | ||
${msg("RBAC is in preview.")} | ||
<a href="mailto:[email protected]">${msg("Send us feedback!")}</a> | ||
</div> | ||
<section class="pf-c-page__main-section pf-m-no-padding-mobile"> | ||
<div class="pf-c-card">${this.renderTable()}</div> | ||
</section>`; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ import { msg } from "@lit/localize"; | |
import { CSSResult, TemplateResult, html } from "lit"; | ||
import { customElement, property, state } from "lit/decorators.js"; | ||
|
||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; | ||
import PFButton from "@patternfly/patternfly/components/Button/button.css"; | ||
import PFCard from "@patternfly/patternfly/components/Card/card.css"; | ||
import PFContent from "@patternfly/patternfly/components/Content/content.css"; | ||
|
@@ -54,7 +55,17 @@ export class KerberosSourceViewPage extends AKElement { | |
syncState?: SyncStatus; | ||
|
||
static get styles(): CSSResult[] { | ||
return [PFBase, PFPage, PFButton, PFGrid, PFContent, PFCard, PFDescriptionList, PFList]; | ||
return [ | ||
PFBase, | ||
PFPage, | ||
PFButton, | ||
PFGrid, | ||
PFContent, | ||
PFCard, | ||
PFDescriptionList, | ||
PFBanner, | ||
PFList, | ||
]; | ||
} | ||
|
||
constructor() { | ||
|
@@ -121,6 +132,12 @@ export class KerberosSourceViewPage extends AKElement { | |
this.load(); | ||
}} | ||
> | ||
<div slot="header" class="pf-c-banner pf-m-info"> | ||
${msg("Kerberos Source is in preview.")} | ||
<a href="mailto:hello+feature/[email protected]" | ||
>${msg("Send us feedback!")}</a | ||
> | ||
</div> | ||
<div class="pf-l-grid pf-m-gutter"> | ||
<div class="pf-c-card pf-l-grid__item pf-m-12-col"> | ||
<div class="pf-c-card__body"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import { msg } from "@lit/localize"; | |
import { TemplateResult, html } from "lit"; | ||
import { customElement } from "lit/decorators.js"; | ||
|
||
import PFBanner from "@patternfly/patternfly/components/Banner/banner.css"; | ||
|
||
import { AuthenticatorEndpointGDTCStage, StagesApi } from "@goauthentik/api"; | ||
|
||
@customElement("ak-stage-authenticator-endpoint-gdtc-form") | ||
|
@@ -33,8 +35,16 @@ export class AuthenticatorEndpointGDTCStageForm extends BaseStageForm<Authentica | |
} | ||
} | ||
|
||
static get styles() { | ||
return super.styles.concat(PFBanner); | ||
} | ||
|
||
renderForm(): TemplateResult { | ||
return html` <span> | ||
return html`<div class="pf-c-banner pf-m-info"> | ||
${msg("Endpoint Google Chrome Device Trust is in preview.")} | ||
<a href="mailto:hello+feature/[email protected]">${msg("Send us feedback!")}</a> | ||
</div> | ||
<span> | ||
${msg( | ||
"Stage used to verify users' browsers using Google Chrome Device Trust. This stage can be used in authentication/authorization flows.", | ||
)} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.