dtable-statistic 5.3.42-alpha.2 → 5.3.42

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.
@@ -32,11 +32,7 @@
32
32
  flex-wrap: wrap;
33
33
  }
34
34
 
35
- .statistic-header .statistic-logo {
36
- display: flex;
37
- justify-content: center;
38
- align-items: center;
39
- font-weight: 400;
35
+ .statistic-header .dtable-plugin-logo {
40
36
  margin-right: 80px;
41
37
  color: var(--common-font-color);
42
38
  }
@@ -51,7 +47,7 @@
51
47
  font-weight: 500;
52
48
  color: var(--add-stat-item-color);
53
49
  border-color: var(--add-stat-item-border-color) !important;
54
- background-color: var(--add-stat-item-bg-color) !important;
50
+ background-color: var(--add-stat-item-bg-color);
55
51
  }
56
52
 
57
53
  .statistic-header .add-stat:hover {
@@ -94,10 +90,18 @@
94
90
  color: var(--dashboard-header-icon-hover-color);
95
91
  }
96
92
 
93
+ .statistic-header .add-stat:hover {
94
+ background-color: var(--add-stat-item-bg-hover-color);
95
+ }
96
+
97
97
  .statistic-header .op-item-icon-wrapper:hover .op-item-icon {
98
98
  color: var(--op-item-icon-hover-color);
99
99
  }
100
100
 
101
+ .statistic-header .op-item-icon-wrapper .op-item-icon {
102
+ font-size: 16px;
103
+ }
104
+
101
105
  .statistic-header .op-item-icon.btn-close {
102
106
  font-weight: 700;
103
107
  }
@@ -43,6 +43,7 @@
43
43
  --add-stat-item-border-color: rgba(0, 40, 100, 0.12);
44
44
  --add-stat-item-hover-border-color: rgba(0, 40, 100, 0.12);
45
45
  --add-stat-item-bg-color: #ffffff;
46
+ --add-stat-item-bg-hover-color: #f6f6f6;
46
47
  --add-stat-item-color: #212529;
47
48
  --add-stat-item-icon-hover-color: #212529;
48
49
  --add-stat-item-icon-color: #212529;
@@ -167,14 +167,12 @@ class DesktopDashboard extends _react.Component {
167
167
  }, /*#__PURE__*/_react.default.createElement("header", {
168
168
  className: "statistic-header"
169
169
  }, /*#__PURE__*/_react.default.createElement("div", {
170
- className: "statistic-logo"
170
+ className: "dtable-plugin-logo"
171
171
  }, /*#__PURE__*/_react.default.createElement("img", {
172
+ className: "dtable-plugin-logo-icon",
172
173
  src: _icon.default,
173
- alt: "",
174
- width: "24"
175
- }), /*#__PURE__*/_react.default.createElement("span", {
176
- className: "ml-2"
177
- }, _reactIntlUniversal.default.get('Statistics'))), /*#__PURE__*/_react.default.createElement(_tabs.default, {
174
+ alt: ""
175
+ }), /*#__PURE__*/_react.default.createElement("span", null, _reactIntlUniversal.default.get('Statistics'))), /*#__PURE__*/_react.default.createElement(_tabs.default, {
178
176
  theme: theme,
179
177
  statistics: statistics,
180
178
  selectedDashboardIdx: selectedDashboardIdx,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ /**
8
+ * local development settings
9
+ */
10
+ var _default = exports.default = {
11
+ // dtable api token (required)
12
+ APIToken: '01ab23[...]45cd67',
13
+ // server URL of the dtable of the plugin (required)
14
+ server: 'https://example.com',
15
+ // id of the workspace with the dtable of the plugin (required, workspace must exist)
16
+ workspaceID: '1',
17
+ // name of the dtable to add the plugin to (required, dtable must exist under this name)
18
+ dtableName: 'Default',
19
+ // default language ('en' or 'zh-cn' are common, see "src/locale/index.js" for all lang keys)
20
+ lang: 'en'
21
+ };
@@ -46,13 +46,13 @@
46
46
  }
47
47
 
48
48
  .dashboard-tab .tab-item-active {
49
- border-color: #3b88fd;
49
+ border-color: #5983f0;
50
50
  color: var(--statistic-header-focused-font-color);
51
51
  cursor: default;
52
52
  }
53
53
 
54
54
  .dashboard-tab .tab-item-active-mobile {
55
- border-color: #3b88fd;
55
+ border-color: #5983f0;
56
56
  color: var(--statistic-header-focused-font-color);
57
57
  }
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-statistic",
3
- "version": "5.3.42-alpha.2",
3
+ "version": "5.3.42",
4
4
  "description": "statistics",
5
5
  "main": "dist/dtable-statistic.js",
6
6
  "author": "seafile",
@@ -9,7 +9,6 @@
9
9
  "@antv/util": "^3.3.2",
10
10
  "comlink": "^4.4.1",
11
11
  "dayjs": "1.10.7",
12
- "dtable-web-api": "^5.2.7",
13
12
  "html2canvas": "^1.4.1",
14
13
  "react": "^18.3.1",
15
14
  "react-dom": "^18.3.1",