dtable-statistic 5.3.17 → 5.3.19-beta.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.
@@ -14,10 +14,11 @@ class DTableDbAPI {
14
14
  if (this.req) return;
15
15
  const {
16
16
  accessToken,
17
- dtableDb
17
+ server
18
18
  } = window.dtable;
19
+ const apiGatewayUrl = (server || '').replace(/\/*$/, '') + '/api-gateway/';
19
20
  this.req = _axios.default.create({
20
- baseURL: dtableDb,
21
+ baseURL: apiGatewayUrl,
21
22
  headers: {
22
23
  'Authorization': 'Token ' + accessToken
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.3.17",
3
+ "version": "5.3.19-beta.1",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",
@@ -18,7 +18,7 @@
18
18
  "react-grid-layout": "^1.2.5",
19
19
  "react-intl-universal": "^2.4.8",
20
20
  "reactstrap": "9.2.3",
21
- "sea-chart": "^1.1.83"
21
+ "sea-chart": "^1.1.85-beta.1"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "dtable-ui-component": "~6.0.*",