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.
gitea/routers/web
Yarden Shoham c70f65e83b
Auto-update the system status in admin dashboard (#29163)
- Refactor the system status list into its own template
- Change the backend to return only the system status if htmx initiated
the request
- `hx-get="{{$.Link}}/system_status`: reuse the backend handler
- `hx-swap="innerHTML"`: replace the `<div>`'s innerHTML (essentially
the new template)
- `hx-trigger="every 5s"`: call every 5 seconds
- `hx-indicator=".divider"`: the `is-loading` class shouldn't be added
to the div during the request, so set it on an element it has no effect
on
- Render "Since Last GC Time" with `<relative-time>`, so we send a
timestamp

# Auto-update in action GIF

![action](https://github.com/go-gitea/gitea/assets/20454870/c6e1f220-f0fb-4460-ac3b-59f315e30e29)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: silverwind <me@silverwind.io>
12 months ago
..
admin Auto-update the system status in admin dashboard (#29163) 12 months ago
auth Refactor locale&string&template related code (#29165) 12 months ago
devtest Make "cancel" buttons have proper type in modal forms (#25618) 2 years ago
events Implement FSFE REUSE for golang files (#21840) 2 years ago
explore Allow to set explore page default sort (#27951) 1 year ago
feed Refactor locale&string&template related code (#29165) 12 months ago
healthcheck Always enable caches (#28527) 1 year ago
misc Refactor CORS handler (#28587) 1 year ago
org Refactor locale&string&template related code (#29165) 12 months ago
repo Implement contributors graph (#27882) 12 months ago
shared Simplify how git repositories are opened (#28937) 1 year ago
user Refactor locale&string&template related code (#29165) 12 months ago
base.go Fix panic in storageHandler (#27446) 1 year ago
githttp.go Add support for sha256 repositories (#23894) 1 year ago
goget.go Support SSH for go get (#24664) 2 years ago
home.go Enhanced auth token / remember me (#27606) 1 year ago
metrics.go Implement FSFE REUSE for golang files (#21840) 2 years ago
nodeinfo.go Implement FSFE REUSE for golang files (#21840) 2 years ago
passkey.go Advertise WebAuthn support (#29176) 12 months ago
swagger_json.go Start using template context function (#26254) 2 years ago
web.go Auto-update the system status in admin dashboard (#29163) 12 months ago
webfinger.go Add a link to OpenID Issuer URL in WebFinger response (#26000) 2 years ago