@yomotech/view-toolkit 0.0.34 → 0.0.36

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.
@@ -173,6 +173,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
173
173
  class RequestService {
174
174
  http;
175
175
  pageSize = 0;
176
+ backendUrl = '/api';
177
+ apiUrl = `${this.backendUrl}/project`;
176
178
  constructor(http) {
177
179
  this.http = http;
178
180
  }
@@ -198,6 +200,12 @@ class RequestService {
198
200
  }
199
201
  ;
200
202
  }
203
+ readFile(projectName, path) {
204
+ return this.http.post(`${this.apiUrl}/read`, {
205
+ projectName: projectName,
206
+ filePath: path
207
+ });
208
+ }
201
209
  getMainLayout(selectedProject) {
202
210
  return this.http.get(`../assets/projects/${selectedProject}/main/layout_schema.json`);
203
211
  }
@@ -2704,9 +2712,7 @@ class Couchdb {
2704
2712
  };
2705
2713
  }
2706
2714
  else {
2707
- console.log('tenantName: ', tenantName);
2708
- console.log('selectedTenant: ', selectedTenant);
2709
- if (!tenantName || !selectedTenant) {
2715
+ if (!tenantName && !selectedTenant) {
2710
2716
  throw new Error('Missing tenantName');
2711
2717
  }
2712
2718
  return {