All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.useFormatDate-abfcb505.js.map Maven / Gradle / Ivy
Go to download
The user inferface to administrate the Keycloak server.
{"version":3,"file":"useFormatDate-abfcb505.js","sources":["../../src/utils/useFormatDate.ts"],"sourcesContent":["import { useWhoAmI } from \"../context/whoami/WhoAmI\";\n\nexport const FORMAT_DATE_AND_TIME: Intl.DateTimeFormatOptions = {\n dateStyle: \"long\",\n timeStyle: \"short\",\n};\n\nexport default function useFormatDate() {\n const { whoAmI } = useWhoAmI();\n const locale = whoAmI.getLocale();\n\n return function formatDate(date: Date, options?: Intl.DateTimeFormatOptions) {\n return date.toLocaleString(locale, options);\n };\n}\n"],"names":["FORMAT_DATE_AND_TIME","useFormatDate","whoAmI","useWhoAmI","locale","date","options"],"mappings":"yCAEO,MAAMA,EAAmD,CAC9D,UAAW,OACX,UAAW,OACb,EAEA,SAAwBC,GAAgB,CAChC,KAAA,CAAE,OAAAC,GAAWC,IACbC,EAASF,EAAO,YAEf,OAAA,SAAoBG,EAAYC,EAAsC,CACpE,OAAAD,EAAK,eAAeD,EAAQE,CAAO,CAAA,CAE9C"}