@luminix/mui-cms 0.0.1-beta.1 → 0.0.1-beta.2
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/bundle/mui-cms.bundle.iife.js +27 -27
- package/dist/mui-cms.js +21 -19
- package/package.json +1 -1
package/dist/mui-cms.js
CHANGED
|
@@ -342,31 +342,39 @@ const Re = p.createContext({
|
|
|
342
342
|
children: /* @__PURE__ */ r(Nn, { children: /* @__PURE__ */ r(Ln, { children: e }) })
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
|
-
}, Wn = (e, {
|
|
345
|
+
}, Wn = (e, {
|
|
346
|
+
Layout: t,
|
|
347
|
+
Dashboard: n,
|
|
348
|
+
ModelIndex: a,
|
|
349
|
+
ModelItem: s
|
|
350
|
+
/* Error */
|
|
351
|
+
}, o) => [
|
|
346
352
|
{
|
|
347
353
|
element: /* @__PURE__ */ r(qn, { children: /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(vt, {}) }) }),
|
|
348
|
-
errorElement:
|
|
354
|
+
// errorElement: (
|
|
355
|
+
// <Error />
|
|
356
|
+
// ),
|
|
349
357
|
children: [
|
|
350
358
|
{
|
|
351
359
|
path: "/",
|
|
352
360
|
name: "luminix.cms.dashboard",
|
|
353
361
|
element: /* @__PURE__ */ r(n, {})
|
|
354
362
|
},
|
|
355
|
-
...Object.entries(
|
|
363
|
+
...Object.entries(o).flatMap(([i, l]) => [
|
|
356
364
|
{
|
|
357
|
-
path: "/" + f.kebabCase(
|
|
358
|
-
name: `luminix.cms.${
|
|
359
|
-
element: /* @__PURE__ */ r(me, { Model:
|
|
365
|
+
path: "/" + f.kebabCase(l.plural()),
|
|
366
|
+
name: `luminix.cms.${i}.index`,
|
|
367
|
+
element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(Ft, { factory: l.query, children: /* @__PURE__ */ r(a, {}) }) })
|
|
360
368
|
},
|
|
361
369
|
{
|
|
362
|
-
path: "/" + f.kebabCase(
|
|
363
|
-
name: `luminix.cms.${
|
|
364
|
-
element: /* @__PURE__ */ r(me, { Model:
|
|
370
|
+
path: "/" + f.kebabCase(l.plural()) + "/create",
|
|
371
|
+
name: `luminix.cms.${i}.item`,
|
|
372
|
+
element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(s, { create: !0 }) })
|
|
365
373
|
},
|
|
366
374
|
{
|
|
367
|
-
path: "/" + f.kebabCase(
|
|
368
|
-
name: `luminix.cms.${
|
|
369
|
-
element: /* @__PURE__ */ r(me, { Model:
|
|
375
|
+
path: "/" + f.kebabCase(l.plural()) + "/:id",
|
|
376
|
+
name: `luminix.cms.${i}.item`,
|
|
377
|
+
element: /* @__PURE__ */ r(me, { Model: l, children: /* @__PURE__ */ r(s, {}) })
|
|
370
378
|
}
|
|
371
379
|
])
|
|
372
380
|
]
|
|
@@ -3216,13 +3224,7 @@ const _r = {
|
|
|
3216
3224
|
new Xr(),
|
|
3217
3225
|
new Jr(n),
|
|
3218
3226
|
...t || []
|
|
3219
|
-
]
|
|
3220
|
-
config: {
|
|
3221
|
-
app: {
|
|
3222
|
-
debug: !0,
|
|
3223
|
-
url: "http://localhost"
|
|
3224
|
-
}
|
|
3225
|
-
}
|
|
3227
|
+
]
|
|
3226
3228
|
}
|
|
3227
3229
|
)
|
|
3228
3230
|
] });
|