Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/apps/account-ui/.cache_pay4aj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/AccountRow.tsx":"1","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/DeviceActivity.tsx":"2","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/LinkedAccounts.tsx":"3","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/SigningIn.tsx":"4","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/constants.ts":"5","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/methods.ts":"6","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/parse-links.ts":"7","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/parse-response.ts":"8","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/representations.ts":"9","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/request.ts":"10","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api.ts":"11","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/applications/Applications.tsx":"12","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/datalist/EmptyRow.tsx":"13","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/format/format-date.ts":"14","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/formatter/format-date.ts":"15","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/page/Page.tsx":"16","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/environment.ts":"17","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/groups/Groups.tsx":"18","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/i18n.ts":"19","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/i18next.d.ts":"20","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/keycloak.ts":"21","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/main.tsx":"22","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/personal-info/FormField.tsx":"23","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/personal-info/PersonalInfo.tsx":"24","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/EditTheResource.tsx":"25","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/PermissionRequest.tsx":"26","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ResourceToolbar.tsx":"27","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/Resources.tsx":"28","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ResourcesTab.tsx":"29","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ShareTheResource.tsx":"30","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/SharedWith.tsx":"31","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/ErrorPage.tsx":"32","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/PageNav.tsx":"33","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/Root.tsx":"34","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/routes.tsx":"35","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/isRecord.ts":"36","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/joinPath.ts":"37","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/usePromise.ts":"38","/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/vite-env.d.ts":"39"},{"size":3603,"mtime":1687878949654,"results":"40","hashOfConfig":"41"},{"size":8375,"mtime":1687878955313,"results":"42","hashOfConfig":"41"},{"size":2537,"mtime":1680530884708,"results":"43","hashOfConfig":"41"},{"size":7740,"mtime":1688060114961,"results":"44","hashOfConfig":"41"},{"size":104,"mtime":1680530884708,"results":"45","hashOfConfig":"41"},{"size":3380,"mtime":1684503932682,"results":"46","hashOfConfig":"41"},{"size":827,"mtime":1680530884709,"results":"47","hashOfConfig":"41"},{"size":1333,"mtime":1680530884709,"results":"48","hashOfConfig":"41"},{"size":4092,"mtime":1680530884709,"results":"49","hashOfConfig":"41"},{"size":1122,"mtime":1684503932682,"results":"50","hashOfConfig":"41"},{"size":2404,"mtime":1684503932682,"results":"51","hashOfConfig":"41"},{"size":9945,"mtime":1687878955313,"results":"52","hashOfConfig":"41"},{"size":484,"mtime":1680530884709,"results":"53","hashOfConfig":"41"},{"size":717,"mtime":1680530884709,"results":"54","hashOfConfig":"41"},{"size":695,"mtime":1680530884710,"results":"55","hashOfConfig":"41"},{"size":582,"mtime":1680530884710,"results":"56","hashOfConfig":"41"},{"size":2599,"mtime":1687878955313,"results":"57","hashOfConfig":"41"},{"size":4245,"mtime":1688060114961,"results":"58","hashOfConfig":"41"},{"size":693,"mtime":1687878955313,"results":"59","hashOfConfig":"41"},{"size":530,"mtime":1687878955314,"results":"60","hashOfConfig":"41"},{"size":215,"mtime":1687878955314,"results":"61","hashOfConfig":"41"},{"size":753,"mtime":1684503932683,"results":"62","hashOfConfig":"41"},{"size":3177,"mtime":1688060114283,"results":"63","hashOfConfig":"41"},{"size":3984,"mtime":1687878955314,"results":"64","hashOfConfig":"41"},{"size":2777,"mtime":1680530884711,"results":"65","hashOfConfig":"41"},{"size":3505,"mtime":1688060114961,"results":"66","hashOfConfig":"41"},{"size":2331,"mtime":1688060114961,"results":"67","hashOfConfig":"41"},{"size":972,"mtime":1680530884711,"results":"68","hashOfConfig":"41"},{"size":11111,"mtime":1688060114961,"results":"69","hashOfConfig":"41"},{"size":5472,"mtime":1688060114961,"results":"70","hashOfConfig":"41"},{"size":508,"mtime":1680530884711,"results":"71","hashOfConfig":"41"},{"size":1376,"mtime":1684503932683,"results":"72","hashOfConfig":"41"},{"size":3419,"mtime":1688060114961,"results":"73","hashOfConfig":"41"},{"size":2475,"mtime":1686080896351,"results":"74","hashOfConfig":"41"},{"size":1793,"mtime":1687878955315,"results":"75","hashOfConfig":"41"},{"size":125,"mtime":1680530884712,"results":"76","hashOfConfig":"41"},{"size":575,"mtime":1680530884712,"results":"77","hashOfConfig":"41"},{"size":2097,"mtime":1680530884712,"results":"78","hashOfConfig":"41"},{"size":38,"mtime":1680530884712,"results":"79","hashOfConfig":"41"},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"cjsaaq",{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/AccountRow.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/DeviceActivity.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/LinkedAccounts.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/account-security/SigningIn.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/constants.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/methods.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/parse-links.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/parse-response.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/representations.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api/request.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/api.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/applications/Applications.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/datalist/EmptyRow.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/format/format-date.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/formatter/format-date.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/components/page/Page.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/environment.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/groups/Groups.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/i18n.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/i18next.d.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/keycloak.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/main.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/personal-info/FormField.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/personal-info/PersonalInfo.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/EditTheResource.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/PermissionRequest.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ResourceToolbar.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/Resources.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ResourcesTab.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/ShareTheResource.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/resources/SharedWith.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/ErrorPage.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/PageNav.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/root/Root.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/routes.tsx",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/isRecord.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/joinPath.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/utils/usePromise.ts",[],[],"/Users/jshandel/Documents/keycloak/js/apps/account-ui/src/vite-env.d.ts",[],[]]
8 changes: 4 additions & 4 deletions js/apps/account-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"lint": "wireit"
},
"dependencies": {
"@patternfly/patternfly": "^4.224.2",
"@patternfly/react-core": "^4.276.8",
"@patternfly/react-icons": "^4.93.6",
"@patternfly/react-table": "^4.113.0",
"@patternfly/patternfly": "^5.0.0-prerelease.10",
"@patternfly/react-core": "^5.0.0-prerelease.13",
"@patternfly/react-icons": "^5.0.0-prerelease.7",
"@patternfly/react-table": "^5.0.0-prerelease.13",
"i18next": "^23.2.3",
"i18next-http-backend": "^2.2.1",
"keycloak-js": "workspace:*",
Expand Down
9 changes: 7 additions & 2 deletions js/apps/account-ui/src/account-security/AccountRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
DataListItem,
DataListItemCells,
DataListItemRow,
Icon,
Label,
Split,
SplitItem,
Expand Down Expand Up @@ -97,7 +98,9 @@ export const AccountRow = ({ account, isLinked = false }: AccountRowProps) => {
variant="link"
onClick={() => unLink(account)}
>
<UnlinkIcon size="sm" /> {t("unLink")}
<Icon iconSize="sm">
<UnlinkIcon /> {t("unLink")}
</Icon>
</Button>
)}
{!isLinked && (
Expand All @@ -106,7 +109,9 @@ export const AccountRow = ({ account, isLinked = false }: AccountRowProps) => {
variant="link"
onClick={() => link(account)}
>
<LinkIcon size="sm" /> {t("link")}
<Icon iconSize="sm">
<LinkIcon /> {t("link")}
</Icon>
</Button>
)}
</DataListAction>
Expand Down
10 changes: 6 additions & 4 deletions js/apps/account-ui/src/account-security/SigningIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ import {
DataListItem,
DataListItemCells,
DataListItemRow,
Dropdown,
DropdownItem,
KebabToggle,
PageSection,
Spinner,
Split,
SplitItem,
Title,
} from "@patternfly/react-core";
import {
Dropdown,
DropdownItem,
KebabToggle,
} from "@patternfly/react-core/deprecated";
import { CSSProperties, useState } from "react";
import { Trans, useTranslation } from "react-i18next";
import { ContinueCancelModal, useAlerts } from "ui-shared";
Expand Down Expand Up @@ -43,7 +45,7 @@ const MobileLink = ({ title, onClick }: MobileLinkProps) => {
<Dropdown
isPlain
position="right"
toggle={<KebabToggle onToggle={setOpen} />}
toggle={<KebabToggle onToggle={(_event, val) => setOpen(val)} />}
className="pf-u-display-none-on-lg"
isOpen={open}
dropdownItems={[
Expand Down
2 changes: 1 addition & 1 deletion js/apps/account-ui/src/groups/Groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Groups = () => {
label={t("directMembership")}
id="directMembership-checkbox"
isChecked={directMembership}
onChange={(checked) => setDirectMembership(checked)}
onChange={(_event, checked) => setDirectMembership(checked)}
/>
</DataListCell>,
]}
Expand Down
16 changes: 9 additions & 7 deletions js/apps/account-ui/src/personal-info/FormField.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FormGroup, Select, SelectOption } from "@patternfly/react-core";
import { get } from "lodash-es";
import { FormGroup } from "@patternfly/react-core";
import { Select, SelectOption } from "@patternfly/react-core/deprecated";
// import { get } from "lodash-es";
import { useState } from "react";
import { Controller, useFormContext } from "react-hook-form";
import { useTranslation } from "react-i18next";
Expand All @@ -15,7 +16,7 @@ type FormFieldProps = {
export const FormField = ({ attribute }: FormFieldProps) => {
const { t } = useTranslation();
const {
formState: { errors },
// formState: { errors },
register,
control,
} = useFormContext();
Expand All @@ -35,10 +36,11 @@ export const FormField = ({ attribute }: FormFieldProps) => {
}
fieldId={attribute.name}
isRequired={attribute.required}
validated={get(errors, fieldName(attribute.name)) ? "error" : "default"}
helperTextInvalid={
get(errors, fieldName(attribute.name))?.message as string
}
// TODO: Use FormHelperText, HelperText, and HelperTextItem directly inside children. helperText, helperTextInvalid and validated props have been removed.
// validated={get(errors, fieldName(attribute.name)) ? "error" : "default"}
// helperTextInvalid={
// get(errors, fieldName(attribute.name))?.message as string
// }
>
{isSelect(attribute) ? (
<Controller
Expand Down
Loading