mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 19:36:02 -05:00
11 lines
492 B
TypeScript
11 lines
492 B
TypeScript
// Every engine view: the source of the SDK's views.json and the SDK's test runtime.
|
|
import { getViewDefinitions, loadViewImplementation, type ViewDefinition } from './registry';
|
|
import './definitions';
|
|
|
|
/** Loads every area's module, so each view comes with its hook and fixtures. */
|
|
export async function loadViewCatalog(): Promise<readonly ViewDefinition[]> {
|
|
await Promise.all(getViewDefinitions().map(({ name }) => loadViewImplementation(name)));
|
|
|
|
return getViewDefinitions();
|
|
}
|