cozy-harvest-lib 11.3.0 → 12.0.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/CHANGELOG.md +27 -0
- package/dist/components/AccountModal.js +1 -1
- package/dist/components/AccountsListModal.js +1 -1
- package/dist/components/DisconnectedAccountModal.js +1 -1
- package/dist/components/EditAccountModal.js +1 -1
- package/dist/components/KonnectorAccounts.js +1 -1
- package/dist/components/KonnectorModal.js +1 -1
- package/dist/components/KonnectorSuccess.js +1 -1
- package/dist/components/KonnectorSuggestionModal/index.js +9 -6
- package/dist/components/NewAccountModal.js +1 -1
- package/dist/components/VaultCiphersList/CiphersListItem.js +2 -2
- package/dist/components/VaultCiphersList/OtherAccountListItem.js +1 -1
- package/dist/components/cards/LaunchTriggerAlert.js +31 -5
- package/dist/components/cards/WebsiteLinkCard.js +2 -2
- package/dist/datacards/FileDataCard.js +5 -5
- package/dist/datacards/GeoDataCard.js +2 -2
- package/dist/locales/en.json +1 -0
- package/dist/locales/fr.json +1 -0
- package/package.json +2 -4
- package/src/components/AccountModal.jsx +1 -1
- package/src/components/AccountsListModal.jsx +3 -1
- package/src/components/DisconnectedAccountModal.jsx +1 -1
- package/src/components/EditAccountModal.jsx +1 -1
- package/src/components/KonnectorAccounts.jsx +1 -1
- package/src/components/KonnectorModal.jsx +1 -1
- package/src/components/KonnectorSuccess.jsx +1 -1
- package/src/components/KonnectorSuggestionModal/index.jsx +7 -11
- package/src/components/NewAccountModal.jsx +1 -1
- package/src/components/VaultCiphersList/CiphersListItem.jsx +2 -2
- package/src/components/VaultCiphersList/OtherAccountListItem.jsx +1 -1
- package/src/components/cards/LaunchTriggerAlert.jsx +63 -37
- package/src/components/cards/WebsiteLinkCard.jsx +3 -2
- package/src/datacards/FileDataCard.jsx +5 -6
- package/src/datacards/GeoDataCard.jsx +2 -2
- package/src/locales/en.json +1 -0
- package/src/locales/fr.json +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [12.0.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@11.4.0...cozy-harvest-lib@12.0.0) (2023-01-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Remove mui/core and use cozy-ui instead ([500cb9c](https://github.com/cozy/cozy-libs/commit/500cb9c8be564e4f6daadaccbb965704a419b7da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* you can remove `@material-ui/core` as dependency
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [11.4.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@11.3.0...cozy-harvest-lib@11.4.0) (2023-01-10)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **harvest:** Add success snackbar after successful synchronization ([242544e](https://github.com/cozy/cozy-libs/commit/242544ef5717062c76ae2a23b8326739bce57369))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [11.3.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@11.2.0...cozy-harvest-lib@11.3.0) (2023-01-04)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -21,6 +21,7 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
|
21
21
|
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
22
22
|
import Button from 'cozy-ui/transpiled/react/Button';
|
|
23
23
|
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints';
|
|
24
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
24
25
|
import { fetchAccount as _fetchAccount } from '../connections/accounts';
|
|
25
26
|
import * as triggersModel from '../helpers/triggers';
|
|
26
27
|
import KonnectorAccountTabs from './KonnectorConfiguration/KonnectorAccountTabs';
|
|
@@ -28,7 +29,6 @@ import AccountSelectBox from './AccountSelectBox/AccountSelectBox';
|
|
|
28
29
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
29
30
|
import { withMountPointProps } from './MountPointContext';
|
|
30
31
|
import withLocales from './hoc/withLocales';
|
|
31
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
32
32
|
import { intentsApiProptype, innerAccountModalOverridesProptype } from '../helpers/proptypes';
|
|
33
33
|
/**
|
|
34
34
|
* Takes an accountId and a list of accounts containing their respecting triggers
|
|
@@ -2,10 +2,10 @@ import React, { useContext } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Stack from 'cozy-ui/transpiled/react/Stack';
|
|
4
4
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
5
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
5
6
|
import AccountsList from './AccountsList/AccountsList';
|
|
6
7
|
import KonnectorIcon from './KonnectorIcon';
|
|
7
8
|
import { MountPointContext } from './MountPointContext';
|
|
8
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
9
9
|
|
|
10
10
|
var AccountsListModal = function AccountsListModal(_ref) {
|
|
11
11
|
var konnector = _ref.konnector,
|
|
@@ -8,13 +8,13 @@ import Card from 'cozy-ui/transpiled/react/Card';
|
|
|
8
8
|
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
9
9
|
import { Tab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs';
|
|
10
10
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
11
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
11
12
|
import { Contracts } from './KonnectorConfiguration/ConfigurationTab/Contracts';
|
|
12
13
|
import KonnectorModalHeader from './KonnectorModalHeader';
|
|
13
14
|
import withLocales from './hoc/withLocales';
|
|
14
15
|
import { getAccountInstitutionLabel } from './KonnectorConfiguration/ConfigurationTab/bankAccountHelpers';
|
|
15
16
|
import Dialog from 'cozy-ui/transpiled/react/Dialog';
|
|
16
17
|
import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
17
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
18
18
|
import { intentsApiProptype } from '../helpers/proptypes';
|
|
19
19
|
|
|
20
20
|
var createDummyKonnectorFromAccount = function createDummyKonnectorFromAccount(account) {
|
|
@@ -17,13 +17,13 @@ import PropTypes from 'prop-types';
|
|
|
17
17
|
import cx from 'classnames';
|
|
18
18
|
import get from 'lodash/get';
|
|
19
19
|
import flow from 'lodash/flow';
|
|
20
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
21
20
|
import { withClient } from 'cozy-client';
|
|
22
21
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
23
22
|
import CipherIcon from 'cozy-ui/transpiled/react/CipherIcon';
|
|
24
23
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
25
24
|
import Dialog, { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
26
25
|
import { DialogCloseButton, useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
26
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
27
27
|
import { fetchAccount as _fetchAccount } from '../connections/accounts';
|
|
28
28
|
import * as triggersModel from '../helpers/triggers';
|
|
29
29
|
import TriggerManager from './TriggerManager';
|
|
@@ -16,7 +16,6 @@ import React from 'react';
|
|
|
16
16
|
import PropTypes from 'prop-types';
|
|
17
17
|
import get from 'lodash/get';
|
|
18
18
|
import compose from 'lodash/flowRight';
|
|
19
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
20
19
|
import CozyRealtime from 'cozy-realtime';
|
|
21
20
|
import { withClient } from 'cozy-client';
|
|
22
21
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
@@ -24,6 +23,7 @@ import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
|
24
23
|
import Infos from 'cozy-ui/transpiled/react/Infos';
|
|
25
24
|
import Button from 'cozy-ui/transpiled/react/Button';
|
|
26
25
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
26
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
27
27
|
import { fetchAccountsFromTriggers } from '../connections/accounts';
|
|
28
28
|
import { fetchTrigger } from '../connections/triggers';
|
|
29
29
|
import logger from '../logger';
|
|
@@ -41,7 +41,7 @@ import KonnectorUpdateInfos from './infos/KonnectorUpdateInfos';
|
|
|
41
41
|
import KonnectorAccountTabs from './KonnectorConfiguration/KonnectorAccountTabs';
|
|
42
42
|
import Dialog, { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
43
43
|
import { useCozyDialog, DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
44
|
-
import DialogContent from '
|
|
44
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
45
45
|
|
|
46
46
|
var DumbKonnectorDialog = function DumbKonnectorDialog(_ref) {
|
|
47
47
|
var onClose = _ref.onClose,
|
|
@@ -13,10 +13,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import get from 'lodash/get';
|
|
14
14
|
import React, { Component } from 'react';
|
|
15
15
|
import PropTypes from 'prop-types';
|
|
16
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
17
16
|
import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
18
17
|
import Button from 'cozy-ui/transpiled/react/Button';
|
|
19
18
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
20
20
|
|
|
21
21
|
var ConnectingIllu = function ConnectingIllu(props) {
|
|
22
22
|
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("style", null, "#ehzj6171x7w6_ts", "{", "animation:ehzj6171x7w6_ts__ts 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w6_ts__ts", "{", "0%", "{", "transform:translate(66.836951px,106.112446px) scale(1,1);animation-timing-function:cubic-bezier(0,0,.58,1)", "}", "50%", "{", "transform:translate(66.836951px,106.112446px) scale(.9,.9);animation-timing-function:cubic-bezier(.42,0,1,1)", "}", "to", "{", "transform:translate(66.836951px,106.112446px) scale(1,1)", "}", "}", "#ehzj6171x7w7_to", "{", "animation:ehzj6171x7w7_to__to 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w7_to__to", "{", "0%", "{", "transform:translate(20.039504px,9.669622px);animation-timing-function:cubic-bezier(0,0,.58,1)", "}", "50%", "{", "transform:translate(20.316618px,6.709373px);animation-timing-function:cubic-bezier(.42,0,1,1)", "}", "to", "{", "transform:translate(20.039504px,9.669622px)", "}", "}", "#ehzj6171x7w35_to", "{", "animation:ehzj6171x7w35_to__to 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w35_to__to", "{", "0%", "{", "transform:translate(20.03956px,6.709373px)", "}", "40%,to", "{", "transform:translate(18.187354px,.709373px)", "}", "}", "#ehzj6171x7w35", "{", "animation:ehzj6171x7w35_c_o 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w35_c_o", "{", "0%", "{", "opacity:1", "}", "40%,to", "{", "opacity:0", "}", "}", "#ehzj6171x7w36_to", "{", "animation:ehzj6171x7w36_to__to 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w36_to__to", "{", "0%", "{", "transform:translate(6.839262px,18.22219px)", "}", "40%,to", "{", "transform:translate(1.839262px,15.22219px)", "}", "}", "#ehzj6171x7w36", "{", "animation:ehzj6171x7w36_c_o 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w36_c_o", "{", "0%", "{", "opacity:1", "}", "40%,to", "{", "opacity:0", "}", "}", "#ehzj6171x7w37_to", "{", "animation:ehzj6171x7w37_to__to 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w37_to__to", "{", "0%", "{", "transform:translate(6.710789px,35.63607px)", "}", "40%,to", "{", "transform:translate(-2.289211px,37.63607px)", "}", "}", "#ehzj6171x7w37", "{", "animation:ehzj6171x7w37_c_o 1000ms linear infinite normal forwards", "}", "@keyframes ehzj6171x7w37_c_o", "{", "0%", "{", "opacity:1", "}", "40%,to", "{", "opacity:0", "}", "}"), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("path", {
|
|
@@ -14,14 +14,14 @@ import { translate } from 'cozy-ui/transpiled/react/I18n';
|
|
|
14
14
|
import AppLinker, { generateWebLink } from 'cozy-ui/transpiled/react/AppLinker';
|
|
15
15
|
import { Button, ButtonLink } from 'cozy-ui/transpiled/react/Button';
|
|
16
16
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme';
|
|
17
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints';
|
|
17
18
|
import Dialog, { DialogActions, DialogContent } from 'cozy-ui/transpiled/react/Dialog';
|
|
18
19
|
import { DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs';
|
|
20
|
+
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
19
21
|
import Illustration from './Illustration';
|
|
20
22
|
import DataTypes from './DataTypes';
|
|
21
23
|
import { getDataTypes, getKonnectorName } from '../../helpers/manifest';
|
|
22
24
|
import { getSuggestionReason } from '../../helpers/appSuggestions';
|
|
23
|
-
import withMobileDialog from '@material-ui/core/withMobileDialog';
|
|
24
|
-
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
25
25
|
|
|
26
26
|
var KonnectorSuggestionModal = function KonnectorSuggestionModal(_ref) {
|
|
27
27
|
var t = _ref.t,
|
|
@@ -29,8 +29,11 @@ var KonnectorSuggestionModal = function KonnectorSuggestionModal(_ref) {
|
|
|
29
29
|
konnectorAppSuggestion = _ref.konnectorAppSuggestion,
|
|
30
30
|
konnectorManifest = _ref.konnectorManifest,
|
|
31
31
|
onClose = _ref.onClose,
|
|
32
|
-
onSilence = _ref.onSilence
|
|
33
|
-
|
|
32
|
+
onSilence = _ref.onSilence;
|
|
33
|
+
|
|
34
|
+
var _useBreakpoints = useBreakpoints(),
|
|
35
|
+
isMobile = _useBreakpoints.isMobile;
|
|
36
|
+
|
|
34
37
|
var slug = konnectorAppSuggestion.slug;
|
|
35
38
|
var cozyURL = new URL(client.getStackClient().uri);
|
|
36
39
|
var storeAppName = 'store';
|
|
@@ -85,7 +88,7 @@ var KonnectorSuggestionModal = function KonnectorSuggestionModal(_ref) {
|
|
|
85
88
|
return /*#__PURE__*/React.createElement(MuiCozyTheme, null, /*#__PURE__*/React.createElement(Dialog, {
|
|
86
89
|
open: true,
|
|
87
90
|
onClose: onClose,
|
|
88
|
-
fullScreen:
|
|
91
|
+
fullScreen: isMobile,
|
|
89
92
|
fullWidth: true,
|
|
90
93
|
maxWidth: "sm",
|
|
91
94
|
scroll: "body"
|
|
@@ -164,4 +167,4 @@ KonnectorSuggestionModal.propTypes = {
|
|
|
164
167
|
onClose: PropTypes.func.isRequired,
|
|
165
168
|
onSilence: PropTypes.func.isRequired
|
|
166
169
|
};
|
|
167
|
-
export default withClient(translate()(
|
|
170
|
+
export default withClient(translate()(KonnectorSuggestionModal));
|
|
@@ -2,13 +2,13 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useContext } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import cx from 'classnames';
|
|
5
|
-
import DialogContent from '@material-ui/core/DialogContent';
|
|
6
5
|
import flag from 'cozy-flags';
|
|
7
6
|
import { useClient } from 'cozy-client';
|
|
8
7
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
9
8
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
10
9
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
11
10
|
import { DialogTitle } from 'cozy-ui/transpiled/react/Dialog';
|
|
11
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent';
|
|
12
12
|
import TriggerManager from './TriggerManager';
|
|
13
13
|
import KonnectorIcon from './KonnectorIcon';
|
|
14
14
|
import * as triggersModel from '../helpers/triggers';
|
|
@@ -4,9 +4,9 @@ var _excluded = ["cipherView", "konnector", "className", "onClick"];
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import get from 'lodash/get';
|
|
7
|
-
import ListItem from '
|
|
7
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
8
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
8
9
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
9
|
-
import ListItemIcon from '@material-ui/core/ListItemIcon';
|
|
10
10
|
import CipherIcon from 'cozy-ui/transpiled/react/CipherIcon';
|
|
11
11
|
|
|
12
12
|
var CiphersListItem = function CiphersListItem(props) {
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["f", "t"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import ListItem from '
|
|
5
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
6
6
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
7
7
|
import withLocales from '../hoc/withLocales';
|
|
8
8
|
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
2
3
|
import Alert from 'cozy-ui/transpiled/react/Alert';
|
|
3
4
|
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
4
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
5
6
|
import Spinner from 'cozy-ui/transpiled/react/Spinner';
|
|
6
|
-
import
|
|
7
|
+
import Snackbar from 'cozy-ui/transpiled/react/Snackbar';
|
|
7
8
|
import { getLastSuccessDate, getKonnectorSlug } from '../../helpers/triggers';
|
|
8
9
|
import { isRunnable } from '../../helpers/konnectors';
|
|
9
10
|
import { useFlowState } from '../../models/withConnectionFlow';
|
|
11
|
+
import { SUCCESS } from '../../models/flowEvents';
|
|
12
|
+
import KonnectorIcon from '../KonnectorIcon';
|
|
10
13
|
import { makeLabel } from './helpers';
|
|
11
14
|
export var LaunchTriggerAlert = function LaunchTriggerAlert(_ref) {
|
|
12
15
|
var flow = _ref.flow,
|
|
@@ -14,10 +17,16 @@ export var LaunchTriggerAlert = function LaunchTriggerAlert(_ref) {
|
|
|
14
17
|
t = _ref.t,
|
|
15
18
|
disabled = _ref.disabled;
|
|
16
19
|
|
|
20
|
+
var _useState = useState(false),
|
|
21
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
+
showSuccessSnackbar = _useState2[0],
|
|
23
|
+
setShowSuccessSnackbar = _useState2[1];
|
|
24
|
+
|
|
17
25
|
var _useFlowState = useFlowState(flow),
|
|
18
26
|
trigger = _useFlowState.trigger,
|
|
19
27
|
running = _useFlowState.running,
|
|
20
|
-
expectingTriggerLaunch = _useFlowState.expectingTriggerLaunch
|
|
28
|
+
expectingTriggerLaunch = _useFlowState.expectingTriggerLaunch,
|
|
29
|
+
status = _useFlowState.status;
|
|
21
30
|
|
|
22
31
|
var launch = flow.launch,
|
|
23
32
|
konnector = flow.konnector;
|
|
@@ -26,7 +35,12 @@ export var LaunchTriggerAlert = function LaunchTriggerAlert(_ref) {
|
|
|
26
35
|
win: window,
|
|
27
36
|
konnector: konnector
|
|
28
37
|
});
|
|
29
|
-
|
|
38
|
+
useEffect(function () {
|
|
39
|
+
if (status === SUCCESS) {
|
|
40
|
+
setShowSuccessSnackbar(true);
|
|
41
|
+
}
|
|
42
|
+
}, [status]);
|
|
43
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Alert, {
|
|
30
44
|
color: "var(--paperBackground)",
|
|
31
45
|
icon: running ? /*#__PURE__*/React.createElement(Spinner, {
|
|
32
46
|
className: "u-flex",
|
|
@@ -54,6 +68,18 @@ export var LaunchTriggerAlert = function LaunchTriggerAlert(_ref) {
|
|
|
54
68
|
running: running,
|
|
55
69
|
expectingTriggerLaunch: expectingTriggerLaunch,
|
|
56
70
|
lastSuccessDate: lastSuccessDate
|
|
57
|
-
})))
|
|
71
|
+
}))), /*#__PURE__*/React.createElement(Snackbar, {
|
|
72
|
+
open: showSuccessSnackbar,
|
|
73
|
+
onClose: function onClose() {
|
|
74
|
+
return setShowSuccessSnackbar(false);
|
|
75
|
+
}
|
|
76
|
+
}, /*#__PURE__*/React.createElement(Alert, {
|
|
77
|
+
variant: "filled",
|
|
78
|
+
elevation: 6,
|
|
79
|
+
severity: "success",
|
|
80
|
+
onClose: function onClose() {
|
|
81
|
+
return setShowSuccessSnackbar(false);
|
|
82
|
+
}
|
|
83
|
+
}, t('card.launchTrigger.success'))));
|
|
58
84
|
};
|
|
59
85
|
export default LaunchTriggerAlert;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import logger from '../../logger';
|
|
4
3
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
5
4
|
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider';
|
|
6
5
|
import Typography from 'cozy-ui/transpiled/react/Typography';
|
|
7
|
-
import Link from '
|
|
6
|
+
import Link from 'cozy-ui/transpiled/react/Link';
|
|
8
7
|
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media';
|
|
9
8
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
|
10
9
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n';
|
|
11
10
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe';
|
|
11
|
+
import logger from '../../logger';
|
|
12
12
|
var linkStyle = {
|
|
13
13
|
textTransform: 'lowercase'
|
|
14
14
|
};
|
|
@@ -4,12 +4,12 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import get from 'lodash/get';
|
|
5
5
|
import keyBy from 'lodash/keyBy';
|
|
6
6
|
import 'leaflet/dist/leaflet.css';
|
|
7
|
-
import List from '
|
|
8
|
-
import ListItem from '
|
|
9
|
-
import ListItemIcon from '
|
|
10
|
-
import Slide from '@material-ui/core/Slide';
|
|
11
|
-
import Skeleton from 'cozy-ui/transpiled/react/Skeleton';
|
|
7
|
+
import List from 'cozy-ui/transpiled/react/MuiCozyTheme/List';
|
|
8
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem';
|
|
9
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon';
|
|
12
10
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText';
|
|
11
|
+
import Slide from 'cozy-ui/transpiled/react/Slide';
|
|
12
|
+
import Skeleton from 'cozy-ui/transpiled/react/Skeleton';
|
|
13
13
|
import { RealTimeQueries } from 'cozy-client';
|
|
14
14
|
import palette from 'cozy-ui/transpiled/react/palette';
|
|
15
15
|
import { Media, Bd, Img } from 'cozy-ui/transpiled/react/Media';
|
|
@@ -15,14 +15,14 @@ import React, { useEffect, useRef, useMemo, memo } from 'react';
|
|
|
15
15
|
import PropTypes from 'prop-types';
|
|
16
16
|
import L from 'leaflet';
|
|
17
17
|
import 'leaflet/dist/leaflet.css';
|
|
18
|
-
import Box from '@material-ui/core/Box';
|
|
19
|
-
import IconButton from '@material-ui/core/IconButton';
|
|
20
18
|
import SwipeableViews from 'react-swipeable-views';
|
|
21
19
|
import sortBy from 'lodash/sortBy';
|
|
22
20
|
import isSameDay from 'date-fns/is_same_day';
|
|
23
21
|
import isSameYear from 'date-fns/is_same_year';
|
|
24
22
|
import CozyClient, { Q, queryConnect, isQueryLoading, hasQueryBeenLoaded } from 'cozy-client';
|
|
25
23
|
import flag from 'cozy-flags';
|
|
24
|
+
import Box from 'cozy-ui/transpiled/react/Box';
|
|
25
|
+
import IconButton from 'cozy-ui/transpiled/react/IconButton';
|
|
26
26
|
import Skeleton from 'cozy-ui/transpiled/react/Skeleton';
|
|
27
27
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
28
28
|
import Icon from 'cozy-ui/transpiled/react/Icon';
|
package/dist/locales/en.json
CHANGED
package/dist/locales/fr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"@babel/core": "7.16.12",
|
|
47
47
|
"@babel/register": "7.16.9",
|
|
48
48
|
"@cozy/cli-tree": "^0.6.0",
|
|
49
|
-
"@material-ui/core": "4.12.4",
|
|
50
49
|
"@testing-library/jest-dom": "5.16.4",
|
|
51
50
|
"@testing-library/react": "10.4.9",
|
|
52
51
|
"babel-jest": "26.6.3",
|
|
@@ -77,7 +76,6 @@
|
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
78
|
"@babel/runtime": ">=7.12.5",
|
|
80
|
-
"@material-ui/core": ">=4.12.4",
|
|
81
79
|
"cozy-client": ">=34.2.0",
|
|
82
80
|
"cozy-device-helper": ">=2.6.0",
|
|
83
81
|
"cozy-flags": ">=2.3.5",
|
|
@@ -90,5 +88,5 @@
|
|
|
90
88
|
"react-router-dom": ">=4.3.1"
|
|
91
89
|
},
|
|
92
90
|
"sideEffects": false,
|
|
93
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "36d9a948b0d14e5f1500bfc58751543e956af185"
|
|
94
92
|
}
|
|
@@ -8,6 +8,7 @@ import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
|
8
8
|
import Infos from 'cozy-ui/transpiled/react/Infos'
|
|
9
9
|
import Button from 'cozy-ui/transpiled/react/Button'
|
|
10
10
|
import withBreakpoints from 'cozy-ui/transpiled/react/helpers/withBreakpoints'
|
|
11
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
11
12
|
|
|
12
13
|
import { fetchAccount } from '../connections/accounts'
|
|
13
14
|
import * as triggersModel from '../helpers/triggers'
|
|
@@ -16,7 +17,6 @@ import AccountSelectBox from './AccountSelectBox/AccountSelectBox'
|
|
|
16
17
|
import KonnectorModalHeader from './KonnectorModalHeader'
|
|
17
18
|
import { withMountPointProps } from './MountPointContext'
|
|
18
19
|
import withLocales from './hoc/withLocales'
|
|
19
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
20
20
|
import {
|
|
21
21
|
intentsApiProptype,
|
|
22
22
|
innerAccountModalOverridesProptype
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { useContext } from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
|
+
|
|
3
4
|
import Stack from 'cozy-ui/transpiled/react/Stack'
|
|
4
5
|
import { translate } from 'cozy-ui/transpiled/react/I18n'
|
|
6
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
7
|
+
|
|
5
8
|
import AccountsList from './AccountsList/AccountsList'
|
|
6
9
|
import KonnectorIcon from './KonnectorIcon'
|
|
7
10
|
import { MountPointContext } from './MountPointContext'
|
|
8
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
9
11
|
|
|
10
12
|
const AccountsListModal = ({ konnector, accounts, t }) => {
|
|
11
13
|
const { pushHistory, replaceHistory } = useContext(MountPointContext)
|
|
@@ -8,6 +8,7 @@ import Card from 'cozy-ui/transpiled/react/Card'
|
|
|
8
8
|
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider'
|
|
9
9
|
import { Tab, Tabs } from 'cozy-ui/transpiled/react/MuiTabs'
|
|
10
10
|
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints'
|
|
11
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
11
12
|
|
|
12
13
|
import { Contracts } from './KonnectorConfiguration/ConfigurationTab/Contracts'
|
|
13
14
|
import KonnectorModalHeader from './KonnectorModalHeader'
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
useCozyDialog,
|
|
20
21
|
DialogCloseButton
|
|
21
22
|
} from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
22
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
23
23
|
import { intentsApiProptype } from '../helpers/proptypes'
|
|
24
24
|
|
|
25
25
|
const createDummyKonnectorFromAccount = account => {
|
|
@@ -4,7 +4,6 @@ import cx from 'classnames'
|
|
|
4
4
|
|
|
5
5
|
import get from 'lodash/get'
|
|
6
6
|
import flow from 'lodash/flow'
|
|
7
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
8
7
|
|
|
9
8
|
import { withClient } from 'cozy-client'
|
|
10
9
|
import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
@@ -15,6 +14,7 @@ import {
|
|
|
15
14
|
DialogCloseButton,
|
|
16
15
|
useCozyDialog
|
|
17
16
|
} from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
17
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
18
18
|
|
|
19
19
|
import { fetchAccount } from '../connections/accounts'
|
|
20
20
|
import * as triggersModel from '../helpers/triggers'
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import get from 'lodash/get'
|
|
4
4
|
import compose from 'lodash/flowRight'
|
|
5
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
6
5
|
|
|
7
6
|
import CozyRealtime from 'cozy-realtime'
|
|
8
7
|
import { withClient } from 'cozy-client'
|
|
@@ -11,6 +10,7 @@ import { translate } from 'cozy-ui/transpiled/react/I18n'
|
|
|
11
10
|
import Infos from 'cozy-ui/transpiled/react/Infos'
|
|
12
11
|
import Button from 'cozy-ui/transpiled/react/Button'
|
|
13
12
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
13
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
14
14
|
|
|
15
15
|
import { fetchAccountsFromTriggers } from '../connections/accounts'
|
|
16
16
|
import { fetchTrigger } from '../connections/triggers'
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
useCozyDialog,
|
|
29
29
|
DialogCloseButton
|
|
30
30
|
} from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
31
|
-
import DialogContent from '
|
|
31
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
32
32
|
|
|
33
33
|
const DumbKonnectorDialog = ({
|
|
34
34
|
onClose,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import get from 'lodash/get'
|
|
2
2
|
import React, { Component } from 'react'
|
|
3
3
|
import PropTypes from 'prop-types'
|
|
4
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
5
4
|
|
|
6
5
|
import { translate } from 'cozy-ui/transpiled/react/I18n'
|
|
7
6
|
import Button from 'cozy-ui/transpiled/react/Button'
|
|
8
7
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
8
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
9
9
|
|
|
10
10
|
import ConnectingIllu from '../assets/connecting-data-in-progress.svg'
|
|
11
11
|
import getRelatedAppsSlugs from '../models/getRelatedAppsSlugs'
|
|
@@ -6,20 +6,18 @@ import { translate } from 'cozy-ui/transpiled/react/I18n'
|
|
|
6
6
|
import AppLinker, { generateWebLink } from 'cozy-ui/transpiled/react/AppLinker'
|
|
7
7
|
import { Button, ButtonLink } from 'cozy-ui/transpiled/react/Button'
|
|
8
8
|
import MuiCozyTheme from 'cozy-ui/transpiled/react/MuiCozyTheme'
|
|
9
|
-
|
|
9
|
+
import useBreakpoints from 'cozy-ui/transpiled/react/hooks/useBreakpoints'
|
|
10
10
|
import Dialog, {
|
|
11
11
|
DialogActions,
|
|
12
12
|
DialogContent
|
|
13
13
|
} from 'cozy-ui/transpiled/react/Dialog'
|
|
14
14
|
import { DialogCloseButton } from 'cozy-ui/transpiled/react/CozyDialogs'
|
|
15
|
-
import
|
|
15
|
+
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
16
16
|
|
|
17
|
+
import Illustration from './Illustration'
|
|
17
18
|
import DataTypes from './DataTypes'
|
|
18
19
|
import { getDataTypes, getKonnectorName } from '../../helpers/manifest'
|
|
19
20
|
import { getSuggestionReason } from '../../helpers/appSuggestions'
|
|
20
|
-
import withMobileDialog from '@material-ui/core/withMobileDialog'
|
|
21
|
-
|
|
22
|
-
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
23
21
|
|
|
24
22
|
const KonnectorSuggestionModal = ({
|
|
25
23
|
t,
|
|
@@ -27,9 +25,9 @@ const KonnectorSuggestionModal = ({
|
|
|
27
25
|
konnectorAppSuggestion,
|
|
28
26
|
konnectorManifest,
|
|
29
27
|
onClose,
|
|
30
|
-
onSilence
|
|
31
|
-
fullScreen
|
|
28
|
+
onSilence
|
|
32
29
|
}) => {
|
|
30
|
+
const { isMobile } = useBreakpoints()
|
|
33
31
|
const { slug } = konnectorAppSuggestion
|
|
34
32
|
const cozyURL = new URL(client.getStackClient().uri)
|
|
35
33
|
const storeAppName = 'store'
|
|
@@ -56,7 +54,7 @@ const KonnectorSuggestionModal = ({
|
|
|
56
54
|
<Dialog
|
|
57
55
|
open
|
|
58
56
|
onClose={onClose}
|
|
59
|
-
fullScreen={
|
|
57
|
+
fullScreen={isMobile}
|
|
60
58
|
fullWidth
|
|
61
59
|
maxWidth="sm"
|
|
62
60
|
scroll="body"
|
|
@@ -137,6 +135,4 @@ KonnectorSuggestionModal.propTypes = {
|
|
|
137
135
|
onSilence: PropTypes.func.isRequired
|
|
138
136
|
}
|
|
139
137
|
|
|
140
|
-
export default withClient(
|
|
141
|
-
translate()(withMobileDialog()(KonnectorSuggestionModal))
|
|
142
|
-
)
|
|
138
|
+
export default withClient(translate()(KonnectorSuggestionModal))
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useContext } from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import cx from 'classnames'
|
|
4
|
-
import DialogContent from '@material-ui/core/DialogContent'
|
|
5
4
|
|
|
6
5
|
import flag from 'cozy-flags'
|
|
7
6
|
import { useClient } from 'cozy-client'
|
|
@@ -9,6 +8,7 @@ import { useI18n } from 'cozy-ui/transpiled/react/I18n'
|
|
|
9
8
|
import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
10
9
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
11
10
|
import { DialogTitle } from 'cozy-ui/transpiled/react/Dialog'
|
|
11
|
+
import DialogContent from 'cozy-ui/transpiled/react/DialogContent'
|
|
12
12
|
|
|
13
13
|
import TriggerManager from './TriggerManager'
|
|
14
14
|
import KonnectorIcon from './KonnectorIcon'
|
|
@@ -2,9 +2,9 @@ import React from 'react'
|
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
import get from 'lodash/get'
|
|
4
4
|
|
|
5
|
-
import ListItem from '
|
|
5
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem'
|
|
6
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon'
|
|
6
7
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
7
|
-
import ListItemIcon from '@material-ui/core/ListItemIcon'
|
|
8
8
|
|
|
9
9
|
import CipherIcon from 'cozy-ui/transpiled/react/CipherIcon'
|
|
10
10
|
|
|
@@ -1,57 +1,83 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React, { useState, useEffect } from 'react'
|
|
2
2
|
|
|
3
3
|
import Alert from 'cozy-ui/transpiled/react/Alert'
|
|
4
4
|
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
5
5
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
6
6
|
import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
7
|
+
import Snackbar from 'cozy-ui/transpiled/react/Snackbar'
|
|
7
8
|
|
|
8
|
-
import KonnectorIcon from '../KonnectorIcon'
|
|
9
9
|
import { getLastSuccessDate, getKonnectorSlug } from '../../helpers/triggers'
|
|
10
10
|
import { isRunnable } from '../../helpers/konnectors'
|
|
11
11
|
import { useFlowState } from '../../models/withConnectionFlow'
|
|
12
|
+
import { SUCCESS } from '../../models/flowEvents'
|
|
13
|
+
import KonnectorIcon from '../KonnectorIcon'
|
|
12
14
|
import { makeLabel } from './helpers'
|
|
13
15
|
|
|
14
16
|
export const LaunchTriggerAlert = ({ flow, f, t, disabled }) => {
|
|
15
|
-
const
|
|
17
|
+
const [showSuccessSnackbar, setShowSuccessSnackbar] = useState(false)
|
|
18
|
+
const { trigger, running, expectingTriggerLaunch, status } =
|
|
19
|
+
useFlowState(flow)
|
|
16
20
|
const { launch, konnector } = flow
|
|
21
|
+
|
|
17
22
|
const lastSuccessDate = getLastSuccessDate(trigger)
|
|
18
23
|
const isKonnectorRunnable = isRunnable({ win: window, konnector })
|
|
19
24
|
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (status === SUCCESS) {
|
|
27
|
+
setShowSuccessSnackbar(true)
|
|
28
|
+
}
|
|
29
|
+
}, [status])
|
|
30
|
+
|
|
20
31
|
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
<>
|
|
33
|
+
<Alert
|
|
34
|
+
color="var(--paperBackground)"
|
|
35
|
+
icon={
|
|
36
|
+
running ? (
|
|
37
|
+
<Spinner className="u-flex" noMargin />
|
|
38
|
+
) : (
|
|
39
|
+
<KonnectorIcon
|
|
40
|
+
className="u-w-1 u-h-1"
|
|
41
|
+
konnectorSlug={getKonnectorSlug(trigger)}
|
|
42
|
+
/>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
action={
|
|
46
|
+
isKonnectorRunnable && (
|
|
47
|
+
<Button
|
|
48
|
+
variant="text"
|
|
49
|
+
size="small"
|
|
50
|
+
disabled={running || disabled}
|
|
51
|
+
label={t('card.launchTrigger.button.label')}
|
|
52
|
+
onClick={() => launch({ autoSuccessTimer: false })}
|
|
53
|
+
/>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
>
|
|
57
|
+
<Typography variant="caption">
|
|
58
|
+
{makeLabel({
|
|
59
|
+
t,
|
|
60
|
+
f,
|
|
61
|
+
running,
|
|
62
|
+
expectingTriggerLaunch,
|
|
63
|
+
lastSuccessDate
|
|
64
|
+
})}
|
|
65
|
+
</Typography>
|
|
66
|
+
</Alert>
|
|
67
|
+
<Snackbar
|
|
68
|
+
open={showSuccessSnackbar}
|
|
69
|
+
onClose={() => setShowSuccessSnackbar(false)}
|
|
70
|
+
>
|
|
71
|
+
<Alert
|
|
72
|
+
variant="filled"
|
|
73
|
+
elevation={6}
|
|
74
|
+
severity="success"
|
|
75
|
+
onClose={() => setShowSuccessSnackbar(false)}
|
|
76
|
+
>
|
|
77
|
+
{t('card.launchTrigger.success')}
|
|
78
|
+
</Alert>
|
|
79
|
+
</Snackbar>
|
|
80
|
+
</>
|
|
55
81
|
)
|
|
56
82
|
}
|
|
57
83
|
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
3
|
|
|
4
|
-
import logger from '../../logger'
|
|
5
4
|
import Card from 'cozy-ui/transpiled/react/Card'
|
|
6
5
|
import Divider from 'cozy-ui/transpiled/react/MuiCozyTheme/Divider'
|
|
7
6
|
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
8
|
-
import Link from '
|
|
7
|
+
import Link from 'cozy-ui/transpiled/react/Link'
|
|
9
8
|
import { Media, Img, Bd } from 'cozy-ui/transpiled/react/Media'
|
|
10
9
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
11
10
|
import { useI18n } from 'cozy-ui/transpiled/react/I18n'
|
|
12
11
|
import GlobeIcon from 'cozy-ui/transpiled/react/Icons/Globe'
|
|
13
12
|
|
|
13
|
+
import logger from '../../logger'
|
|
14
|
+
|
|
14
15
|
const linkStyle = { textTransform: 'lowercase' }
|
|
15
16
|
|
|
16
17
|
const WebsiteLinkCard = ({ link }) => {
|
|
@@ -5,13 +5,12 @@ import keyBy from 'lodash/keyBy'
|
|
|
5
5
|
|
|
6
6
|
import 'leaflet/dist/leaflet.css'
|
|
7
7
|
|
|
8
|
-
import List from '
|
|
9
|
-
import ListItem from '
|
|
10
|
-
import ListItemIcon from '
|
|
11
|
-
import Slide from '@material-ui/core/Slide'
|
|
12
|
-
|
|
13
|
-
import Skeleton from 'cozy-ui/transpiled/react/Skeleton'
|
|
8
|
+
import List from 'cozy-ui/transpiled/react/MuiCozyTheme/List'
|
|
9
|
+
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem'
|
|
10
|
+
import ListItemIcon from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItemIcon'
|
|
14
11
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
12
|
+
import Slide from 'cozy-ui/transpiled/react/Slide'
|
|
13
|
+
import Skeleton from 'cozy-ui/transpiled/react/Skeleton'
|
|
15
14
|
|
|
16
15
|
import { RealTimeQueries } from 'cozy-client'
|
|
17
16
|
import palette from 'cozy-ui/transpiled/react/palette'
|
|
@@ -4,8 +4,6 @@ import PropTypes from 'prop-types'
|
|
|
4
4
|
import L from 'leaflet'
|
|
5
5
|
import 'leaflet/dist/leaflet.css'
|
|
6
6
|
|
|
7
|
-
import Box from '@material-ui/core/Box'
|
|
8
|
-
import IconButton from '@material-ui/core/IconButton'
|
|
9
7
|
import SwipeableViews from 'react-swipeable-views'
|
|
10
8
|
|
|
11
9
|
import sortBy from 'lodash/sortBy'
|
|
@@ -20,6 +18,8 @@ import CozyClient, {
|
|
|
20
18
|
} from 'cozy-client'
|
|
21
19
|
import flag from 'cozy-flags'
|
|
22
20
|
|
|
21
|
+
import Box from 'cozy-ui/transpiled/react/Box'
|
|
22
|
+
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
23
23
|
import Skeleton from 'cozy-ui/transpiled/react/Skeleton'
|
|
24
24
|
import Card from 'cozy-ui/transpiled/react/Card'
|
|
25
25
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
package/src/locales/en.json
CHANGED