You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
silverwind eec1c71880
Show syntax lexer name in file view/blame (#21814)
Show which Chroma Lexer is used to highlight the file in the file
header. It's useful for development to see what was detected, and I
think it's not bad info to have for the user:

<img width="233" alt="Screenshot 2022-11-14 at 22 31 16"
src="https://user-images.githubusercontent.com/115237/201770854-44933dfc-70a4-487c-8457-1bb3cc43ea62.png">
<img width="226" alt="Screenshot 2022-11-14 at 22 36 06"
src="https://user-images.githubusercontent.com/115237/201770856-9260ce6f-6c0f-442c-92b5-201e5b113188.png">
<img width="194" alt="Screenshot 2022-11-14 at 22 36 26"
src="https://user-images.githubusercontent.com/115237/201770857-6f56591b-80ea-42cc-8ea5-21b9156c018b.png">

Also, I improved the way this header overflows on small screens:

<img width="354" alt="Screenshot 2022-11-14 at 22 44 36"
src="https://user-images.githubusercontent.com/115237/201774828-2ddbcde1-da15-403f-bf7a-6248449fa2c5.png">

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2 years ago
..
activitypub Fix dashboard ignored system setting cache (#21621) 2 years ago
analyze Simplify `IsVendor` (#19626) 2 years ago
auth Remove legacy `+build:` constraint (#19582) 2 years ago
avatar Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
base Add generic set type (#21408) 2 years ago
cache Fix dashboard ignored system setting cache (#21621) 2 years ago
charset Move go-licenses to generate and separate generate into a frontend and backend component (#21061) 2 years ago
container Add generic set type (#21408) 2 years ago
context Fix setting HTTP headers after write (#21833) 2 years ago
convert Add `context.Context` to more methods (#21546) 2 years ago
csv Go 1.19 format (#20758) 2 years ago
doctor Add `context.Context` to more methods (#21546) 2 years ago
emoji Go 1.19 format (#20758) 2 years ago
eventsource Move some files into models' sub packages (#20262) 2 years ago
generate Use base32 for 2FA scratch token (#18384) 2 years ago
git Adjust gitea doctor --run storages to check all storage types (#21785) 2 years ago
gitgraph Refactor git command arguments and make all arguments to be safe to be used (#21535) 2 years ago
graceful Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Show syntax lexer name in file view/blame (#21814) 2 years ago
hostmatcher Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
html Move svg html render to modules/svg (#21716) 2 years ago
httpcache Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
httplib refactor httplib (#18338) 2 years ago
indexer Show syntax lexer name in file view/blame (#21814) 2 years ago
issue/template Deal with markdown template without metadata (#21639) 2 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
lfs Removed some vestigial code related to Range bounds checks (#20312) 2 years ago
log Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
markup Add attention blocks within quote blocks for `Note` and `Warning` (#21711) 2 years ago
mcaptcha Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
metrics Move some files into models' sub packages (#20262) 2 years ago
migration Add more checks in migration code (#21011) 2 years ago
mirror Implement sync push mirror on commit (#19411) 2 years ago
nosql fix broken insecureskipverify handling in rediss connection uris (#20967) 2 years ago
notification Add `context.Context` to more methods (#21546) 2 years ago
options Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
packages Adjust gitea doctor --run storages to check all storage types (#21785) 2 years ago
paginator Remove unnecessary misspell ignore pattern (#21475) 2 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof Go 1.19 format (#20758) 2 years ago
private Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
process Add more linters to improve code readability (#19989) 2 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
proxyprotocol Support Proxy protocol (#12527) 2 years ago
public Add generic set type (#21408) 2 years ago
queue Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
recaptcha Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
references Remove unnecessary misspell ignore pattern (#21475) 2 years ago
regexplru Custom regexp external issues (#17624) 2 years ago
repository Add `context.Context` to more methods (#21546) 2 years ago
secret Use `CryptoRandomBytes` instead of `CryptoRandomString` (#18439) 2 years ago
session format with gofumpt (#18184) 2 years ago
setting Add configuration for CORS allowed headers (#21747) 2 years ago
sitemap Add sitemap support (#18407) 2 years ago
ssh Support Proxy protocol (#12527) 2 years ago
storage Save files in local storage as umask (#21198) 2 years ago
structs Ignore issue template with a special name (#21830) 2 years ago
svg Move svg html render to modules/svg (#21716) 2 years ago
sync Add generic set type (#21408) 2 years ago
system Fix dashboard ignored system setting cache (#21621) 2 years ago
templates Fix dashboard ignored system setting cache (#21621) 2 years ago
test Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
timeutil Fix `Timestamp.IsZero` (#21593) 2 years ago
translation Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 2 years ago
typesniffer Rework raw file http header logic (#20484) 2 years ago
updatechecker Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
upload Simplify parameter types (#18006) 3 years ago
uri Prevent NPE if gitea uploader fails to open url (#18080) 3 years ago
user Add gitea-vet (#10948) 4 years ago
util Show syntax lexer name in file view/blame (#21814) 2 years ago
validation Improve valid user name check (#20136) 2 years ago
watcher Share HTML template renderers and create a watcher framework (#20218) 2 years ago
web Improve valid user name check (#20136) 2 years ago