@micha.bigler/ui-core-micha 1.4.36 → 1.4.38
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/dist/components/AccessCodeManager.js +1 -1
- package/dist/components/SecurityComponent.js +1 -1
- package/dist/i18n/authTranslations.js +10 -0
- package/package.json +1 -1
- package/src/components/AccessCodeManager.jsx +1 -1
- package/src/components/SecurityComponent.jsx +1 -1
- package/src/i18n/authTranslations.js +10 -0
|
@@ -5,7 +5,7 @@ import { Box, Stack, Typography, Slider, Button, TextField, Chip, Alert, Circula
|
|
|
5
5
|
import CloseIcon from '@mui/icons-material/Close';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
// Pfad ggf. anpassen je nach Struktur: von src/auth/components zu src/auth/authApi
|
|
8
|
-
import { fetchAccessCodes, createAccessCode, deleteAccessCode, } from '../authApi';
|
|
8
|
+
import { fetchAccessCodes, createAccessCode, deleteAccessCode, } from '../auth/authApi';
|
|
9
9
|
export function AccessCodeManager() {
|
|
10
10
|
const { t } = useTranslation();
|
|
11
11
|
const [codes, setCodes] = useState([]);
|
|
@@ -36,6 +36,6 @@ export function SecurityComponent({ fromRecovery = false, fromWeakLogin = false,
|
|
|
36
36
|
setErrorKey(err.code || 'Auth.PASSWORD_CHANGE_FAILED');
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
return (_jsxs(Box, { children: [fromRecovery && (_jsx(Alert, { severity: "warning", sx: { mb: 2 }, children: t('Security.RECOVERY_LOGIN_WARNING') })), fromWeakLogin && (_jsx(Alert, { severity: "warning", sx: { mb: 2 }, children: t('Security.WEAK_LOGIN_WARNING') })), messageKey && (_jsx(Alert, { severity: "success", sx: { mb: 2 }, children: t(messageKey) })), errorKey && (_jsx(Alert, { severity: "error", sx: { mb: 2 }, children: t(errorKey) })), _jsx(Typography, { variant: "h6", gutterBottom: true, children: t('
|
|
39
|
+
return (_jsxs(Box, { children: [fromRecovery && (_jsx(Alert, { severity: "warning", sx: { mb: 2 }, children: t('Security.RECOVERY_LOGIN_WARNING') })), fromWeakLogin && (_jsx(Alert, { severity: "warning", sx: { mb: 2 }, children: t('Security.WEAK_LOGIN_WARNING') })), messageKey && (_jsx(Alert, { severity: "success", sx: { mb: 2 }, children: t(messageKey) })), errorKey && (_jsx(Alert, { severity: "error", sx: { mb: 2 }, children: t(errorKey) })), _jsx(Typography, { variant: "h6", gutterBottom: true, children: t('Auth.LOGIN_PASSWORD_LABEL') }), _jsx(PasswordChangeForm, { onSubmit: handlePasswordChange }), _jsx(Divider, { sx: { my: 3 } }), _jsx(Typography, { variant: "h6", gutterBottom: true, children: t('Security.SOCIAL_SECTION_TITLE') }), _jsx(Typography, { variant: "body2", sx: { mb: 1 }, children: t('Security.SOCIAL_SECTION_DESCRIPTION') }), _jsx(SocialLoginButtons, { onProviderClick: handleSocialClick }), _jsx(Divider, { sx: { my: 3 } }), _jsx(PasskeysComponent, {}), _jsx(Divider, { sx: { my: 3 } }), _jsx(MFAComponent, {})] }));
|
|
40
40
|
}
|
|
41
41
|
;
|
|
@@ -955,5 +955,15 @@ export const authTranslations = {
|
|
|
955
955
|
"de": "Abgelaufen",
|
|
956
956
|
"fr": "Expirée",
|
|
957
957
|
"en": "Expired"
|
|
958
|
+
},
|
|
959
|
+
"Common.Yes": {
|
|
960
|
+
"de": "Ja",
|
|
961
|
+
"fr": "Oui",
|
|
962
|
+
"en": "Yes"
|
|
963
|
+
},
|
|
964
|
+
"Common.No": {
|
|
965
|
+
"de": "Nein",
|
|
966
|
+
"fr": "Non",
|
|
967
|
+
"en": "No"
|
|
958
968
|
}
|
|
959
969
|
};
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export function SecurityComponent({
|
|
|
74
74
|
|
|
75
75
|
{/* Password section */}
|
|
76
76
|
<Typography variant="h6" gutterBottom>
|
|
77
|
-
{t('
|
|
77
|
+
{t('Auth.LOGIN_PASSWORD_LABEL')}
|
|
78
78
|
</Typography>
|
|
79
79
|
<PasswordChangeForm onSubmit={handlePasswordChange} />
|
|
80
80
|
|
|
@@ -1002,5 +1002,15 @@ export const authTranslations = {
|
|
|
1002
1002
|
"de": "Abgelaufen",
|
|
1003
1003
|
"fr": "Expirée",
|
|
1004
1004
|
"en": "Expired"
|
|
1005
|
+
},
|
|
1006
|
+
"Common.Yes": {
|
|
1007
|
+
"de": "Ja",
|
|
1008
|
+
"fr": "Oui",
|
|
1009
|
+
"en": "Yes"
|
|
1010
|
+
},
|
|
1011
|
+
"Common.No": {
|
|
1012
|
+
"de": "Nein",
|
|
1013
|
+
"fr": "Non",
|
|
1014
|
+
"en": "No"
|
|
1005
1015
|
}
|
|
1006
1016
|
};
|