|
@@ -48,8 +48,9 @@ export class ResourceModule extends ModuleRoot {
|
|
|
sysTplListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
sysImageListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
sysVideoListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
- sysSvgListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
sysCompListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
+ sysShapeListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
+ sysTextListCtrl: new PageListController(this.config?.httpConfig),
|
|
|
};
|
|
|
natsBus = new BusController();
|
|
|
treeController = new TreeController(this.natsBus);
|
|
@@ -80,23 +81,6 @@ export class ResourceModule extends ModuleRoot {
|
|
|
this.controls.custVideoListCtrl.state.size = 20;
|
|
|
this.controls.custVideoListCtrl.state.query = { fileType: "video" };
|
|
|
|
|
|
- this.controls.sysTplListCtrl.setCrudPrefix("/sys/h5");
|
|
|
- this.controls.sysTplListCtrl.state.size = 20;
|
|
|
- this.controls.sysTplListCtrl.state.query = { published: true};
|
|
|
-
|
|
|
- this.controls.sysImageListCtrl.setCrudPrefix("/sys/source");
|
|
|
- this.controls.sysImageListCtrl.state.size = 20;
|
|
|
- this.controls.sysImageListCtrl.state.query = { fileType: "image" , isSvg: {$ne: true}, published: true};
|
|
|
-
|
|
|
- this.controls.sysVideoListCtrl.setCrudPrefix("/sys/source");
|
|
|
- this.controls.sysVideoListCtrl.state.size = 20;
|
|
|
- this.controls.sysVideoListCtrl.state.query = { fileType: "video" , published: true};
|
|
|
-
|
|
|
- this.controls.sysSvgListCtrl.setCrudPrefix("/sys/source");
|
|
|
- this.controls.sysSvgListCtrl.state.size = 20;
|
|
|
- this.controls.sysSvgListCtrl.state.query = { fileType: "image" , isSvg: true};
|
|
|
- this.controls.sysSvgListCtrl.state.query = { published: true};
|
|
|
-
|
|
|
this.controls.custCompListCtrl.setCrudPrefix("/frame");
|
|
|
this.controls.custCompListCtrl.state.size = 20;
|
|
|
this.controls.custCompListCtrl.state.query = { type: "comp"};
|
|
@@ -109,9 +93,30 @@ export class ResourceModule extends ModuleRoot {
|
|
|
this.controls.custShapeListCtrl.state.size = 20;
|
|
|
this.controls.custShapeListCtrl.state.query = { type: "shape"};
|
|
|
|
|
|
+ this.controls.sysTplListCtrl.setCrudPrefix("/sys/h5");
|
|
|
+ this.controls.sysTplListCtrl.state.size = 20;
|
|
|
+ this.controls.sysTplListCtrl.state.query = { published: true};
|
|
|
+
|
|
|
+ this.controls.sysImageListCtrl.setCrudPrefix("/sys/source");
|
|
|
+ this.controls.sysImageListCtrl.state.size = 20;
|
|
|
+ this.controls.sysImageListCtrl.state.query = { fileType: "image" , isSvg: {$ne: true}, published: true};
|
|
|
+
|
|
|
+ this.controls.sysVideoListCtrl.setCrudPrefix("/sys/source");
|
|
|
+ this.controls.sysVideoListCtrl.state.size = 20;
|
|
|
+ this.controls.sysVideoListCtrl.state.query = { fileType: "video" , published: true};
|
|
|
+
|
|
|
this.controls.sysCompListCtrl.setCrudPrefix("sys/frame");
|
|
|
this.controls.sysCompListCtrl.state.size = 20;
|
|
|
+ this.controls.sysCompListCtrl.state.query = { type: "comp", published: true};
|
|
|
+
|
|
|
+ this.controls.sysShapeListCtrl.setCrudPrefix("/sys/frame");
|
|
|
+ this.controls.sysShapeListCtrl.state.size = 20;
|
|
|
+ this.controls.sysShapeListCtrl.state.query = { type: "shape", published: true};
|
|
|
|
|
|
+ this.controls.sysTextListCtrl.setCrudPrefix("/sys/frame");
|
|
|
+ this.controls.sysTextListCtrl.state.size = 20;
|
|
|
+ this.controls.sysTextListCtrl.state.query = { type: "text", published: true};
|
|
|
+
|
|
|
this.natsBus.init();
|
|
|
}
|
|
|
}
|