feat: 同步管理端、用户端与后端业务,并接通线上 Web 接口

补齐平台订阅、外部登录、CRM 同步与用户端页面;Nginx 转发用户端接口,登录页使用 Google 与 Apple 标志。

Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
wikiboss
2026-09-23 18:01:47 +08:00
父节点 8ea9c25386
当前提交 62e0ae4435
共有 227 个文件被更改,包括 21855 次插入 和 5264 次删除

查看文件

@@ -179,4 +179,35 @@ describe('门户进入页语言解析 (resolvePortalLocale)', () => {
expect(storageMap.get('omni_locale')).toBe('en-US');
expect(readStoredPortalLocale()).toBe('en-US');
});
it('TabBar 5大菜单 key 在七语均有对应本地化文案,且支持 updateTabBarTitles()', () => {
const setTabBarItemMock = jest.fn();
(global as { uni?: unknown }).uni = {
setTabBarItem: setTabBarItemMock,
getStorageSync: () => 'en-US',
setStorageSync: () => {},
$emit: () => {},
};
const { omniLocales, updateTabBarTitles } = require(LOCALE_UTS) as {
omniLocales: Record<string, { messages: Record<string, string> }>;
updateTabBarTitles: (locale?: string) => void;
};
const tabKeys = ['tab.workplace', 'tab.card', 'tab.radar', 'tab.leads', 'tab.profile'];
for (const locale of ['zh-CN', 'en-US', 'ar-SA', 'es-ES', 'de-DE', 'fr-FR', 'ja-JP']) {
for (const key of tabKeys) {
const text = omniLocales[locale].messages[key];
expect(typeof text).toBe('string');
expect(text.length).toBeGreaterThan(0);
}
}
setTabBarItemMock.mockClear();
updateTabBarTitles('en-US');
expect(setTabBarItemMock).toHaveBeenCalledTimes(5);
expect(setTabBarItemMock).toHaveBeenNthCalledWith(1, { index: 0, text: 'Workplace' });
expect(setTabBarItemMock).toHaveBeenNthCalledWith(2, { index: 1, text: 'Card' });
expect(setTabBarItemMock).toHaveBeenNthCalledWith(3, { index: 2, text: 'Radar' });
expect(setTabBarItemMock).toHaveBeenNthCalledWith(4, { index: 3, text: 'Leads' });
expect(setTabBarItemMock).toHaveBeenNthCalledWith(5, { index: 4, text: 'Profile' });
});
});