Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

feat: add more options to reverse shares#495

Merged
stonith404 merged 12 commits into
stonith404:mainfrom
IvanLi-CN:simplify-reverse-share
Jul 30, 2024
Merged

feat: add more options to reverse shares#495
stonith404 merged 12 commits into
stonith404:mainfrom
IvanLi-CN:simplify-reverse-share

Conversation

@IvanLi-CN
Copy link
Copy Markdown
Contributor

@IvanLi-CN IvanLi-CN commented Jun 9, 2024

output_hevc.mp4

The above is the effect currently achieved.

I have encountered some issues:

  1. When creating a reverse share, if the recipient has already enabled email notifications, I would like to add a message in the "Share ready" dialog box to inform the uploader: "The system has notified the recipient to check the file. You can also copy the share link above to inform them."
    This is my personal suggestion, and I would like to know if you think this prompt should be added. If you agree with this small prompt, perhaps we can expose the ReverseShare.sendEmailNotification field to determine the specific prompt text.

  2. I believe that files shared via reverse sharing should only be visible to the creator of the reverse share. Additionally, since I have removed the password option in the simplified interface, should we restrict the visibility of shares created through reverse sharing to only ReverseShare.creator and Share.creator?

@stonith404

@IvanLi-CN IvanLi-CN force-pushed the simplify-reverse-share branch from f819bfa to c129698 Compare July 24, 2024 17:01
@IvanLi-CN
Copy link
Copy Markdown
Contributor Author

image

I have added a prompt message which will be displayed if an email has been sent to the creator of the Reverse Share by the backend.

@IvanLi-CN
Copy link
Copy Markdown
Contributor Author

IvanLi-CN commented Jul 25, 2024

I have added an option in the interface for creating reverse shares. This option is used to indicate whether the shares associated with this reverse share can be accessed by others. By default, it is set to public access.

image

No permission alert:

image

The creator of the reverse share and the creator of the share have free access. This option reduces the risk of the service being abused and subject to security risks.

@IvanLi-CN IvanLi-CN marked this pull request as ready for review July 25, 2024 16:18
@IvanLi-CN IvanLi-CN changed the title WIP: Simplify Reverse Share Simplify Reverse Share Jul 25, 2024
@stonith404
Copy link
Copy Markdown
Owner

Thanks @IvanLi-CN, I'll look into it ASAP.

Copy link
Copy Markdown
Owner

@stonith404 stonith404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your contribution. I really like the new options :)

I added a few comments, feel free to comment if something is unclear or you don't agree.

Comment thread frontend/src/i18n/translations/en-US.ts Outdated
Comment thread frontend/src/i18n/translations/en-US.ts Outdated
Comment thread frontend/src/i18n/translations/en-US.ts Outdated
Comment thread backend/src/share/dto/shareComplete.dto.ts Outdated
Comment thread backend/src/share/share.service.ts Outdated
Comment thread frontend/src/i18n/translations/zh-CN.ts
Comment thread frontend/src/types/share.type.ts Outdated
@stonith404 stonith404 changed the title Simplify Reverse Share feat: add more options to reverse shares Jul 27, 2024
@IvanLi-CN IvanLi-CN force-pushed the simplify-reverse-share branch 2 times, most recently from 593d151 to 59c8d80 Compare July 28, 2024 06:12
@IvanLi-CN
Copy link
Copy Markdown
Contributor Author

Thank you very much for your advice. I have left some comments and would like to hear your thoughts.

@IvanLi-CN IvanLi-CN force-pushed the simplify-reverse-share branch from c9d6814 to 473901d Compare July 29, 2024 15:42
@IvanLi-CN IvanLi-CN force-pushed the simplify-reverse-share branch from 473901d to 8333d4f Compare July 29, 2024 15:45
@IvanLi-CN
Copy link
Copy Markdown
Contributor Author

The PR has been updated. I've addressed all the feedback and it should be good to go now.

@stonith404
Copy link
Copy Markdown
Owner

Great, thanks again for your contribution :)

@stonith404 stonith404 merged commit fe735f9 into stonith404:main Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants