create-bw-app 0.18.4 → 0.18.6
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/package.json +1 -1
- package/src/constants.mjs +9 -6
- package/template/base/app/(shell)/dashboard/dashboard-live-mount.tsx +3 -4
- package/template/modules/crm/app/api/dashboard/crm/route.ts +2 -0
- package/template/modules/projects/app/api/dashboard/projects/route.ts +2 -0
- package/template/modules/projects/app/api/dashboard/tasks/route.ts +2 -0
package/package.json
CHANGED
package/src/constants.mjs
CHANGED
|
@@ -70,6 +70,7 @@ export const MODULE_STARTER_FILES = {
|
|
|
70
70
|
"app/(shell)/crm/page.tsx",
|
|
71
71
|
"app/(shell)/crm/report/page.tsx",
|
|
72
72
|
"app/api/crm/contacts/route.ts",
|
|
73
|
+
"app/api/dashboard/crm/route.ts",
|
|
73
74
|
"app/api/crm/organizations/route.ts",
|
|
74
75
|
"app/api/crm/owners/route.ts",
|
|
75
76
|
"app/api/crm/report/route.ts",
|
|
@@ -119,6 +120,8 @@ export const MODULE_STARTER_FILES = {
|
|
|
119
120
|
"app/(shell)/account/projetos/[projectId]/page.tsx",
|
|
120
121
|
"app/(shell)/account/projetos/[projectId]/loading.tsx",
|
|
121
122
|
"app/api/projects/_handlers.ts",
|
|
123
|
+
"app/api/dashboard/projects/route.ts",
|
|
124
|
+
"app/api/dashboard/tasks/route.ts",
|
|
122
125
|
"app/api/projects/route.ts",
|
|
123
126
|
"app/api/projects/stats/route.ts",
|
|
124
127
|
"app/api/projects/organizations/route.ts",
|
|
@@ -167,14 +170,14 @@ export const PLATFORM_STARTER_FILES = [
|
|
|
167
170
|
];
|
|
168
171
|
|
|
169
172
|
export const APP_DEPENDENCY_DEFAULTS = {
|
|
170
|
-
"@brightweblabs/app-shell": "^0.7.
|
|
173
|
+
"@brightweblabs/app-shell": "^0.7.4",
|
|
171
174
|
"@brightweblabs/core-auth": "^0.7.2",
|
|
172
175
|
"@brightweblabs/infra": "^0.4.0",
|
|
173
|
-
"@brightweblabs/module-admin": "^0.5.
|
|
174
|
-
"@brightweblabs/module-crm": "^0.
|
|
175
|
-
"@brightweblabs/module-marketing": "^0.2.
|
|
176
|
-
"@brightweblabs/module-orgs": "^0.3.
|
|
177
|
-
"@brightweblabs/module-projects": "^0.
|
|
176
|
+
"@brightweblabs/module-admin": "^0.5.10",
|
|
177
|
+
"@brightweblabs/module-crm": "^0.10.0",
|
|
178
|
+
"@brightweblabs/module-marketing": "^0.2.9",
|
|
179
|
+
"@brightweblabs/module-orgs": "^0.3.10",
|
|
180
|
+
"@brightweblabs/module-projects": "^0.9.1",
|
|
178
181
|
"@brightweblabs/theme": "^0.5.0",
|
|
179
182
|
"@brightweblabs/ui": "^1.1.1",
|
|
180
183
|
"geist": "1.7.2",
|
|
@@ -9,10 +9,9 @@ async function getJson(path: string) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const dashboardClient: DashboardDataClient = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
getTasks: () => Promise.reject(new Error("No task dashboard endpoint configured.")),
|
|
12
|
+
getProjects: () => getJson("/api/dashboard/projects"),
|
|
13
|
+
getCrm: () => getJson("/api/dashboard/crm"),
|
|
14
|
+
getTasks: () => getJson("/api/dashboard/tasks"),
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
export function DashboardLiveMount() {
|