@lark-apaas/client-toolkit 1.2.86 → 1.2.87-alpha.20261201140650
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en-US.md +105 -0
- package/README.md +30 -1
- package/lib/apis/components/UniversalLink.js +2 -1
- package/lib/apis/constants/img-resources/avatar.d.ts +11 -11
- package/lib/apis/constants/img-resources/avatar.js +12 -11
- package/lib/apis/constants/img-resources/banner.d.ts +24 -24
- package/lib/apis/constants/img-resources/banner.js +25 -24
- package/lib/apis/constants/img-resources/cover.d.ts +36 -36
- package/lib/apis/constants/img-resources/cover.js +37 -36
- package/lib/apis/dataloom.d.ts +0 -2
- package/lib/apis/dataloom.js +1 -2
- package/lib/apis/utils/createI18nForRuntime.d.ts +6 -0
- package/lib/apis/utils/createI18nForRuntime.js +2 -0
- package/lib/apis/utils/getLarkJssdkConfig.d.ts +2 -0
- package/lib/apis/utils/getLarkJssdkConfig.js +2 -0
- package/lib/apis/utils/getLocale.d.ts +3 -0
- package/lib/apis/utils/getLocale.js +2 -0
- package/lib/components/AppContainer/Watermark.js +44 -42
- package/lib/components/AppContainer/__test__/Watermark.test.js +36 -7
- package/lib/components/AppContainer/doubao-watermark-asset.d.ts +3 -3
- package/lib/components/AppContainer/doubao-watermark-asset.js +6 -5
- package/lib/components/AppContainer/index.js +16 -2
- package/lib/components/AppContainer/utils/tea.js +5 -2
- package/lib/components/ErrorRender/index.js +2 -1
- package/lib/components/NotFoundRender/index.js +4 -3
- package/lib/components/PagePlaceholder/index.js +2 -1
- package/lib/components/User/UserProfile/UserProfileUI.js +5 -3
- package/lib/components/User/UserProfile/utils.d.ts +2 -1
- package/lib/components/User/UserProfile/utils.js +12 -8
- package/lib/components/User/UserSelectUI/Dropdown.js +3 -2
- package/lib/components/User/UserSelectUI/MultipleSelectionTags.js +4 -1
- package/lib/components/User/UserWithAvatar.js +2 -1
- package/lib/components/theme/constants.js +19 -11
- package/lib/hooks/useCurrentUserProfile.js +8 -2
- package/lib/hooks/useLogout.js +3 -2
- package/lib/index.d.ts +0 -2
- package/lib/index.js +1 -2
- package/lib/integrations/services/UserProfileService.d.ts +1 -1
- package/lib/integrations/services/UserProfileService.js +2 -2
- package/lib/locales/__test__/messages.test.js +9 -7
- package/lib/locales/index.d.ts +12 -5
- package/lib/locales/index.js +11 -7
- package/lib/locales/messages.json +262 -0
- package/lib/utils/axiosConfig.js +22 -19
- package/lib/utils/copyToClipboard.js +2 -1
- package/lib/utils/getAxiosForBackend.js +2 -1
- package/lib/utils/getParentOrigin.d.ts +1 -0
- package/lib/utils/getParentOrigin.js +7 -14
- package/lib/utils/i18nText.d.ts +5 -0
- package/lib/utils/i18nText.js +8 -0
- package/lib/utils/larkJssdk.d.ts +13 -0
- package/lib/utils/larkJssdk.js +11 -0
- package/lib/utils/locale.d.ts +2 -3
- package/lib/utils/locale.js +2 -38
- package/lib/utils/postMessage.d.ts +5 -1
- package/lib/utils/postMessage.js +2 -20
- package/package.json +8 -5
- package/lib/integrations/__test__/base-storage.test.d.ts +0 -1
- package/lib/integrations/__test__/base-storage.test.js +0 -74
- package/lib/locales/messages.d.ts +0 -12
- package/lib/locales/messages.js +0 -104
|
@@ -1,17 +1,10 @@
|
|
|
1
|
+
import { readSettings } from "@lark-apaas/miaoda-common-settings";
|
|
2
|
+
const ENV_NAME = {
|
|
3
|
+
boe: 'BOE',
|
|
4
|
+
pre: 'PRE',
|
|
5
|
+
online: 'ONLINE'
|
|
6
|
+
};
|
|
1
7
|
function getEnv() {
|
|
2
|
-
|
|
3
|
-
case 'staging':
|
|
4
|
-
return 'BOE';
|
|
5
|
-
case 'gray':
|
|
6
|
-
return 'PRE';
|
|
7
|
-
case 'online':
|
|
8
|
-
return 'ONLINE';
|
|
9
|
-
default:
|
|
10
|
-
break;
|
|
11
|
-
}
|
|
12
|
-
const { origin } = window.location;
|
|
13
|
-
if (origin.includes('feishuapp.cn') || origin.includes('miaoda.feishuapp.net') || origin.includes('aiforce.cloud') || origin.includes('aiforce.run')) return 'ONLINE';
|
|
14
|
-
if (origin.includes('fsapp.kundou.cn') || origin.includes('miaoda-pre.feishuapp.net') || origin.includes('aiforce-pre.bytedance.net') || origin.includes('aiforce-pre-preview.bytedance.net') || origin.includes('aiforce-pre.cloud') || origin.includes('aiforce-pre.run')) return 'PRE';
|
|
15
|
-
return 'BOE';
|
|
8
|
+
return ENV_NAME[readSettings('env')];
|
|
16
9
|
}
|
|
17
10
|
export { getEnv };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getRuntimeLocale } from "@lark-apaas/miaoda-common-settings";
|
|
2
|
+
function pickI18nText(items) {
|
|
3
|
+
const locale = getRuntimeLocale();
|
|
4
|
+
if ('ja-JP' === locale) return items.find((item)=>1041 === item.language_code && item.text) ?? items.find((item)=>1033 === item.language_code && item.text) ?? items.find((item)=>item.text) ?? items[0];
|
|
5
|
+
const code = 'zh-CN' === locale ? 2052 : 1033;
|
|
6
|
+
return items.find((item)=>item.language_code === code) ?? items[0];
|
|
7
|
+
}
|
|
8
|
+
export { pickI18nText };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface LarkJssdkConfig {
|
|
2
|
+
/** 飞书 H5 JSSDK 的脚本地址 */
|
|
3
|
+
sdkUrl: string | undefined;
|
|
4
|
+
/** 初始化名片等组件时的环境参数,仅 BOE 环境需要 */
|
|
5
|
+
env: 'feishu_boe' | undefined;
|
|
6
|
+
/** 初始化名片等组件时的语言参数,跟随当前语言 */
|
|
7
|
+
locale: 'zh_cn' | 'en_us';
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 加载、初始化飞书 H5 JSSDK 所需的参数,供模板中的用户名片等组件使用,
|
|
11
|
+
* 模板不再写死 JSSDK 地址、环境和语言。
|
|
12
|
+
*/
|
|
13
|
+
export declare function getLarkJssdkConfig(): LarkJssdkConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { readSettings } from "@lark-apaas/miaoda-common-settings";
|
|
2
|
+
import { getEnv } from "./getParentOrigin.js";
|
|
3
|
+
import { getLocale } from "./locale.js";
|
|
4
|
+
function getLarkJssdkConfig() {
|
|
5
|
+
return {
|
|
6
|
+
sdkUrl: readSettings('domainConf.larkJssdk'),
|
|
7
|
+
env: 'BOE' === getEnv() ? 'feishu_boe' : void 0,
|
|
8
|
+
locale: 'zh' === getLocale() ? 'zh_cn' : 'en_us'
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export { getLarkJssdkConfig };
|
package/lib/utils/locale.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* 统一的语言判断方法,规则由基础包 getRuntimeLocale 实现:
|
|
3
3
|
*
|
|
4
4
|
* 生产环境(`process.env.NODE_ENV === 'production'`):
|
|
5
5
|
* 只看浏览器容器语言(navigator.language)。
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
* 通过 iframe src 透传,确保产物内的语言与宿主一致;
|
|
11
11
|
* 读到 query 时会同步写入 localStorage,便于后续无 query 的跳转/刷新场景使用。
|
|
12
12
|
*
|
|
13
|
-
* 返回标准化 locale code:'zh' | 'en'
|
|
14
|
-
* 目前只区分中英文,未来扩展时在此调整。
|
|
13
|
+
* 返回标准化 locale code:'zh' | 'en'(对外导出,保持原有取值)。
|
|
15
14
|
*/
|
|
16
15
|
export type Locale = 'zh' | 'en';
|
|
17
16
|
export declare function getLocale(): Locale;
|
package/lib/utils/locale.js
CHANGED
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
function toLocale(value) {
|
|
3
|
-
const lang = value ?? 'zh';
|
|
4
|
-
return lang.toLowerCase().startsWith('zh') ? 'zh' : 'en';
|
|
5
|
-
}
|
|
6
|
-
function readLocaleFromQuery() {
|
|
7
|
-
if ('undefined' == typeof window) return null;
|
|
8
|
-
try {
|
|
9
|
-
const value = new URLSearchParams(window.location.search).get('locale');
|
|
10
|
-
return value && value.length > 0 ? value : null;
|
|
11
|
-
} catch {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function readLocaleFromStorage() {
|
|
16
|
-
if ('undefined' == typeof window) return null;
|
|
17
|
-
try {
|
|
18
|
-
const value = window.localStorage?.getItem(STORAGE_KEY);
|
|
19
|
-
return value && value.length > 0 ? value : null;
|
|
20
|
-
} catch {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function writeLocaleToStorage(value) {
|
|
25
|
-
if ('undefined' == typeof window) return;
|
|
26
|
-
try {
|
|
27
|
-
window.localStorage?.setItem(STORAGE_KEY, value);
|
|
28
|
-
} catch {}
|
|
29
|
-
}
|
|
1
|
+
import { getRuntimeLocale } from "@lark-apaas/miaoda-common-settings";
|
|
30
2
|
function getLocale() {
|
|
31
|
-
|
|
32
|
-
const fromQuery = readLocaleFromQuery();
|
|
33
|
-
if (fromQuery) {
|
|
34
|
-
writeLocaleToStorage(fromQuery);
|
|
35
|
-
return toLocale(fromQuery);
|
|
36
|
-
}
|
|
37
|
-
const fromStorage = readLocaleFromStorage();
|
|
38
|
-
if (fromStorage) return toLocale(fromStorage);
|
|
39
|
-
return toLocale(navigator.language);
|
|
3
|
+
return 'zh-CN' === getRuntimeLocale() ? 'zh' : 'en';
|
|
40
4
|
}
|
|
41
5
|
export { getLocale };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { IncomingMessage, OutgoingMessage } from '../types/iframe-events';
|
|
2
2
|
export declare function getParentOriginFromParams(): string | undefined;
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* 预览时与主站通信的目标地址,规则见基础包 getParentOrigin:
|
|
5
|
+
* force 老域名(无 URL 参数时)→ 本地开发 referrer → URL 参数 __parentOrigin(兼容豆包链路)→ 配置中的主站地址。
|
|
6
|
+
*/
|
|
7
|
+
export declare const resolveParentOrigin: () => string | undefined;
|
|
4
8
|
export declare function submitPostMessage<T extends OutgoingMessage>(message: T, targetOrigin?: string): void;
|
|
5
9
|
export declare function isOutgoingMessage<T extends OutgoingMessage['type']>(msg: OutgoingMessage, type: T): msg is Extract<OutgoingMessage, {
|
|
6
10
|
type: T;
|
package/lib/utils/postMessage.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getParentOrigin } from "@lark-apaas/miaoda-common-settings";
|
|
1
2
|
const PARENT_ORIGIN_KEY = '__parentOrigin';
|
|
2
3
|
function getParentOriginFromParams() {
|
|
3
4
|
try {
|
|
@@ -14,26 +15,7 @@ function getParentOriginFromParams() {
|
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
const { origin } = window.location;
|
|
19
|
-
if (origin.includes('force.feishuapp.net')) return 'https://force.feishu.cn';
|
|
20
|
-
if (origin.includes('force-pre.feishuapp.net')) return 'https://force.feishu-pre.cn';
|
|
21
|
-
if (origin.includes('force.byted.org')) return 'https://force.feishu-boe.cn';
|
|
22
|
-
if (origin.includes('feishuapp.cn') || origin.includes('miaoda.feishuapp.net')) return 'https://miaoda.feishu.cn';
|
|
23
|
-
if (origin.includes('fsapp.kundou.cn') || origin.includes('miaoda-pre.feishuapp.net')) return 'https://miaoda.feishu-pre.cn';
|
|
24
|
-
return 'https://miaoda.feishu-boe.cn';
|
|
25
|
-
}
|
|
26
|
-
function resolveParentOrigin() {
|
|
27
|
-
try {
|
|
28
|
-
if (document.referrer) {
|
|
29
|
-
const referrerOrigin = new URL(document.referrer).origin;
|
|
30
|
-
if (referrerOrigin.startsWith('http://localhost') || referrerOrigin.startsWith('http://127.0.0.1')) return referrerOrigin;
|
|
31
|
-
}
|
|
32
|
-
} catch {}
|
|
33
|
-
const paramOrigin = getParentOriginFromParams();
|
|
34
|
-
if (paramOrigin) return paramOrigin;
|
|
35
|
-
return process.env?.FORCE_FRAMEWORK_DOMAIN_MAIN ?? getLegacyParentOrigin();
|
|
36
|
-
}
|
|
18
|
+
const resolveParentOrigin = getParentOrigin;
|
|
37
19
|
function submitPostMessage(message, targetOrigin) {
|
|
38
20
|
try {
|
|
39
21
|
const parentOrigin = resolveParentOrigin();
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/client-toolkit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.87-alpha.20261201140650",
|
|
4
4
|
"types": "./lib/index.d.ts",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
7
|
-
"lib"
|
|
7
|
+
"lib",
|
|
8
|
+
"README.md",
|
|
9
|
+
"README.en-US.md"
|
|
8
10
|
],
|
|
9
11
|
"publishConfig": {
|
|
10
12
|
"access": "public"
|
|
@@ -100,11 +102,12 @@
|
|
|
100
102
|
"@ant-design/colors": "^7.2.1",
|
|
101
103
|
"@ant-design/cssinjs": "^1.24.0",
|
|
102
104
|
"@lark-apaas/aily-web-sdk": "^0.0.12",
|
|
103
|
-
"@lark-apaas/auth-sdk": "
|
|
105
|
+
"@lark-apaas/auth-sdk": "0.1.9-alpha.20261201140654",
|
|
104
106
|
"@lark-apaas/client-capability": "^0.1.8",
|
|
105
|
-
"@lark-apaas/dataloom": "
|
|
107
|
+
"@lark-apaas/dataloom": "0.1.8-alpha.20261201140713",
|
|
106
108
|
"@lark-apaas/internal-slardar": "^0.0.3",
|
|
107
|
-
"@lark-apaas/miaoda-
|
|
109
|
+
"@lark-apaas/miaoda-common-settings": "1.0.1-alpha.20261201140711",
|
|
110
|
+
"@lark-apaas/miaoda-inspector": "1.0.26-alpha.20261201140712",
|
|
108
111
|
"@lark-apaas/observable-web": "^1.0.11",
|
|
109
112
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
110
113
|
"@radix-ui/react-popover": "^1.1.15",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { File } from "node:buffer";
|
|
2
|
-
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
3
|
-
import { getDataloom } from "../dataloom.js";
|
|
4
|
-
vi.mock('../../utils/getInitialInfo', ()=>({
|
|
5
|
-
getInitialInfo: async ()=>({})
|
|
6
|
-
}));
|
|
7
|
-
vi.mock('@lark-apaas/auth-sdk', ()=>({
|
|
8
|
-
authClient: {
|
|
9
|
-
user: {},
|
|
10
|
-
session: {}
|
|
11
|
-
}
|
|
12
|
-
}));
|
|
13
|
-
afterEach(()=>{
|
|
14
|
-
vi.unstubAllGlobals();
|
|
15
|
-
document.cookie = 'suda-csrf-token=; max-age=0; path=/';
|
|
16
|
-
});
|
|
17
|
-
describe('baseStorage toolkit integration', ()=>{
|
|
18
|
-
it('reads the host at call time and refreshes CSRF for the callback', async ()=>{
|
|
19
|
-
Object.assign(window, {
|
|
20
|
-
appId: 'app-from-host',
|
|
21
|
-
ENVIRONMENT: 'gray'
|
|
22
|
-
});
|
|
23
|
-
document.cookie = 'suda-csrf-token=first; path=/';
|
|
24
|
-
const calls = [];
|
|
25
|
-
vi.stubGlobal('fetch', vi.fn(async (input, init)=>{
|
|
26
|
-
const url = String(input);
|
|
27
|
-
calls.push({
|
|
28
|
-
url,
|
|
29
|
-
init
|
|
30
|
-
});
|
|
31
|
-
if (url.endsWith('/preUpload')) {
|
|
32
|
-
document.cookie = 'suda-csrf-token=second; path=/';
|
|
33
|
-
return new Response(JSON.stringify({
|
|
34
|
-
data: {
|
|
35
|
-
uploadCode: 'up'
|
|
36
|
-
}
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
39
|
-
if (url.includes('prepare_authcode')) return new Response(JSON.stringify({
|
|
40
|
-
code: 0,
|
|
41
|
-
data: {
|
|
42
|
-
upload_id: 'session',
|
|
43
|
-
block_size: 10
|
|
44
|
-
}
|
|
45
|
-
}));
|
|
46
|
-
if (url.includes('finish_authcode')) return new Response(JSON.stringify({
|
|
47
|
-
code: 0,
|
|
48
|
-
data: {
|
|
49
|
-
file_token: 'token'
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
return new Response(JSON.stringify({
|
|
53
|
-
code: 0
|
|
54
|
-
}));
|
|
55
|
-
}));
|
|
56
|
-
const dataloom = await getDataloom();
|
|
57
|
-
const result = await dataloom.baseStorage.upload(new File([
|
|
58
|
-
'abc'
|
|
59
|
-
], 'a.png'), {
|
|
60
|
-
baseToken: 'base'
|
|
61
|
-
});
|
|
62
|
-
expect(result.error).toBeNull();
|
|
63
|
-
expect(new URL(calls[0].url).pathname).toContain('/app/app-from-host/');
|
|
64
|
-
expect(new URL(calls[1].url).hostname).toBe('internal-api-drive-stream.feishu.cn');
|
|
65
|
-
expect(new Headers(calls[0].init?.headers).get('X-Suda-Csrf-Token')).toBe('first');
|
|
66
|
-
expect(new Headers(calls[4].init?.headers).get('X-Suda-Csrf-Token')).toBe('second');
|
|
67
|
-
const url = dataloom.baseStorage.getAttachmentUrl({
|
|
68
|
-
baseToken: 'base',
|
|
69
|
-
tableId: 'tbl-real-id',
|
|
70
|
-
attachment: result.data
|
|
71
|
-
});
|
|
72
|
-
expect(url.data?.url).toBe('/app/app-from-host/__runtime__/api/v1/storage/bitable/base/table/tbl-real-id/token');
|
|
73
|
-
});
|
|
74
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 中英文文案源(统一管理)。
|
|
3
|
-
*
|
|
4
|
-
* 每条文案同时包含 zh 和 en,方便对照和维护。
|
|
5
|
-
* Key 规则:`{组件}.{区域}.{标识}`
|
|
6
|
-
* 文案来源:https://bytedance.larkoffice.com/wiki/BJCQwv9auiP9erkudMfcVIIGnRg
|
|
7
|
-
*/
|
|
8
|
-
declare const messages: Record<string, {
|
|
9
|
-
zh: string;
|
|
10
|
-
en: string;
|
|
11
|
-
}>;
|
|
12
|
-
export default messages;
|
package/lib/locales/messages.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
const messages_messages = {
|
|
2
|
-
'index.rateLimitError': {
|
|
3
|
-
zh: '应用额度已耗尽,请联系应用开发者',
|
|
4
|
-
en: 'Application quota exhausted, please contact the app developer'
|
|
5
|
-
},
|
|
6
|
-
'index.frequencyLimitError': {
|
|
7
|
-
zh: '操作过于频繁,请稍后重试',
|
|
8
|
-
en: 'Too many requests. Please try again later'
|
|
9
|
-
},
|
|
10
|
-
'theme.themeColors.title': {
|
|
11
|
-
zh: '主题色',
|
|
12
|
-
en: 'Theme Color'
|
|
13
|
-
},
|
|
14
|
-
'theme.themeRadius.title': {
|
|
15
|
-
zh: '圆角',
|
|
16
|
-
en: 'Border Radius'
|
|
17
|
-
},
|
|
18
|
-
'theme.themeSpaces.title': {
|
|
19
|
-
zh: '间距',
|
|
20
|
-
en: 'Spacing'
|
|
21
|
-
},
|
|
22
|
-
'errorRender.title': {
|
|
23
|
-
zh: '页面出错了',
|
|
24
|
-
en: 'Something went wrong'
|
|
25
|
-
},
|
|
26
|
-
'notFound.pageNotExist': {
|
|
27
|
-
zh: '页面不存在',
|
|
28
|
-
en: 'Page not found'
|
|
29
|
-
},
|
|
30
|
-
'notFound.logger.pageNotExist': {
|
|
31
|
-
zh: '页面 {path} 不存在',
|
|
32
|
-
en: 'Page {path} does not exist'
|
|
33
|
-
},
|
|
34
|
-
'notFound.logger.repairMessage': {
|
|
35
|
-
zh: '页面 {path} 不存在,帮我创建对应页面,并配置到"client/src/app.tsx"路由表中',
|
|
36
|
-
en: 'Page {path} does not exist, help me create the corresponding page and configure it in the "client/src/app.tsx" routing table'
|
|
37
|
-
},
|
|
38
|
-
'pagePlaceholder.title': {
|
|
39
|
-
zh: '页面待开发',
|
|
40
|
-
en: 'Page coming soon'
|
|
41
|
-
},
|
|
42
|
-
"pagePlaceholder.description": {
|
|
43
|
-
zh: '页面暂未开发,请耐心等待...',
|
|
44
|
-
en: 'This page is under development, please wait...'
|
|
45
|
-
},
|
|
46
|
-
'confirm.title': {
|
|
47
|
-
zh: '提示',
|
|
48
|
-
en: 'Confirm'
|
|
49
|
-
},
|
|
50
|
-
'confirm.confirmText': {
|
|
51
|
-
zh: '确认',
|
|
52
|
-
en: 'Confirm'
|
|
53
|
-
},
|
|
54
|
-
'confirm.cancelText': {
|
|
55
|
-
zh: '取消',
|
|
56
|
-
en: 'Cancel'
|
|
57
|
-
},
|
|
58
|
-
'userSelect.placeholder': {
|
|
59
|
-
zh: '请选择用户',
|
|
60
|
-
en: 'Select user'
|
|
61
|
-
},
|
|
62
|
-
'userProfile.status.inactive': {
|
|
63
|
-
zh: '暂停使用',
|
|
64
|
-
en: 'Inactive'
|
|
65
|
-
},
|
|
66
|
-
'userProfile.button.message': {
|
|
67
|
-
zh: '消息',
|
|
68
|
-
en: 'Message'
|
|
69
|
-
},
|
|
70
|
-
'userProfile.label.department': {
|
|
71
|
-
zh: '部门',
|
|
72
|
-
en: 'Department'
|
|
73
|
-
},
|
|
74
|
-
'userProfile.label.email': {
|
|
75
|
-
zh: '邮箱',
|
|
76
|
-
en: 'Email'
|
|
77
|
-
},
|
|
78
|
-
'axios.log.requestSuccess': {
|
|
79
|
-
zh: '请求成功:',
|
|
80
|
-
en: 'Request succeeded: '
|
|
81
|
-
},
|
|
82
|
-
'axios.log.requestFailed': {
|
|
83
|
-
zh: '请求失败:',
|
|
84
|
-
en: 'Request failed: '
|
|
85
|
-
},
|
|
86
|
-
'axios.log.networkFailed': {
|
|
87
|
-
zh: '网络请求失败:',
|
|
88
|
-
en: 'Network request failed: '
|
|
89
|
-
},
|
|
90
|
-
'axios.log.noResponseOrConfig': {
|
|
91
|
-
zh: '请求失败:无响应对象或配置信息',
|
|
92
|
-
en: 'Request failed: no response object or config'
|
|
93
|
-
},
|
|
94
|
-
'axios.log.forbidden': {
|
|
95
|
-
zh: '请求被拒绝(403):{method} {url}',
|
|
96
|
-
en: 'Request rejected (403): {method} {url}'
|
|
97
|
-
},
|
|
98
|
-
'axios.log.unknownError': {
|
|
99
|
-
zh: '未知错误',
|
|
100
|
-
en: 'Unknown error'
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
const messages = messages_messages;
|
|
104
|
-
export { messages as default };
|