cozy-sharing 31.0.2 → 31.1.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 +14 -0
- package/dist/components/Recipient/GroupRecipientPermissions.js +15 -11
- package/dist/components/Recipient/LinkRecipient.js +15 -11
- package/dist/components/Recipient/LinkRecipientLite.js +1 -1
- package/dist/components/Recipient/LinkRecipientPermissions.js +2 -1
- package/dist/components/Recipient/MemberRecipient.spec.js +8 -10
- package/dist/components/Recipient/MemberRecipientLite.js +1 -1
- package/dist/components/Recipient/MemberRecipientPermissions.js +16 -12
- package/dist/components/Recipient/MemberRecipientPermissions.spec.js +62 -50
- package/dist/components/ShareDialogCozyToCozy.spec.js +1 -1
- package/dist/components/SharedDrive/SharedDriveForm.js +6 -2
- package/dist/components/SharedDrive/SharedDriveRecipientPermissions.js +15 -10
- package/locales/en.json +10 -36
- package/locales/fr.json +10 -36
- package/locales/ru.json +10 -36
- package/locales/vi.json +10 -34
- package/package.json +2 -2
- package/src/components/Recipient/GroupRecipientPermissions.jsx +15 -13
- package/src/components/Recipient/LinkRecipient.jsx +9 -9
- package/src/components/Recipient/LinkRecipientLite.jsx +1 -3
- package/src/components/Recipient/LinkRecipientPermissions.jsx +2 -1
- package/src/components/Recipient/MemberRecipient.spec.jsx +4 -6
- package/src/components/Recipient/MemberRecipientLite.jsx +2 -2
- package/src/components/Recipient/MemberRecipientPermissions.jsx +16 -21
- package/src/components/Recipient/MemberRecipientPermissions.spec.jsx +21 -23
- package/src/components/ShareDialogCozyToCozy.spec.jsx +1 -1
- package/src/components/SharedDrive/SharedDriveForm.jsx +6 -2
- package/src/components/SharedDrive/SharedDriveRecipientPermissions.jsx +15 -17
- package/dist/components/Recipient/actions/revokeGroup.js +0 -42
- package/dist/components/Recipient/actions/revokeMember.js +0 -42
- package/dist/components/Recipient/actions/revokeSharedDriveMember.js +0 -41
- package/src/components/Recipient/actions/revokeGroup.js +0 -42
- package/src/components/Recipient/actions/revokeMember.js +0 -42
- package/src/components/Recipient/actions/revokeSharedDriveMember.js +0 -41
package/locales/en.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"unregistered": "Error"
|
|
15
15
|
},
|
|
16
16
|
"type": {
|
|
17
|
-
"one-way": "
|
|
18
|
-
"two-way": "
|
|
17
|
+
"one-way": "Viewer",
|
|
18
|
+
"two-way": "Editor",
|
|
19
19
|
"desc": {
|
|
20
20
|
"one-way": "Contacts can view, download, and add the content to their Twake. If they add the content to their Twake, they will get updates you make to the content, but they won't be able to update it.",
|
|
21
21
|
"two-way": "Contacts can update, delete and add the content to their Twake. Updates on the content will be seen on other Cozies."
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"count": "%{smart_count} member |||| %{smart_count} members",
|
|
36
36
|
"others": "and 1 other… |||| and %{smart_count} others…",
|
|
37
37
|
"otherContacts": "other contact |||| other contacts",
|
|
38
|
+
"revoke": "Remove from sharing",
|
|
38
39
|
"error": {
|
|
39
40
|
"changePermission": "An error occurred while changing the permissions. Please try again."
|
|
40
41
|
}
|
|
@@ -105,8 +106,8 @@
|
|
|
105
106
|
"details": {
|
|
106
107
|
"title": "Sharing details",
|
|
107
108
|
"createdAt": "On %{date}",
|
|
108
|
-
"ro": "
|
|
109
|
-
"rw": "
|
|
109
|
+
"ro": "Viewer",
|
|
110
|
+
"rw": "Editor",
|
|
110
111
|
"desc": {
|
|
111
112
|
"ro": "You can view, download, and add this content to your Twake. You will get updates by the owner, but you won't be able to update this content yourself.",
|
|
112
113
|
"rw": "You can view, update, delete and add this content to your Twake. Updates you make will be seen on other Cozies."
|
|
@@ -174,8 +175,8 @@
|
|
|
174
175
|
"details": {
|
|
175
176
|
"title": "Sharing details",
|
|
176
177
|
"createdAt": "On %{date}",
|
|
177
|
-
"ro": "
|
|
178
|
-
"rw": "
|
|
178
|
+
"ro": "Viewer",
|
|
179
|
+
"rw": "Editor",
|
|
179
180
|
"desc": {
|
|
180
181
|
"ro": "You can view, download, and add this content to your Twake. You will get updates by the owner, but you won't be able to update this content yourself.",
|
|
181
182
|
"rw": "You can view, update, delete and add this content to your Twake. Updates you make will be seen on other Cozies."
|
|
@@ -306,8 +307,8 @@
|
|
|
306
307
|
"details": {
|
|
307
308
|
"title": "Sharing details",
|
|
308
309
|
"createdAt": "On %{date}",
|
|
309
|
-
"ro": "
|
|
310
|
-
"rw": "
|
|
310
|
+
"ro": "Viewer",
|
|
311
|
+
"rw": "Editor",
|
|
311
312
|
"desc": {
|
|
312
313
|
"ro": "You can view, download, and add this content to your Twake. You will get updates by the owner, but you won't be able to update this content yourself.",
|
|
313
314
|
"rw": "You can view, update, delete and add this content to your Twake. Updates you make will be seen on other Cozies."
|
|
@@ -384,37 +385,10 @@
|
|
|
384
385
|
"content": "You cannot share %{documentName} with more than %{limit} members.",
|
|
385
386
|
"confirm": "I understand"
|
|
386
387
|
},
|
|
387
|
-
"RevokeMemberItem": {
|
|
388
|
-
"revoke": {
|
|
389
|
-
"title": "Remove from sharing",
|
|
390
|
-
"desc": "This contact will keep a copy but the changes won't be synchrnoized anymore.",
|
|
391
|
-
"sharedDriveDesc": "Your contact will no longer be able to access the data."
|
|
392
|
-
},
|
|
393
|
-
"revokeSelf": {
|
|
394
|
-
"title": "Remove me from sharing",
|
|
395
|
-
"desc": "You keep the content but it won't be updated between your Twake anymore."
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"RevokeSharedDriveMemberItem": {
|
|
399
|
-
"revoke": {
|
|
400
|
-
"title": "Remove"
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
388
|
"GroupRecipient": {
|
|
404
389
|
"secondary": "%{memberCount} member |||| %{memberCount} members",
|
|
405
390
|
"secondary_you": "including you"
|
|
406
391
|
},
|
|
407
|
-
"RevokeGroupItem": {
|
|
408
|
-
"revoke": {
|
|
409
|
-
"title": "Remove group from sharing",
|
|
410
|
-
"desc": "Group members will keep a copy but the changes won't be synchrnoized anymore.",
|
|
411
|
-
"sharedDriveDesc": "Group members will no longer be able to access the data."
|
|
412
|
-
},
|
|
413
|
-
"revokeSelf": {
|
|
414
|
-
"title": "Remove me from sharing",
|
|
415
|
-
"desc": "You keep the content but it won't be updated between your Twake anymore."
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
392
|
"GroupRecipientDetail": {
|
|
419
393
|
"subtitle": "Managed by %{ownerName}",
|
|
420
394
|
"empty": {
|
|
@@ -480,7 +454,7 @@
|
|
|
480
454
|
"cancel": "Cancel",
|
|
481
455
|
"create": "Create",
|
|
482
456
|
"save": "Save",
|
|
483
|
-
"addPeople": "Add
|
|
457
|
+
"addPeople": "Add users",
|
|
484
458
|
"successNotification": "Shared drive has been added",
|
|
485
459
|
"errorNotification": "Error during shared drive creation",
|
|
486
460
|
"successNotificationUpdate": "Your shared drive has been modified",
|
package/locales/fr.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"unregistered": "Erreur"
|
|
15
15
|
},
|
|
16
16
|
"type": {
|
|
17
|
-
"one-way": "
|
|
18
|
-
"two-way": "
|
|
17
|
+
"one-way": "Lecteur",
|
|
18
|
+
"two-way": "Éditeur",
|
|
19
19
|
"desc": {
|
|
20
20
|
"one-way": "Les contacts peuvent consulter, télécharger, et ajouter le contenu à leur Twake. En cas d’ajout à leur Twake, ils recevront vos modifications sur le contenu mais ils ne pourront pas le modifier.",
|
|
21
21
|
"two-way": "Les contacts peuvent modifier, supprimer et ajouter le contenu à leur Twake. Les modifications sur le contenu seront répercutées automatiquement entre vos Twake."
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"count": "%{smart_count} membre |||| %{smart_count} membres",
|
|
36
36
|
"others": "et 1 autre… |||| et %{smart_count} autres…",
|
|
37
37
|
"otherContacts": "autre contact |||| autres contacts",
|
|
38
|
+
"revoke": "Arrêter le partage",
|
|
38
39
|
"error": {
|
|
39
40
|
"changePermission": "Une erreur s'est produite lors du changement des permissions. Veuillez réessayer."
|
|
40
41
|
}
|
|
@@ -103,8 +104,8 @@
|
|
|
103
104
|
"details": {
|
|
104
105
|
"title": "Détails du partage",
|
|
105
106
|
"createdAt": "Depuis le %{date}",
|
|
106
|
-
"ro": "
|
|
107
|
-
"rw": "
|
|
107
|
+
"ro": "Lecteur",
|
|
108
|
+
"rw": "Éditeur",
|
|
108
109
|
"desc": {
|
|
109
110
|
"ro": "Vous pouvez consulter, télécharger, et ajouter ce contenu à votre Twake. Vous recevrez les modifications faites par le propriétaire, mais vous ne pourrez pas le modifier.",
|
|
110
111
|
"rw": "Vous pouvez consulter, modifier et supprimer du contenu. Les modifications sur le contenu seront répercutées automatiquement entre vos Twake."
|
|
@@ -171,8 +172,8 @@
|
|
|
171
172
|
"details": {
|
|
172
173
|
"title": "Détails du partage",
|
|
173
174
|
"createdAt": "Depuis le %{date}",
|
|
174
|
-
"ro": "
|
|
175
|
-
"rw": "
|
|
175
|
+
"ro": "Lecteur",
|
|
176
|
+
"rw": "Éditeur",
|
|
176
177
|
"desc": {
|
|
177
178
|
"ro": "Vous pouvez consulter, télécharger, et ajouter ce contenu à votre Twake. Vous recevrez les modifications faites par le propriétaire, mais vous ne pourrez pas le modifier.",
|
|
178
179
|
"rw": "Vous pouvez consulter, modifier et supprimer du contenu. Les modifications sur le contenu seront répercutées automatiquement entre vos Twake."
|
|
@@ -305,8 +306,8 @@
|
|
|
305
306
|
"details": {
|
|
306
307
|
"title": "Détails du partage",
|
|
307
308
|
"createdAt": "Depuis le %{date}",
|
|
308
|
-
"ro": "
|
|
309
|
-
"rw": "
|
|
309
|
+
"ro": "Lecteur",
|
|
310
|
+
"rw": "Éditeur",
|
|
310
311
|
"desc": {
|
|
311
312
|
"ro": "Vous pouvez consulter, télécharger, et ajouter ce contenu à votre Twake. Vous recevrez les modifications faites par le propriétaire, mais vous ne pourrez pas le modifier.",
|
|
312
313
|
"rw": "Vous pouvez consulter, modifier et supprimer du contenu. Les modifications sur le contenu seront répercutées automatiquement entre vos Twake."
|
|
@@ -382,37 +383,10 @@
|
|
|
382
383
|
"content": "Vous ne pouvez pas partager %{documentName} à plus de %{limit} membres.",
|
|
383
384
|
"confirm": "J'ai compris"
|
|
384
385
|
},
|
|
385
|
-
"RevokeMemberItem": {
|
|
386
|
-
"revoke": {
|
|
387
|
-
"title": "Arrêter le partage",
|
|
388
|
-
"desc": "Votre contact conservera une copie mais vos changements ne seront plus synchronisés.",
|
|
389
|
-
"sharedDriveDesc": "Votre contact ne pourra plus accéder aux données."
|
|
390
|
-
},
|
|
391
|
-
"revokeSelf": {
|
|
392
|
-
"title": "Arrêter le partage",
|
|
393
|
-
"desc": "Vous conservez le contenu mais il ne sera plus mis à jour entre vos Twake."
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
"RevokeSharedDriveMemberItem": {
|
|
397
|
-
"revoke": {
|
|
398
|
-
"title": "Supprimer"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
386
|
"GroupRecipient": {
|
|
402
387
|
"secondary": "%{memberCount} membre |||| %{memberCount} membres",
|
|
403
388
|
"secondary_you": "dont vous"
|
|
404
389
|
},
|
|
405
|
-
"RevokeGroupItem": {
|
|
406
|
-
"revoke": {
|
|
407
|
-
"title": "Arrêter le partage pour le groupe",
|
|
408
|
-
"desc": "Les membres du groupe conserveront une copie mais vos changements ne seront plus synchronisés",
|
|
409
|
-
"sharedDriveDesc": "Les membres du groupe ne pourront plus accéder aux données."
|
|
410
|
-
},
|
|
411
|
-
"revokeSelf": {
|
|
412
|
-
"title": "Quitter le partage",
|
|
413
|
-
"desc": "Vous conserverez une copie mais vos changements ne seront plus synchronisés."
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
390
|
"GroupRecipientDetail": {
|
|
417
391
|
"subtitle": "Géré par %{ownerName}",
|
|
418
392
|
"empty": {
|
|
@@ -478,7 +452,7 @@
|
|
|
478
452
|
"cancel": "Annuler",
|
|
479
453
|
"create": "Créer",
|
|
480
454
|
"save": "Enregistrer",
|
|
481
|
-
"addPeople": "Ajouter des utilisateurs
|
|
455
|
+
"addPeople": "Ajouter des utilisateurs",
|
|
482
456
|
"successNotification": "Le drive partagé a été ajouté",
|
|
483
457
|
"errorNotification": "Erreur lors de la création du drive partagé",
|
|
484
458
|
"successNotificationUpdate": "Votre drive partagé a été modifié",
|
package/locales/ru.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"unregistered": "Ошибка"
|
|
15
15
|
},
|
|
16
16
|
"type": {
|
|
17
|
-
"one-way": "
|
|
18
|
-
"two-way": "
|
|
17
|
+
"one-way": "Читатель",
|
|
18
|
+
"two-way": "Редактор",
|
|
19
19
|
"desc": {
|
|
20
20
|
"one-way": "Контакты могут просматривать, скачивать и добавлять этот элемент в свой Twake. В таком случае они будут получать ваши обновления, но не смогут обновлять содержимое сами.",
|
|
21
21
|
"two-way": "Контакты могут обновлять, удалять и добавлять этот элемент в свой Twake. Обновления содержимого будут видны на других аккаунтах."
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"count": "%{smart_count} участник |||| %{smart_count} участника |||| %{smart_count} участников",
|
|
36
36
|
"others": "и 1 другой… |||| и %{smart_count} других…",
|
|
37
37
|
"otherContacts": "другой контакт |||| других контакта",
|
|
38
|
+
"revoke": "Удалить из общего доступа",
|
|
38
39
|
"error": {
|
|
39
40
|
"changePermission": "Произошла ошибка при изменении разрешений. Пожалуйста, попробуйте снова."
|
|
40
41
|
}
|
|
@@ -105,8 +106,8 @@
|
|
|
105
106
|
"details": {
|
|
106
107
|
"title": "Детали общего доступа",
|
|
107
108
|
"createdAt": "%{date}",
|
|
108
|
-
"ro": "
|
|
109
|
-
"rw": "
|
|
109
|
+
"ro": "Читатель",
|
|
110
|
+
"rw": "Редактор",
|
|
110
111
|
"desc": {
|
|
111
112
|
"ro": "Вы можете просматривать, скачивать и добавлять этот элемент в свой Twake. Вы будете получать обновления от владельца, но не сможете обновлять его самостоятельно.",
|
|
112
113
|
"rw": "Вы можете просматривать, обновлять, удалять и добавлять этот элемент в свой Twake. Ваши обновления будут видны другим пользователям."
|
|
@@ -174,8 +175,8 @@
|
|
|
174
175
|
"details": {
|
|
175
176
|
"title": "Детали общего доступа",
|
|
176
177
|
"createdAt": "%{date}",
|
|
177
|
-
"ro": "
|
|
178
|
-
"rw": "
|
|
178
|
+
"ro": "Читатель",
|
|
179
|
+
"rw": "Редактор",
|
|
179
180
|
"desc": {
|
|
180
181
|
"ro": "Вы можете просматривать, скачивать и добавлять этот элемент в свой Twake. Вы будете получать обновления от владельца, но не сможете обновлять его самостоятельно.",
|
|
181
182
|
"rw": "Вы можете просматривать, обновлять, удалять и добавлять этот элемент в свой Twake. Ваши обновления будут видны на других Cozy."
|
|
@@ -306,8 +307,8 @@
|
|
|
306
307
|
"details": {
|
|
307
308
|
"title": "Детали общего доступа",
|
|
308
309
|
"createdAt": "%{date}",
|
|
309
|
-
"ro": "
|
|
310
|
-
"rw": "
|
|
310
|
+
"ro": "Читатель",
|
|
311
|
+
"rw": "Редактор",
|
|
311
312
|
"desc": {
|
|
312
313
|
"ro": "Вы можете просматривать, скачивать и добавлять этот элемент в свой Twake. Вы будете получать обновления от владельца, но не сможете обновлять его самостоятельно.",
|
|
313
314
|
"rw": "Вы можете просматривать, обновлять, удалять и добавлять этот элемент в свой Twake. Ваши обновления будут видны на других пользователей."
|
|
@@ -384,37 +385,10 @@
|
|
|
384
385
|
"content": "Вы не можете предоставить общий доступ к %{documentName} более чем %{limit} участникам.",
|
|
385
386
|
"confirm": "Понятно"
|
|
386
387
|
},
|
|
387
|
-
"RevokeMemberItem": {
|
|
388
|
-
"revoke": {
|
|
389
|
-
"title": "Удалить из общего доступа",
|
|
390
|
-
"desc": "Этот контакт сохранит копию, но изменения больше не будут синхронизироваться.",
|
|
391
|
-
"sharedDriveDesc": "Ваш контакт больше не сможет получать доступ к данным."
|
|
392
|
-
},
|
|
393
|
-
"revokeSelf": {
|
|
394
|
-
"title": "Удалить меня из общего доступа",
|
|
395
|
-
"desc": "Вы сохраняете содержимое, но оно больше не будет обновляться между аккаунтами."
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"RevokeSharedDriveMemberItem": {
|
|
399
|
-
"revoke": {
|
|
400
|
-
"title": "Удалить"
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
388
|
"GroupRecipient": {
|
|
404
389
|
"secondary": "%{memberCount} участник |||| %{memberCount} участников",
|
|
405
390
|
"secondary_you": "включая вас"
|
|
406
391
|
},
|
|
407
|
-
"RevokeGroupItem": {
|
|
408
|
-
"revoke": {
|
|
409
|
-
"title": "Удалить группу из общего доступа",
|
|
410
|
-
"desc": "Участники группы сохранят копию, но изменения больше не будут синхронизироваться.",
|
|
411
|
-
"sharedDriveDesc": "Участники группы больше не смогут получать доступ к данным."
|
|
412
|
-
},
|
|
413
|
-
"revokeSelf": {
|
|
414
|
-
"title": "Удалить меня из общего доступа",
|
|
415
|
-
"desc": "Вы сохраняете содержимое, но оно больше не будет обновляться между аккаунтами."
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
392
|
"GroupRecipientDetail": {
|
|
419
393
|
"subtitle": "Управляется %{ownerName}",
|
|
420
394
|
"empty": {
|
|
@@ -480,7 +454,7 @@
|
|
|
480
454
|
"cancel": "Отмена",
|
|
481
455
|
"create": "Создать",
|
|
482
456
|
"save": "Сохранить",
|
|
483
|
-
"addPeople": "Добавить
|
|
457
|
+
"addPeople": "Добавить пользователей",
|
|
484
458
|
"successNotification": "Общий диск добавлен",
|
|
485
459
|
"errorNotification": "Ошибка при создании общего диска",
|
|
486
460
|
"successNotificationUpdate": "Ваш общий диск был изменён",
|
package/locales/vi.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"unregistered": "Lỗi"
|
|
15
15
|
},
|
|
16
16
|
"type": {
|
|
17
|
-
"one-way": "
|
|
18
|
-
"two-way": "
|
|
17
|
+
"one-way": "Người xem",
|
|
18
|
+
"two-way": "Người chỉnh sửa",
|
|
19
19
|
"desc": {
|
|
20
20
|
"one-way": "Người liên hệ có thể xem, tải xuống và thêm nội dung vào Twake của họ. Nếu họ thêm nội dung vào Twake, họ sẽ nhận được các bản cập nhật mà bạn thực hiện đối với nội dung, nhưng họ sẽ không thể cập nhật nó.",
|
|
21
21
|
"two-way": "Người liên hệ có thể cập nhật, xóa và thêm nội dung vào Twake của họ. Các bản cập nhật trên nội dung sẽ được thấy trên các Cozy khác."
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"count": "%{smart_count} thành viên |||| %{smart_count} thành viên",
|
|
36
36
|
"others": "và 1 người khác… |||| và %{smart_count} người khác…",
|
|
37
37
|
"otherContacts": "người liên hệ khác |||| người liên hệ khác",
|
|
38
|
+
"revoke": "Xóa khỏi chia sẻ",
|
|
38
39
|
"error": {
|
|
39
40
|
"changePermission": "Đã xảy ra lỗi khi thay đổi quyền. Vui lòng thử lại."
|
|
40
41
|
}
|
|
@@ -105,8 +106,8 @@
|
|
|
105
106
|
"details": {
|
|
106
107
|
"title": "Chi tiết chia sẻ",
|
|
107
108
|
"createdAt": "Vào %{date}",
|
|
108
|
-
"ro": "
|
|
109
|
-
"rw": "
|
|
109
|
+
"ro": "Người xem",
|
|
110
|
+
"rw": "Người chỉnh sửa",
|
|
110
111
|
"desc": {
|
|
111
112
|
"ro": "Bạn có thể xem, tải xuống và thêm nội dung này vào Twake của mình. Bạn sẽ nhận được các bản cập nhật từ chủ sở hữu, nhưng bạn sẽ không thể tự cập nhật nội dung này.",
|
|
112
113
|
"rw": "Bạn có thể xem, cập nhật, xóa và thêm nội dung này vào Twake của mình. Các bản cập nhật bạn thực hiện sẽ được thấy trên các Cozies khác."
|
|
@@ -174,8 +175,8 @@
|
|
|
174
175
|
"details": {
|
|
175
176
|
"title": "Chi tiết chia sẻ",
|
|
176
177
|
"createdAt": "Vào %{date}",
|
|
177
|
-
"ro": "
|
|
178
|
-
"rw": "
|
|
178
|
+
"ro": "Người xem",
|
|
179
|
+
"rw": "Người chỉnh sửa",
|
|
179
180
|
"desc": {
|
|
180
181
|
"ro": "Bạn có thể xem, tải xuống và thêm nội dung này vào Twake của mình. Bạn sẽ nhận được các bản cập nhật từ chủ sở hữu, nhưng bạn sẽ không thể tự cập nhật nội dung này.",
|
|
181
182
|
"rw": "Bạn có thể xem, cập nhật, xóa và thêm nội dung này vào Twake của mình. Các bản cập nhật bạn thực hiện sẽ được thấy trên các Cozies khác."
|
|
@@ -306,8 +307,8 @@
|
|
|
306
307
|
"details": {
|
|
307
308
|
"title": "Chi tiết chia sẻ",
|
|
308
309
|
"createdAt": "Vào %{date}",
|
|
309
|
-
"ro": "
|
|
310
|
-
"rw": "
|
|
310
|
+
"ro": "Người xem",
|
|
311
|
+
"rw": "Người chỉnh sửa",
|
|
311
312
|
"desc": {
|
|
312
313
|
"ro": "Bạn có thể xem, tải xuống và thêm nội dung này vào Twake của mình. Bạn sẽ nhận được các bản cập nhật từ chủ sở hữu, nhưng bạn sẽ không thể tự cập nhật nội dung này.",
|
|
313
314
|
"rw": "Bạn có thể xem, cập nhật, xóa và thêm nội dung này vào Twake của mình. Các bản cập nhật bạn thực hiện sẽ được thấy trên các Cozies khác."
|
|
@@ -384,35 +385,10 @@
|
|
|
384
385
|
"content": "Bạn không thể chia sẻ %{documentName} với nhiều hơn %{limit} thành viên.",
|
|
385
386
|
"confirm": "Tôi hiểu rồi"
|
|
386
387
|
},
|
|
387
|
-
"RevokeMemberItem": {
|
|
388
|
-
"revoke": {
|
|
389
|
-
"title": "Xóa khỏi chia sẻ",
|
|
390
|
-
"desc": "Liên hệ này sẽ giữ lại một bản sao nhưng các thay đổi sẽ không còn được đồng bộ hóa nữa."
|
|
391
|
-
},
|
|
392
|
-
"revokeSelf": {
|
|
393
|
-
"title": "Xóa tôi khỏi chia sẻ",
|
|
394
|
-
"desc": "Bạn giữ lại nội dung nhưng nó sẽ không được cập nhật giữa các Twake của bạn nữa."
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"RevokeSharedDriveMemberItem": {
|
|
398
|
-
"revoke": {
|
|
399
|
-
"title": "Xóa"
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
388
|
"GroupRecipient": {
|
|
403
389
|
"secondary": "%{memberCount} thành viên |||| %{memberCount} thành viên",
|
|
404
390
|
"secondary_you": "bao gồm cả bạn"
|
|
405
391
|
},
|
|
406
|
-
"RevokeGroupItem": {
|
|
407
|
-
"revoke": {
|
|
408
|
-
"title": "Xóa nhóm khỏi chia sẻ",
|
|
409
|
-
"desc": "Các thành viên trong nhóm sẽ giữ lại một bản sao nhưng các thay đổi sẽ không còn được đồng bộ hóa nữa."
|
|
410
|
-
},
|
|
411
|
-
"revokeSelf": {
|
|
412
|
-
"title": "Xóa tôi khỏi chia sẻ",
|
|
413
|
-
"desc": "Bạn giữ lại nội dung nhưng nó sẽ không được cập nhật giữa các Twake của bạn nữa."
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
392
|
"GroupRecipientDetail": {
|
|
417
393
|
"subtitle": "Được quản lý bởi %{ownerName}",
|
|
418
394
|
"empty": {
|
|
@@ -478,7 +454,7 @@
|
|
|
478
454
|
"cancel": "Hủy",
|
|
479
455
|
"create": "Tạo",
|
|
480
456
|
"save": "Lưu",
|
|
481
|
-
"addPeople": "Thêm người
|
|
457
|
+
"addPeople": "Thêm người dùng",
|
|
482
458
|
"successNotification": "Ổ đĩa được chia sẻ đã được thêm",
|
|
483
459
|
"errorNotification": "Lỗi trong quá trình tạo ổ đĩa được chia sẻ",
|
|
484
460
|
"successNotificationUpdate": "Ổ đĩa được chia sẻ của bạn đã được sửa đổi",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "31.0
|
|
3
|
+
"version": "31.1.0",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"sideEffects": [
|
|
85
85
|
"*.css"
|
|
86
86
|
],
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "b8d9431a2e3312ff91f283e0ef0e53a7b466f168"
|
|
88
88
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react'
|
|
2
2
|
|
|
3
|
-
import { useClient } from 'cozy-client'
|
|
4
3
|
import ActionsMenu from 'cozy-ui/transpiled/react/ActionsMenu'
|
|
5
|
-
import {
|
|
6
|
-
makeActions,
|
|
7
|
-
divider
|
|
8
|
-
} from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
|
|
4
|
+
import { makeActions } from 'cozy-ui/transpiled/react/ActionsMenu/Actions'
|
|
9
5
|
import ActionsMenuMobileHeader from 'cozy-ui/transpiled/react/ActionsMenu/ActionsMenuMobileHeader'
|
|
10
6
|
import DropdownButton from 'cozy-ui/transpiled/react/DropdownButton'
|
|
7
|
+
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
8
|
+
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
9
|
+
import CrossCircleOutlineIcon from 'cozy-ui/transpiled/react/Icons/CrossCircleOutline'
|
|
11
10
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
12
11
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
13
12
|
import Spinner from 'cozy-ui/transpiled/react/Spinner'
|
|
14
13
|
import { useI18n } from 'twake-i18n'
|
|
15
14
|
|
|
16
15
|
import { permission } from './actions/permission'
|
|
17
|
-
import { revokeGroup as revokeGroupAction } from './actions/revokeGroup'
|
|
18
16
|
import { useSharingContext } from '../../hooks/useSharingContext'
|
|
19
17
|
import { GroupAvatar } from '../Avatar/GroupAvatar'
|
|
20
18
|
|
|
@@ -30,7 +28,6 @@ const GroupRecipientPermissions = ({
|
|
|
30
28
|
}) => {
|
|
31
29
|
const { t } = useI18n()
|
|
32
30
|
const buttonRef = useRef()
|
|
33
|
-
const client = useClient()
|
|
34
31
|
const { revokeGroup, revokeSelf } = useSharingContext()
|
|
35
32
|
|
|
36
33
|
const [isMenuDisplayed, setMenuDisplayed] = useState(false)
|
|
@@ -53,12 +50,9 @@ const GroupRecipientPermissions = ({
|
|
|
53
50
|
|
|
54
51
|
const type = isReadOnly ? 'one-way' : 'two-way'
|
|
55
52
|
|
|
56
|
-
const actions = makeActions([permission
|
|
57
|
-
client,
|
|
53
|
+
const actions = makeActions([permission], {
|
|
58
54
|
t,
|
|
59
|
-
type
|
|
60
|
-
isOwner,
|
|
61
|
-
handleRevocation
|
|
55
|
+
type
|
|
62
56
|
})
|
|
63
57
|
|
|
64
58
|
return (
|
|
@@ -73,7 +67,7 @@ const GroupRecipientPermissions = ({
|
|
|
73
67
|
onClick={toggleMenu}
|
|
74
68
|
textVariant="body2"
|
|
75
69
|
>
|
|
76
|
-
{t(`Share.type.${type}`)
|
|
70
|
+
{t(`Share.type.${type}`)}
|
|
77
71
|
</DropdownButton>
|
|
78
72
|
<ActionsMenu
|
|
79
73
|
ref={buttonRef}
|
|
@@ -92,6 +86,14 @@ const GroupRecipientPermissions = ({
|
|
|
92
86
|
/>
|
|
93
87
|
</ActionsMenuMobileHeader>
|
|
94
88
|
</ActionsMenu>
|
|
89
|
+
<IconButton
|
|
90
|
+
onClick={handleRevocation}
|
|
91
|
+
size="small"
|
|
92
|
+
className="u-ml-half"
|
|
93
|
+
aria-label={t('Share.members.revoke')}
|
|
94
|
+
>
|
|
95
|
+
<Icon icon={CrossCircleOutlineIcon} />
|
|
96
|
+
</IconButton>
|
|
95
97
|
</>
|
|
96
98
|
)}
|
|
97
99
|
</div>
|
|
@@ -2,14 +2,15 @@ import PropTypes from 'prop-types'
|
|
|
2
2
|
import React, { useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import Avatar from 'cozy-ui/transpiled/react/Avatar'
|
|
5
|
-
import Button from 'cozy-ui/transpiled/react/Button'
|
|
6
5
|
import Fade from 'cozy-ui/transpiled/react/Fade'
|
|
7
6
|
import Icon from 'cozy-ui/transpiled/react/Icon'
|
|
7
|
+
import IconButton from 'cozy-ui/transpiled/react/IconButton'
|
|
8
8
|
import Gear from 'cozy-ui/transpiled/react/Icons/Gear'
|
|
9
9
|
import LinkIcon from 'cozy-ui/transpiled/react/Icons/Link'
|
|
10
10
|
import ListItem from 'cozy-ui/transpiled/react/ListItem'
|
|
11
11
|
import ListItemIcon from 'cozy-ui/transpiled/react/ListItemIcon'
|
|
12
12
|
import ListItemText from 'cozy-ui/transpiled/react/ListItemText'
|
|
13
|
+
import Typography from 'cozy-ui/transpiled/react/Typography'
|
|
13
14
|
import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints'
|
|
14
15
|
import { useI18n } from 'twake-i18n'
|
|
15
16
|
|
|
@@ -68,15 +69,14 @@ const LinkRecipient = props => {
|
|
|
68
69
|
</Avatar>
|
|
69
70
|
</ListItemIcon>
|
|
70
71
|
<ListItemText
|
|
72
|
+
onClick={() => setOpenShareRestrictionModal(true)}
|
|
71
73
|
primary={
|
|
72
|
-
<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
>
|
|
78
|
-
{textPrimary}
|
|
79
|
-
</Button>
|
|
74
|
+
<div className="u-flex u-flex-items-center">
|
|
75
|
+
<Typography className="u-c-pointer ">{textPrimary}</Typography>
|
|
76
|
+
<IconButton size="small" className="u-ml-half">
|
|
77
|
+
<Icon icon={Gear} />
|
|
78
|
+
</IconButton>
|
|
79
|
+
</div>
|
|
80
80
|
}
|
|
81
81
|
secondary={textSecondary}
|
|
82
82
|
/>
|
|
@@ -32,9 +32,7 @@ const LinkRecipientLite = ({ permissions, link }) => {
|
|
|
32
32
|
secondary={link}
|
|
33
33
|
/>
|
|
34
34
|
<Typography className="u-flex-shrink-0" variant="body2">
|
|
35
|
-
{t(
|
|
36
|
-
`Share.type.${isReadOnlyPermissions ? 'one-way' : 'two-way'}`
|
|
37
|
-
).toLowerCase()}
|
|
35
|
+
{t(`Share.type.${isReadOnlyPermissions ? 'one-way' : 'two-way'}`)}
|
|
38
36
|
</Typography>
|
|
39
37
|
</ListItem>
|
|
40
38
|
)
|
|
@@ -38,6 +38,7 @@ const LinkRecipientPermissions = ({ className, document }) => {
|
|
|
38
38
|
const handleSetType = newType => {
|
|
39
39
|
const verbs = newType === 'one-way' ? READ_ONLY_PERMS : WRITE_PERMS
|
|
40
40
|
updateDocumentPermissions(document, { verbs })
|
|
41
|
+
hideMenu()
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
const handleRevocation = () => revokeSharingLink(document)
|
|
@@ -63,7 +64,7 @@ const LinkRecipientPermissions = ({ className, document }) => {
|
|
|
63
64
|
textVariant="body2"
|
|
64
65
|
onClick={toggleMenu}
|
|
65
66
|
>
|
|
66
|
-
{t(`Share.type.${type}`)
|
|
67
|
+
{t(`Share.type.${type}`)}
|
|
67
68
|
</DropdownButton>
|
|
68
69
|
<ActionsMenu
|
|
69
70
|
ref={buttonRef}
|
|
@@ -73,7 +73,7 @@ describe('MemberRecipient component', () => {
|
|
|
73
73
|
const onRevoke = jest.fn()
|
|
74
74
|
const onRevokeSelf = jest.fn()
|
|
75
75
|
|
|
76
|
-
const {
|
|
76
|
+
const { getByLabelText } = setup({
|
|
77
77
|
instance: 'foo.mycozy.cloud',
|
|
78
78
|
status: 'ready',
|
|
79
79
|
type: 'two-way',
|
|
@@ -82,8 +82,7 @@ describe('MemberRecipient component', () => {
|
|
|
82
82
|
onRevokeSelf
|
|
83
83
|
})
|
|
84
84
|
|
|
85
|
-
fireEvent.click(
|
|
86
|
-
fireEvent.click(getByText('Remove me from sharing'))
|
|
85
|
+
fireEvent.click(getByLabelText('Remove from sharing'))
|
|
87
86
|
expect(onRevoke).not.toHaveBeenCalled()
|
|
88
87
|
expect(onRevokeSelf).toHaveBeenCalled()
|
|
89
88
|
})
|
|
@@ -92,7 +91,7 @@ describe('MemberRecipient component', () => {
|
|
|
92
91
|
const onRevoke = jest.fn()
|
|
93
92
|
const onRevokeSelf = jest.fn()
|
|
94
93
|
|
|
95
|
-
const {
|
|
94
|
+
const { getByLabelText } = setup({
|
|
96
95
|
instance: 'foo.mycozy.cloud',
|
|
97
96
|
status: 'ready',
|
|
98
97
|
type: 'two-way',
|
|
@@ -102,8 +101,7 @@ describe('MemberRecipient component', () => {
|
|
|
102
101
|
onRevokeSelf
|
|
103
102
|
})
|
|
104
103
|
|
|
105
|
-
fireEvent.click(
|
|
106
|
-
fireEvent.click(getByText('Remove from sharing'))
|
|
104
|
+
fireEvent.click(getByLabelText('Remove from sharing'))
|
|
107
105
|
expect(onRevoke).toHaveBeenCalled()
|
|
108
106
|
expect(onRevokeSelf).not.toHaveBeenCalled()
|
|
109
107
|
})
|
|
@@ -44,8 +44,8 @@ const MemberRecipientLite = ({ recipient, isOwner, ...props }) => {
|
|
|
44
44
|
/>
|
|
45
45
|
<Typography className="u-flex-shrink-0" variant="body2">
|
|
46
46
|
{recipientOwner
|
|
47
|
-
? t(`Share.status.${recipient.status}`)
|
|
48
|
-
: t(`Share.type.${recipient.type ?? 'one-way'}`)
|
|
47
|
+
? t(`Share.status.${recipient.status}`)
|
|
48
|
+
: t(`Share.type.${recipient.type ?? 'one-way'}`)}
|
|
49
49
|
</Typography>
|
|
50
50
|
</ListItem>
|
|
51
51
|
)
|