cabloy 5.1.45 → 5.1.46
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/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/package.json +1 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-ssr/src/lib/beanSsrSiteBase.ts +6 -0
- package/vona/src/suite-vendor/a-cabloy/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-executor/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/modules/a-executor/src/service/executor.ts +4 -1
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/src/suite/a-demo/modules/demo-basic/src/routes.ts +8 -6
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.tabs.tsx +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.46
|
|
4
|
+
|
|
5
|
+
### Improvements
|
|
6
|
+
|
|
7
|
+
- Refine SSR site base handling in `beanSsrSiteBase.ts`.
|
|
8
|
+
- Improve executor behavior in `executor.ts`.
|
|
9
|
+
- Update tab rendering logic in `render.tabs.tsx`.
|
|
10
|
+
- Adjust route configuration in `routes.ts`.
|
|
11
|
+
|
|
3
12
|
## 5.1.45
|
|
4
13
|
|
|
5
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.40",
|
|
4
4
|
"gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
|
|
5
5
|
"description": "Vona is an intuitive, elegant and powerful Node.js framework for rapidly developing enterprise applications of any size",
|
|
6
6
|
"keywords": [
|
|
@@ -209,6 +209,12 @@ export class BeanSsrSiteBase<
|
|
|
209
209
|
headers.accept = headers.Accept;
|
|
210
210
|
delete headers.Accept;
|
|
211
211
|
}
|
|
212
|
+
for (const headerKey of ['x-vona-locale', 'x-vona-tz']) {
|
|
213
|
+
const headerValue = headers[headerKey];
|
|
214
|
+
if (headerValue !== undefined) {
|
|
215
|
+
this.ctx.request.headers[headerKey] = headerValue;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
212
218
|
// passport
|
|
213
219
|
if (!ctxInited) {
|
|
214
220
|
// init instance
|
|
@@ -11,24 +11,26 @@ import { ZPageToolOne } from './.metadata/page/toolOne.js';
|
|
|
11
11
|
import { ZPageToolTwo } from './.metadata/page/toolTwo.js';
|
|
12
12
|
|
|
13
13
|
export const routes: IModuleRoute[] = [
|
|
14
|
-
{ path: 'state', component: ZPageState },
|
|
15
|
-
{ path: 'component', component: ZPageComponent },
|
|
16
|
-
{ path: 'locale', component: ZPageLocale },
|
|
17
|
-
{ path: 'style', component: ZPageStyle },
|
|
18
|
-
{ path: 'routeQuery', component: ZPageRouteQuery },
|
|
14
|
+
{ path: 'state', component: ZPageState, meta: { requiresAuth: false } },
|
|
15
|
+
{ path: 'component', component: ZPageComponent, meta: { requiresAuth: false } },
|
|
16
|
+
{ path: 'locale', component: ZPageLocale, meta: { requiresAuth: false } },
|
|
17
|
+
{ path: 'style', component: ZPageStyle, meta: { requiresAuth: false } },
|
|
18
|
+
{ path: 'routeQuery', component: ZPageRouteQuery, meta: { requiresAuth: false } },
|
|
19
19
|
{
|
|
20
20
|
name: 'routeParams',
|
|
21
21
|
path: 'routeParams/:id?',
|
|
22
22
|
component: ZPageRouteParams,
|
|
23
23
|
meta: {
|
|
24
24
|
componentKeyMode: 'nameOnly',
|
|
25
|
+
requiresAuth: false,
|
|
25
26
|
},
|
|
26
27
|
},
|
|
27
|
-
{ path: 'routeQueryB', component: ZPageRouteQueryB },
|
|
28
|
+
{ path: 'routeQueryB', component: ZPageRouteQueryB, meta: { requiresAuth: false } },
|
|
28
29
|
{
|
|
29
30
|
name: 'toolOne',
|
|
30
31
|
path: 'toolOne/:id?',
|
|
31
32
|
component: ZPageToolOne,
|
|
33
|
+
meta: { requiresAuth: false },
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
36
|
name: 'toolTwo',
|