ZeroNet icon indicating copy to clipboard operation
ZeroNet copied to clipboard

Multifunctional corner button (easier access to site features & more seeding control for the user)

Open slrslr opened this issue 6 years ago • 1 comments

The button in the corner of the zeronet pages can be multifunctional. Mouse hover over the button shows the menu:

-----------MENU START----------

ZeroHello Site menu Delete site Favorite site Directory open

Set site filesharing mode: [-] Upload anything & download all optional files [x] Upload anything [currently default] [-] Upload only text files [-] Upload only text files, download no IMAGES and VIDEOS (user have to click an image placeholder in order to download image, if he does not like it, he click one more time to delete it and put placeholder again) [-] Upload nothing

----------MENU END---------

Benefits of such a menu:

  • users easily accessing site options (currently hard to find)
  • allow more peace of mind to the user thanks to filesharing mode (more users willing to stay and less negative talk about zeronet being scary place where people can accidentaly seed illegal media)
  • slighty reduce number of bad content hosted and allow users easier find option to distribute all site files

If there is possibility for zeronet to control download/upload of images/videos, user should have easily accessible choice not to seed any images from a risky site (as seen on the above menu)

The option "[-] No IMAGES and VIDEOS upload&download" should prompt if user want to delete all existing optional images and videos.

The option "[-] Upload anything & download all optional files" may trigger prompt: "You are going to download and distribute EVERYTHING that was and will be published on this site. Current size of this site data: XY GB. Proceed | Cancel".

Related issues: https://github.com/HelloZeroNet/ZeroNet/issues/492 https://github.com/HelloZeroNet/ZeroNet/issues/2133

slrslr avatar Aug 11 '19 14:08 slrslr

One issue with this tho is (AFAIK), that the zite could just have all the files without any file type ending. And even any built-in mimetypes could be removed and added back in through javascript. Thus, the client can't just "know" which files are of type image or video or whatever.

So this function would have to be much more diverse / modular as to the selection of file "types" you want to seed. Also, the ZeroNet client / ZeroFrame doesn't really have anything to say about placeholders for files. This has to be handled be the zite's code itself, that is if my knowledge of iframes is sufficient (maybe there is a trick tho, or something might open up with #2169? 🤷‍♀).

Other than that, I do think that a more fine-grained control over which content to download and seed is a good idea.

AnthyG avatar Aug 21 '19 08:08 AnthyG