ConusAI vendor 81941888f

This commit is contained in:
ConusAI vendor 81941888f
2026-10-07 08:47:51 +00:00
commit c3c6526952
135 changed files with 13010 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import { platformInfo } from '@/shared/api'
import { getEnv, modules } from '@/shared/config'
/**
* The platform's own description, read through the typed API (plan §4.4), and the
* optional services this deployment is linked to. The platform has no token-accessible
* listing of a project's services (D8), so the linked list is read from the variables
* the platform injected at deploy time.
*/
export async function PlatformPage() {
const info = await platformInfo()
const linked = modules(getEnv())
return (
<main>
<h1>Platform</h1>
<h2>Linked services</h2>
<ul>
{(Object.keys(linked) as Array<keyof typeof linked>).map((name) => (
<li key={name}>
{name}: {linked[name] ? 'linked' : 'not linked'}
</li>
))}
</ul>
<h2>Description</h2>
<pre>{JSON.stringify(info, null, 2)}</pre>
</main>
)
}