@titaui/pc 1.7.100 → 1.7.101

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.
Files changed (67) hide show
  1. package/lib/components/grid-layout/near-visitors/index.js +4 -2
  2. package/lib/components/grid-layout/okr-align/index.js +4 -4
  3. package/lib/components/grid-layout/okr-progress/index.js +6 -6
  4. package/lib/components/grid-layout/okr-target/index.js +2 -2
  5. package/lib/components/grid-layout/over-view/index.js +1 -1
  6. package/lib/components/grid-layout/personal-info/index.js +5 -3
  7. package/lib/components/grid-layout/sub-employee-okr/index.js +1 -1
  8. package/lib/components/grid-layout/week-task/index.js +4 -4
  9. package/lib/components/grid-layout/words-cloud/index.js +5 -3
  10. package/lib/components/grid-page/personal-info/index.js +5 -3
  11. package/lib/components/img-viewer/index.js +1 -1
  12. package/lib/components/mblog/style.js +4 -4
  13. package/lib/components/okr-detail/base-info/base-info.js +4 -3
  14. package/lib/components/okr-detail/base-info/o-desc/index.js +2 -8
  15. package/lib/components/point-demo/constant.js +1 -3
  16. package/lib/components/point-demo/drop-down-box/index.js +1 -3
  17. package/lib/components/point-demo/index.js +8 -10
  18. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +1 -1
  19. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +2 -1
  20. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -0
  21. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +1 -1
  22. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -0
  23. package/lib/components/word-cloud/index.js +1 -1
  24. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
  25. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
  26. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
  27. package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
  28. package/lib/pages/home/components/data-list/index.js +2 -2
  29. package/lib/pages/home/components/data-list/nav-selector/index.js +2 -2
  30. package/lib/pages/home/components/data-list/table/columns/index.js +1 -1
  31. package/lib/pages/home/components/guide/index.js +14 -12
  32. package/lib/pages/home/components/header/index.js +3 -1
  33. package/lib/pages/home-page-data-list/index.js +2 -2
  34. package/package.json +1 -1
  35. package/src/components/grid-layout/near-visitors/index.tsx +3 -2
  36. package/src/components/grid-layout/okr-align/index.tsx +4 -4
  37. package/src/components/grid-layout/okr-progress/index.tsx +6 -6
  38. package/src/components/grid-layout/okr-target/index.tsx +2 -2
  39. package/src/components/grid-layout/over-view/index.tsx +1 -1
  40. package/src/components/grid-layout/personal-info/index.tsx +4 -3
  41. package/src/components/grid-layout/sub-employee-okr/index.tsx +1 -1
  42. package/src/components/grid-layout/week-task/index.tsx +3 -3
  43. package/src/components/grid-layout/words-cloud/index.tsx +4 -3
  44. package/src/components/grid-page/personal-info/index.tsx +4 -3
  45. package/src/components/img-viewer/index.tsx +1 -1
  46. package/src/components/mblog/style.ts +5 -5
  47. package/src/components/okr-detail/base-info/base-info.tsx +2 -4
  48. package/src/components/okr-detail/base-info/o-desc/index.tsx +0 -7
  49. package/src/components/point-demo/constant.ts +1 -3
  50. package/src/components/point-demo/drop-down-box/index.js +1 -2
  51. package/src/components/point-demo/index.js +8 -9
  52. package/src/components/publish-dynamic-modal/publish-dynamic-modal.scss +1 -1
  53. package/src/components/publish-dynamic-modal/publish-dynamic-modal.tsx +1 -0
  54. package/src/components/user-selector/category-selector-panel/depart-tree.tsx +3 -2
  55. package/src/components/user-selector/export-modules/field-tree-selector/index.scss +1 -1
  56. package/src/components/user-selector/export-modules/field-tree-selector/index.tsx +3 -0
  57. package/src/components/word-cloud/index.js +1 -1
  58. package/src/components-v1/userSelector/components/MultiMode/CommonList.tsx +1 -1
  59. package/src/components-v1/userSelector/components/MultiMode/DepartmentList.tsx +1 -1
  60. package/src/components-v1/userSelector/components/MultiMode/SubsList.tsx +1 -1
  61. package/src/components-v1/userSelector/components/SingleMode.tsx +1 -1
  62. package/src/pages/home/components/data-list/index.tsx +2 -2
  63. package/src/pages/home/components/data-list/nav-selector/index.tsx +2 -2
  64. package/src/pages/home/components/data-list/table/columns/index.tsx +1 -1
  65. package/src/pages/home/components/guide/index.tsx +13 -12
  66. package/src/pages/home/components/header/index.tsx +2 -1
  67. package/src/pages/home-page-data-list/index.tsx +2 -2
@@ -121,7 +121,7 @@ export default class SingleMode extends PureComponent<Props,State> {
121
121
  !users.length && !pending ?
122
122
  <EmptyWrapper>
123
123
  <img src={require('../assets/emptyImg.png')} width="100px"/>
124
- <ListEmptyText>这里什么都没有...</ListEmptyText>
124
+ <ListEmptyText>{getLocale('Mod_ThereNothing')}...</ListEmptyText>
125
125
  </EmptyWrapper>:
126
126
  <SingleList>
127
127
  {
@@ -25,8 +25,8 @@ const HomePageDataList = () => {
25
25
  typeMap.set('all', getLocale('Mod_all'))
26
26
  typeMap.set('hadNotAlign', getLocale('OKR_Db_Unaligned'))
27
27
  typeMap.set('hadAlign', getLocale('OKR_Db_Aligned'))
28
- typeMap.set('hadNotUpdate', '未更新')
29
- typeMap.set('hadUpdate', '已更新')
28
+ typeMap.set('hadNotUpdate', getLocale('HP_Notupdated'))
29
+ typeMap.set('hadUpdate', getLocale('HP_Updated'))
30
30
  typeMap.set('normalOkr', getLocale('OKR_MyO_Pop_Upd_Notrack'))
31
31
  typeMap.set('riskOkr', getLocale('OKR_MyO_Pop_Upd_Atrisk'))
32
32
  typeMap.set('dalyOkr', getLocale('OKR_MyO_Pop_Upd_Postoned'))
@@ -102,8 +102,8 @@ const HomeNavSelector = (props: Props) => {
102
102
  source === 'update' &&
103
103
  <SearchDropdown value={type} onChange={setType} >
104
104
  <SearchDropdown.Option value="all">{getLocale('Mod_all')}</SearchDropdown.Option>
105
- <SearchDropdown.Option value='hadNotUpdate'>未更新</SearchDropdown.Option>
106
- <SearchDropdown.Option value='hadUpdate'>已更新</SearchDropdown.Option>
105
+ <SearchDropdown.Option value='hadNotUpdate'>{getLocale('HP_Notupdated')}</SearchDropdown.Option>
106
+ <SearchDropdown.Option value='hadUpdate'>{getLocale('HP_Updated')}</SearchDropdown.Option>
107
107
  </SearchDropdown>
108
108
  }
109
109
  {
@@ -64,7 +64,7 @@ export const okrUpdateColumns = [{
64
64
  width: '7%',
65
65
  render: (data) =>
66
66
  <LinkColumn onClick={data.behave}>
67
- {data.typeName === '已更新' ? getLocale('Mod_Checkdetails') : getLocale('OKR_OKRW_Gotoupdate')}
67
+ {data.typeName === getLocale('HP_Updated') ? getLocale('Mod_Checkdetails') : getLocale('OKR_OKRW_Gotoupdate')}
68
68
  </LinkColumn >
69
69
  }]
70
70
 
@@ -1,8 +1,9 @@
1
1
  import { getUserInfo } from "../../../../utils/bs-global";
2
2
  import React, { ReactElement, useState, useEffect } from "react";
3
3
  import Queue from "rc-queue-anim";
4
- import "./index.scss";
4
+ import { getLocale } from "../../../../utils/getLocale";
5
5
  import HomeGuideStepItem from "./stepItem";
6
+ import "./index.scss";
6
7
 
7
8
  interface Props {}
8
9
 
@@ -28,7 +29,7 @@ function HomePageGuide({}: Props): ReactElement {
28
29
  onClick={() => setVisible(true)}
29
30
  >
30
31
  <i className="tu-icon-T-zhinan" />
31
- 如何使用 Tita
32
+ {getLocale('HP_HowTita')}
32
33
  </div>
33
34
  )}
34
35
  {visible && (
@@ -40,30 +41,30 @@ function HomePageGuide({}: Props): ReactElement {
40
41
  />
41
42
  <div className={prefixCls + "__guide-steps"}>
42
43
  <div className={prefixCls + "__guide-title"}>
43
- 四步上手 Tita OKR
44
+ {getLocale('HP_FourstepsTita')}
44
45
  </div>
45
46
  <HomeGuideStepItem
46
- title="设定 OKR"
47
+ title={getLocale('HP_DevelopOKR')}
47
48
  step={1}
48
- linkName="教程: 如何在 Tita 上设定 OKR"
49
+ linkName={getLocale('HP_Tut_developOKRs')}
49
50
  href="https://club.tita.com/18150.html"
50
51
  />
51
52
  <HomeGuideStepItem
52
- title="对齐 OKR"
53
+ title={getLocale('HP_AlignmentOKR')}
53
54
  step={2}
54
- linkName="教程: 如何在 Tita 上对齐 OKR"
55
+ linkName={getLocale('HP_TutalignmentOKR')}
55
56
  href="https://club.tita.com/18150.html"
56
57
  />
57
58
  <HomeGuideStepItem
58
- title="任务执行支撑目标达成"
59
+ title={getLocale('HP_Taskachievement')}
59
60
  step={3}
60
- linkName="教程: 如何在 Tita 上分解任务"
61
+ linkName={getLocale('HP_TuttasksonTita')}
61
62
  href="https://club.tita.com/18165.html"
62
63
  />
63
64
  <HomeGuideStepItem
64
- title="更新进度"
65
+ title={getLocale('HP_UpdateProgress')}
65
66
  step={4}
66
- linkName="教程: 如何在 Tita 上更新 OKR"
67
+ linkName={getLocale('HP_TutOKRonTita')}
67
68
  href="https://club.tita.com/18179.html"
68
69
  isFinalStep
69
70
  />
@@ -74,7 +75,7 @@ function HomePageGuide({}: Props): ReactElement {
74
75
  target="_blank"
75
76
  >
76
77
  <i className="tu-icon-shoushi" />
77
- 更多产品培训课程
78
+ {getLocale('HP_Morecourses')}
78
79
  </a>
79
80
  </div>
80
81
  </div>
@@ -1,5 +1,6 @@
1
1
  import React, { ReactElement } from 'react'
2
2
  import Tabs,{ TabPane } from '../../../../components/tabs'
3
+ import { getLocale } from '../../../../utils/getLocale'
3
4
  import "./index.scss"
4
5
 
5
6
  interface Props {
@@ -10,7 +11,7 @@ function Header({}: Props): ReactElement {
10
11
  return (
11
12
  <div className="tita-tab-header">
12
13
  <Tabs size={"big"}>
13
- <TabPane tab="我的" tabKey="my"></TabPane>
14
+ <TabPane tab={getLocale('HP_My')} tabKey="my"></TabPane>
14
15
  </Tabs>
15
16
  </div>
16
17
  )
@@ -28,8 +28,8 @@ const HomePageDataList = () => {
28
28
  typeMap.set('all', getLocale('Mod_all'));
29
29
  typeMap.set('hadNotAlign', getLocale('OKR_Db_Unaligned'));
30
30
  typeMap.set('hadAlign', getLocale('OKR_Db_Aligned'));
31
- typeMap.set('hadNotUpdate', '未更新');
32
- typeMap.set('hadUpdate', '已更新');
31
+ typeMap.set('hadNotUpdate', getLocale('HP_Notupdated'));
32
+ typeMap.set('hadUpdate', getLocale('HP_Updated'));
33
33
  typeMap.set('normalOkr', getLocale('OKR_MyO_Pop_Upd_Notrack'));
34
34
  typeMap.set('riskOkr', getLocale('OKR_MyO_Pop_Upd_Atrisk'));
35
35
  typeMap.set('dalyOkr', getLocale('OKR_MyO_Pop_Upd_Postoned'));