Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
theme.keycloak.v2.admin.resources.assets.RealmRolesSection-2eaf95bf.js.map Maven / Gradle / Ivy
Go to download
The user inferface to administrate the Keycloak server.
{"version":3,"file":"RealmRolesSection-2eaf95bf.js","sources":["../../src/realm-roles/RealmRolesSection.tsx"],"sourcesContent":["import { PageSection } from \"@patternfly/react-core\";\n\nimport { adminClient } from \"../admin-client\";\nimport { RolesList } from \"../components/roles-list/RolesList\";\nimport { ViewHeader } from \"../components/view-header/ViewHeader\";\nimport { useAccess } from \"../context/access/Access\";\nimport { useRealm } from \"../context/realm-context/RealmContext\";\nimport helpUrls from \"../help-urls\";\nimport { toAddRole } from \"./routes/AddRole\";\nimport { toRealmRole } from \"./routes/RealmRole\";\n\nexport default function RealmRolesSection() {\n const { realm } = useRealm();\n const { hasAccess } = useAccess();\n const isManager = hasAccess(\"manage-realm\");\n\n const loader = (first?: number, max?: number, search?: string) => {\n const params: { [name: string]: string | number } = {\n first: first!,\n max: max!,\n };\n\n const searchParam = search || \"\";\n\n if (searchParam) {\n params.search = searchParam;\n }\n\n return adminClient.roles.find(params);\n };\n\n return (\n <>\n \n \n \n toRealmRole({ realm, id: roleId, tab: \"details\" })\n }\n isReadOnly={!isManager}\n />\n \n >\n );\n}\n"],"names":["RealmRolesSection","realm","useRealm","hasAccess","useAccess","isManager","loader","first","max","search","params","searchParam","adminClient","jsxs","Fragment","jsx","ViewHeader","helpUrls","PageSection","RolesList","toAddRole","roleId","toRealmRole"],"mappings":"6tBAWA,SAAwBA,GAAoB,CACpC,KAAA,CAAE,MAAAC,GAAUC,IACZ,CAAE,UAAAC,GAAcC,IAChBC,EAAYF,EAAU,cAAc,EAEpCG,EAAS,CAACC,EAAgBC,EAAcC,IAAoB,CAChE,MAAMC,EAA8C,CAClD,MAAAH,EACA,IAAAC,CAAA,EAGIG,EAAcF,GAAU,GAE9B,OAAIE,IACFD,EAAO,OAASC,GAGXC,EAAY,MAAM,KAAKF,CAAM,CAAA,EAGtC,OAEIG,EAAA,KAAAC,WAAA,CAAA,SAAA,CAAAC,EAAA,IAACC,EAAA,CACC,SAAS,cACT,OAAO,oBACP,QAASC,EAAS,aAAA,CACpB,EACAF,MAACG,GAAY,QAAQ,QAAQ,QAAS,CAAE,QAAS,aAC/C,SAAAH,EAAA,IAACI,EAAA,CACC,OAAAb,EACA,SAAUc,EAAU,CAAE,MAAAnB,EAAO,EAC7B,SAAWoB,GACTC,EAAY,CAAE,MAAArB,EAAO,GAAIoB,EAAQ,IAAK,UAAW,EAEnD,WAAY,CAAChB,CAAA,CAAA,EAEjB,CACF,CAAA,CAAA,CAEJ"}