feat(config): display currently selected endpoint url

This commit is contained in:
kunish 2023-10-02 19:09:17 +08:00
parent 0418ac4635
commit 59e0b076bf
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -31,6 +31,7 @@ import { LANG, MODE_OPTIONS, ROUTES, themes } from '~/constants'
import { locale, setLocale, useI18n } from '~/i18n'
import {
autoSwitchTheme,
endpoint,
favDayTheme,
favNightTheme,
setAutoSwitchTheme,
@ -462,6 +463,7 @@ const Versions = () => {
})
return (
<div class="flex flex-col gap-2">
<div class="grid grid-cols-2 gap-4">
<kbd class="kbd">{import.meta.env.version}</kbd>
@ -476,6 +478,9 @@ const Versions = () => {
<kbd class="kbd w-full">{backendVersion()}</kbd>
</div>
</div>
<h1 class="text-center text-lg font-bold">{endpoint()?.url}</h1>
</div>
)
}