5htp-core 0.5.0-1 → 0.5.0-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/package.json +1 -1
- package/src/client/assets/css/core.less +1 -1
- package/src/client/assets/css/text/icons.less +0 -1
- package/src/client/assets/css/theme.less +2 -1
- package/src/client/components/Dialog/index.less +4 -8
- package/src/client/services/router/components/router.tsx +1 -1
- package/src/client/services/router/index.tsx +2 -1
- package/src/server/services/auth/index.ts +0 -9
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.5.0-
|
|
4
|
+
"version": "0.5.0-2",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -53,19 +53,13 @@
|
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
55
55
|
align-items: center;
|
|
56
|
-
justify-content:
|
|
56
|
+
justify-content: center;
|
|
57
57
|
gap: @spacing;
|
|
58
58
|
z-index: @modal-zindex;
|
|
59
59
|
|
|
60
60
|
background: fade(#000, 20%);
|
|
61
61
|
border-radius: @radius;
|
|
62
62
|
|
|
63
|
-
// Desktop = vertically center the modal
|
|
64
|
-
@media (min-width: 900px) {
|
|
65
|
-
justify-content: center;
|
|
66
|
-
//padding: @spacing;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
63
|
// Pour les animations (ex: conffetis
|
|
70
64
|
> canvas {
|
|
71
65
|
position: absolute;
|
|
@@ -79,7 +73,9 @@
|
|
|
79
73
|
|
|
80
74
|
position: relative;
|
|
81
75
|
min-width: 300px;
|
|
82
|
-
max-height:
|
|
76
|
+
max-height: 99vh;
|
|
77
|
+
max-width: 99vw;
|
|
78
|
+
width: 400px; // Default width
|
|
83
79
|
box-shadow: none;
|
|
84
80
|
overflow-y: auto;
|
|
85
81
|
|
|
@@ -151,7 +151,7 @@ export default ({ service: clientRouter, loaderComponent }: TProps) => {
|
|
|
151
151
|
// But when we call setLayout, the style of the previous layout are still oaded and applied
|
|
152
152
|
// Find a way to unload the previous layout / page resources before to load the new one
|
|
153
153
|
console.log(LogPrefix, `Changing layout. Before:`, curLayout, 'New layout:', newLayout);
|
|
154
|
-
window.location.replace( request ? request.url : location.href );
|
|
154
|
+
window.location.replace( request ? request.url : window.location.href );
|
|
155
155
|
return { ...page }
|
|
156
156
|
|
|
157
157
|
context.app.setLayout(newLayout);
|
|
@@ -124,7 +124,7 @@ export type TRoutesLoaders = {
|
|
|
124
124
|
|
|
125
125
|
export type THookCallback<TRouter extends ClientRouter> = (request: ClientRequest<TRouter>) => void;
|
|
126
126
|
|
|
127
|
-
type THookName = 'page.change' | 'page.changed'
|
|
127
|
+
type THookName = 'page.change' | 'page.changed' | 'page.rendered'
|
|
128
128
|
|
|
129
129
|
type Config<TAdditionnalContext extends {} = {}> = {
|
|
130
130
|
preload: string[], // List of globs
|
|
@@ -428,6 +428,7 @@ export default class ClientRouter<
|
|
|
428
428
|
|
|
429
429
|
console.log(`Render complete`);
|
|
430
430
|
|
|
431
|
+
this.runHook('page.rendered', request);
|
|
431
432
|
});
|
|
432
433
|
}
|
|
433
434
|
|