@zextras/carbonio-shell-ui 5.1.0 → 5.2.0
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/dist/CHANGELOG.md +14 -0
- package/dist/commit +1 -1
- package/dist/component.json +3 -3
- package/dist/index.html +1 -1
- package/dist/package/PKGBUILD +7 -7
- package/dist/{src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.791d4085.chunk.js → src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.1dcb614b.chunk.js} +117 -20
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.1dcb614b.chunk.js.map +1 -0
- package/dist/{src_workers_folder_ts.a8b1035d.chunk.js → src_workers_folder_ts.c0299aa3.chunk.js} +2 -2
- package/dist/{src_workers_folder_ts.a8b1035d.chunk.js.map → src_workers_folder_ts.c0299aa3.chunk.js.map} +1 -1
- package/dist/{style.0e15c04f.css → style.a3b78aca.css} +29 -29
- package/dist/{style.0e15c04f.css.map → style.a3b78aca.css.map} +1 -1
- package/dist/{vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-3b2651.9e1c2e92.chunk.js → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-3b2651.935d9280.chunk.js} +3491 -3811
- package/dist/{vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-3b2651.9e1c2e92.chunk.js.map → vendors-node_modules_tinymce_skins_ui_oxide_skin_min_css-node_modules_reduxjs_toolkit_dist_re-3b2651.935d9280.chunk.js.map} +1 -1
- package/dist/zapp-shell.bundle.js +2 -2
- package/dist/zapp-shell.bundle.js.map +1 -1
- package/package.json +4 -3
- package/types/exports/index.d.ts +8 -0
- package/dist/src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.791d4085.chunk.js.map +0 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [5.2.0](https://github.com/zextras/carbonio-shell-ui/compare/v5.1.0...v5.2.0) (2024-03-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* implement matomo tracker ([8d0594b](https://github.com/zextras/carbonio-shell-ui/commit/8d0594be791580126dc340d433ac623ac78180ea)), closes [#388](https://github.com/zextras/carbonio-shell-ui/issues/388)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* prevent overwriting display of main route if focus mode is true ([f0cb48f](https://github.com/zextras/carbonio-shell-ui/commit/f0cb48faa3013a40825cb42dab124ebb1164c848)), closes [#382](https://github.com/zextras/carbonio-shell-ui/issues/382)
|
|
16
|
+
* reset primary color when is no more received in configs ([aecb64e](https://github.com/zextras/carbonio-shell-ui/commit/aecb64e6571e80761000c34beae62405531ab4d7)), closes [#384](https://github.com/zextras/carbonio-shell-ui/issues/384)
|
|
17
|
+
* show quota when used quota is 0 ([06617d8](https://github.com/zextras/carbonio-shell-ui/commit/06617d8ecb2872b3dfcc2dd486694d1d80143a03)), closes [#381](https://github.com/zextras/carbonio-shell-ui/issues/381)
|
|
18
|
+
|
|
5
19
|
## [5.1.0](https://github.com/zextras/carbonio-shell-ui/compare/v5.0.3...v5.1.0) (2024-01-10)
|
|
6
20
|
|
|
7
21
|
|
package/dist/commit
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
016f4afd2f000494c7fbdfcaf11d5bf3e8648975
|
package/dist/component.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carbonio-shell-ui",
|
|
3
|
-
"js_entrypoint": "/static/iris/carbonio-shell-ui/
|
|
3
|
+
"js_entrypoint": "/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/zapp-shell.bundle.js",
|
|
4
4
|
"description": "The Zextras Carbonio web client",
|
|
5
|
-
"version": "5.
|
|
6
|
-
"commit": "
|
|
5
|
+
"version": "5.2.0",
|
|
6
|
+
"commit": "016f4afd2f000494c7fbdfcaf11d5bf3e8648975",
|
|
7
7
|
"priority": -1,
|
|
8
8
|
"type": "shell",
|
|
9
9
|
"attrKey": "",
|
package/dist/index.html
CHANGED
|
@@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|
|
16
16
|
<meta http-equiv="Cache-Control" content="no-cache" />
|
|
17
17
|
<meta http-equiv="Pragma" content="no-cache" />
|
|
18
18
|
<meta http-equiv="Expires" content="0" />
|
|
19
|
-
<script defer src="/static/iris/carbonio-shell-ui/
|
|
19
|
+
<script defer src="/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/zapp-shell.bundle.js"></script><link href="/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/style.a3b78aca.css" rel="stylesheet"></head>
|
|
20
20
|
|
|
21
21
|
<body>
|
|
22
22
|
<div id="app"></div>
|
package/dist/package/PKGBUILD
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# upgrade, but so far there is nothing we can do about it (we would need to coordinate multiple nginx).
|
|
7
7
|
|
|
8
8
|
pkgname="carbonio-shell-ui"
|
|
9
|
-
pkgver="5.
|
|
9
|
+
pkgver="5.2.0"
|
|
10
10
|
pkgrel="1"
|
|
11
11
|
pkgdesc="The Zextras Carbonio web client"
|
|
12
12
|
maintainer="Zextras (packages@zextras.com)"
|
|
@@ -23,11 +23,11 @@ depends=(
|
|
|
23
23
|
|
|
24
24
|
package() {
|
|
25
25
|
cd "${srcdir}"
|
|
26
|
-
mkdir -p "${pkgdir}/opt/zextras/web/iris/${pkgname}/
|
|
27
|
-
cp -a ../../dist/* "${pkgdir}/opt/zextras/web/iris/${pkgname}/
|
|
28
|
-
chown root:root -R "${pkgdir}/opt/zextras/web/iris/${pkgname}/
|
|
29
|
-
chmod 644 -R "${pkgdir}/opt/zextras/web/iris/${pkgname}/
|
|
30
|
-
find "${pkgdir}/opt/zextras/web/iris/${pkgname}/
|
|
26
|
+
mkdir -p "${pkgdir}/opt/zextras/web/iris/${pkgname}/016f4afd2f000494c7fbdfcaf11d5bf3e8648975"
|
|
27
|
+
cp -a ../../dist/* "${pkgdir}/opt/zextras/web/iris/${pkgname}/016f4afd2f000494c7fbdfcaf11d5bf3e8648975"
|
|
28
|
+
chown root:root -R "${pkgdir}/opt/zextras/web/iris/${pkgname}/016f4afd2f000494c7fbdfcaf11d5bf3e8648975"
|
|
29
|
+
chmod 644 -R "${pkgdir}/opt/zextras/web/iris/${pkgname}/016f4afd2f000494c7fbdfcaf11d5bf3e8648975"
|
|
30
|
+
find "${pkgdir}/opt/zextras/web/iris/${pkgname}/016f4afd2f000494c7fbdfcaf11d5bf3e8648975" -type d -exec chmod a+x "{}" \;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
postinst() {
|
|
@@ -35,7 +35,7 @@ postinst() {
|
|
|
35
35
|
mkdir -p "/opt/zextras/web/iris/carbonio-shell-ui/current"
|
|
36
36
|
|
|
37
37
|
# not every package has a index.html
|
|
38
|
-
cd "/opt/zextras/web/iris/carbonio-shell-ui/
|
|
38
|
+
cd "/opt/zextras/web/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975"
|
|
39
39
|
find . -name "*.html" -exec cp --parents "{}" /opt/zextras/web/iris/carbonio-shell-ui/current/ \;
|
|
40
40
|
|
|
41
41
|
# re-generate the component list, for every component
|
|
@@ -522,6 +522,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
522
522
|
/* harmony import */ var _store_app__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../store/app */ "./src/store/app/index.ts");
|
|
523
523
|
/* harmony import */ var _ui_extras_app_link__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../ui-extras/app-link */ "./src/ui-extras/app-link.tsx");
|
|
524
524
|
/* harmony import */ var _ui_extras_spinner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../ui-extras/spinner */ "./src/ui-extras/spinner.tsx");
|
|
525
|
+
/* harmony import */ var _tracker__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../tracker */ "./src/boot/tracker.ts");
|
|
525
526
|
/*
|
|
526
527
|
* SPDX-FileCopyrightText: 2021 Zextras <https://www.zextras.com>
|
|
527
528
|
*
|
|
@@ -538,6 +539,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
538
539
|
|
|
539
540
|
|
|
540
541
|
|
|
542
|
+
|
|
541
543
|
const _scripts = {};
|
|
542
544
|
let _scriptId = 0;
|
|
543
545
|
function loadApp(appPkg) {
|
|
@@ -551,7 +553,8 @@ function loadApp(appPkg) {
|
|
|
551
553
|
SettingsHeader: _settings_components_settings_header__WEBPACK_IMPORTED_MODULE_6__["default"],
|
|
552
554
|
...(0,_app_loader_setters__WEBPACK_IMPORTED_MODULE_3__.getAppSetters)(appPkg),
|
|
553
555
|
...(0,_app_loader_functions__WEBPACK_IMPORTED_MODULE_2__.getAppFunctions)(appPkg),
|
|
554
|
-
..._constants__WEBPACK_IMPORTED_MODULE_4__
|
|
556
|
+
..._constants__WEBPACK_IMPORTED_MODULE_4__,
|
|
557
|
+
Tracker: _tracker__WEBPACK_IMPORTED_MODULE_10__.Tracker
|
|
555
558
|
};
|
|
556
559
|
}
|
|
557
560
|
window.__ZAPP_HMR_EXPORT__[appPkg.name] = appComponent => {
|
|
@@ -953,6 +956,43 @@ const Loader = () => {
|
|
|
953
956
|
|
|
954
957
|
/***/ }),
|
|
955
958
|
|
|
959
|
+
/***/ "./src/boot/matomo.ts":
|
|
960
|
+
/*!****************************!*\
|
|
961
|
+
!*** ./src/boot/matomo.ts ***!
|
|
962
|
+
\****************************/
|
|
963
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
964
|
+
|
|
965
|
+
"use strict";
|
|
966
|
+
__webpack_require__.r(__webpack_exports__);
|
|
967
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
968
|
+
/* harmony export */ getMatomoTracker: () => (/* binding */ getMatomoTracker),
|
|
969
|
+
/* harmony export */ initMatomo: () => (/* binding */ initMatomo)
|
|
970
|
+
/* harmony export */ });
|
|
971
|
+
/*
|
|
972
|
+
* SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
|
|
973
|
+
*
|
|
974
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
975
|
+
*/
|
|
976
|
+
|
|
977
|
+
function initMatomo(url) {
|
|
978
|
+
const matomoScriptId = 'matomo-script';
|
|
979
|
+
if (document.getElementById(matomoScriptId)) {
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
const matomoScript = document.createElement('script');
|
|
983
|
+
const scriptElement = document.getElementsByTagName('script')[0];
|
|
984
|
+
matomoScript.type = 'text/javascript';
|
|
985
|
+
matomoScript.async = true;
|
|
986
|
+
matomoScript.src = `${url}matomo.js`;
|
|
987
|
+
matomoScript.id = matomoScriptId;
|
|
988
|
+
scriptElement.parentNode?.insertBefore(matomoScript, scriptElement);
|
|
989
|
+
}
|
|
990
|
+
function getMatomoTracker(url, siteId) {
|
|
991
|
+
return Matomo.getTracker(`${url}matomo.php`, siteId);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/***/ }),
|
|
995
|
+
|
|
956
996
|
/***/ "./src/boot/shell-i18n-provider.tsx":
|
|
957
997
|
/*!******************************************!*\
|
|
958
998
|
!*** ./src/boot/shell-i18n-provider.tsx ***!
|
|
@@ -1162,6 +1202,69 @@ const ThemeProvider = _ref3 => {
|
|
|
1162
1202
|
|
|
1163
1203
|
/***/ }),
|
|
1164
1204
|
|
|
1205
|
+
/***/ "./src/boot/tracker.ts":
|
|
1206
|
+
/*!*****************************!*\
|
|
1207
|
+
!*** ./src/boot/tracker.ts ***!
|
|
1208
|
+
\*****************************/
|
|
1209
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1210
|
+
|
|
1211
|
+
"use strict";
|
|
1212
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1213
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1214
|
+
/* harmony export */ Tracker: () => (/* binding */ Tracker)
|
|
1215
|
+
/* harmony export */ });
|
|
1216
|
+
/* harmony import */ var _matomo__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./matomo */ "./src/boot/matomo.ts");
|
|
1217
|
+
/*
|
|
1218
|
+
* SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
|
|
1219
|
+
*
|
|
1220
|
+
* SPDX-License-Identifier: AGPL-3.0-only
|
|
1221
|
+
*/
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
class Tracker {
|
|
1225
|
+
static URL = 'https://analytics.zextras.tools/';
|
|
1226
|
+
static isEnabled = false;
|
|
1227
|
+
constructor(siteId) {
|
|
1228
|
+
this.siteId = siteId;
|
|
1229
|
+
if (Tracker.isEnabled) {
|
|
1230
|
+
this.matomoTracker = (0,_matomo__WEBPACK_IMPORTED_MODULE_0__.getMatomoTracker)(Tracker.URL, siteId);
|
|
1231
|
+
} else {
|
|
1232
|
+
this.matomoTracker = null;
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
static enableTracker(isEnabled) {
|
|
1236
|
+
if (isEnabled) {
|
|
1237
|
+
(0,_matomo__WEBPACK_IMPORTED_MODULE_0__.initMatomo)(Tracker.URL);
|
|
1238
|
+
}
|
|
1239
|
+
Tracker.isEnabled = isEnabled;
|
|
1240
|
+
}
|
|
1241
|
+
trackPageView(customTitle) {
|
|
1242
|
+
const tracker = this.getMatomoTrackerInstance();
|
|
1243
|
+
tracker?.setCustomUrl(window.location.href);
|
|
1244
|
+
tracker?.trackPageView(customTitle);
|
|
1245
|
+
}
|
|
1246
|
+
trackEvent(category, action, name, value) {
|
|
1247
|
+
const tracker = this.getMatomoTrackerInstance();
|
|
1248
|
+
tracker?.setCustomUrl(window.location.href);
|
|
1249
|
+
tracker?.trackEvent(category, action, name, value);
|
|
1250
|
+
}
|
|
1251
|
+
getMatomoTrackerInstance() {
|
|
1252
|
+
if (!Tracker.isEnabled) {
|
|
1253
|
+
return null;
|
|
1254
|
+
}
|
|
1255
|
+
if (this.matomoTracker === null) {
|
|
1256
|
+
try {
|
|
1257
|
+
this.matomoTracker = (0,_matomo__WEBPACK_IMPORTED_MODULE_0__.getMatomoTracker)(Tracker.URL, this.siteId);
|
|
1258
|
+
} catch (e) {
|
|
1259
|
+
console.warn('Matomo is not initialized yet: ', e);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
return this.matomoTracker;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/***/ }),
|
|
1267
|
+
|
|
1165
1268
|
/***/ "./src/boot/use-get-primary-color.tsx":
|
|
1166
1269
|
/*!********************************************!*\
|
|
1167
1270
|
!*** ./src/boot/use-get-primary-color.tsx ***!
|
|
@@ -1175,8 +1278,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1175
1278
|
/* harmony export */ });
|
|
1176
1279
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js");
|
|
1177
1280
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1178
|
-
/* harmony import */ var _zextras_carbonio_design_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @zextras/carbonio-design-system */ "./node_modules/@zextras/carbonio-design-system/dist/zapp-ui.bundle.js");
|
|
1179
|
-
/* harmony import */ var _zextras_carbonio_design_system__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_zextras_carbonio_design_system__WEBPACK_IMPORTED_MODULE_6__);
|
|
1180
1281
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ "./node_modules/lodash/lodash.js");
|
|
1181
1282
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
1182
1283
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants */ "./src/constants/index.ts");
|
|
@@ -1194,18 +1295,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1194
1295
|
|
|
1195
1296
|
|
|
1196
1297
|
|
|
1197
|
-
|
|
1198
1298
|
function useGetPrimaryColor() {
|
|
1199
1299
|
const [localStorageLastPrimary, setLocalStorageLastPrimary] = (0,_shell_hooks_useLocalStorage__WEBPACK_IMPORTED_MODULE_4__.useLocalStorage)(_constants__WEBPACK_IMPORTED_MODULE_2__.LOCAL_STORAGE_LAST_PRIMARY_KEY, undefined);
|
|
1200
1300
|
const {
|
|
1201
1301
|
carbonioWebUiPrimaryColor,
|
|
1202
|
-
carbonioWebUiDarkPrimaryColor
|
|
1302
|
+
carbonioWebUiDarkPrimaryColor,
|
|
1303
|
+
loaded
|
|
1203
1304
|
} = (0,_store_login_store__WEBPACK_IMPORTED_MODULE_5__.useLoginConfigStore)();
|
|
1204
1305
|
const {
|
|
1205
1306
|
darkModeEnabled,
|
|
1206
1307
|
darkReaderStatus
|
|
1207
1308
|
} = (0,_dark_mode_use_dark_mode__WEBPACK_IMPORTED_MODULE_3__.useDarkMode)();
|
|
1208
|
-
const theme = (0,_zextras_carbonio_design_system__WEBPACK_IMPORTED_MODULE_6__.useTheme)();
|
|
1209
1309
|
const primaryColor = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
|
|
1210
1310
|
if (darkReaderStatus !== undefined && (carbonioWebUiPrimaryColor || carbonioWebUiDarkPrimaryColor)) {
|
|
1211
1311
|
if (darkModeEnabled) {
|
|
@@ -1213,14 +1313,11 @@ function useGetPrimaryColor() {
|
|
|
1213
1313
|
}
|
|
1214
1314
|
return carbonioWebUiPrimaryColor || carbonioWebUiDarkPrimaryColor;
|
|
1215
1315
|
}
|
|
1216
|
-
if (localStorageLastPrimary && (0,lodash__WEBPACK_IMPORTED_MODULE_1__.size)(localStorageLastPrimary) > 0) {
|
|
1316
|
+
if (localStorageLastPrimary && (0,lodash__WEBPACK_IMPORTED_MODULE_1__.size)(localStorageLastPrimary) > 0 && !loaded) {
|
|
1217
1317
|
return darkModeEnabled && (localStorageLastPrimary.dark || localStorageLastPrimary.light) || localStorageLastPrimary.light || localStorageLastPrimary.dark;
|
|
1218
1318
|
}
|
|
1219
|
-
if (theme) {
|
|
1220
|
-
return theme.palette.primary.regular;
|
|
1221
|
-
}
|
|
1222
1319
|
return undefined;
|
|
1223
|
-
}, [carbonioWebUiDarkPrimaryColor, carbonioWebUiPrimaryColor, darkModeEnabled, darkReaderStatus,
|
|
1320
|
+
}, [carbonioWebUiDarkPrimaryColor, carbonioWebUiPrimaryColor, darkModeEnabled, darkReaderStatus, loaded, localStorageLastPrimary]);
|
|
1224
1321
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
1225
1322
|
if (darkReaderStatus !== undefined) {
|
|
1226
1323
|
setLocalStorageLastPrimary(prevState => ({
|
|
@@ -5615,7 +5712,7 @@ const UserQuota = _ref => {
|
|
|
5615
5712
|
const used = (0,_store_account_store__WEBPACK_IMPORTED_MODULE_2__.useAccountStore)(s => s.usedQuota);
|
|
5616
5713
|
const quota = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
|
|
5617
5714
|
const userQuota = Number(settings?.attrs?.zimbraMailQuota);
|
|
5618
|
-
if (
|
|
5715
|
+
if (userQuota > 0) {
|
|
5619
5716
|
return Math.round(used / userQuota * 100);
|
|
5620
5717
|
}
|
|
5621
5718
|
return -1;
|
|
@@ -5628,7 +5725,7 @@ const UserQuota = _ref => {
|
|
|
5628
5725
|
}, [quota]);
|
|
5629
5726
|
const description = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => {
|
|
5630
5727
|
switch (true) {
|
|
5631
|
-
case
|
|
5728
|
+
case quota < 0:
|
|
5632
5729
|
return t('user_quota.unlimited', 'You have unlimited space available');
|
|
5633
5730
|
case quota === 100:
|
|
5634
5731
|
return t('user_quota.space_full', 'It seems that all available space is full');
|
|
@@ -10367,7 +10464,7 @@ const useAppStore = (0,zustand__WEBPACK_IMPORTED_MODULE_4__.create)()((set, get)
|
|
|
10367
10464
|
component: routeData.appView
|
|
10368
10465
|
});
|
|
10369
10466
|
}
|
|
10370
|
-
if (routeData.app && state.apps[routeData.app]) {
|
|
10467
|
+
if (routeData.app && state.apps[routeData.app] && routeData.focusMode !== true) {
|
|
10371
10468
|
state.apps[routeData.app].display = routeData.label;
|
|
10372
10469
|
}
|
|
10373
10470
|
}));
|
|
@@ -11355,7 +11452,7 @@ const defaultI18nInitOptions = {
|
|
|
11355
11452
|
console.warn(`Missing translation with key '${key}'`);
|
|
11356
11453
|
},
|
|
11357
11454
|
backend: {
|
|
11358
|
-
loadPath: `${"/static/iris/carbonio-shell-ui/
|
|
11455
|
+
loadPath: `${"/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/"}/i18n/{{lng}}.json`
|
|
11359
11456
|
}
|
|
11360
11457
|
};
|
|
11361
11458
|
const useI18nStore = (0,zustand__WEBPACK_IMPORTED_MODULE_6__.create)()(set => ({
|
|
@@ -11389,7 +11486,7 @@ const useI18nStore = (0,zustand__WEBPACK_IMPORTED_MODULE_6__.create)()(set => ({
|
|
|
11389
11486
|
...defaultI18nInitOptions,
|
|
11390
11487
|
lng: locale,
|
|
11391
11488
|
backend: {
|
|
11392
|
-
loadPath: app.name === _constants__WEBPACK_IMPORTED_MODULE_4__.SHELL_APP_ID ? `${"/static/iris/carbonio-shell-ui/
|
|
11489
|
+
loadPath: app.name === _constants__WEBPACK_IMPORTED_MODULE_4__.SHELL_APP_ID ? `${"/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/"}/i18n/{{lng}}.json` : `${(0,lodash__WEBPACK_IMPORTED_MODULE_2__.dropRight)(app.js_entrypoint.split('/')).join('/')}/i18n/{{lng}}.json`
|
|
11393
11490
|
}
|
|
11394
11491
|
});
|
|
11395
11492
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -11586,8 +11683,8 @@ const Composer = _ref => {
|
|
|
11586
11683
|
});
|
|
11587
11684
|
}, [inlineLabel, onFileClick, onFileSelect, t]);
|
|
11588
11685
|
const editorInitConfig = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => ({
|
|
11589
|
-
content_css: `${"/static/iris/carbonio-shell-ui/
|
|
11590
|
-
language_url: `${"/static/iris/carbonio-shell-ui/
|
|
11686
|
+
content_css: `${"/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/"}/tinymce/skins/content/default/content.css`,
|
|
11687
|
+
language_url: `${"/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/"}tinymce/langs/${language}.js`,
|
|
11591
11688
|
language,
|
|
11592
11689
|
setup: setupCallback,
|
|
11593
11690
|
min_height: 350,
|
|
@@ -12109,7 +12206,7 @@ const useLoginConfigStore = (0,zustand__WEBPACK_IMPORTED_MODULE_0__.create)()(()
|
|
|
12109
12206
|
// setup defaults for fields which does not depend on dark mode
|
|
12110
12207
|
carbonioWebUiTitle: 'Carbonio Client',
|
|
12111
12208
|
// default to png because this icon is used also in notification, and svg are not supported there
|
|
12112
|
-
carbonioWebUiFavicon: `${"/static/iris/carbonio-shell-ui/
|
|
12209
|
+
carbonioWebUiFavicon: `${"/static/iris/carbonio-shell-ui/016f4afd2f000494c7fbdfcaf11d5bf3e8648975/"}favicon.png`
|
|
12113
12210
|
}));
|
|
12114
12211
|
|
|
12115
12212
|
/***/ }),
|
|
@@ -13505,4 +13602,4 @@ module.exports = __webpack_require__.p + "20d012c938e8d0dcc703.mp3";
|
|
|
13505
13602
|
/***/ })
|
|
13506
13603
|
|
|
13507
13604
|
}]);
|
|
13508
|
-
//# sourceMappingURL=src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.
|
|
13605
|
+
//# sourceMappingURL=src_boot_bootstrapper_tsx-node_modules_moment_locale_sync_recursive_.1dcb614b.chunk.js.map
|