@jsb188/mday-web 1.1.11 → 1.1.12
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/package.json +15 -13
- package/src/modules/Grids.filters.ts +36 -0
- package/src/modules/Grids.tsx +115 -347
- package/src/schemas/organization.ts +128 -0
- package/src/utils/email.ts +117 -0
- package/src/utils/log-web.helpers.ts +99 -0
- package/src/utils/log-web.icons.ts +184 -0
- package/src/utils/log-web.ts +58 -458
- package/src/utils/operation-pages.ts +154 -0
- package/src/utils/route-helpers.ts +193 -258
- package/src/utils/workflow-web.ts +16 -40
- package/tests/log-web.test.ts +134 -0
- package/tests/route-helpers.test.ts +17 -0
- package/src/modules/AgentDocs.tsx +0 -800
- package/src/modules/DocAccessSettings.tsx +0 -963
- package/src/utils/account-web.ts +0 -64
package/src/utils/account-web.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import i18n from '@jsb188/app/i18n/index.ts';
|
|
2
|
-
import { getTimeZoneCode } from '@jsb188/app/utils/timeZone.ts';
|
|
3
|
-
import { COMMON_ICON_NAMES } from '@jsb188/react-web/svgs/Icon';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* Build the shared current-account menu options used by app navigation controls.
|
|
7
|
-
*/
|
|
8
|
-
export function getMarketdayAccountOptions(p: {
|
|
9
|
-
avatarClassName?: string;
|
|
10
|
-
fullName: string;
|
|
11
|
-
onSignOut: () => void;
|
|
12
|
-
profileLabel: string;
|
|
13
|
-
profilePhotoUri: string | null;
|
|
14
|
-
timeZone: string | null;
|
|
15
|
-
}) {
|
|
16
|
-
const {
|
|
17
|
-
avatarClassName,
|
|
18
|
-
fullName,
|
|
19
|
-
onSignOut,
|
|
20
|
-
profileLabel,
|
|
21
|
-
profilePhotoUri,
|
|
22
|
-
timeZone,
|
|
23
|
-
} = p;
|
|
24
|
-
const timeZoneCode = getTimeZoneCode(timeZone, true);
|
|
25
|
-
|
|
26
|
-
return [
|
|
27
|
-
{
|
|
28
|
-
__type: 'AVATAR_ITEM' as const,
|
|
29
|
-
avatarDisplayName: fullName,
|
|
30
|
-
className: avatarClassName,
|
|
31
|
-
photoUri: profilePhotoUri,
|
|
32
|
-
text: fullName,
|
|
33
|
-
label: profileLabel,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
__type: 'BREAK' as const,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
__type: 'LIST_ITEM_MODAL' as const,
|
|
40
|
-
iconName: COMMON_ICON_NAMES.account_profile,
|
|
41
|
-
variables: {
|
|
42
|
-
name: 'ACCOUNT_INFO',
|
|
43
|
-
},
|
|
44
|
-
text: i18n.t('account.your_account'),
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
__type: 'BREAK' as const,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
__type: 'TEXT' as const,
|
|
51
|
-
text: i18n.t('app.timezone_set_to_', { timeZone: timeZoneCode }),
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
__type: 'BREAK' as const,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
__type: 'LIST_ITEM' as const,
|
|
58
|
-
onClick: onSignOut,
|
|
59
|
-
preset: 'small' as const,
|
|
60
|
-
text: i18n.t('auth.sign_out'),
|
|
61
|
-
value: true,
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
}
|