create-cundi-app 1.0.12 → 1.0.15
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/index.js +1 -1
- package/package.json +2 -2
- package/template/.env.example +1 -1
- package/template/package.json.template +1 -1
- package/template/src/App.tsx +8 -8
package/index.js
CHANGED
|
@@ -96,7 +96,7 @@ async function main() {
|
|
|
96
96
|
await fs.writeFile(
|
|
97
97
|
envExamplePath,
|
|
98
98
|
`# API Configuration
|
|
99
|
-
VITE_API_URL=http://localhost:5000
|
|
99
|
+
VITE_API_URL=http://localhost:5000
|
|
100
100
|
|
|
101
101
|
# Keycloak Configuration (Optional)
|
|
102
102
|
VITE_KEYCLOAK_URL=http://localhost:8080
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cundi-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "Create a new Cundi app with React + Refine + Ant Design",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"template"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"pack": "npm pack --pack-destination ../../output/npm"
|
|
14
|
+
"pack": "node sync-version.js && npm pack --pack-destination ../../output/npm"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"create",
|
package/template/.env.example
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@ant-design/icons": "^5.5.1",
|
|
26
26
|
"@ant-design/v5-patch-for-react-19": "^1.0.3",
|
|
27
|
-
"@cundi/refine-xaf": "^1.0.
|
|
27
|
+
"@cundi/refine-xaf": "^1.0.12",
|
|
28
28
|
"@refinedev/antd": "^6.0.3",
|
|
29
29
|
"@refinedev/cli": "^2.16.50",
|
|
30
30
|
"@refinedev/core": "^5.0.6",
|
package/template/src/App.tsx
CHANGED
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
|
|
58
58
|
import { accessControlProvider } from "./accessControlProvider";
|
|
59
59
|
|
|
60
|
-
const API_URL = import.meta.env.VITE_API_URL + "/odata";
|
|
60
|
+
const API_URL = import.meta.env.VITE_API_URL + "/api/odata";
|
|
61
61
|
|
|
62
62
|
const InnerApp: React.FC = () => {
|
|
63
63
|
const { t, i18n } = useTranslation();
|
|
@@ -74,7 +74,7 @@ const InnerApp: React.FC = () => {
|
|
|
74
74
|
<Refine
|
|
75
75
|
authProvider={authProvider}
|
|
76
76
|
accessControlProvider={accessControlProvider}
|
|
77
|
-
dataProvider={dataProvider(API_URL)}
|
|
77
|
+
dataProvider={{ default: dataProvider(API_URL) }}
|
|
78
78
|
i18nProvider={i18nProvider}
|
|
79
79
|
routerProvider={routerProvider}
|
|
80
80
|
resources={[
|
|
@@ -94,7 +94,7 @@ const InnerApp: React.FC = () => {
|
|
|
94
94
|
meta: {
|
|
95
95
|
label: t("sider.users"),
|
|
96
96
|
icon: <UserOutlined />,
|
|
97
|
-
parent:
|
|
97
|
+
parent: "Settings",
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
100
|
{
|
|
@@ -104,7 +104,7 @@ const InnerApp: React.FC = () => {
|
|
|
104
104
|
edit: "/PermissionPolicyRoles/edit/:id",
|
|
105
105
|
meta: {
|
|
106
106
|
label: t("sider.roles"),
|
|
107
|
-
parent:
|
|
107
|
+
parent: "Settings",
|
|
108
108
|
icon: <TeamOutlined />,
|
|
109
109
|
},
|
|
110
110
|
},
|
|
@@ -114,7 +114,7 @@ const InnerApp: React.FC = () => {
|
|
|
114
114
|
meta: {
|
|
115
115
|
label: t("sider.backgroundJobs"),
|
|
116
116
|
icon: <FieldTimeOutlined />,
|
|
117
|
-
parent:
|
|
117
|
+
parent: "Settings",
|
|
118
118
|
},
|
|
119
119
|
},
|
|
120
120
|
{
|
|
@@ -124,7 +124,7 @@ const InnerApp: React.FC = () => {
|
|
|
124
124
|
edit: "/TriggerRules/edit/:id",
|
|
125
125
|
meta: {
|
|
126
126
|
label: t("sider.triggerRules"),
|
|
127
|
-
parent:
|
|
127
|
+
parent: "Settings",
|
|
128
128
|
icon: <ThunderboltOutlined />,
|
|
129
129
|
},
|
|
130
130
|
},
|
|
@@ -133,7 +133,7 @@ const InnerApp: React.FC = () => {
|
|
|
133
133
|
list: "/TriggerLogs",
|
|
134
134
|
meta: {
|
|
135
135
|
label: t("sider.triggerLogs"),
|
|
136
|
-
parent:
|
|
136
|
+
parent: "Settings",
|
|
137
137
|
icon: <ThunderboltOutlined />,
|
|
138
138
|
},
|
|
139
139
|
},
|
|
@@ -144,7 +144,7 @@ const InnerApp: React.FC = () => {
|
|
|
144
144
|
edit: "/MirrorTypeMappingConfigs/edit/:id",
|
|
145
145
|
meta: {
|
|
146
146
|
label: t("sider.mirrorConfigs"),
|
|
147
|
-
parent:
|
|
147
|
+
parent: "Settings",
|
|
148
148
|
icon: <CopyOutlined />,
|
|
149
149
|
},
|
|
150
150
|
},
|