Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | 1x 1x | import BasicLayout from "main/layouts/BasicLayout/BasicLayout";
import { useSystemInfo } from "../../utils/systemInfo";
export default function AdminDeveloperPage() {
const { data: systemInfo } = useSystemInfo();
return (
<BasicLayout>
<main style={{ padding: "24px" }}>
<h1>Developer Information</h1>
<h2>Current Deployed Branch</h2>
<table className="table table-striped">
<tbody>
<tr>
<th>GitHub Repo</th>
<td>
{systemInfo?.sourceRepo ? (
<a href={systemInfo.sourceRepo}>{systemInfo.sourceRepo}</a>
) : (
"Not available"
)}
</td>
</tr>
<tr>
<th>Commit</th>
<td>
{systemInfo?.commitId ? (
<code>{systemInfo.commitId}</code>
) : (
"Not available"
)}
</td>
</tr>
<tr>
<th>Commit Message</th>
<td>
{systemInfo?.commitMessage ? (
<code>{systemInfo.commitMessage}</code>
) : (
"Not available"
)}
</td>
</tr>
<tr>
<th>Commit Url</th>
<td>
{systemInfo?.githubUrl ? (
<a href={systemInfo.githubUrl}>{systemInfo.githubUrl}</a>
) : (
"Not available"
)}
</td>
</tr>
</tbody>
</table>
<h2>Backend Endpoints</h2>
<ul>
<li>
<a href="/swagger-ui/index.html">Swagger</a>
</li>
<li>
<a href="/h2-console">H2 Console (only on localhost)</a>
</li>
</ul>
<h2>System Info</h2>
<pre>{JSON.stringify(systemInfo, null, 2)}</pre>
</main>
</BasicLayout>
);
}
|