Files
pterodactyl-panel/resources/scripts/components/server/features/index.ts
T
Dawid Jaworski a1f7d287ac feat: Auth Required modal for hytale (#5526)
This PR add modal related to requiring auth to download or update hytale
server.

Egg feature to use: `hytale_oauth`

Preview:


https://github.com/user-attachments/assets/77bd4f16-ba5b-4652-88b1-7abfd4ab45b8
2026-01-12 12:22:49 -06:00

19 lines
835 B
TypeScript

import { ComponentType, lazy } from 'react';
/**
* Custom features should be registered here as lazy components so that they do
* not impact the generated JS bundle size. They will be automatically loaded in
* whenever they are actually loaded for the client (which may be never, depending
* on the feature and the egg).
*/
const features: Record<string, ComponentType> = {
eula: lazy(() => import('@feature/eula/EulaModalFeature')),
java_version: lazy(() => import('@feature/JavaVersionModalFeature')),
gsl_token: lazy(() => import('@feature/GSLTokenModalFeature')),
pid_limit: lazy(() => import('@feature/PIDLimitModalFeature')),
steam_disk_space: lazy(() => import('@feature/SteamDiskSpaceFeature')),
hytale_oauth: lazy(() => import('@feature/HytaleOauthRequireFeature')),
};
export default features;