add: server status

This commit is contained in:
2025-07-07 02:53:21 +05:00
parent 2eda1d7806
commit 261b9ac253
6 changed files with 208 additions and 36 deletions

View File

@ -9,6 +9,19 @@ import LaunchPage from './pages/LaunchPage';
import { ReactNode, useEffect, useState } from 'react';
import './App.css';
// Переместите launchOptions сюда, вне компонентов
const launchOptions = {
downloadUrl:
'https://github.com/DIKER0K/Comfort/releases/latest/download/Comfort.zip',
apiReleaseUrl: 'https://api.github.com/repos/DIKER0K/Comfort/releases/latest',
versionFileName: 'comfort_version.txt',
packName: 'Comfort',
memory: 4096,
baseVersion: '1.21.4',
serverIp: 'popa-popa.ru',
fabricVersion: 'fabric0.16.14',
};
const AuthCheck = ({ children }: { children: ReactNode }) => {
const [isAuthenticated, setIsAuthenticated] = useState<boolean | null>(null);
@ -66,7 +79,7 @@ const App = () => {
path="/"
element={
<AuthCheck>
<LaunchPage />
<LaunchPage launchOptions={launchOptions} />
</AuthCheck>
}
/>