backend-plus 2.2.0 → 2.2.2
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/for-client/my-tables.js +7 -4
- package/lib/backend-plus.js +6 -10
- package/package.json +6 -6
package/for-client/my-tables.js
CHANGED
|
@@ -293,7 +293,7 @@ myOwn.TableConnector = function(context, opts){
|
|
|
293
293
|
connector.pick = connector.opts.pick;
|
|
294
294
|
connector.hideBecauseRelated = {};
|
|
295
295
|
connector.fixedFields.forEach(function(pair){
|
|
296
|
-
if(!pair.range && pair.value != myOwn.skipInFixedFields){
|
|
296
|
+
if(!pair.range && !pair.until && pair.value != myOwn.skipInFixedFields){
|
|
297
297
|
connector.fixedField[pair.fieldName] = pair.value;
|
|
298
298
|
if (!pair.show) {
|
|
299
299
|
connector.hideBecauseRelated[pair.fieldName] = true;
|
|
@@ -448,7 +448,7 @@ myOwn.TableConnectorLocal = function(context, opts){
|
|
|
448
448
|
connector.pick = connector.opts.pick;
|
|
449
449
|
connector.hideBecauseRelated = {};
|
|
450
450
|
connector.fixedFields.forEach(function(pair){
|
|
451
|
-
if(!pair.range && pair.value != myOwn.skipInFixedFields){
|
|
451
|
+
if(!pair.range && !pair.until && pair.value != myOwn.skipInFixedFields){
|
|
452
452
|
connector.fixedField[pair.fieldName] = pair.value;
|
|
453
453
|
if (!pair.show) {
|
|
454
454
|
connector.hideBecauseRelated[pair.fieldName] = true;
|
|
@@ -1192,6 +1192,9 @@ myOwn.DetailColumnGrid.prototype.td = function td(depot, iColumn, tr){
|
|
|
1192
1192
|
if(pair.range){
|
|
1193
1193
|
fieldCondition.range=pair.range;
|
|
1194
1194
|
}
|
|
1195
|
+
if(pair.until){
|
|
1196
|
+
fieldCondition.until=pair.until;
|
|
1197
|
+
}
|
|
1195
1198
|
return fieldCondition;
|
|
1196
1199
|
});
|
|
1197
1200
|
}
|
|
@@ -2249,7 +2252,7 @@ myOwn.TableGrid.prototype.createRowInsertElements = function createRowInsertElem
|
|
|
2249
2252
|
var depotForInsert = grid.createDepotFromRow({$allow:{delete:true, update:true}}, 'new');
|
|
2250
2253
|
grid.connector.fixedFields.forEach(function(pair){
|
|
2251
2254
|
var fieldDef = grid.def.field[pair.fieldName];
|
|
2252
|
-
if(!pair.range && (fieldDef.inTable !== false || fieldDef.isPk && pair.value !=null)){
|
|
2255
|
+
if(!pair.range && !pair.until && (fieldDef.inTable !== false || fieldDef.isPk && pair.value !=null)){
|
|
2253
2256
|
depotForInsert.row[pair.fieldName] = pair.value;
|
|
2254
2257
|
depotForInsert.rowPendingForUpdate[pair.fieldName] = pair.value;
|
|
2255
2258
|
}
|
|
@@ -2360,7 +2363,7 @@ myOwn.TableGrid.prototype.displayGrid = function displayGrid(){
|
|
|
2360
2363
|
return (specialMandatories[fieldDef.name] || fieldDef.nullable!==true && fieldDef.isPk || fieldDef.nullable===false)
|
|
2361
2364
|
&& depot.row[fieldDef.name]==null
|
|
2362
2365
|
&& (grid.connector.fixedFields.find(function(pair){
|
|
2363
|
-
return !pair.range && pair.fieldName===fieldDef.name
|
|
2366
|
+
return !pair.range && !pair.until && pair.fieldName===fieldDef.name
|
|
2364
2367
|
})||{}).value == null
|
|
2365
2368
|
}
|
|
2366
2369
|
//var cual=grid.def.fields.filter(mandatoryOmitted)
|
package/lib/backend-plus.js
CHANGED
|
@@ -217,11 +217,9 @@ AppBackend.prototype.i18n.messages.en={
|
|
|
217
217
|
email: "Email",
|
|
218
218
|
invalidMail: "invalid email",
|
|
219
219
|
mailSubject: "Password Reset Request",
|
|
220
|
-
mailHtml:
|
|
221
|
-
|
|
222
|
-
<
|
|
223
|
-
|
|
224
|
-
If you didn’t mean to reset your password, then you can just ignore this email; your password will not change.`,
|
|
220
|
+
mailHtml: `<p>You told us you forgot your password. If you really did, click here to choose a new one:</p>
|
|
221
|
+
<p><a href=""></a></p>
|
|
222
|
+
<p>If you didn’t mean to reset your password, then you can just ignore this email; your password will not change.</p>`,
|
|
225
223
|
mayBeMailSent: "Mail sent if found.",
|
|
226
224
|
return: "I know my password. Go to login.",
|
|
227
225
|
title: "Forgot password form",
|
|
@@ -305,11 +303,9 @@ AppBackend.prototype.i18n.messages.es={
|
|
|
305
303
|
email: "e-mail",
|
|
306
304
|
invalidMail: "la dirección de mail es incorrecta",
|
|
307
305
|
mailSubject: "Pedido de cambio de contraseña",
|
|
308
|
-
mailHtml:
|
|
309
|
-
|
|
310
|
-
<
|
|
311
|
-
|
|
312
|
-
Si el pedido no lo hizo usted desestime el mail. Su contraseña seguirá siendo la misma.`,
|
|
306
|
+
mailHtml: `<p>Recibimos un pedido de cambio de contraseña. Si el pedido es correcto utilice el siguiente enlace:</p>
|
|
307
|
+
<p><a href=""></a></p>
|
|
308
|
+
<p>Si el pedido no lo hizo usted desestime el mail. Su contraseña seguirá siendo la misma.</p>`,
|
|
313
309
|
mayBeMailSent: "Se procede a buscar el usuario correspondiente al email. Si se encuentra se envia al mismo un correo que permite cambiar la contraseña. Si envió más de un formulario solo el último es válido.",
|
|
314
310
|
return: "Recuerdo mi contraseña. Ir a la pantalla de ingreso.",
|
|
315
311
|
title: "Formulario de recuperación de contraseña",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-plus",
|
|
3
3
|
"description": "Backend for the anti Pareto rule",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "codenautas/backend-plus",
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/big.js": "^6.2.2",
|
|
78
78
|
"@types/expect.js": "~0.3.32",
|
|
79
|
-
"@types/express": "^5.0.
|
|
79
|
+
"@types/express": "^5.0.1",
|
|
80
80
|
"@types/express-useragent": "^1.0.5",
|
|
81
81
|
"@types/fs-extra": "^11.0.4",
|
|
82
82
|
"@types/js-yaml": "^4.0.9",
|
|
83
83
|
"@types/mocha": "^10.0.10",
|
|
84
84
|
"@types/multiparty": "~4.2.1",
|
|
85
|
-
"@types/node": "^22.13.
|
|
85
|
+
"@types/node": "^22.13.13",
|
|
86
86
|
"@types/nodemailer": "^6.4.17",
|
|
87
87
|
"@types/numeral": "~2.0.5",
|
|
88
88
|
"@types/session-file-store": "^1.2.5",
|
|
@@ -99,9 +99,9 @@
|
|
|
99
99
|
"kill-9": "~0.4.3",
|
|
100
100
|
"mocha": "^11.1.0",
|
|
101
101
|
"nyc": "^17.1.0",
|
|
102
|
-
"puppeteer": "^24.
|
|
103
|
-
"sinon": "^19.0.
|
|
104
|
-
"supertest": "^7.
|
|
102
|
+
"puppeteer": "^24.4.0",
|
|
103
|
+
"sinon": "^19.0.4",
|
|
104
|
+
"supertest": "^7.1.0",
|
|
105
105
|
"types.d.ts": "~0.6.22",
|
|
106
106
|
"typescript": "^5.8.2",
|
|
107
107
|
"why-is-node-running": "^3.2.2"
|