feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口
补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。 Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -7,6 +7,7 @@ import {
|
||||
CardProfile,
|
||||
CardStatus,
|
||||
OwnerPageData,
|
||||
OwnerPagePagination,
|
||||
OwnerPageQuery,
|
||||
} from '../../../common/types.uts';
|
||||
import { fetchOwnerCardPage } from '../../../common/api.uts';
|
||||
@@ -36,7 +37,17 @@ export type CardHomeCopyKey =
|
||||
| 'statusDraft'
|
||||
| 'statusPublished'
|
||||
| 'statusArchived'
|
||||
| 'quotaExceeded';
|
||||
| 'quotaExceeded'
|
||||
| 'scanGuide'
|
||||
| 'linkLabel'
|
||||
| 'copy'
|
||||
| 'emptyDesc'
|
||||
| 'cases'
|
||||
| 'articles'
|
||||
| 'linkEmpty'
|
||||
| 'switchTitle'
|
||||
| 'quotaBadge'
|
||||
| 'emptyHeading';
|
||||
|
||||
export type LoadCardsQuery = {
|
||||
page: number;
|
||||
@@ -52,11 +63,7 @@ export type LoadCardsApi = {
|
||||
|
||||
export type LoadCardsResult = {
|
||||
list: CardHomeItem[];
|
||||
pagination: {
|
||||
page: number;
|
||||
size: number;
|
||||
total: number;
|
||||
};
|
||||
pagination: OwnerPagePagination;
|
||||
empty: boolean;
|
||||
errorMessage: string;
|
||||
};
|
||||
@@ -105,7 +112,7 @@ export function resolveCardHomeText(key: CardHomeCopyKey): string {
|
||||
|
||||
const zh = isZhLocale();
|
||||
if (key === 'poster') {
|
||||
return zh ? '分享海报' : 'Share poster';
|
||||
return zh ? '出示名片' : 'Show card';
|
||||
}
|
||||
if (key === 'title') {
|
||||
return zh ? '我的名片' : 'My cards';
|
||||
@@ -131,6 +138,36 @@ export function resolveCardHomeText(key: CardHomeCopyKey): string {
|
||||
if (key === 'quotaExceeded') {
|
||||
return zh ? '名片配额已满,升级后可继续创建' : 'Card quota is full. Upgrade to create more.';
|
||||
}
|
||||
if (key === 'scanGuide') {
|
||||
return zh ? '扫码即可保存这张名片' : 'Scan to save this card';
|
||||
}
|
||||
if (key === 'linkLabel') {
|
||||
return zh ? '名片链接' : 'Card link';
|
||||
}
|
||||
if (key === 'copy') {
|
||||
return zh ? '复制' : 'Copy';
|
||||
}
|
||||
if (key === 'emptyDesc') {
|
||||
return zh ? '创建第一张名片后,就可以在这里出示' : 'Create a card, then show it here';
|
||||
}
|
||||
if (key === 'cases') {
|
||||
return zh ? '相册' : 'Gallery';
|
||||
}
|
||||
if (key === 'articles') {
|
||||
return zh ? '动态' : 'Posts';
|
||||
}
|
||||
if (key === 'linkEmpty') {
|
||||
return zh ? '暂无链接' : 'No link yet';
|
||||
}
|
||||
if (key === 'switchTitle') {
|
||||
return zh ? '选择名片' : 'Choose a card';
|
||||
}
|
||||
if (key === 'quotaBadge') {
|
||||
return zh ? '配额已满' : 'Quota full';
|
||||
}
|
||||
if (key === 'emptyHeading') {
|
||||
return zh ? '还没有名片' : 'No cards yet';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户