forgejo-aneksajo/routers/web
Nick 5361cf8cc6 git-annex: views for annex files (#22)
This updates the repo index/file view endpoints so annex files match the way
LFS files are rendered, making annexed files accessible via the web instead of
being black boxes only accessible by git clone.

This mostly just duplicates the existing LFS logic. It doesn't try to combine itself
with the existing logic, to make merging with upstream easier. If upstream ever
decides to accept, I would like to try to merge the redundant logic.

The one bit that doesn't directly copy LFS is my choice to hide annex-symlinks.
LFS files are always _pointer files_ and therefore always render with the "file"
icon and no special label, but annex files come in two flavours: symlinks or
pointer files. I've conflated both kinds to try to give a consistent experience.

The tests in here ensure the correct download link (/media, from the last PR)
renders in both the toolbar and, if a binary file (like most annexed files will be),
in the main pane, but it also adds quite a bit of code to make sure text files
that happen to be annexed are dug out and rendered inline like LFS files are.
2024-04-25 14:40:37 +02:00
..
admin Fix admin queue page title and fix CI failures (#26409) (#26421) 2023-08-21 07:22:18 +02:00
auth [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
devtest Make "cancel" buttons have proper type in modal forms (#25618) (#25641) 2023-07-03 17:09:38 +08:00
events Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
explore Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00
feed Pass 'not' to commit count (#24473) 2023-05-08 07:10:53 +00:00
healthcheck Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
misc [API] Forgejo API /api/forgejo/v1 2023-07-16 23:44:22 +02:00
org [MODERATION] add user blocking API 2023-07-17 00:26:42 +02:00
repo git-annex: views for annex files (#22) 2024-04-25 14:40:37 +02:00
shared Fix typo of RunerOwnerID (#26508) (#26528) 2023-08-21 07:27:20 +02:00
user Dont leak private users via extensions (#28023) (#28028) 2023-11-14 13:17:12 +01:00
auth.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
auth_windows.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
base.go Fix panic in storageHandler (#27446) (#27478) 2023-11-14 13:17:11 +01:00
githttp.go Fix http protocol auth (#27875) (#27878) 2023-11-14 13:17:12 +01:00
goget.go Support SSH for go get (#24664) 2023-05-12 09:44:37 +00:00
home.go [GITEA] rework long-term authentication 2023-10-05 08:50:54 +02:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
swagger_json.go Group template helper functions, remove Printf, improve template error messages (#23982) 2023-04-08 21:15:22 +08:00
web.go git-annex: support downloading over HTTP (#6) 2024-04-25 14:40:36 +02:00
webfinger.go Replace interface{} with any (#25686) (#25687) 2023-07-04 23:41:32 -04:00