5htp-core 0.6.0-72 → 0.6.0-73
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.
|
@@ -168,7 +168,7 @@ export default class ClientRouter<
|
|
|
168
168
|
|
|
169
169
|
// Error code
|
|
170
170
|
if (typeof url === 'number') {
|
|
171
|
-
this.createResponse( this.errors[url], this.context.request ).then(( page ) => {
|
|
171
|
+
this.createResponse( this.errors[url], this.context.request, data ).then(( page ) => {
|
|
172
172
|
this.navigate(page, data);
|
|
173
173
|
})
|
|
174
174
|
return;
|
|
@@ -335,10 +335,10 @@ export default class ClientRouter<
|
|
|
335
335
|
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
console.log("404 error page not found.", this.errors, this.routes);
|
|
339
|
-
|
|
340
338
|
const notFoundRoute = this.errors[404];
|
|
341
|
-
return await this.createResponse(notFoundRoute, request
|
|
339
|
+
return await this.createResponse(notFoundRoute, request, {
|
|
340
|
+
error: new Error("Page not found")
|
|
341
|
+
});
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
private async load(route: TUnresolvedNormalRoute): Promise<TRoute>;
|
|
@@ -504,7 +504,9 @@ export default class ClientRouter<
|
|
|
504
504
|
// Listener remover
|
|
505
505
|
return () => {
|
|
506
506
|
debug && console.info(LogPrefix, `De-register hook ${hookName} (index ${cbIndex})`);
|
|
507
|
-
|
|
507
|
+
this.hooks[hookName] = this.hooks[hookName]?.filter(
|
|
508
|
+
(_, index) => index !== cbIndex
|
|
509
|
+
);
|
|
508
510
|
}
|
|
509
511
|
|
|
510
512
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.6.0-
|
|
4
|
+
"version": "0.6.0-73",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"md5": "^2.3.0",
|
|
64
64
|
"mime-types": "^2.1.35",
|
|
65
65
|
"module-alias": "^2.2.2",
|
|
66
|
-
"morgan": "^1.10.0",
|
|
67
66
|
"mysql2": "^2.3.0",
|
|
68
67
|
"object-sizeof": "^1.6.3",
|
|
69
68
|
"path-to-regexp": "^6.2.0",
|
|
@@ -73,6 +72,7 @@
|
|
|
73
72
|
"prettier": "^3.3.3",
|
|
74
73
|
"react-scrollbars-custom": "^4.0.27",
|
|
75
74
|
"react-slider": "^2.0.1",
|
|
75
|
+
"react-textarea-autosize": "^8.5.9",
|
|
76
76
|
"regenerator-runtime": "^0.13.9",
|
|
77
77
|
"request": "^2.88.2",
|
|
78
78
|
"slugify": "^1.6.6",
|
|
@@ -468,7 +468,9 @@ export default class ServerRouter
|
|
|
468
468
|
|
|
469
469
|
public async resolve(request: ServerRequest<this>): Promise<ServerResponse<this>> {
|
|
470
470
|
|
|
471
|
-
const logId = LogPrefix + ' ' + (request.isVirtual ? ' ---- ' : '')
|
|
471
|
+
const logId = LogPrefix + ' ' + (request.isVirtual ? ' ---- ' : '')
|
|
472
|
+
+ request.ip + ' ' + request.user?.email + ' '
|
|
473
|
+
+ request.method + ' ' + /*request.domain + ' ' +*/ request.path;
|
|
472
474
|
console.info(logId);
|
|
473
475
|
const timeStart = Date.now();
|
|
474
476
|
|
package/types/icons.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TIcones = "
|
|
1
|
+
export type TIcones = "times"|"solid/spinner-third"|"long-arrow-right"|"sack-dollar"|"bell"|"bullseye"|"project-diagram"|"user-friends"|"eye"|"lock"|"comments"|"phone"|"chalkboard-teacher"|"rocket"|"chart-bar"|"crosshairs"|"user-circle"|"plus-circle"|"comments-alt"|"arrow-right"|"user-shield"|"shield-alt"|"chart-line"|"money-bill-wave"|"star"|"link"|"file-alt"|"long-arrow-left"|"user-plus"|"mouse-pointer"|"thumbs-up"|"dollar-sign"|"key"|"user"|"at"|"search"|"lightbulb"|"magnet"|"brands/linkedin"|"angle-up"|"angle-down"|"paper-plane"|"solid/crown"|"brands/discord"|"pen"|"plus"|"file"|"envelope"|"calendar-alt"|"clock"|"cog"|"trash"|"ellipsis-h"|"binoculars"|"times-circle"|"coins"|"angle-right"|"download"|"check"|"info-circle"|"check-circle"|"exclamation-circle"|"meh-rolling-eyes"|"arrow-left"|"bars"|"solid/star"|"solid/star-half-alt"|"regular/star"|"chevron-left"|"power-off"|"question-circle"|"plane-departure"|"brands/whatsapp"|"wind"|"play"|"minus-circle"|"external-link"|"map-marker-alt"|"arrow-to-bottom"|"broom"|"solid/check-circle"|"solid/exclamation-triangle"|"solid/times-circle"|"exclamation-triangle"|"minus"|"users"|"bug"|"comment-alt"|"solid/magic"|"briefcase"|"map-marker"|"fire"|"industry"|"calendar"|"globe"|"magic"|"building"|"graduation-cap"|"coin"|"unlink"|"bold"|"italic"|"underline"|"strikethrough"|"subscript"|"superscript"|"code"|"font"|"empty-set"|"horizontal-rule"|"page-break"|"image"|"table"|"poll"|"columns"|"sticky-note"|"caret-right"|"align-left"|"align-center"|"align-right"|"align-justify"|"indent"|"outdent"|"list-ul"|"check-square"|"h1"|"h2"|"h3"|"h4"|"list-ol"|"paragraph"|"quote-left"
|