@keycloakify/keycloak-account-ui 260007.0.2 → 260200.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/KcAccountUiLoader.js.map +1 -1
- package/keycloak-theme/account/KcAccountUi.tsx +11 -11
- package/keycloak-theme/account/account-security/AccountRow.tsx +2 -2
- package/keycloak-theme/account/account-security/DeviceActivity.tsx +2 -2
- package/keycloak-theme/account/account-security/LinkedAccounts.tsx +1 -1
- package/keycloak-theme/account/account-security/LinkedAccountsToolbar.tsx +1 -1
- package/keycloak-theme/account/account-security/SigningIn.tsx +61 -6
- package/keycloak-theme/account/api/methods.ts +2 -0
- package/keycloak-theme/account/api/representations.ts +8 -3
- package/keycloak-theme/account/applications/Applications.tsx +2 -2
- package/keycloak-theme/account/components/datalist/EmptyRow.tsx +1 -1
- package/keycloak-theme/account/components/page/Page.tsx +1 -1
- package/keycloak-theme/account/content/ContentComponent.tsx +1 -1
- package/keycloak-theme/account/groups/Groups.tsx +1 -1
- package/keycloak-theme/account/i18n/i18n.ts +6 -7
- package/keycloak-theme/account/i18n/messages_ca.properties +44 -43
- package/keycloak-theme/account/i18n/messages_de.properties +23 -22
- package/keycloak-theme/account/i18n/messages_el.properties +13 -13
- package/keycloak-theme/account/i18n/messages_en.properties +8 -7
- package/keycloak-theme/account/i18n/messages_es.properties +140 -46
- package/keycloak-theme/account/i18n/messages_fa.properties +9 -9
- package/keycloak-theme/account/i18n/messages_fi.properties +8 -8
- package/keycloak-theme/account/i18n/messages_fr.properties +14 -13
- package/keycloak-theme/account/i18n/messages_hr.properties +225 -0
- package/keycloak-theme/account/i18n/messages_hu.properties +15 -14
- package/keycloak-theme/account/i18n/messages_it.properties +141 -49
- package/keycloak-theme/account/i18n/messages_ja.properties +189 -6
- package/keycloak-theme/account/i18n/messages_ka.properties +6 -5
- package/keycloak-theme/account/i18n/messages_nl.properties +52 -3
- package/keycloak-theme/account/i18n/messages_pl.properties +35 -0
- package/keycloak-theme/account/i18n/messages_pt.properties +2 -2
- package/keycloak-theme/account/i18n/messages_pt_BR.properties +4 -4
- package/keycloak-theme/account/i18n/messages_ro.properties +13 -0
- package/keycloak-theme/account/i18n/messages_sl.properties +9 -0
- package/keycloak-theme/account/i18n/messages_th.properties +9 -9
- package/keycloak-theme/account/i18n/messages_tr.properties +2 -2
- package/keycloak-theme/account/i18n/messages_zh_CN.properties +2 -2
- package/keycloak-theme/account/oid4vci/Oid4Vci.tsx +1 -1
- package/keycloak-theme/account/personal-info/PersonalInfo.tsx +2 -2
- package/keycloak-theme/account/resources/EditTheResource.tsx +1 -1
- package/keycloak-theme/account/resources/PermissionRequest.tsx +3 -3
- package/keycloak-theme/account/resources/ResourceToolbar.tsx +1 -1
- package/keycloak-theme/account/resources/Resources.tsx +1 -1
- package/keycloak-theme/account/resources/ResourcesTab.tsx +3 -3
- package/keycloak-theme/account/resources/ShareTheResource.tsx +2 -2
- package/keycloak-theme/account/root/Header.tsx +2 -2
- package/keycloak-theme/account/root/PageNav.tsx +3 -2
- package/keycloak-theme/account/root/Root.tsx +57 -15
- package/keycloak-theme/account/routes.tsx +14 -23
- package/keycloak-theme/account/utils/useAccountAlerts.ts +1 -1
- package/package.json +13 -13
- package/src/KcAccountUiLoader.tsx +21 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/keycloak-theme/account/root/ErrorPage.tsx +0 -69
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
|
|
3
|
-
// @ts-nocheck
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
Button,
|
|
7
|
-
Modal,
|
|
8
|
-
ModalVariant,
|
|
9
|
-
Page,
|
|
10
|
-
Text,
|
|
11
|
-
TextContent,
|
|
12
|
-
TextVariants,
|
|
13
|
-
} from "@patternfly/react-core";
|
|
14
|
-
import { useTranslation } from "react-i18next";
|
|
15
|
-
import { isRouteErrorResponse, useRouteError } from "react-router-dom";
|
|
16
|
-
|
|
17
|
-
type ErrorPageProps = {
|
|
18
|
-
error?: unknown;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const ErrorPage = (props: ErrorPageProps) => {
|
|
22
|
-
const { t } = useTranslation();
|
|
23
|
-
const error = useRouteError() ?? props.error;
|
|
24
|
-
const errorMessage = getErrorMessage(error);
|
|
25
|
-
|
|
26
|
-
function onRetry() {
|
|
27
|
-
location.href = location.origin + location.pathname;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<Page>
|
|
32
|
-
<Modal
|
|
33
|
-
variant={ModalVariant.small}
|
|
34
|
-
title={t("somethingWentWrong")}
|
|
35
|
-
titleIconVariant="danger"
|
|
36
|
-
showClose={false}
|
|
37
|
-
isOpen
|
|
38
|
-
actions={[
|
|
39
|
-
<Button key="tryAgain" variant="primary" onClick={onRetry}>
|
|
40
|
-
{t("tryAgain")}
|
|
41
|
-
</Button>,
|
|
42
|
-
]}
|
|
43
|
-
>
|
|
44
|
-
<TextContent>
|
|
45
|
-
<Text>{t("somethingWentWrongDescription")}</Text>
|
|
46
|
-
{errorMessage && (
|
|
47
|
-
<Text component={TextVariants.small}>{errorMessage}</Text>
|
|
48
|
-
)}
|
|
49
|
-
</TextContent>
|
|
50
|
-
</Modal>
|
|
51
|
-
</Page>
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
function getErrorMessage(error: unknown): string | null {
|
|
56
|
-
if (typeof error === "string") {
|
|
57
|
-
return error;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (isRouteErrorResponse(error)) {
|
|
61
|
-
return error.statusText;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (error instanceof Error) {
|
|
65
|
-
return error.message;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return null;
|
|
69
|
-
}
|