jojo/tests/gitea-repositories-meta/user2
oliverpool 8f28cdefe0 feat(ui): add switch between formats when previewing CITATION.{cff,bib} files (#9103)
See #8222 for context (loosely related to #4595).

## Implemented changes

The conversion logic is kept in the frontend and the related npm libraries are lazy-loaded (unchanged).

### Show some tabs on the preview of the `CITATION.*` file to switch between the formats:

![image](/attachments/be02656f-d906-4191-aa84-d666ee5a90ba)
![image](/attachments/240384e3-dec8-4f02-94e6-261143193541)

### Convert the "Cite repository" to a simple link to the citation file

So that this change can be considered non-breaking

## Current state (before this PR)

The last non-test call of `git.Blob.GetBlobContent` is made to retrieve the content of an eventual CITATION file.
This is available in the `...` menu near the clone URL:
![image](/attachments/ef79128d-ee3f-4e43-a74d-a00e4dcfe6b4)
And is displayed as a popup:

![image](/attachments/7aa930f9-0766-47b9-8145-cbebb5b051b0)

Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9103
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: oliverpool <git@olivier.pfad.fr>
Co-committed-by: oliverpool <git@olivier.pfad.fr>
2025-11-14 14:39:20 +01:00
..
commits_search_test.git chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
commitsonpr.git Implement single-commit PR review flow (#7155) 2025-06-17 09:31:50 +02:00
git_hooks_test.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
glob.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
lfs.git render plain text file if the LFS object doesn't exist (#31812) 2024-08-18 05:58:33 +02:00
readme-test.git Test renderReadmeFile (#23185) 2023-03-09 09:24:23 +08:00
rendering-test.git feat(ui): add switch between formats when previewing CITATION.{cff,bib} files (#9103) 2025-11-14 14:39:20 +01:00
repo-release.git Remove git sample files and ignore them (#24271) 2023-04-22 20:29:29 +08:00
repo1.git Fix agit automerge (#31207) 2024-08-25 10:47:37 +02:00
repo1.wiki.git chore: remove illegal git usage (#6488) 2025-01-07 17:28:42 +00:00
repo2.git Allow get release download files and lfs files with oauth2 token format (#26430) 2023-10-01 10:41:52 +00:00
repo15.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
repo16.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00
repo20.git Use beforeCommit instead of baseCommit (#22949) 2023-02-20 11:56:07 +08:00
repo59.git fix(ui): move file rename notice to before pagination (#8818) 2025-08-10 21:35:34 +02:00
test_action_run_search.git feat: make action runs available in api (#7699) 2025-06-02 22:05:12 +02:00
test_commit_revert.git tests: missing refs/ in bare repositories (#28844) 2024-01-19 15:12:21 +08:00
test_workflows.git Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
utf8.git Kd/ci playwright go test (#20123) 2022-09-02 15:18:23 -04:00