blob: 1c16df4ef8c3a548e975bc79a5ff7ad8705ef601 (
plain)
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
|
// SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
// SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
import type { Metadata } from "next";
import { CredentialsShell } from "@/components/credentials/CredentialsShell";
import { getCredentialsMessages } from "@/lib/credentials-messages";
import { siteOrigin } from "@/lib/hosts.server";
import { getLocale } from "@/lib/locale.server";
export async function generateMetadata(): Promise<Metadata> {
return { title: getCredentialsMessages(await getLocale()).overview.eyebrow };
}
/**
* The overview of the Progmasoft Console. OAuth 2.1 credentials are one area
* of it, under /credentials; later Progmasoft services get areas of their own.
*/
export default async function ConsoleOverviewPage() {
const locale = await getLocale();
const { overview, common } = getCredentialsMessages(locale);
const authorize = await siteOrigin("authorize");
return (
<CredentialsShell
eyebrow={overview.eyebrow}
title={overview.title}
description={overview.description}
locale={locale}
site="console"
>
<ul className="kind-list">
<li>
<a href="/credentials">
<strong>{common.developers}</strong>
<span>{overview.credentialsText}</span>
</a>
</li>
<li>
<a href={`${authorize}/account/applications`}>
<strong>{common.allowedApplications}</strong>
<span>{overview.allowedText}</span>
</a>
</li>
<li>
<a href="https://github.com/Progmasoft/progmaweb/blob/main/docs/OAUTH.md">
<strong>{overview.docs}</strong>
<span>{overview.docsText}</span>
</a>
</li>
</ul>
</CredentialsShell>
);
}
|