cozy-harvest-lib 17.1.0 → 17.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/CHANGELOG.md +12 -0
- package/dist/datacards/GeoDataCard.js +9 -2
- package/dist/locales/nl_NL.json +41 -7
- package/package.json +2 -2
- package/src/datacards/GeoDataCard.jsx +11 -2
- package/src/locales/nl_NL.json +41 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
# [17.2.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@17.1.0...cozy-harvest-lib@17.2.0) (2023-08-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Branch Realtime on io.cozy.timeseries.geojson ([a96c922](https://github.com/cozy/cozy-libs/commit/a96c9224575f42dffae954d79784917d3740bf7c))
|
|
12
|
+
* Translate en.json in nl_NL ([d409c6a](https://github.com/cozy/cozy-libs/commit/d409c6af89530d708e98c91effd6e2667b4a6fe9))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
# [17.1.0](https://github.com/cozy/cozy-libs/compare/cozy-harvest-lib@17.0.1...cozy-harvest-lib@17.1.0) (2023-08-18)
|
|
7
19
|
|
|
8
20
|
|
|
@@ -19,7 +19,7 @@ import sortBy from 'lodash/sortBy';
|
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import React, { useEffect, useRef, useMemo, memo } from 'react';
|
|
21
21
|
import SwipeableViews from 'react-swipeable-views';
|
|
22
|
-
import CozyClient, { Q, queryConnect, isQueryLoading, hasQueryBeenLoaded } from 'cozy-client';
|
|
22
|
+
import CozyClient, { Q, queryConnect, isQueryLoading, hasQueryBeenLoaded, RealTimeQueries } from 'cozy-client';
|
|
23
23
|
import flag from 'cozy-flags';
|
|
24
24
|
import Box from 'cozy-ui/transpiled/react/Box';
|
|
25
25
|
import Card from 'cozy-ui/transpiled/react/Card';
|
|
@@ -350,8 +350,15 @@ DataGeoDataCard.propTypes = {
|
|
|
350
350
|
konnector: PropTypes.object.isRequired,
|
|
351
351
|
accountId: PropTypes.string.isRequired
|
|
352
352
|
};
|
|
353
|
+
|
|
354
|
+
var DataGeoDataCardWithRealtime = function DataGeoDataCardWithRealtime(props) {
|
|
355
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(RealTimeQueries, {
|
|
356
|
+
doctype: "io.cozy.timeseries.geojson"
|
|
357
|
+
}), /*#__PURE__*/React.createElement(DataGeoDataCard, props));
|
|
358
|
+
};
|
|
359
|
+
|
|
353
360
|
export default queryConnect({
|
|
354
361
|
timeseriesCol: function timeseriesCol(props) {
|
|
355
362
|
return makeQueryFromProps(props);
|
|
356
363
|
}
|
|
357
|
-
})(
|
|
364
|
+
})(DataGeoDataCardWithRealtime);
|
package/dist/locales/nl_NL.json
CHANGED
|
@@ -21,7 +21,18 @@
|
|
|
21
21
|
"installFlagship": {
|
|
22
22
|
"label": "Installeer Cozy op je telefoon"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"cannotConnectModal": {
|
|
25
|
+
"title": "Kun je geen verbinding maken?",
|
|
26
|
+
"content": "Controleer je inloggegevens of herstel je wachtwoord op de website van [%{vendorName}](%{vendorLink}).",
|
|
27
|
+
"noAccount": "Als je nog geen account hebt, maak die dan aan op de website van [%{vendorName}](%{vendorLink})."
|
|
28
|
+
},
|
|
29
|
+
"cannotConnectLink": "Ik kan geen verbinding maken",
|
|
30
|
+
"notClientSide": "Installeer de Cozy-app op je telefoon of tablet om je %{name}-gegevens te synchroniseren.",
|
|
31
|
+
"clientSide": {
|
|
32
|
+
"title": "Koppelen aan mijn Cozy",
|
|
33
|
+
"submit": "Koppelen",
|
|
34
|
+
"description": "Koppel %{name} aan je Cozy om te synchroniseren met je account en automatisch al je gegevens op te halen."
|
|
35
|
+
}
|
|
25
36
|
},
|
|
26
37
|
"contracts": {
|
|
27
38
|
"headers": {
|
|
@@ -70,8 +81,11 @@
|
|
|
70
81
|
"card": {
|
|
71
82
|
"launchTrigger": {
|
|
72
83
|
"button": {
|
|
73
|
-
"label": "
|
|
84
|
+
"label": "Synchroniseren"
|
|
74
85
|
},
|
|
86
|
+
"configure": "Instellen",
|
|
87
|
+
"connect": "Koppelen",
|
|
88
|
+
"success": "De synchronisatie is voltooid",
|
|
75
89
|
"error": "Er is een fout opgetreden.",
|
|
76
90
|
"frequency": {
|
|
77
91
|
"label": "Frequentie:",
|
|
@@ -83,10 +97,17 @@
|
|
|
83
97
|
},
|
|
84
98
|
"lastSync": {
|
|
85
99
|
"label": "Bijwerken:",
|
|
86
|
-
"syncing": "
|
|
100
|
+
"syncing": "Gegevensherstel…",
|
|
87
101
|
"unknown": "Onbekend",
|
|
88
|
-
"afterSomeTimes": "
|
|
89
|
-
"
|
|
102
|
+
"afterSomeTimes": "%{times} geleden gesynchroniseerd",
|
|
103
|
+
"format": "DD-MM-YYYY",
|
|
104
|
+
"disconnected": "Losgekoppeld",
|
|
105
|
+
"justNow": "Zojuist gesynchroniseerd"
|
|
106
|
+
},
|
|
107
|
+
"runningAlert": {
|
|
108
|
+
"title": "Sluit de app niet!",
|
|
109
|
+
"body": "De telefoon moet aan blijven om het proces te kunnen voltooien. Je kunt echter gebruik blijven maken van de app.",
|
|
110
|
+
"button": "Ik begrijp het"
|
|
90
111
|
}
|
|
91
112
|
},
|
|
92
113
|
"appLink": {
|
|
@@ -125,6 +146,7 @@
|
|
|
125
146
|
"baseDir": "/Administratief"
|
|
126
147
|
},
|
|
127
148
|
"error": {
|
|
149
|
+
"application-not-found": "Deze app bestaat niet",
|
|
128
150
|
"reconnect-via-form": "Opnieuw koppelen",
|
|
129
151
|
"job": {
|
|
130
152
|
"DISK_QUOTA_EXCEEDED": {
|
|
@@ -217,7 +239,7 @@
|
|
|
217
239
|
},
|
|
218
240
|
"ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
|
|
219
241
|
"title": "Dit account is al toegevoegd",
|
|
220
|
-
"description": "Je
|
|
242
|
+
"description": "Je mogelijke aanpassing aan de accountlijst wordt binnen een paar minuten doorgevoerd."
|
|
221
243
|
}
|
|
222
244
|
}
|
|
223
245
|
},
|
|
@@ -381,6 +403,11 @@
|
|
|
381
403
|
"title": "%{name} koppelen",
|
|
382
404
|
"button": "Account toevoegen"
|
|
383
405
|
},
|
|
406
|
+
"deleteBIConnection": {
|
|
407
|
+
"title": "Loskoppelen",
|
|
408
|
+
"description": "Je verzoek is genoteerd en wordt over enkele ogenblikken uitgevoerd. Eerder geïmporteerde gegevens worden niet verwijderd.",
|
|
409
|
+
"confirm-deletion": "Sluiten"
|
|
410
|
+
},
|
|
384
411
|
"deleteAccount": {
|
|
385
412
|
"title": "Loskoppelen",
|
|
386
413
|
"description": "Je account wordt losgekoppeld, maar belangrijke gegevens worden bewaard",
|
|
@@ -407,7 +434,10 @@
|
|
|
407
434
|
"label": "Opnieuw koppelen"
|
|
408
435
|
},
|
|
409
436
|
"connect": {
|
|
410
|
-
"
|
|
437
|
+
"description": "Koppel %{name} aan je Cozy om te synchroniseren met je account en automatisch al je gegevens op te halen.",
|
|
438
|
+
"label": "Koppelen",
|
|
439
|
+
"submit": "Koppelen",
|
|
440
|
+
"title": "Koppelen aan mijn Cozy"
|
|
411
441
|
},
|
|
412
442
|
"window": {
|
|
413
443
|
"title": "OAuth"
|
|
@@ -511,6 +541,10 @@
|
|
|
511
541
|
"secondaryText": "Annuleren"
|
|
512
542
|
}
|
|
513
543
|
},
|
|
544
|
+
"connectionBackdrop": {
|
|
545
|
+
"connecting": "Bezig met verbinden…",
|
|
546
|
+
"progress": "We zoeken %{name} op - dit kan max. 30 seconden duren…"
|
|
547
|
+
},
|
|
514
548
|
"disconnectedAccountModal": {
|
|
515
549
|
"disconnected-help": "Dit account is losgekoppeld, maar je gegevens zijn bewaard. Als je opnieuw wilt synchroniseren, stel dan je account opnieuw in middels de knop 'Bank toevoegen'."
|
|
516
550
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-harvest-lib",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
4
4
|
"description": "Provides logic, modules and components for Cozy's harvest applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"react-router-dom": ">=4.3.1"
|
|
113
113
|
},
|
|
114
114
|
"sideEffects": false,
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "31fa4770d1a02cab82cfc8a51bbc25e50b2998a8"
|
|
116
116
|
}
|
|
@@ -11,7 +11,8 @@ import CozyClient, {
|
|
|
11
11
|
Q,
|
|
12
12
|
queryConnect,
|
|
13
13
|
isQueryLoading,
|
|
14
|
-
hasQueryBeenLoaded
|
|
14
|
+
hasQueryBeenLoaded,
|
|
15
|
+
RealTimeQueries
|
|
15
16
|
} from 'cozy-client'
|
|
16
17
|
import flag from 'cozy-flags'
|
|
17
18
|
import Box from 'cozy-ui/transpiled/react/Box'
|
|
@@ -314,6 +315,14 @@ DataGeoDataCard.propTypes = {
|
|
|
314
315
|
accountId: PropTypes.string.isRequired
|
|
315
316
|
}
|
|
316
317
|
|
|
318
|
+
const DataGeoDataCardWithRealtime = props => {
|
|
319
|
+
return (
|
|
320
|
+
<>
|
|
321
|
+
<RealTimeQueries doctype="io.cozy.timeseries.geojson" />
|
|
322
|
+
<DataGeoDataCard {...props} />
|
|
323
|
+
</>
|
|
324
|
+
)
|
|
325
|
+
}
|
|
317
326
|
export default queryConnect({
|
|
318
327
|
timeseriesCol: props => makeQueryFromProps(props)
|
|
319
|
-
})(
|
|
328
|
+
})(DataGeoDataCardWithRealtime)
|
package/src/locales/nl_NL.json
CHANGED
|
@@ -21,7 +21,18 @@
|
|
|
21
21
|
"installFlagship": {
|
|
22
22
|
"label": "Installeer Cozy op je telefoon"
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"cannotConnectModal": {
|
|
25
|
+
"title": "Kun je geen verbinding maken?",
|
|
26
|
+
"content": "Controleer je inloggegevens of herstel je wachtwoord op de website van [%{vendorName}](%{vendorLink}).",
|
|
27
|
+
"noAccount": "Als je nog geen account hebt, maak die dan aan op de website van [%{vendorName}](%{vendorLink})."
|
|
28
|
+
},
|
|
29
|
+
"cannotConnectLink": "Ik kan geen verbinding maken",
|
|
30
|
+
"notClientSide": "Installeer de Cozy-app op je telefoon of tablet om je %{name}-gegevens te synchroniseren.",
|
|
31
|
+
"clientSide": {
|
|
32
|
+
"title": "Koppelen aan mijn Cozy",
|
|
33
|
+
"submit": "Koppelen",
|
|
34
|
+
"description": "Koppel %{name} aan je Cozy om te synchroniseren met je account en automatisch al je gegevens op te halen."
|
|
35
|
+
}
|
|
25
36
|
},
|
|
26
37
|
"contracts": {
|
|
27
38
|
"headers": {
|
|
@@ -70,8 +81,11 @@
|
|
|
70
81
|
"card": {
|
|
71
82
|
"launchTrigger": {
|
|
72
83
|
"button": {
|
|
73
|
-
"label": "
|
|
84
|
+
"label": "Synchroniseren"
|
|
74
85
|
},
|
|
86
|
+
"configure": "Instellen",
|
|
87
|
+
"connect": "Koppelen",
|
|
88
|
+
"success": "De synchronisatie is voltooid",
|
|
75
89
|
"error": "Er is een fout opgetreden.",
|
|
76
90
|
"frequency": {
|
|
77
91
|
"label": "Frequentie:",
|
|
@@ -83,10 +97,17 @@
|
|
|
83
97
|
},
|
|
84
98
|
"lastSync": {
|
|
85
99
|
"label": "Bijwerken:",
|
|
86
|
-
"syncing": "
|
|
100
|
+
"syncing": "Gegevensherstel…",
|
|
87
101
|
"unknown": "Onbekend",
|
|
88
|
-
"afterSomeTimes": "
|
|
89
|
-
"
|
|
102
|
+
"afterSomeTimes": "%{times} geleden gesynchroniseerd",
|
|
103
|
+
"format": "DD-MM-YYYY",
|
|
104
|
+
"disconnected": "Losgekoppeld",
|
|
105
|
+
"justNow": "Zojuist gesynchroniseerd"
|
|
106
|
+
},
|
|
107
|
+
"runningAlert": {
|
|
108
|
+
"title": "Sluit de app niet!",
|
|
109
|
+
"body": "De telefoon moet aan blijven om het proces te kunnen voltooien. Je kunt echter gebruik blijven maken van de app.",
|
|
110
|
+
"button": "Ik begrijp het"
|
|
90
111
|
}
|
|
91
112
|
},
|
|
92
113
|
"appLink": {
|
|
@@ -125,6 +146,7 @@
|
|
|
125
146
|
"baseDir": "/Administratief"
|
|
126
147
|
},
|
|
127
148
|
"error": {
|
|
149
|
+
"application-not-found": "Deze app bestaat niet",
|
|
128
150
|
"reconnect-via-form": "Opnieuw koppelen",
|
|
129
151
|
"job": {
|
|
130
152
|
"DISK_QUOTA_EXCEEDED": {
|
|
@@ -217,7 +239,7 @@
|
|
|
217
239
|
},
|
|
218
240
|
"ACCOUNT_WITH_SAME_IDENTIFIER_ALREADY_DEFINED": {
|
|
219
241
|
"title": "Dit account is al toegevoegd",
|
|
220
|
-
"description": "Je
|
|
242
|
+
"description": "Je mogelijke aanpassing aan de accountlijst wordt binnen een paar minuten doorgevoerd."
|
|
221
243
|
}
|
|
222
244
|
}
|
|
223
245
|
},
|
|
@@ -381,6 +403,11 @@
|
|
|
381
403
|
"title": "%{name} koppelen",
|
|
382
404
|
"button": "Account toevoegen"
|
|
383
405
|
},
|
|
406
|
+
"deleteBIConnection": {
|
|
407
|
+
"title": "Loskoppelen",
|
|
408
|
+
"description": "Je verzoek is genoteerd en wordt over enkele ogenblikken uitgevoerd. Eerder geïmporteerde gegevens worden niet verwijderd.",
|
|
409
|
+
"confirm-deletion": "Sluiten"
|
|
410
|
+
},
|
|
384
411
|
"deleteAccount": {
|
|
385
412
|
"title": "Loskoppelen",
|
|
386
413
|
"description": "Je account wordt losgekoppeld, maar belangrijke gegevens worden bewaard",
|
|
@@ -407,7 +434,10 @@
|
|
|
407
434
|
"label": "Opnieuw koppelen"
|
|
408
435
|
},
|
|
409
436
|
"connect": {
|
|
410
|
-
"
|
|
437
|
+
"description": "Koppel %{name} aan je Cozy om te synchroniseren met je account en automatisch al je gegevens op te halen.",
|
|
438
|
+
"label": "Koppelen",
|
|
439
|
+
"submit": "Koppelen",
|
|
440
|
+
"title": "Koppelen aan mijn Cozy"
|
|
411
441
|
},
|
|
412
442
|
"window": {
|
|
413
443
|
"title": "OAuth"
|
|
@@ -511,6 +541,10 @@
|
|
|
511
541
|
"secondaryText": "Annuleren"
|
|
512
542
|
}
|
|
513
543
|
},
|
|
544
|
+
"connectionBackdrop": {
|
|
545
|
+
"connecting": "Bezig met verbinden…",
|
|
546
|
+
"progress": "We zoeken %{name} op - dit kan max. 30 seconden duren…"
|
|
547
|
+
},
|
|
514
548
|
"disconnectedAccountModal": {
|
|
515
549
|
"disconnected-help": "Dit account is losgekoppeld, maar je gegevens zijn bewaard. Als je opnieuw wilt synchroniseren, stel dan je account opnieuw in middels de knop 'Bank toevoegen'."
|
|
516
550
|
},
|