richie-education 3.4.1-dev18 → 3.4.1-dev22
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/.eslintrc.json +32 -0
- package/i18n/locales/ar-SA.json +8 -0
- package/i18n/locales/es-ES.json +8 -0
- package/i18n/locales/fa-IR.json +8 -0
- package/i18n/locales/fr-CA.json +8 -0
- package/i18n/locales/fr-FR.json +10 -2
- package/i18n/locales/ko-KR.json +8 -0
- package/i18n/locales/pt-PT.json +8 -0
- package/i18n/locales/ru-RU.json +8 -0
- package/i18n/locales/vi-VN.json +8 -0
- package/js/components/DownloadBatchOrderSeatsButton/index.tsx +4 -4
- package/js/translations/ar-SA.json +1 -1
- package/js/translations/es-ES.json +1 -1
- package/js/translations/fa-IR.json +1 -1
- package/js/translations/fr-CA.json +1 -1
- package/js/translations/fr-FR.json +1 -1
- package/js/translations/ko-KR.json +1 -1
- package/js/translations/pt-PT.json +1 -1
- package/js/translations/ru-RU.json +1 -1
- package/js/translations/vi-VN.json +1 -1
- package/js/widgets/Dashboard/components/DashboardItem/BatchOrder/DashboardBatchOrderSubItems.tsx +5 -4
- package/package.json +8 -8
package/.eslintrc.json
CHANGED
|
@@ -43,6 +43,38 @@
|
|
|
43
43
|
"import/extensions": "off",
|
|
44
44
|
"import/no-cycle": ["off"],
|
|
45
45
|
"import/no-dynamic-require": "off",
|
|
46
|
+
"import/no-extraneous-dependencies": [
|
|
47
|
+
"error",
|
|
48
|
+
{
|
|
49
|
+
"devDependencies": [
|
|
50
|
+
"test/**",
|
|
51
|
+
"tests/**",
|
|
52
|
+
"spec/**",
|
|
53
|
+
"**/__tests__/**",
|
|
54
|
+
"**/__mocks__/**",
|
|
55
|
+
"test.{js,jsx,ts,tsx}",
|
|
56
|
+
"test-*.{js,jsx,ts,tsx}",
|
|
57
|
+
"**/*{.,_}{test,spec}.{js,jsx,ts,tsx}",
|
|
58
|
+
"**/jest.config.{js,ts}",
|
|
59
|
+
"**/jest.setup.{js,ts}",
|
|
60
|
+
"**/vue.config.{js,ts}",
|
|
61
|
+
"**/webpack.config.{js,ts}",
|
|
62
|
+
"**/webpack.config.*.{js,ts}",
|
|
63
|
+
"**/rollup.config.{js,ts}",
|
|
64
|
+
"**/rollup.config.*.{js,ts}",
|
|
65
|
+
"**/gulpfile.{js,ts}",
|
|
66
|
+
"**/gulpfile.*.{js,ts}",
|
|
67
|
+
"**/Gruntfile{,.js,.ts}",
|
|
68
|
+
"**/protractor.conf.{js,ts}",
|
|
69
|
+
"**/protractor.conf.*.{js,ts}",
|
|
70
|
+
"**/karma.conf.{js,ts}",
|
|
71
|
+
"**/.eslintrc.{js,ts}",
|
|
72
|
+
"**/*.stories.{js,jsx,ts,tsx}",
|
|
73
|
+
".storybook/**"
|
|
74
|
+
],
|
|
75
|
+
"optionalDependencies": false
|
|
76
|
+
}
|
|
77
|
+
],
|
|
46
78
|
"import/order": [
|
|
47
79
|
"error",
|
|
48
80
|
{
|
package/i18n/locales/ar-SA.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/es-ES.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/fa-IR.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/fr-CA.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/fr-FR.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"16uca+": {
|
|
3
3
|
"description": "",
|
|
4
|
-
"message": "
|
|
4
|
+
"message": "Sub \"{value}\""
|
|
5
5
|
},
|
|
6
6
|
"9vqPaF": {
|
|
7
7
|
"description": "",
|
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Fonction"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Places"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Exporter au format CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Places"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Génération de l'export..."
|
|
@@ -3081,7 +3089,7 @@
|
|
|
3081
3089
|
},
|
|
3082
3090
|
"pages.TeacherDashboardOrganizationContractsLayout.columnLearnerName": {
|
|
3083
3091
|
"description": "Label for learnerName column",
|
|
3084
|
-
"message": "
|
|
3092
|
+
"message": "Acheteur"
|
|
3085
3093
|
},
|
|
3086
3094
|
"pages.TeacherDashboardOrganizationContractsLayout.columnProductTitle": {
|
|
3087
3095
|
"description": "Label for productTitle column",
|
package/i18n/locales/ko-KR.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/pt-PT.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/ru-RU.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
package/i18n/locales/vi-VN.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"description": "Label displayed for the profession field in batch order form",
|
|
164
164
|
"message": "Profession"
|
|
165
165
|
},
|
|
166
|
+
"batchOrder.label.seats": {
|
|
167
|
+
"description": "Label displayed for the seats count field in the batch order participants sub-item",
|
|
168
|
+
"message": "Seats"
|
|
169
|
+
},
|
|
166
170
|
"batchOrder.label.siret": {
|
|
167
171
|
"description": "Label displayed for the SIRET field in batch order form",
|
|
168
172
|
"message": "SIRET"
|
|
@@ -1415,6 +1419,10 @@
|
|
|
1415
1419
|
"description": "Label for the button to export batch order seats as CSV",
|
|
1416
1420
|
"message": "Export CSV"
|
|
1417
1421
|
},
|
|
1422
|
+
"components.DownloadBatchOrderSeatsButton.filenamePrefix": {
|
|
1423
|
+
"description": "Prefix used to build the filename of the exported batch order seats CSV",
|
|
1424
|
+
"message": "Seats"
|
|
1425
|
+
},
|
|
1418
1426
|
"components.DownloadBatchOrderSeatsButton.generating": {
|
|
1419
1427
|
"description": "Accessible label displayed while CSV export is being generated.",
|
|
1420
1428
|
"message": "Generating export..."
|
|
@@ -17,10 +17,10 @@ const messages = defineMessages({
|
|
|
17
17
|
description: 'Accessible label displayed while CSV export is being generated.',
|
|
18
18
|
id: 'components.DownloadBatchOrderSeatsButton.generating',
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
filenamePrefix: {
|
|
21
21
|
defaultMessage: 'Seats',
|
|
22
|
-
description: '
|
|
23
|
-
id: '
|
|
22
|
+
description: 'Prefix used to build the filename of the exported batch order seats CSV',
|
|
23
|
+
id: 'components.DownloadBatchOrderSeatsButton.filenamePrefix',
|
|
24
24
|
},
|
|
25
25
|
noSeatsOwned: {
|
|
26
26
|
defaultMessage:
|
|
@@ -59,7 +59,7 @@ const DownloadBatchOrderSeatsButton = ({
|
|
|
59
59
|
const intl = useIntl();
|
|
60
60
|
|
|
61
61
|
const handleClick = () => {
|
|
62
|
-
const prefix = intl.formatMessage(messages.
|
|
62
|
+
const prefix = intl.formatMessage(messages.filenamePrefix);
|
|
63
63
|
download(batchOrderId, buildFilename(prefix, productTitle));
|
|
64
64
|
};
|
|
65
65
|
|