From 310801dd2f0c715572ec0ff59005bb7f08cb6318 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 27 Jul 2023 12:42:55 +0200 Subject: [PATCH] initial fix with class-name-updater https://github.com/patternfly/pf-codemods/tree/main/packages/class-name-updater Signed-off-by: Jens Langhammer --- web/src/admin/AdminInterface.ts | 36 +-- web/src/admin/DebugPage.ts | 20 +- .../admin/admin-overview/AdminOverviewPage.ts | 40 ++-- .../admin/admin-overview/DashboardUserPage.ts | 12 +- .../admin-overview/TopApplicationsTable.ts | 2 +- .../admin-overview/cards/RecentEventsCard.ts | 12 +- .../ApplicationCheckAccessForm.ts | 30 +-- .../admin/applications/ApplicationViewPage.ts | 100 ++++----- .../admin/applications/ProviderSelectModal.ts | 10 +- .../applications/wizard/ApplicationWizard.ts | 2 +- .../wizard/InitialApplicationWizardPage.ts | 12 +- .../wizard/TypeApplicationWizardPage.ts | 10 +- .../ldap/TypeLDAPApplicationWizardPage.ts | 4 +- .../link/TypeLinkApplicationWizardPage.ts | 6 +- .../TypeOAuthAPIApplicationWizardPage.ts | 2 +- .../oauth/TypeOAuthApplicationWizardPage.ts | 10 +- .../TypeOAuthImplicitApplicationWizardPage.ts | 2 +- .../proxy/TypeProxyApplicationWizardPage.ts | 6 +- .../saml/TypeSAMLApplicationWizardPage.ts | 10 +- .../TypeSAMLConfigApplicationWizardPage.ts | 6 +- .../TypeSAMLImportApplicationWizardPage.ts | 4 +- .../admin/crypto/CertificateGenerateForm.ts | 8 +- .../admin/crypto/CertificateKeyPairForm.ts | 12 +- .../admin/enterprise/EnterpriseLicenseForm.ts | 6 +- web/src/admin/events/EventListPage.ts | 2 +- web/src/admin/events/RuleForm.ts | 12 +- web/src/admin/events/TransportForm.ts | 18 +- web/src/admin/flows/BoundStagesList.ts | 14 +- web/src/admin/flows/FlowForm.ts | 62 +++--- web/src/admin/flows/FlowImportForm.ts | 28 +-- web/src/admin/flows/FlowViewPage.ts | 74 +++---- web/src/admin/flows/StageBindingForm.ts | 30 +-- web/src/admin/groups/GroupForm.ts | 22 +- web/src/admin/groups/GroupViewPage.ts | 54 ++--- web/src/admin/groups/MemberSelectModal.ts | 10 +- .../admin/outposts/OutpostDeploymentModal.ts | 42 ++-- web/src/admin/outposts/OutpostForm.ts | 20 +- web/src/admin/outposts/OutpostHealth.ts | 32 +-- .../ServiceConnectionKubernetesForm.ts | 28 +-- .../admin/outposts/ServiceConnectionWizard.ts | 12 +- web/src/admin/policies/BoundPoliciesList.ts | 14 +- web/src/admin/policies/PolicyTestForm.ts | 32 +-- web/src/admin/policies/PolicyWizard.ts | 12 +- .../policies/reputation/ReputationListPage.ts | 2 +- .../PropertyMappingLDAPForm.ts | 10 +- .../PropertyMappingNotification.ts | 6 +- .../PropertyMappingSAMLForm.ts | 14 +- .../PropertyMappingSCIMForm.ts | 6 +- .../PropertyMappingScopeForm.ts | 14 +- .../PropertyMappingTestForm.ts | 10 +- .../PropertyMappingWizard.ts | 12 +- web/src/admin/providers/ProviderWizard.ts | 22 +- .../providers/RelatedApplicationButton.ts | 2 +- .../providers/ldap/LDAPProviderViewPage.ts | 84 +++---- .../oauth2/OAuth2ProviderViewPage.ts | 144 ++++++------ .../providers/proxy/ProxyProviderViewPage.ts | 132 +++++------ .../radius/RadiusProviderViewPage.ts | 54 ++--- .../providers/saml/SAMLProviderViewPage.ts | 206 +++++++++--------- .../admin/providers/scim/SCIMProviderForm.ts | 42 ++-- .../providers/scim/SCIMProviderViewPage.ts | 58 ++--- web/src/admin/sources/SourceWizard.ts | 12 +- .../admin/sources/ldap/LDAPSourceViewPage.ts | 64 +++--- .../sources/oauth/OAuthSourceViewPage.ts | 100 ++++----- .../admin/sources/plex/PlexSourceViewPage.ts | 42 ++-- .../admin/sources/saml/SAMLSourceViewPage.ts | 84 +++---- web/src/admin/stages/StageWizard.ts | 12 +- .../authenticator_duo/DuoDeviceImportForm.ts | 8 +- .../stages/invitation/InvitationListLink.ts | 26 +-- web/src/admin/stages/prompt/PromptForm.ts | 86 ++++---- .../admin/system-tasks/SystemTaskListPage.ts | 24 +- web/src/admin/users/GroupSelectModal.ts | 12 +- web/src/admin/users/ServiceAccountForm.ts | 38 ++-- web/src/admin/users/UserActiveForm.ts | 12 +- web/src/admin/users/UserForm.ts | 32 +-- web/src/admin/users/UserPasswordForm.ts | 2 +- web/src/components/events/ObjectChangelog.ts | 2 +- web/src/components/events/UserEvents.ts | 2 +- web/src/elements/Alert.ts | 6 +- web/src/elements/CodeMirror.ts | 2 +- web/src/elements/Divider.ts | 2 +- web/src/elements/EmptyState.ts | 14 +- web/src/elements/Expand.ts | 10 +- web/src/elements/Label.ts | 6 +- web/src/elements/LoadingOverlay.ts | 2 +- web/src/elements/Markdown.ts | 2 +- web/src/elements/PageHeader.ts | 18 +- web/src/elements/Spinner.ts | 8 +- web/src/elements/Tabs.ts | 14 +- web/src/elements/TreeView.ts | 22 +- web/src/elements/buttons/Dropdown.ts | 4 +- web/src/elements/buttons/ModalButton.ts | 12 +- web/src/elements/cards/AggregateCard.ts | 30 +-- web/src/elements/chips/Chip.ts | 8 +- web/src/elements/chips/ChipGroup.ts | 8 +- .../enterprise/EnterpriseStatusBanner.ts | 2 +- web/src/elements/forms/ConfirmationForm.ts | 14 +- web/src/elements/forms/DeleteBulkForm.ts | 20 +- web/src/elements/forms/DeleteForm.ts | 18 +- web/src/elements/forms/Form.ts | 10 +- web/src/elements/forms/FormElement.ts | 10 +- web/src/elements/forms/FormGroup.ts | 22 +- .../elements/forms/HorizontalFormElement.ts | 34 +-- web/src/elements/forms/ModalForm.ts | 10 +- web/src/elements/forms/Radio.ts | 14 +- web/src/elements/forms/SearchSelect.ts | 30 +-- web/src/elements/messages/Message.ts | 14 +- web/src/elements/messages/MessageContainer.ts | 2 +- web/src/elements/notifications/APIDrawer.ts | 36 +-- web/src/elements/oauth/UserRefreshList.ts | 8 +- web/src/elements/router/Router404.ts | 12 +- web/src/elements/router/RouterOutlet.ts | 2 +- web/src/elements/sidebar/Sidebar.ts | 34 +-- web/src/elements/sidebar/SidebarBrand.ts | 10 +- web/src/elements/sidebar/SidebarItem.ts | 52 ++--- web/src/elements/sidebar/SidebarUser.ts | 8 +- web/src/elements/table/Table.ts | 54 ++--- web/src/elements/table/TableModal.ts | 8 +- web/src/elements/table/TablePage.ts | 12 +- web/src/elements/table/TablePagination.ts | 30 +-- web/src/elements/table/TableSearch.ts | 8 +- web/src/elements/user/SessionList.ts | 2 +- web/src/elements/user/UserConsentList.ts | 2 +- web/src/elements/wizard/ActionWizardPage.ts | 26 +-- web/src/elements/wizard/Wizard.ts | 36 +-- web/src/flow/FlowInspector.ts | 148 ++++++------- web/src/flow/FormStatic.ts | 12 +- web/src/flow/providers/oauth2/DeviceCode.ts | 20 +- web/src/flow/sources/apple/AppleLoginInit.ts | 14 +- web/src/flow/sources/plex/PlexLoginInit.ts | 14 +- web/src/flow/stages/RedirectStage.ts | 18 +- .../stages/access_denied/AccessDeniedStage.ts | 18 +- .../AuthenticatorDuoStage.ts | 18 +- .../AuthenticatorSMSStage.ts | 44 ++-- .../AuthenticatorStaticStage.ts | 24 +- .../AuthenticatorTOTPStage.ts | 26 +-- .../AuthenticatorValidateStage.ts | 18 +- .../AuthenticatorValidateStageCode.ts | 22 +- .../AuthenticatorValidateStageDuo.ts | 14 +- .../AuthenticatorValidateStageWebAuthn.ts | 16 +- .../WebAuthnAuthenticatorRegisterStage.ts | 20 +- .../flow/stages/autosubmit/AutosubmitStage.ts | 16 +- web/src/flow/stages/base.ts | 8 +- web/src/flow/stages/captcha/CaptchaStage.ts | 14 +- web/src/flow/stages/consent/ConsentStage.ts | 40 ++-- web/src/flow/stages/dummy/DummyStage.ts | 16 +- web/src/flow/stages/email/EmailStage.ts | 18 +- .../identification/IdentificationStage.ts | 48 ++-- web/src/flow/stages/password/PasswordStage.ts | 22 +- web/src/flow/stages/prompt/PromptStage.ts | 64 +++--- .../flow/stages/user_login/UserLoginStage.ts | 26 +-- web/src/standalone/api-browser/index.ts | 4 +- web/src/standalone/loading/index.ts | 16 +- .../user/LibraryPage/ApplicationEmptyState.ts | 16 +- web/src/user/LibraryPage/ApplicationList.ts | 10 +- web/src/user/LibraryPage/ApplicationSearch.ts | 2 +- .../user/LibraryPage/LibraryPageImpl.css.ts | 4 +- .../user/user-settings/UserSettingsPage.ts | 22 +- .../user-settings/details/UserPassword.ts | 8 +- .../details/UserSettingsFlowExecutor.ts | 10 +- .../details/stages/prompt/PromptStage.ts | 20 +- .../user/user-settings/mfa/MFADeviceForm.ts | 4 +- .../user-settings/sources/SourceSettings.ts | 24 +- .../sources/SourceSettingsOAuth.ts | 4 +- .../sources/SourceSettingsPlex.ts | 4 +- .../sources/SourceSettingsSAML.ts | 4 +- .../user-settings/tokens/UserTokenForm.ts | 6 +- 166 files changed, 1920 insertions(+), 1920 deletions(-) diff --git a/web/src/admin/AdminInterface.ts b/web/src/admin/AdminInterface.ts index fa6d4efa5..cc7f1e000 100644 --- a/web/src/admin/AdminInterface.ts +++ b/web/src/admin/AdminInterface.ts @@ -68,21 +68,21 @@ export class AdminInterface extends Interface { PFButton, PFDrawer, css` - .pf-c-page__main, - .pf-c-drawer__content, - .pf-c-page__drawer { + .pf-v5-c-page__main, + .pf-v5-c-drawer__content, + .pf-v5-c-page__drawer { z-index: auto !important; background-color: transparent; } .display-none { display: none; } - .pf-c-page { - background-color: var(--pf-c-page--BackgroundColor) !important; + .pf-v5-c-page { + background-color: var(--pf-v5-c-page--BackgroundColor) !important; } /* Global page background colour */ - :host([theme="dark"]) .pf-c-page { - --pf-c-page--BackgroundColor: var(--ak-dark-background); + :host([theme="dark"]) .pf-v5-c-page { + --pf-v5-c-page--BackgroundColor: var(--ak-dark-background); } `, ]; @@ -123,9 +123,9 @@ export class AdminInterface extends Interface { render(): TemplateResult { return html` -
+
${this.renderSidebarItems()} -
+
-
-
-
-
+
+
+
+
-
-
-
-
Sentry
-
+
+
+
+
Sentry
+
-
-
Misc
-
+
+
Misc
+