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 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": "cabloy",
3
- "version": "5.1.45",
3
+ "version": "5.1.46",
4
4
  "gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
5
5
  "description": "A Node.js fullstack framework",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona",
3
- "version": "5.1.39",
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": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-ssr",
3
- "version": "5.1.13",
3
+ "version": "5.1.14",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-cabloy",
3
- "version": "5.1.27",
3
+ "version": "5.1.28",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-module-a-executor",
3
- "version": "5.1.5",
3
+ "version": "5.1.6",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "keywords": [
@@ -72,7 +72,10 @@ export class ServiceExecutor extends BeanBase {
72
72
  }
73
73
  }
74
74
  },
75
- { innerAccess: options?.innerAccess, extraData: options?.extraData },
75
+ {
76
+ innerAccess: options?.innerAccess,
77
+ extraData: options?.extraData,
78
+ },
76
79
  );
77
80
  }
78
81
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vona-suite-a-vona",
3
- "version": "5.1.32",
3
+ "version": "5.1.33",
4
4
  "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
5
  "description": "",
6
6
  "author": "",
@@ -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',
@@ -20,7 +20,6 @@ export class RenderTabs extends BeanRenderBase {
20
20
  </div>
21
21
  );
22
22
  if (!$$modelTabs.cache) return domWrapper;
23
-
24
23
  return <ClientOnly>{domWrapper}</ClientOnly>;
25
24
  }
26
25