cabloy 5.1.143 → 5.1.145
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/.cabloy-version +1 -1
- package/.github/workflows/playwright-e2e.yml +2 -2
- package/CHANGELOG.md +24 -0
- package/cabloy-docs/backend/markdown-guide.md +3 -2
- package/cabloy-docs/frontend/markdown-guide.md +1 -1
- package/e2e/specs/a-commerce.spec.ts +0 -496
- package/e2e/specs/markdown.spec.ts +575 -0
- package/oxlint.config.ts +0 -3
- package/package.json +4 -4
- package/vona/pnpm-lock.yaml +25 -0
- package/vona/src/suite-vendor/a-cabloy/modules/a-markdown/package.json +2 -1
- package/vona/src/suite-vendor/a-cabloy/modules/a-markdown/src/bean/bean.markdown.ts +47 -2
- package/vona/src/suite-vendor/a-cabloy/package.json +2 -2
- package/zova/package.original.json +1 -1
- package/zova/packages-utils/zova-jsx/package.json +2 -2
- package/zova/packages-zova/zova/package.json +3 -3
- package/zova/packages-zova/zova-core/package.json +1 -1
- package/zova/packages-zova/zova-core/src/core/component/locale.ts +2 -0
- package/zova/pnpm-lock.yaml +48 -48
- package/zova/src/suite/a-home/modules/home-base/src/.metadata/index.ts +2 -17
- package/zova/src/suite/a-home/modules/home-base/src/service/routerGuards.ts +0 -6
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/controller.tsx +1 -4
- package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/render.locale.tsx +1 -1
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/controller.tsx +1 -4
- package/zova/src/suite/a-home/modules/home-layoutweb/src/component/layoutWeb/render.locale.tsx +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/package.json +1 -1
- package/zova/src/suite-vendor/a-zova/modules/a-ssr/src/monkey.ts +1 -0
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/package.json +3 -3
- package/zova/src/suite/a-home/modules/home-base/src/service/locale.ts +0 -11
- /package/e2e/specs/{account.spec.ts → home-user-account.spec.ts} +0 -0
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import type { BeanRouter } from 'zova-module-a-router';
|
|
2
2
|
|
|
3
3
|
import { catchError } from '@cabloy/utils';
|
|
4
|
-
import { Use } from 'zova';
|
|
5
4
|
import { Service } from 'zova-module-a-bean';
|
|
6
5
|
import { BeanRouterGuardsBase } from 'zova-module-a-router';
|
|
7
6
|
|
|
8
|
-
import { ServiceLocale } from './locale.js';
|
|
9
|
-
|
|
10
7
|
@Service()
|
|
11
8
|
export class ServiceRouterGuards extends BeanRouterGuardsBase {
|
|
12
|
-
@Use()
|
|
13
|
-
$$serviceLocale: ServiceLocale;
|
|
14
|
-
|
|
15
9
|
protected onRouterGuards(router: BeanRouter) {
|
|
16
10
|
router.beforeEach(async to => {
|
|
17
11
|
if (to.meta.requiresAuth === false) return;
|
package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/controller.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import type { ModelTabs, ModelTabsOptions } from 'zova-module-a-routertabs';
|
|
|
3
3
|
import { BeanControllerBase, Use, usePrepareArg } from 'zova';
|
|
4
4
|
import { Controller } from 'zova-module-a-bean';
|
|
5
5
|
import { $QueryEnsureLoaded } from 'zova-module-a-model';
|
|
6
|
-
import { IServiceSsrLayoutOptions,
|
|
6
|
+
import { IServiceSsrLayoutOptions, ServiceSsrLayout } from 'zova-module-home-base';
|
|
7
7
|
|
|
8
8
|
import { ModelLayout } from '../../model/layout.js';
|
|
9
9
|
import { ModelMenu } from '../../model/menu.js';
|
|
@@ -33,9 +33,6 @@ export class ControllerLayoutAdmin extends BeanControllerBase {
|
|
|
33
33
|
} satisfies IServiceSsrLayoutOptions);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@Use()
|
|
37
|
-
$$serviceLocale: ServiceLocale;
|
|
38
|
-
|
|
39
36
|
leftDrawerOpen: boolean;
|
|
40
37
|
leftDrawerOpenMobile: boolean = false;
|
|
41
38
|
belowBreakpoint: boolean;
|
package/zova/src/suite/a-home/modules/home-layoutadmin/src/component/layoutAdmin/render.locale.tsx
CHANGED
|
@@ -19,7 +19,7 @@ export class RenderLocale extends BeanRenderBase {
|
|
|
19
19
|
<li key={key} class={this.app.meta.locale.current === key ? 'disabled' : ''}>
|
|
20
20
|
<a
|
|
21
21
|
onClick={event => {
|
|
22
|
-
this
|
|
22
|
+
this.app.meta.locale.current = key as any;
|
|
23
23
|
closeNearestDetails(event);
|
|
24
24
|
}}
|
|
25
25
|
>
|
|
@@ -2,7 +2,7 @@ import { BeanControllerBase, Use, usePrepareArg } from 'zova';
|
|
|
2
2
|
import { Controller } from 'zova-module-a-bean';
|
|
3
3
|
import { $QueryEnsureLoaded } from 'zova-module-a-model';
|
|
4
4
|
import { ModelTabs, ModelTabsOptions, RouteTabInitial } from 'zova-module-a-routertabs';
|
|
5
|
-
import { IServiceSsrLayoutOptions,
|
|
5
|
+
import { IServiceSsrLayoutOptions, ServiceSsrLayout } from 'zova-module-home-base';
|
|
6
6
|
|
|
7
7
|
import { ModelLayout } from '../../model/layout.js';
|
|
8
8
|
import { ModelMenu } from '../../model/menu.js';
|
|
@@ -32,9 +32,6 @@ export class ControllerLayoutWeb extends BeanControllerBase {
|
|
|
32
32
|
} satisfies IServiceSsrLayoutOptions);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
@Use()
|
|
36
|
-
$$serviceLocale: ServiceLocale;
|
|
37
|
-
|
|
38
35
|
leftDrawerOpen: boolean;
|
|
39
36
|
leftDrawerOpenMobile: boolean = false;
|
|
40
37
|
belowBreakpoint: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-module-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.103",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"keywords": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@cabloy/word-utils": "^2.1.14",
|
|
44
44
|
"defu": "^6.1.7",
|
|
45
45
|
"luxon": "^3.7.2",
|
|
46
|
-
"zova-jsx": "^1.1.
|
|
46
|
+
"zova-jsx": "^1.1.88"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@cabloy/cli": "^3.1.29",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-suite-a-zova",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.152",
|
|
4
4
|
"gitHead": "2c5c19284bab738e492856189acb6fad74b8a7b7",
|
|
5
5
|
"description": "zova",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"zova-module-a-router": "^5.1.34",
|
|
27
27
|
"zova-module-a-routerstack": "^5.1.27",
|
|
28
28
|
"zova-module-a-routertabs": "^5.1.34",
|
|
29
|
-
"zova-module-a-ssr": "^5.1.
|
|
29
|
+
"zova-module-a-ssr": "^5.1.38",
|
|
30
30
|
"zova-module-a-ssrhmr": "^5.1.23",
|
|
31
31
|
"zova-module-a-ssrserver": "^5.1.26",
|
|
32
32
|
"zova-module-a-style": "^5.1.35",
|
|
33
33
|
"zova-module-a-table": "^5.1.38",
|
|
34
34
|
"zova-module-a-zod": "^5.1.37",
|
|
35
|
-
"zova-module-a-zova": "^5.1.
|
|
35
|
+
"zova-module-a-zova": "^5.1.103"
|
|
36
36
|
},
|
|
37
37
|
"title": "a-zova"
|
|
38
38
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BeanBase, ILocaleRecord } from 'zova';
|
|
2
|
-
import { Service } from 'zova-module-a-bean';
|
|
3
|
-
|
|
4
|
-
@Service()
|
|
5
|
-
export class ServiceLocale extends BeanBase {
|
|
6
|
-
protected async __init__() {}
|
|
7
|
-
|
|
8
|
-
public setLocale(locale: keyof ILocaleRecord) {
|
|
9
|
-
this.app.meta.locale.current = locale;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
File without changes
|