docs(settings): guide obtaining DanDanPlay AppId via DevCenter
Official docs: AppId/AppSecret come from developer application review, not user login. Add in-app guidance.
This commit is contained in:
parent
2e405cd974
commit
d71e9157c0
|
|
@ -42,6 +42,21 @@ function Inner(props: { locale: Locale }) {
|
|||
</div>
|
||||
<p className="text-sm text-muted-foreground">{label("settings.openNetworkHint")}</p>
|
||||
|
||||
<div className="space-y-2 rounded-md border border-border p-3">
|
||||
<p className="text-sm font-medium">{label("settings.obtainCreds")}</p>
|
||||
<p className="text-xs text-muted-foreground">{label("settings.obtainCredsHint")}</p>
|
||||
<p className="text-xs text-muted-foreground">{label("settings.obtainSteps")}</p>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="outline"
|
||||
onClick={() => {
|
||||
window.open("https://dev.dandanplay.com", "_blank", "noopener,noreferrer");
|
||||
}}
|
||||
>
|
||||
{label("settings.openDevCenter")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<p className="text-sm text-muted-foreground">{label("settings.openAppId")}</p>
|
||||
<Input
|
||||
|
|
|
|||
|
|
@ -331,4 +331,8 @@ export const en: Record<MessageKey, string> = {
|
|||
"settings.openSaved": "Saved and applied",
|
||||
"settings.openSaveFailed": "Save failed",
|
||||
"settings.save": "Save",
|
||||
"settings.obtainCreds": "Get credentials",
|
||||
"settings.obtainCredsHint": "AppId/AppSecret are issued by the DanDanPlay DevCenter (create an app and pass review). They cannot be obtained by signing in with a normal account.",
|
||||
"settings.openDevCenter": "Open DevCenter",
|
||||
"settings.obtainSteps": "Steps: sign in / register at DevCenter → create an app → wait for review → copy AppId and AppSecret from the app detail",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -321,6 +321,10 @@ export const zhCN = {
|
|||
"settings.openSaved": "已保存并生效",
|
||||
"settings.openSaveFailed": "保存失败",
|
||||
"settings.save": "保存",
|
||||
"settings.obtainCreds": "获取凭证",
|
||||
"settings.obtainCredsHint": "AppId/AppSecret 由弹弹play 开发者中心发放(创建应用并通过审核),无法用普通账号登录自动获取。",
|
||||
"settings.openDevCenter": "打开开发者中心",
|
||||
"settings.obtainSteps": "步骤:登录/注册开发者中心 → 创建应用 → 等待审核 → 在应用详情复制 AppId 与 AppSecret",
|
||||
} as const;
|
||||
|
||||
export type MessageKey = keyof typeof zhCN;
|
||||
|
|
|
|||
Loading…
Reference in New Issue