cozy-bar 14.0.0 → 15.0.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.
|
@@ -27,7 +27,7 @@ var StorageData = function StorageData() {
|
|
|
27
27
|
|
|
28
28
|
if (!isLoaded) return null; // we used this default quota set in getStorageData, we just reuse it here
|
|
29
29
|
|
|
30
|
-
var storageData = (0, _instance.makeDiskInfos)(diskUsage.data.
|
|
30
|
+
var storageData = (0, _instance.makeDiskInfos)(diskUsage.data.used, diskUsage.data.quota || Math.max(Math.pow(10, 12), 10 * parseInt(diskUsage.data.used, 10)));
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, t('storage_phrase', {
|
|
32
32
|
diskUsage: storageData.humanDiskUsage,
|
|
33
33
|
diskQuota: storageData.humanDiskQuota
|
|
@@ -15,8 +15,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
-
var _cozyFlags = _interopRequireDefault(require("cozy-flags"));
|
|
19
|
-
|
|
20
18
|
var _ActionsMenuItem = _interopRequireDefault(require("cozy-ui/transpiled/react/ActionsMenu/ActionsMenuItem"));
|
|
21
19
|
|
|
22
20
|
var _ListItemIcon = _interopRequireDefault(require("cozy-ui/transpiled/react/ListItemIcon"));
|
|
@@ -50,9 +48,6 @@ var appearance = function appearance(_ref2) {
|
|
|
50
48
|
name: 'appearance',
|
|
51
49
|
icon: icon,
|
|
52
50
|
label: label,
|
|
53
|
-
displayCondition: function displayCondition() {
|
|
54
|
-
return (0, _cozyFlags.default)('ui.darkmode.enabled');
|
|
55
|
-
},
|
|
56
51
|
action: function action(_, _ref3) {
|
|
57
52
|
var client = _ref3.client;
|
|
58
53
|
var link = (0, _helper.getSettingsLink)({
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-bar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.1",
|
|
4
4
|
"description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"cozy-interapp": "0.4.9",
|
|
50
50
|
"cozy-logger": "1.9.1",
|
|
51
51
|
"cozy-realtime": "^4.0.5",
|
|
52
|
-
"cozy-ui": "^111.
|
|
52
|
+
"cozy-ui": "^111.12.0",
|
|
53
53
|
"enzyme": "3.10.0",
|
|
54
54
|
"enzyme-adapter-react-16": "1.3",
|
|
55
55
|
"enzyme-to-json": "3.3.5",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"cozy-intent": ">=1.3.0",
|
|
83
83
|
"cozy-interapp": ">=0.4.9",
|
|
84
84
|
"cozy-realtime": ">=4.0.5",
|
|
85
|
-
"cozy-ui": ">=111.
|
|
85
|
+
"cozy-ui": ">=111.12.0",
|
|
86
86
|
"react": ">=16.10.1",
|
|
87
87
|
"react-dom": ">=16.10.1"
|
|
88
88
|
}
|