PrivateBin / PrivateBin

A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
https://privatebin.info/
Other
6.43k stars 802 forks source link

Removing page template and cleaning up code #1298

Closed rugk closed 4 months ago

rugk commented 5 months ago

The problem

Upgrade to Bootstrap 5 in https://github.com/PrivateBin/PrivateBin/pull/1287 has shown:

The solution

Alternatives

Additional context

elrido commented 5 months ago

For what it's worth, we do not "have a big maintenance burden by maintaining the page template", IMHO. It doesn't use any extra JS-libraries and extra code paths in JS like the bootstrap 3 template does. Removing the bootstrap 3 template is in my opinion a way higher priority (especially with it's JS lib being flagged as having security issues) and I gave a suggested timeline for doing that. I'm not aware of any JS code we could remove when deprecating the page template.

It is (subjectively) ugly and we may want to remove backwards compatibility to ZeroBin and that would reduce JS and PHP complexity for all templates, but those are not related to the page template, but affect all of them.

I would strongly suggest, that if we remove this, we do so when another non-bootstrap template gets introduced, so that we have at least 2 templates available and can therefore ensure that our JS code remains template agnostic.

elrido commented 4 months ago

Just noticed that this is already tracked in #265.