-
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.
- Loading branch information
1 parent
89834e4
commit 710a9c9
Showing
99 changed files
with
99 additions
and
29 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react' | ||
import isFunction from 'lodash/isFunction' | ||
|
||
type Props = { | ||
logErrorToMyService?: (error: any, errorInfo: any) => void | ||
children: React.ReactNode | ||
} | ||
|
||
type State = { | ||
hasError: boolean | ||
} | ||
|
||
class ErrorBoundary extends React.Component<Props, State> { | ||
constructor(props: Props) { | ||
super(props) | ||
this.state = { hasError: false } | ||
} | ||
|
||
static getDerivedStateFromError(error: any) { | ||
// Update state so the next render will show the fallback UI. | ||
return { hasError: true } | ||
} | ||
|
||
componentDidCatch(error: any, errorInfo: any) { | ||
// You can also log the error to an error reporting service | ||
if (isFunction(this.props.logErrorToMyService)) { | ||
this.props.logErrorToMyService(error, errorInfo) | ||
} else { | ||
console.log('ERROR') | ||
console.log(error) | ||
console.log(errorInfo) | ||
} | ||
} | ||
|
||
render() { | ||
if (this.state.hasError) { | ||
// You can render any custom fallback UI | ||
return <h1>Something went wrong.</h1> | ||
} | ||
|
||
return this.props.children | ||
} | ||
} | ||
|
||
export default ErrorBoundary |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './ErrorBoundary' | ||
export * from './ErrorBoundary' |
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
4 changes: 2 additions & 2 deletions
4
src/stories/Keycloakify/Steps.stories.tsx → src/stories/Keycloak/Steps.stories.tsx
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
Binary file modified
BIN
+3.7 KB
(100%)
tests/components.spec.ts-snapshots/Assets-Icon-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.7 KB
(100%)
tests/components.spec.ts-snapshots/Assets-Icon-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...omponents.spec.ts-snapshots/Example-Headline-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
tests/components.spec.ts-snapshots/Example-Headline-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
...ponents.spec.ts-snapshots/Example-StatusPill-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10 Bytes
(100%)
...s/components.spec.ts-snapshots/Example-StatusPill-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+190 Bytes
(100%)
.../components.spec.ts-snapshots/Example-Swiper-feature-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+190 Bytes
(100%)
tests/components.spec.ts-snapshots/Example-Swiper-feature-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+140 Bytes
(100%)
...ponents.spec.ts-snapshots/Example-Swiper-testimonial-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+134 Bytes
(100%)
...s/components.spec.ts-snapshots/Example-Swiper-testimonial-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.74 KB
(78%)
tests/components.spec.ts-snapshots/Example-Tabs-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.74 KB
(78%)
tests/components.spec.ts-snapshots/Example-Tabs-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1004 Bytes
(100%)
...ponents.spec.ts-snapshots/Example-TileExpand-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.08 KB
(100%)
...s/components.spec.ts-snapshots/Example-TileExpand-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+92 Bytes
(100%)
tests/components.spec.ts-snapshots/Form-Button-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+92 Bytes
(100%)
tests/components.spec.ts-snapshots/Form-Button-default-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.8 KB
tests/components.spec.ts-snapshots/Form-Button-disabled-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.8 KB
tests/components.spec.ts-snapshots/Form-Button-disabled-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.5 KB
tests/components.spec.ts-snapshots/Form-Button-icon-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.5 KB
tests/components.spec.ts-snapshots/Form-Button-icon-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.2 KB
tests/components.spec.ts-snapshots/Form-Button-loading-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.2 KB
tests/components.spec.ts-snapshots/Form-Button-loading-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.3 KB
tests/components.spec.ts-snapshots/Form-Button-variants-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.3 KB
tests/components.spec.ts-snapshots/Form-Button-variants-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+150 Bytes
(100%)
.../components.spec.ts-snapshots/Form-FormGroup-default-1-Google-Chrome-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+145 Bytes
(100%)
tests/components.spec.ts-snapshots/Form-FormGroup-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+160 Bytes
(100%)
.../components.spec.ts-snapshots/Form-FormInput-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+160 Bytes
(100%)
tests/components.spec.ts-snapshots/Form-FormInput-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+110 Bytes
(100%)
...omponents.spec.ts-snapshots/Form-SplitButton-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+110 Bytes
(100%)
tests/components.spec.ts-snapshots/Form-SplitButton-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+11.3 KB
...mponents.spec.ts-snapshots/Form-SplitButton-disabled-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file added
BIN
+11.3 KB
tests/components.spec.ts-snapshots/Form-SplitButton-disabled-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
...s/components.spec.ts-snapshots/Form-SplitButton-icon-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.7 KB
tests/components.spec.ts-snapshots/Form-SplitButton-icon-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
...omponents.spec.ts-snapshots/Form-SplitButton-loading-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.8 KB
tests/components.spec.ts-snapshots/Form-SplitButton-loading-1-chromium-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
...mponents.spec.ts-snapshots/Form-SplitButton-variants-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file added
BIN
+12.2 KB
tests/components.spec.ts-snapshots/Form-SplitButton-variants-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+494 Bytes
(100%)
...onents.spec.ts-snapshots/Form-TimeoutControl-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+494 Bytes
(100%)
.../components.spec.ts-snapshots/Form-TimeoutControl-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-59.9 KB
(33%)
....spec.ts-snapshots/Keycloak-KeycloakTemplate-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-59.9 KB
(33%)
...nents.spec.ts-snapshots/Keycloak-KeycloakTemplate-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+148 KB
(260%)
....spec.ts-snapshots/Keycloak-KeycloakTemplate-sign-in-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+78.9 KB
(190%)
...nents.spec.ts-snapshots/Keycloak-KeycloakTemplate-sign-in-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+138 KB
(250%)
...s-snapshots/Keycloak-KeycloakTemplate-swiper-feature-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+68.6 KB
(180%)
...pec.ts-snapshots/Keycloak-KeycloakTemplate-swiper-feature-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-20.9 KB
(77%)
...pshots/Keycloak-KeycloakTemplate-swiper-testimonials-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-20.9 KB
(77%)
...s-snapshots/Keycloak-KeycloakTemplate-swiper-testimonials-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+146 KB
(260%)
...-snapshots/Keycloak-KeycloakTemplate-update-password-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+75.4 KB
(180%)
...ec.ts-snapshots/Keycloak-KeycloakTemplate-update-password-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-31.6 KB
(64%)
.../components.spec.ts-snapshots/Keycloak-Popup-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-31.6 KB
(64%)
tests/components.spec.ts-snapshots/Keycloak-Popup-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+396 Bytes
(100%)
tests/components.spec.ts-snapshots/Keycloak-Popup-right-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+364 Bytes
(100%)
tests/components.spec.ts-snapshots/Keycloak-Popup-right-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-69 KB
(23%)
...onents.spec.ts-snapshots/Keycloak-SignInForm-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-69 KB
(23%)
.../components.spec.ts-snapshots/Keycloak-SignInForm-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-63.8 KB
(29%)
...ts-snapshots/Keycloak-SignInForm-registration-step-1-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-63.8 KB
(29%)
...spec.ts-snapshots/Keycloak-SignInForm-registration-step-1-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-59.9 KB
(34%)
...ts-snapshots/Keycloak-SignInForm-registration-step-2-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-59.9 KB
(34%)
...spec.ts-snapshots/Keycloak-SignInForm-registration-step-2-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-76 KB
(16%)
...spec.ts-snapshots/Keycloak-SignInForm-reset-password-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-76 KB
(16%)
...ents.spec.ts-snapshots/Keycloak-SignInForm-reset-password-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-64.9 KB
(27%)
...ponents.spec.ts-snapshots/Keycloak-SignInForm-social-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-64.9 KB
(27%)
...s/components.spec.ts-snapshots/Keycloak-SignInForm-social-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+92 Bytes
(100%)
...s/components.spec.ts-snapshots/Keycloak-Step-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+92 Bytes
(100%)
tests/components.spec.ts-snapshots/Keycloak-Step-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+244 Bytes
(100%)
...ponents.spec.ts-snapshots/Layout-BottomPanel-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+244 Bytes
(100%)
...s/components.spec.ts-snapshots/Layout-BottomPanel-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+44 Bytes
(100%)
...omponents.spec.ts-snapshots/Layout-Header-breadcrumb-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+44 Bytes
(100%)
tests/components.spec.ts-snapshots/Layout-Header-breadcrumb-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...s/components.spec.ts-snapshots/Layout-Header-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
tests/components.spec.ts-snapshots/Layout-Header-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+245 Bytes
(100%)
...ts.spec.ts-snapshots/Modals-ShareDeviceModal-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+270 Bytes
(100%)
...ponents.spec.ts-snapshots/Modals-ShareDeviceModal-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+227 Bytes
(100%)
....spec.ts-snapshots/Notification-Notification-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+227 Bytes
(100%)
...nents.spec.ts-snapshots/Notification-Notification-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...nents.spec.ts-snapshots/Organism-CaPoolModal-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+8 Bytes
(100%)
...components.spec.ts-snapshots/Organism-CaPoolModal-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+82 Bytes
(100%)
...s.spec.ts-snapshots/Organism-ConditionFilter-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+82 Bytes
(100%)
...onents.spec.ts-snapshots/Organism-ConditionFilter-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+306 Bytes
(100%)
....ts-snapshots/Organism-ResourceToggleCreator-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+306 Bytes
(100%)
....spec.ts-snapshots/Organism-ResourceToggleCreator-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+110 Bytes
(100%)
...s-snapshots/Pages-InitializedByDifferentUser-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+108 Bytes
(100%)
...pec.ts-snapshots/Pages-InitializedByDifferentUser-default-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-31 Bytes
(100%)
tests/components.spec.ts-snapshots/Table-Table-default-1-Google-Chrome-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-27 Bytes
(100%)
tests/components.spec.ts-snapshots/Table-Table-default-1-chromium-darwin.png
Oops, something went wrong.