Re: [Tails-ux] Porting DAVE to Web Extensions

Supprimer ce message

Répondre à ce message
Auteur: u
Date:  
À: tails-ux
Sujet: Re: [Tails-ux] Porting DAVE to Web Extensions
Hi!

sajolida:
> u:
>> sajolida:
>>> Uzair Farooq:


>>>> 1. User will download the image from website.
>>
>> Just a little detail: DAVE should first read the mirrors.json file and,
>> taking into account the weight of each mirror, select one randomly and
>> download the ISO image from there. Don't hesitate to get in touch with
>> me to point you to this code once you start working on this!
>>
>> The code for this mechanism does already exist and has been quite
>> thourougly tested, so I guess you will be able to reuse it.
>
> With the new design of DAVE, the download will not be done by the
> extension anymore and we will provide a "Direct download" button
> (and make power users happy as a side effect).
>
> So my understanding is that this button should use the
> ".use-mirror-pool" class and that will be enough. And Uzair should
> actually *remove* all the download code from the extension instead :)
>
> Or did I miss anything?


Ok, cool. That's correct. Just add this class to your links and the
mirror-pool dispatcher JS and a small piece of JS in the footer of our
website will replace the download link with a mirror link.

Cheers!
u.