From 59e0b076bf42db40c2ff1bafa2ba126f79997d25 Mon Sep 17 00:00:00 2001 From: kunish Date: Mon, 2 Oct 2023 19:09:17 +0800 Subject: [PATCH] feat(config): display currently selected endpoint url --- src/pages/Config.tsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/pages/Config.tsx b/src/pages/Config.tsx index a83c150..85846a8 100644 --- a/src/pages/Config.tsx +++ b/src/pages/Config.tsx @@ -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,19 +463,23 @@ const Versions = () => { }) return ( -
- {import.meta.env.version} +
+
+ {import.meta.env.version} -
- - - - - - +
+ + + + + + - {backendVersion()} + {backendVersion()} +
+ +

{endpoint()?.url}

) }