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 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-1",
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",
@@ -7,7 +7,7 @@
7
7
 
8
8
  // Apply the theme class
9
9
  .bg {
10
- background: var(--cBg);
10
+ background-color: var(--cBg);
11
11
  color: var(--cTxtBase);
12
12
 
13
13
  &.img {
@@ -46,7 +46,6 @@ i {
46
46
  flex: 0 0 @sizeComponent * 0.75;
47
47
  height: @sizeComponent * 0.75;
48
48
  line-height: @sizeComponent * 0.75;
49
- //font-size: 0.9em;
50
49
  }
51
50
 
52
51
  &.unit {
@@ -51,7 +51,8 @@
51
51
  --cBgActive: @bgActive;
52
52
  --cBgPressed: @bgPressed;
53
53
  & when (@apply = true) {
54
- background: var(--cBg);
54
+ // Don't overflow the other background image props with background:
55
+ background-color: var(--cBg);
55
56
  }
56
57
 
57
58
  // Accent
@@ -53,19 +53,13 @@
53
53
  display: flex;
54
54
  flex-direction: column;
55
55
  align-items: center;
56
- justify-content: flex-end;
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: 90vh;
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
 
@@ -43,15 +43,6 @@ export type TConfig = {
43
43
  key: string,
44
44
  expiration: string,
45
45
  },
46
- google?: {
47
- web: {
48
- clientId: string,
49
- secret: string,
50
- },
51
- android: {
52
- clientId: string
53
- }
54
- }
55
46
  }
56
47
 
57
48
  export type THooks = {