feat(web): 官网恢复登录入口 → usercenter(app.yanmeiai.com)
usercenter(web/usercenter, Next 静态导出)已部署到 CF Pages(pangolin-usercenter, 自定义域 app.yanmeiai.com)。site.ts 加 usercenter 字段;Header 恢复 .linklogin(t.login)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Download, Menu } from 'lucide-react';
|
import { Download, Menu } from 'lucide-react';
|
||||||
|
import { SITE } from '../config/site';
|
||||||
|
|
||||||
function Mark() {
|
function Mark() {
|
||||||
return (
|
return (
|
||||||
@@ -60,8 +61,7 @@ export default function Header({ lang = 'zh', t = {} }) {
|
|||||||
<a data-lang="zh" class={lang === 'zh' ? 'on' : undefined} href="/">中文</a>
|
<a data-lang="zh" class={lang === 'zh' ? 'on' : undefined} href="/">中文</a>
|
||||||
<a data-lang="en" class={lang === 'en' ? 'on' : undefined} href="/en/">EN</a>
|
<a data-lang="en" class={lang === 'en' ? 'on' : undefined} href="/en/">EN</a>
|
||||||
</div>
|
</div>
|
||||||
{/* 「登录」暂移除:Web 用户中心(web/usercenter)未部署、无 URL;待 #30 CI/CD
|
<a class="linklogin" href={SITE.usercenter}>{t.login}</a>
|
||||||
部署后接上 usercenter 登录地址再恢复。 */}
|
|
||||||
<a class="btn btn-primary" href="#download">
|
<a class="btn btn-primary" href="#download">
|
||||||
<Download />
|
<Download />
|
||||||
<span>{t.get}</span>
|
<span>{t.get}</span>
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ export const SITE = {
|
|||||||
/** 自助发卡商店 —— 占位待定(#24)。 */
|
/** 自助发卡商店 —— 占位待定(#24)。 */
|
||||||
store: { label: 'shop.pangolin.vpn' },
|
store: { label: 'shop.pangolin.vpn' },
|
||||||
|
|
||||||
|
/** Web 用户中心(web/usercenter,Next.js 静态导出 → CF Pages)。登录/订阅/设备管理入口。 */
|
||||||
|
usercenter: 'https://app.yanmeiai.com',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 客户端安装包直链。控制面 pangolin-server 通过 Cloudflare Tunnel 对外暴露
|
* 客户端安装包直链。控制面 pangolin-server 通过 Cloudflare Tunnel 对外暴露
|
||||||
* /downloads/<file>(origin = 127.0.0.1:8080),文件由
|
* /downloads/<file>(origin = 127.0.0.1:8080),文件由
|
||||||
|
|||||||
Reference in New Issue
Block a user