Unobfuscated version of codeberg-components.js #704

Open
opened 1 month ago by Wuzzy · 1 comments
Wuzzy commented 1 month ago

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>

This is the link to the JavaScript code:
https://design.codeberg.org/components/codeberg-components.js

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?

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> ``` This is the link to the JavaScript code: https://design.codeberg.org/components/codeberg-components.js 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?
Collaborator

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.

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.
fnetX added the
codeberg
label 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: Codeberg/Community#704
Loading…
There is no content yet.