@movalib/movalib-commons 1.1.6 → 1.1.7
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/PV_README.md
CHANGED
|
@@ -21,7 +21,3 @@ Pour lier la librairie aux projets qui l'utilise, executer la commande suivnte
|
|
|
21
21
|
Les commandes exécutées (ci-dessous) permettent de contourner un problème de double référence vers react et react-dom lorsque les deux appli utilisent des Hook
|
|
22
22
|
|
|
23
23
|
"link": "npm link --only=production && npm link \"/home/dimitri/Projets/5 - MOVALIB/02 - Développement/Front-End/movalib-user-app/node_modules/react\" && npm link \"/home/dimitri/Projets/5 - MOVALIB/02 - Développement/Front-End/movalib-user-app/node_modules/react-dom\"",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
gsutil setmeta -h "Cache-Control:no-cache, must-revalidate" gs://app.movalib.com/*
|
|
27
|
-
gsutil setmeta -h "Cache-Control:no-cache, must-revalidate" gs://pro.movalib.com/*
|
|
@@ -44,7 +44,9 @@ var AccountValidation = function (_a) {
|
|
|
44
44
|
(0, react_1.useEffect)(function () {
|
|
45
45
|
var params = new URLSearchParams(location.search);
|
|
46
46
|
var token = params.get('token');
|
|
47
|
-
// Si cette variable est transmise,
|
|
47
|
+
// Si cette variable est transmise, cela signifie que le compte a été créé sans mot de passe
|
|
48
|
+
Logger_1.default.info(params);
|
|
49
|
+
Logger_1.default.info(Boolean(params.get('emptyPwd')));
|
|
48
50
|
var localEmptyPwd = Boolean(params.get('emptyPwd'));
|
|
49
51
|
setEmptyPwd(localEmptyPwd);
|
|
50
52
|
if (token) {
|
|
@@ -116,13 +118,13 @@ var AccountValidation = function (_a) {
|
|
|
116
118
|
return {
|
|
117
119
|
color: (0, material_1.darken)(theme.palette.secondary.main, 0.4),
|
|
118
120
|
fontFamily: 'Dancing Script, cursive',
|
|
119
|
-
fontSize:
|
|
121
|
+
fontSize: 30
|
|
120
122
|
};
|
|
121
123
|
};
|
|
122
124
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [emptyPwd &&
|
|
123
125
|
(0, jsx_runtime_1.jsx)(MovaDialog_1.default, __assign({ leafImageColor: 'pink', title: movaAppType === Enums_1.MovaAppType.GARAGE ? "Bienvenue sur Movalib PRO !" : "Bienvenue sur Movalib !", titleStyle: getTitleStyle(), fullScreen: isMobile, open: emptyPwd, closable: false, onClose: function () {
|
|
124
126
|
throw new Error('Function not implemented.');
|
|
125
|
-
}, actions: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ type: "submit", onClick: handleValidateAccount, fullWidth: true, variant: "contained", sx: { mt: 4, mb: 0 } }, { children: (0, jsx_runtime_1.jsx)("span", { children: "
|
|
127
|
+
}, actions: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, __assign({ type: "submit", onClick: handleValidateAccount, fullWidth: true, variant: "contained", sx: { mt: 4, mb: 0 } }, { children: (0, jsx_runtime_1.jsx)("span", { children: "Activer mon compte" }) })) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ sx: { mt: 2, mb: 2 } }, { children: movaAppType === Enums_1.MovaAppType.INDIVIDUAL ?
|
|
126
128
|
"Pour commencer, définis ton mot de passe et active ton compte 😉"
|
|
127
129
|
:
|
|
128
130
|
"Pour commencer, définissez votre mot de passe et activez votre compte 😉" })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12 }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { margin: "normal", required: true, fullWidth: true, name: "password", label: "Mot de passe", type: showPassword ? 'text' : 'password', id: "password", autoComplete: "current-password", onChange: function (e) { return handleInputChange(e); }, value: passwordForm.password.value, error: !passwordForm.password.isValid, helperText: Boolean(passwordForm.password.error) ? passwordForm.password.error : "10 caractères minimum, 1 majuscule, 1 minuscule", InputProps: {
|
package/package.json
CHANGED
|
@@ -38,7 +38,9 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
|
|
|
38
38
|
const params = new URLSearchParams(location.search);
|
|
39
39
|
const token = params.get('token');
|
|
40
40
|
|
|
41
|
-
// Si cette variable est transmise,
|
|
41
|
+
// Si cette variable est transmise, cela signifie que le compte a été créé sans mot de passe
|
|
42
|
+
Logger.info(params);
|
|
43
|
+
Logger.info(Boolean(params.get('emptyPwd')));
|
|
42
44
|
let localEmptyPwd = Boolean(params.get('emptyPwd'));
|
|
43
45
|
setEmptyPwd(localEmptyPwd);
|
|
44
46
|
|
|
@@ -133,7 +135,7 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
|
|
|
133
135
|
return {
|
|
134
136
|
color:darken(theme.palette.secondary.main, 0.4),
|
|
135
137
|
fontFamily: 'Dancing Script, cursive',
|
|
136
|
-
fontSize:
|
|
138
|
+
fontSize: 30
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
|
|
@@ -157,13 +159,13 @@ const AccountValidation: FunctionComponent<AccountValidationProps> = ({ movaAppT
|
|
|
157
159
|
fullWidth
|
|
158
160
|
variant="contained"
|
|
159
161
|
sx={{ mt: 4, mb: 0 }}>
|
|
160
|
-
<span>
|
|
162
|
+
<span>Activer mon compte</span>
|
|
161
163
|
</LoadingButton>
|
|
162
164
|
}>
|
|
163
165
|
<Grid container>
|
|
164
166
|
<Grid item xs={12}>
|
|
165
167
|
<Typography sx={{ mt: 2, mb: 2 }}>
|
|
166
|
-
{movaAppType === MovaAppType.
|
|
168
|
+
{movaAppType === MovaAppType.INDIVIDUAL ?
|
|
167
169
|
"Pour commencer, définis ton mot de passe et active ton compte 😉"
|
|
168
170
|
:
|
|
169
171
|
"Pour commencer, définissez votre mot de passe et activez votre compte 😉"
|