- Updated branding from "SolaceScanScout" to "Solace" across various files including deployment scripts, API responses, and documentation. - Changed default base URL for Playwright tests and updated security headers to reflect the new branding. - Enhanced README and API documentation to include new authentication endpoints and product access details. This refactor aligns the project branding and improves clarity in the API documentation.
37 lines
1.6 KiB
TypeScript
37 lines
1.6 KiB
TypeScript
import type { GetServerSideProps } from 'next'
|
|
import OperatorOperationsPage from '@/components/explorer/OperatorOperationsPage'
|
|
import { fetchPublicJson } from '@/utils/publicExplorer'
|
|
import type { MissionControlBridgeStatusResponse } from '@/services/api/missionControl'
|
|
import type { InternalExecutionPlanResponse, PlannerCapabilitiesResponse } from '@/services/api/planner'
|
|
import type { RouteMatrixResponse } from '@/services/api/routes'
|
|
|
|
interface OperatorPageProps {
|
|
initialBridgeStatus: MissionControlBridgeStatusResponse | null
|
|
initialRouteMatrix: RouteMatrixResponse | null
|
|
initialPlannerCapabilities: PlannerCapabilitiesResponse | null
|
|
initialInternalPlan: InternalExecutionPlanResponse | null
|
|
}
|
|
|
|
export default function OperatorPage(props: OperatorPageProps) {
|
|
return <OperatorOperationsPage {...props} />
|
|
}
|
|
|
|
export const getServerSideProps: GetServerSideProps<OperatorPageProps> = async () => {
|
|
const [bridgeStatus, routeMatrix, plannerCapabilities] = await Promise.all([
|
|
fetchPublicJson<MissionControlBridgeStatusResponse>('/explorer-api/v1/track1/bridge/status').catch(() => null),
|
|
fetchPublicJson<RouteMatrixResponse>('/token-aggregation/api/v1/routes/matrix?includeNonLive=true').catch(() => null),
|
|
fetchPublicJson<PlannerCapabilitiesResponse>('/token-aggregation/api/v2/providers/capabilities?chainId=138').catch(
|
|
() => null,
|
|
),
|
|
])
|
|
|
|
return {
|
|
props: {
|
|
initialBridgeStatus: bridgeStatus,
|
|
initialRouteMatrix: routeMatrix,
|
|
initialPlannerCapabilities: plannerCapabilities,
|
|
initialInternalPlan: null,
|
|
},
|
|
}
|
|
}
|