Unobfuscated version of codeberg-components.js
When I view the source code on the homepage of https://codeberg.org in my brower (checked on 30/8/2022), I found a script that is undocumented in the licenses list (https://codeberg.org/assets/js/licenses.txt) and also has no link to an unobfuscated version, apparently. This is the HTML code that includes the script:
<script defer type="module" src="https://design.codeberg.org/components/codeberg-components.js"></script>
Currently, the only info I get is that the code is CC0'ed, but it's all obfuscated.
I have 3 questions:
1: What does this code do?
2: Where is the unobfuscated code?
3: Why is this not mentioned in the licenses list?
1: I don't know for sure, but it's at least responsible for serving the announcement on the dashboard (if there is one configured). It was planned to add features via JS without touching Gitea.
2: https://codeberg.org/Codeberg-Infrastructure/static-deployments/src/branch/design/components this is the folder where the file is served from. It's compiled from the src folder IIRC.
3: The licences list is generated by Gitea. This file, however, is only a codeberg feature. We should add some info to the file itself.
Deleting a branch is permanent. It CANNOT be undone. Continue?