imean-service-engine 2.2.0 → 2.2.1
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/dist/index.js +24 -0
- package/dist/index.mjs +24 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6610,6 +6610,9 @@ var HtmxAdminPlugin = class {
|
|
|
6610
6610
|
* 检查并注册模块
|
|
6611
6611
|
*/
|
|
6612
6612
|
checkAndRegisterModules(modules) {
|
|
6613
|
+
modules = modules.filter(
|
|
6614
|
+
(module) => module.clazz instanceof PageModule || module.clazz.prototype instanceof PageModule
|
|
6615
|
+
);
|
|
6613
6616
|
for (const module of modules) {
|
|
6614
6617
|
const options = module.options;
|
|
6615
6618
|
const moduleClass = module.clazz;
|
|
@@ -6689,27 +6692,48 @@ var HtmxAdminPlugin = class {
|
|
|
6689
6692
|
}
|
|
6690
6693
|
});
|
|
6691
6694
|
if (type === "list") {
|
|
6695
|
+
logger_default.info(
|
|
6696
|
+
`[HtmxAdminPlugin] Registering list route: ${basePath}/list`
|
|
6697
|
+
);
|
|
6692
6698
|
this.hono.get(`${basePath}/list`, async (ctx) => {
|
|
6693
6699
|
return routeHandler.handle(ctx);
|
|
6694
6700
|
});
|
|
6695
6701
|
} else if (type === "detail") {
|
|
6702
|
+
logger_default.info(
|
|
6703
|
+
`[HtmxAdminPlugin] Registering detail route: ${basePath}/detail/:id`
|
|
6704
|
+
);
|
|
6696
6705
|
this.hono.get(`${basePath}/detail/:id`, async (ctx) => {
|
|
6697
6706
|
return routeHandler.handle(ctx);
|
|
6698
6707
|
});
|
|
6699
6708
|
} else if (type === "form") {
|
|
6709
|
+
logger_default.info(
|
|
6710
|
+
`[HtmxAdminPlugin] Registering form route: ${basePath}/new`
|
|
6711
|
+
);
|
|
6700
6712
|
this.hono.get(`${basePath}/new`, async (ctx) => {
|
|
6701
6713
|
return routeHandler.handle(ctx);
|
|
6702
6714
|
});
|
|
6715
|
+
logger_default.info(
|
|
6716
|
+
`[HtmxAdminPlugin] Registering form create route: ${basePath}`
|
|
6717
|
+
);
|
|
6703
6718
|
this.hono.post(basePath, async (ctx) => {
|
|
6704
6719
|
return routeHandler.handle(ctx);
|
|
6705
6720
|
});
|
|
6721
|
+
logger_default.info(
|
|
6722
|
+
`[HtmxAdminPlugin] Registering form update route: ${basePath}/:id`
|
|
6723
|
+
);
|
|
6706
6724
|
this.hono.put(`${basePath}/:id`, async (ctx) => {
|
|
6707
6725
|
return routeHandler.handle(ctx);
|
|
6708
6726
|
});
|
|
6727
|
+
logger_default.info(
|
|
6728
|
+
`[HtmxAdminPlugin] Registering form delete route: ${basePath}/:id`
|
|
6729
|
+
);
|
|
6709
6730
|
this.hono.delete(`${basePath}/:id`, async (ctx) => {
|
|
6710
6731
|
return routeHandler.handle(ctx);
|
|
6711
6732
|
});
|
|
6712
6733
|
} else if (type === "custom") {
|
|
6734
|
+
logger_default.info(
|
|
6735
|
+
`[HtmxAdminPlugin] Registering custom route: ${basePath}`
|
|
6736
|
+
);
|
|
6713
6737
|
this.hono.get(basePath, async (ctx) => {
|
|
6714
6738
|
return routeHandler.handle(ctx);
|
|
6715
6739
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -6585,6 +6585,9 @@ var HtmxAdminPlugin = class {
|
|
|
6585
6585
|
* 检查并注册模块
|
|
6586
6586
|
*/
|
|
6587
6587
|
checkAndRegisterModules(modules) {
|
|
6588
|
+
modules = modules.filter(
|
|
6589
|
+
(module) => module.clazz instanceof PageModule || module.clazz.prototype instanceof PageModule
|
|
6590
|
+
);
|
|
6588
6591
|
for (const module of modules) {
|
|
6589
6592
|
const options = module.options;
|
|
6590
6593
|
const moduleClass = module.clazz;
|
|
@@ -6664,27 +6667,48 @@ var HtmxAdminPlugin = class {
|
|
|
6664
6667
|
}
|
|
6665
6668
|
});
|
|
6666
6669
|
if (type === "list") {
|
|
6670
|
+
logger_default.info(
|
|
6671
|
+
`[HtmxAdminPlugin] Registering list route: ${basePath}/list`
|
|
6672
|
+
);
|
|
6667
6673
|
this.hono.get(`${basePath}/list`, async (ctx) => {
|
|
6668
6674
|
return routeHandler.handle(ctx);
|
|
6669
6675
|
});
|
|
6670
6676
|
} else if (type === "detail") {
|
|
6677
|
+
logger_default.info(
|
|
6678
|
+
`[HtmxAdminPlugin] Registering detail route: ${basePath}/detail/:id`
|
|
6679
|
+
);
|
|
6671
6680
|
this.hono.get(`${basePath}/detail/:id`, async (ctx) => {
|
|
6672
6681
|
return routeHandler.handle(ctx);
|
|
6673
6682
|
});
|
|
6674
6683
|
} else if (type === "form") {
|
|
6684
|
+
logger_default.info(
|
|
6685
|
+
`[HtmxAdminPlugin] Registering form route: ${basePath}/new`
|
|
6686
|
+
);
|
|
6675
6687
|
this.hono.get(`${basePath}/new`, async (ctx) => {
|
|
6676
6688
|
return routeHandler.handle(ctx);
|
|
6677
6689
|
});
|
|
6690
|
+
logger_default.info(
|
|
6691
|
+
`[HtmxAdminPlugin] Registering form create route: ${basePath}`
|
|
6692
|
+
);
|
|
6678
6693
|
this.hono.post(basePath, async (ctx) => {
|
|
6679
6694
|
return routeHandler.handle(ctx);
|
|
6680
6695
|
});
|
|
6696
|
+
logger_default.info(
|
|
6697
|
+
`[HtmxAdminPlugin] Registering form update route: ${basePath}/:id`
|
|
6698
|
+
);
|
|
6681
6699
|
this.hono.put(`${basePath}/:id`, async (ctx) => {
|
|
6682
6700
|
return routeHandler.handle(ctx);
|
|
6683
6701
|
});
|
|
6702
|
+
logger_default.info(
|
|
6703
|
+
`[HtmxAdminPlugin] Registering form delete route: ${basePath}/:id`
|
|
6704
|
+
);
|
|
6684
6705
|
this.hono.delete(`${basePath}/:id`, async (ctx) => {
|
|
6685
6706
|
return routeHandler.handle(ctx);
|
|
6686
6707
|
});
|
|
6687
6708
|
} else if (type === "custom") {
|
|
6709
|
+
logger_default.info(
|
|
6710
|
+
`[HtmxAdminPlugin] Registering custom route: ${basePath}`
|
|
6711
|
+
);
|
|
6688
6712
|
this.hono.get(basePath, async (ctx) => {
|
|
6689
6713
|
return routeHandler.handle(ctx);
|
|
6690
6714
|
});
|