@venizia/ardor 0.1.1 → 0.1.2-0
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/README.md +52 -14
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -19,36 +19,74 @@ bun add @venizia/ardor @venizia/ignis-inversion @venizia/ignis-filter reflect-me
|
|
|
19
19
|
import 'reflect-metadata';
|
|
20
20
|
|
|
21
21
|
import {
|
|
22
|
+
type BaseArdorApplication as TArdorApplication,
|
|
22
23
|
BaseArdorApplication,
|
|
24
|
+
configuration,
|
|
23
25
|
CoreBindings,
|
|
24
26
|
DefaultAuthProvider,
|
|
25
27
|
DefaultAuthService,
|
|
26
28
|
DefaultI18nProvider,
|
|
27
29
|
DefaultRestDataProvider,
|
|
28
30
|
type IApplicationInfo,
|
|
31
|
+
inject,
|
|
32
|
+
provide,
|
|
29
33
|
} from '@venizia/ardor';
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
// Every framework binding, declared: start() binds each @provide method under its key, SINGLETON.
|
|
36
|
+
@configuration()
|
|
37
|
+
export class SellerConfiguration {
|
|
38
|
+
constructor(
|
|
39
|
+
@inject({ key: CoreBindings.APPLICATION_INSTANCE }) private readonly application: TArdorApplication,
|
|
40
|
+
) {}
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
@provide({ key: CoreBindings.REST_DATA_PROVIDER_OPTIONS })
|
|
43
|
+
restDataProviderOptions() {
|
|
44
|
+
return {
|
|
38
45
|
url: import.meta.env.VITE_API_URL,
|
|
39
46
|
noAuthPaths: ['/auth/login'],
|
|
40
|
-
}
|
|
41
|
-
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@provide({ key: CoreBindings.AUTH_PROVIDER_OPTIONS })
|
|
51
|
+
authProviderOptions() {
|
|
52
|
+
return {
|
|
42
53
|
paths: { signIn: '/auth/login' },
|
|
43
54
|
endpoints: { afterLogin: '/dashboard' },
|
|
44
|
-
}
|
|
45
|
-
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@provide({ key: CoreBindings.I18N_PROVIDER_OPTIONS })
|
|
59
|
+
i18nProviderOptions() {
|
|
60
|
+
return {};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@provide({ key: CoreBindings.DEFAULT_REST_DATA_PROVIDER })
|
|
64
|
+
restDataProvider() {
|
|
65
|
+
return this.application.instantiate(DefaultRestDataProvider).value(this.application);
|
|
66
|
+
}
|
|
46
67
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
this.
|
|
50
|
-
this.bind({ key: CoreBindings.DEFAULT_I18N_PROVIDER }).toProvider(DefaultI18nProvider);
|
|
68
|
+
@provide({ key: CoreBindings.DEFAULT_AUTH_SERVICE })
|
|
69
|
+
authService() {
|
|
70
|
+
return this.application.instantiate(DefaultAuthService);
|
|
51
71
|
}
|
|
72
|
+
|
|
73
|
+
@provide({ key: CoreBindings.DEFAULT_AUTH_PROVIDER })
|
|
74
|
+
authProvider() {
|
|
75
|
+
return this.application.instantiate(DefaultAuthProvider).value(this.application);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@provide({ key: CoreBindings.DEFAULT_I18N_PROVIDER })
|
|
79
|
+
i18nProvider() {
|
|
80
|
+
return this.application.instantiate(DefaultI18nProvider).value(this.application);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export class Application extends BaseArdorApplication {
|
|
85
|
+
getAppInfo(): IApplicationInfo {
|
|
86
|
+
return { name: 'seller', version: '1.0.0', description: 'Seller console' };
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
bindContext(): void {}
|
|
52
90
|
}
|
|
53
91
|
```
|
|
54
92
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ardor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-0",
|
|
4
4
|
"description": "ARDOR - frontend application framework for the VENIZIA family. One entry point over ardor-kernel, ardor-react and ardor-admin: IGNIS inversion of control, a REST data layer, auth and i18n providers, and the React bindings for a react-admin application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ardor",
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"size": "size-limit"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@venizia/ardor-admin": "^0.1.
|
|
87
|
-
"@venizia/ardor-kernel": "^0.1.
|
|
86
|
+
"@venizia/ardor-admin": "^0.1.2-0",
|
|
87
|
+
"@venizia/ardor-kernel": "^0.1.2-0",
|
|
88
88
|
"@venizia/ardor-react": "^0.1.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@reduxjs/toolkit": ">=2.12.0",
|
|
92
92
|
"@tanstack/react-query": ">=5.101.2",
|
|
93
|
-
"@venizia/ignis-connectors": "
|
|
94
|
-
"@venizia/ignis-filter": "
|
|
93
|
+
"@venizia/ignis-connectors": ">=0.2.1-2 <0.3.0",
|
|
94
|
+
"@venizia/ignis-filter": ">=0.2.1-0 <0.3.0",
|
|
95
95
|
"@venizia/ignis-inversion": "^0.2.0",
|
|
96
|
-
"@venizia/ignis-kernel": "
|
|
96
|
+
"@venizia/ignis-kernel": ">=0.2.1-1 <0.3.0",
|
|
97
97
|
"ra-core": ">=5.15.0",
|
|
98
98
|
"react": ">=18.0",
|
|
99
99
|
"react-dom": ">=18.0",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"@types/react": "^19",
|
|
111
111
|
"@types/react-dom": "^19",
|
|
112
112
|
"@venizia/dev-configs": "^0.2.0",
|
|
113
|
-
"@venizia/ignis-connectors": "
|
|
114
|
-
"@venizia/ignis-filter": "
|
|
113
|
+
"@venizia/ignis-connectors": "0.2.1-2",
|
|
114
|
+
"@venizia/ignis-filter": "0.2.1-0",
|
|
115
115
|
"@venizia/ignis-inversion": "^0.2.0",
|
|
116
|
-
"@venizia/ignis-kernel": "
|
|
116
|
+
"@venizia/ignis-kernel": "0.2.1-1",
|
|
117
117
|
"eslint": "^9.36.0",
|
|
118
118
|
"prettier": "^3.8.4",
|
|
119
119
|
"ra-core": "^5.15.0",
|