cc-core-cli 1.0.81 → 1.0.83

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.81",
3
+ "version": "1.0.83",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -1904,3 +1904,11 @@ h4.ant-typography {
1904
1904
  z-index: 100;
1905
1905
  position: absolute;
1906
1906
  }
1907
+
1908
+ .chartwidget-download-button {
1909
+ display: none;
1910
+ }
1911
+
1912
+ .chartwidget-canvas:hover .chartwidget-download-button {
1913
+ display: block;
1914
+ }
@@ -421,4 +421,10 @@ export class CoreController {
421
421
  const result = await this.serviceSetting.setPermission(params.entity, body);
422
422
  return result;
423
423
  }
424
+
425
+ @Basic()
426
+ @Patch("/:entity/import_validate")
427
+ async importValidate(@Param() params: any, @Body() data): Promise<boolean> {
428
+ return this.service.importValidate(params.entity, data);
429
+ }
424
430
  }
@@ -613,6 +613,11 @@ export class CoreService implements OnModuleInit {
613
613
  const service = await this._getService(entityName);
614
614
  return service.searchText(data);
615
615
  }
616
+
617
+ public async importValidate(entityName: string, data: any): Promise<any> {
618
+ const service = await this._getService(entityName);
619
+ return service.importValidate(data);
620
+ }
616
621
  }
617
622
 
618
623
  @Injectable()