@titaui/pc 1.12.14 → 1.12.17
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/lib/components/communication/index.js +6 -0
- package/lib/components/drawer/index.css +9 -0
- package/lib/components/drawer/index.js +11 -8
- package/lib/components/dynamic/dynamic-item/index.js +9 -1
- package/lib/components/dynamic/dynamic-list/index.js +19 -2
- package/lib/components/help-card/image/liaojie1.svg +50 -0
- package/lib/components/help-card/index.css +4 -4
- package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
- package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
- package/lib/components/menus/export-modules/appraisal-menus/menus.js +110 -9
- package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
- package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
- package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
- package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
- package/lib/components/nav-top/components/app-center/images/yuyue.png +0 -0
- package/lib/components/nav-top/components/app-center/index.css +170 -0
- package/lib/components/nav-top/components/app-center/index.js +211 -0
- package/lib/components/nav-top/components/app-center/interface.js +19 -0
- package/lib/components/nav-top/components/user-message/images/bell-1.svg +13 -0
- package/lib/components/nav-top/components/user-message/index.js +21 -21
- package/lib/components/nav-top/images/app-center.png +0 -0
- package/lib/components/nav-top/images/home.svg +16 -0
- package/lib/components/nav-top/index.css +61 -8
- package/lib/components/nav-top/index.js +56 -35
- package/lib/components/nav-top/utils.js +464 -1
- package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
- package/lib/components/okr-flow/export-modal/color.png +0 -0
- package/lib/components/okr-flow/export-modal/index.css +28 -13
- package/lib/components/okr-flow/export-modal/index.js +82 -34
- package/lib/components/okr-flow/export-modal/trans1.png +0 -0
- package/lib/components/order-have-award/img/award.png +0 -0
- package/lib/components/order-have-award/index.css +5 -0
- package/lib/components/order-have-award/index.js +83 -0
- package/lib/components/order-have-award/interface.js +19 -0
- package/lib/components/period-selector/components/button/style.js +1 -1
- package/lib/components/period-selector/index.css +1 -0
- package/lib/components/period-selector/index.js +7 -2
- package/lib/components/select-layer/index.js +22 -8
- package/lib/components/task-relation-modal/helper.js +1 -56
- package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
- package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
- package/lib/components/task-relation-modal/request-api.js +5 -2
- package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
- package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
- package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
- package/lib/components/tooltip/tooltip.js +9 -4
- package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
- package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
- package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
- package/lib/components/user-selector/request-apis.js +39 -9
- package/lib/components/user-selector/searched-panel/index.js +7 -1
- package/lib/pages/aha2021/index.css +7 -0
- package/lib/pages/aha2021/index.js +14 -8
- package/lib/pages/aha2021/new-menu-switcher/index.css +44 -0
- package/lib/pages/aha2021/new-menu-switcher/index.js +85 -0
- package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
- package/lib/pages/aha2021/request-api.js +15 -0
- package/lib/pages/okr-map/level2-search/user.js +1 -0
- package/package.json +1 -1
- package/lib/utils/planDataJson.js +0 -11115
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title> Learning</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-763.000000, -266.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="1备份" transform="translate(747.000000, 200.000000)">
|
|
8
|
+
<g id="-Learning" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background备份" fill-opacity="0.16" fill="#F05E5E"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="博士">
|
|
13
|
+
<rect id="矩形" fill="#000000" fill-rule="nonzero" opacity="0" x="0" y="0" width="24" height="24"></rect>
|
|
14
|
+
<path d="M19.0646045,12.3556993 C19.0889354,12.4005335 19.1015654,12.4496341 19.1015654,12.4993704 L19.1015654,17.0769771 C19.1015654,18.107004 18.4283232,19.0440501 17.3743154,19.4810368 C15.5750654,20.2270192 13.7758154,20.6 11.9765654,20.6 C10.1773154,20.6 8.37806542,20.2270192 6.57881542,19.4810368 C5.52483104,19.0440916 4.85156542,18.1070455 4.85156542,17.0770186 L4.85156542,12.4993704 C4.85156542,12.3160844 5.01944823,12.1675185 5.22656542,12.1675185 C5.28276859,12.1675171 5.33825333,12.1786953 5.38891698,12.2002266 L10.7589639,14.4825174 C11.528618,14.809624 12.4245129,14.809624 13.194167,14.4825174 L18.5642139,12.2002059 C18.750917,12.1208726 18.9749326,12.1904785 19.0646045,12.3556993 Z M21.1062529,11.1562946 C21.526956,11.1562946 21.8679717,11.4580725 21.8679717,11.8303688 L21.8679717,15.5913571 C21.8679717,15.9636535 21.526956,16.2654313 21.1062529,16.2654313 C20.6855498,16.2654313 20.3445342,15.9636535 20.3445342,15.5913571 L20.3445342,11.8303688 C20.3445342,11.4580725 20.6855498,11.1562946 21.1062529,11.1562946 Z M13.5593701,3.71629334 L21.6922998,7.10475024 C22.3951904,7.39758881 22.6966201,8.13902895 22.3655889,8.76081572 C22.2263349,9.02233993 21.9885488,9.23281002 21.6930498,9.35609583 L13.5613389,12.749095 C12.5434936,13.1737781 11.3640099,13.1718292 10.3479639,12.7437853 L2.30222167,9.35410472 C1.60076073,9.05859059 1.30294042,8.31598898 1.63701854,7.69546739 C1.77599465,7.43735902 2.01114807,7.22946047 2.30294823,7.10672061 L10.3499092,3.72160297 C11.364867,3.29465859 12.5426225,3.29271776 13.5593701,3.71631408 L13.5593701,3.71629334 Z" id="形状" fill="#F05E5E" fill-rule="nonzero"></path>
|
|
15
|
+
<ellipse id="椭圆形" fill="#FFFFFF" cx="12" cy="8" rx="1.6" ry="1"></ellipse>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>OKR 目标</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-176.000000, -98.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="编组-21" transform="translate(160.000000, 32.000000)">
|
|
8
|
+
<g id="OKR-目标" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background" fill-opacity="0.16" fill="#2879FF"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="OKR-s" transform="translate(2.280000, 2.130000)">
|
|
13
|
+
<path d="M9.25,1.24 C9.8996734,1.24 10.5337241,1.30701002 11.1456275,1.43449023 C10.7243207,2.20280936 10.6018911,3.06042092 10.7856837,3.88234493 L10.8434068,4.10552731 L10.92,4.366 L7.74701226,7.74375342 L7.62113499,7.88759883 C6.73923958,8.96382321 6.76337642,10.4953766 7.66262975,11.5220081 L7.79067657,11.6587834 L7.93080029,11.7897717 L8.07741128,11.9093698 C9.12501755,12.7066902 10.6060913,12.6668242 11.6103508,11.7897717 L11.7504745,11.6587834 L14.778,8.433 L15.3351082,8.59709885 L15.5749332,8.65743251 L15.805138,8.69468988 C16.6834496,8.81091974 17.5208737,8.62469068 18.2100842,8.18584432 C18.3994274,8.92103527 18.5,9.6937662 18.5,10.49 C18.5,13.043925 17.464925,15.356425 15.7911375,17.0311375 C14.116425,18.704925 11.803925,19.74 9.25,19.74 C6.6956125,19.74 4.3831125,18.704925 2.709325,17.0311375 C1.0355375,15.356425 0,13.043925 0,10.49 C0,7.9356125 1.0355375,5.6231125 2.709325,3.949325 C4.3831125,2.2755375 6.6956125,1.24 9.25,1.24 Z M16.8212127,0.497918472 C16.9416662,0.618371884 17.0430415,0.755952108 17.1237367,0.909815057 L17.1974793,1.06907432 L17.2500514,1.22031326 L17.47,1.97 L18.2201343,2.19039899 C19.0232647,2.4266138 19.5200678,3.20346694 19.4305077,4.00755909 L19.4067753,4.15852023 L19.3713729,4.30100309 C19.3233068,4.46442799 19.2510695,4.61930553 19.154635,4.76382512 L19.0501337,4.90482499 L18.9425331,5.02340187 L17.5245879,6.44134705 C17.1662737,6.7996613 16.6697746,6.97686902 16.1651956,6.93114313 L15.9968819,6.907587 L15.842842,6.87019228 L14.225,6.394 L10.4776823,10.3859912 C10.1472387,10.7164348 9.64307009,10.7672723 9.25917262,10.5385036 L9.15767612,10.4691798 L9.06346878,10.3859912 C8.71150741,10.0340298 8.67593171,9.48329564 8.96303482,9.08942868 L9.04153671,8.99443582 L12.937,4.848 L12.5702647,3.59762793 C12.4431687,3.16550167 12.4939791,2.70604613 12.7047294,2.3135477 L12.7912228,2.16968355 L12.8925,2.03320155 L12.9991045,1.91586365 L14.4170497,0.497918472 C15.080941,-0.165972824 16.1573215,-0.165972824 16.8212127,0.497918472 Z M15.473,2.27 L14.538,3.204 L14.924,4.515 L16.236,4.901 L17.171,3.966 L16.3829028,3.73474797 C16.1536831,3.66733043 15.9580233,3.52072298 15.8252813,3.31594263 L15.7642893,3.20880202 L15.7158454,3.08989902 L15.473,2.27 Z" id="形状结合" fill="#2175FF"></path>
|
|
14
|
+
<path d="M4,9.24456983 C4.55228475,9.24456983 5,9.69228508 5,10.2445698 C5,12.5641658 6.88040405,14.4445698 9.2,14.4445698 C9.75228475,14.4445698 10.2,14.8922851 10.2,15.4445698 C10.2,15.9968546 9.75228475,16.4445698 9.2,16.4445698 C5.77583455,16.4445698 3,13.6687353 3,10.2445698 C3,9.69228508 3.44771525,9.24456983 4,9.24456983 Z" id="路径" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>绩效管理</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-469.000000, -98.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="1" transform="translate(453.000000, 32.000000)">
|
|
8
|
+
<g id="绩效管理" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background备份" fill-opacity="0.16" fill="#FFB200"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="编组" transform="translate(3.000000, 3.000000)">
|
|
13
|
+
<path d="M14,0 C16.209139,0 18,1.790861 18,4 L18,4 L18,14 C18,16.209139 16.209139,18 14,18 L14,18 L4,18 C1.790861,18 0,16.209139 0,14 L0,14 L0,4 C0,1.790861 1.790861,0 4,0 L4,0 Z M12.8927968,11.8 L5.0927968,11.8 C4.650969,11.8 4.2927968,12.1581722 4.2927968,12.6 C4.2927968,13.0418278 4.650969,13.4 5.0927968,13.4 L5.0927968,13.4 L12.8927968,13.4 C13.3346246,13.4 13.6927968,13.0418278 13.6927968,12.6 C13.6927968,12.1581722 13.3346246,11.8 12.8927968,11.8 L12.8927968,11.8 Z" id="形状结合" fill="#F6BD16" fill-rule="nonzero"></path>
|
|
14
|
+
<path d="M10.1901392,2.65435445 C10.3547767,2.65308055 10.5197079,2.70275394 10.6592572,2.80330053 L10.7587589,2.88824805 L12.7272646,4.86814703 C13.010124,5.15264351 13.0358385,5.59625773 12.8044081,5.90968471 L12.7272646,5.99951788 C12.4419391,6.28321847 12.0009854,6.30781189 11.6911384,6.07656417 L11.6024042,5.99951788 L10.9517431,5.34482413 L10.9533783,8.35589329 C10.960576,8.39890384 10.9643221,8.4430838 10.9643221,8.4881387 C10.9643221,8.92742401 10.608211,9.28353512 10.1689256,9.28353512 L8.03674311,9.28282413 L8.03753593,11.4149248 C8.03753593,11.8542101 7.68142483,12.2103212 7.24213952,12.2103212 C6.80285421,12.2103212 6.44674311,11.8542101 6.44674311,11.4149248 L6.44674311,8.50571766 C6.44674311,8.30297059 6.52260109,8.11794111 6.64748303,7.97746324 L6.73146406,7.89348222 C6.87194193,7.76860027 7.05697141,7.69274229 7.25971848,7.69274229 L9.36174311,7.69182413 L9.36174311,5.39482413 L8.71805745,6.04345187 C8.40922329,6.35407349 7.90705517,6.35552252 7.59643355,6.04668836 L7.59319705,6.04345187 C7.28205177,5.73050574 7.28205177,5.22502714 7.59319705,4.91208102 L9.52174748,2.97077678 C9.66691529,2.77826952 9.89753239,2.65382413 10.1572153,2.65382413 L10.1901392,2.65435445 Z" id="形状结合" fill="#FFFFFF" transform="translate(9.704159, 7.432073) rotate(-315.000000) translate(-9.704159, -7.432073) "></path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>计划表</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-469.000000, -182.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="1" transform="translate(453.000000, 116.000000)">
|
|
8
|
+
<g id="计划表" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background备份" fill-opacity="0.16" fill="#5AD8A6"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="zongjie-s" transform="translate(3.000000, 3.000000)">
|
|
13
|
+
<path d="M14,0 L4,0 C1.790861,0 0,1.790861 0,4 L0,14 C0,16.209139 1.790861,18 4,18 L14,18 C16.209139,18 18,16.209139 18,14 L18,4 C18,1.790861 16.209139,0 14,0 Z" id="形状结合" fill="#5AD8A6" fill-rule="nonzero"></path>
|
|
14
|
+
<path d="M4.5,9.36250938 L7.16154436,11.8467779 C7.55804184,12.2168662 8.17728217,12.2034131 8.55733273,11.8164543 L14.2699479,6 L14.2699479,6" id="路径-5" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
15
|
+
</g>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>项目</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-176.000000, -182.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="1" transform="translate(160.000000, 116.000000)">
|
|
8
|
+
<g id="项目" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background备份" fill-opacity="0.16" fill="#624DFF"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="zongjie-s">
|
|
13
|
+
<polygon id="Stroke-7" points="0 24 24 24 24 0 0 0"></polygon>
|
|
14
|
+
<path d="M17,3 C19.209139,3 21,4.790861 21,7 L21,7 L21,17 C21,19.209139 19.209139,21 17,21 L17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,17 L3,7 C3,4.790861 4.790861,3 7,3 L7,3 Z M7.5,15 C6.94771525,15 6.5,15.4477153 6.5,16 C6.5,16.5522847 6.94771525,17 7.5,17 C8.05228475,17 8.5,16.5522847 8.5,16 C8.5,15.4477153 8.05228475,15 7.5,15 Z M16.5,15 L10.5,15 C9.94771525,15 9.5,15.4477153 9.5,16 C9.5,16.5522847 9.94771525,17 10.5,17 L10.5,17 L16.5,17 C17.0522847,17 17.5,16.5522847 17.5,16 C17.5,15.4477153 17.0522847,15 16.5,15 L16.5,15 Z M7.5,11 C6.94771525,11 6.5,11.4477153 6.5,12 C6.5,12.5522847 6.94771525,13 7.5,13 C8.05228475,13 8.5,12.5522847 8.5,12 C8.5,11.4477153 8.05228475,11 7.5,11 Z M16.5,11 L10.5,11 C9.94771525,11 9.5,11.4477153 9.5,12 C9.5,12.5522847 9.94771525,13 10.5,13 L10.5,13 L16.5,13 C17.0522847,13 17.5,12.5522847 17.5,12 C17.5,11.4477153 17.0522847,11 16.5,11 L16.5,11 Z M16.5,7 L7.5,7 C6.94771525,7 6.5,7.44771525 6.5,8 C6.5,8.55228475 6.94771525,9 7.5,9 L7.5,9 L16.5,9 C17.0522847,9 17.5,8.55228475 17.5,8 C17.5,7.44771525 17.0522847,7 16.5,7 L16.5,7 Z" id="形状结合" fill="#624DFF" fill-rule="nonzero"></path>
|
|
15
|
+
<path d="M12,2.5 C12.5522847,2.5 13,2.94771525 13,3.5 L13,12.5 C13,13.0522847 12.5522847,13.5 12,13.5 C11.4477153,13.5 11,13.0522847 11,12.5 L11,3.5 C11,2.94771525 11.4477153,2.5 12,2.5 Z" id="矩形" fill="#FFFFFF" transform="translate(12.000000, 8.000000) rotate(-270.000000) translate(-12.000000, -8.000000) "></path>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>总结</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-763.000000, -182.000000)">
|
|
6
|
+
<g id="菜单" transform="translate(0.000000, 54.000000)">
|
|
7
|
+
<g id="1" transform="translate(747.000000, 116.000000)">
|
|
8
|
+
<g id="总结" transform="translate(16.000000, 12.000000)">
|
|
9
|
+
<path d="M7.46667804,1.42220516 C13.1555878,-0.474068385 18.8444122,-0.474068385 24.533322,1.42220516 C26.8087323,2.2663208 29.7336137,5.19128562 30.5777299,7.4666944 C32.47409,13.155515 32.47409,18.844421 30.5777299,24.5333269 C29.7336137,26.8086504 26.8087323,29.7336152 24.533322,30.5777308 C18.8444122,32.4740897 13.1555878,32.4740897 7.46667804,30.5777308 C5.19135308,29.7336152 2.26638631,26.8086504 1.4222701,24.5333269 C-0.474090035,18.844421 -0.474090035,13.155515 1.4222701,7.4666944 C2.26638631,5.19128562 5.19135308,2.2663208 7.46667804,1.42220516" id="background备份" fill-opacity="0.16" fill="#FFA81C"></path>
|
|
10
|
+
<g id="OKR" transform="translate(4.000000, 4.000000)">
|
|
11
|
+
<rect id="矩形" x="0" y="0" width="24" height="24"></rect>
|
|
12
|
+
<g id="zongjie-s">
|
|
13
|
+
<polygon id="Stroke-7" points="0 24 24 24 24 0 0 0"></polygon>
|
|
14
|
+
<path d="M17,3 C19.209139,3 21,4.790861 21,7 L21,7 L21,17 C21,19.209139 19.209139,21 17,21 L17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,17 L3,7 C3,4.790861 4.790861,3 7,3 L7,3 Z M8.5,11 L7.5,11 C6.94771525,11 6.5,11.4477153 6.5,12 C6.5,12.5522847 6.94771525,13 7.5,13 L7.5,13 L8.5,13 C9.05228475,13 9.5,12.5522847 9.5,12 C9.5,11.4477153 9.05228475,11 8.5,11 L8.5,11 Z M11.5,7 L7.5,7 C6.94771525,7 6.5,7.44771525 6.5,8 C6.5,8.55228475 6.94771525,9 7.5,9 L7.5,9 L11.5,9 C12.0522847,9 12.5,8.55228475 12.5,8 C12.5,7.44771525 12.0522847,7 11.5,7 L11.5,7 Z" id="形状结合" fill="#FFA81C" fill-rule="nonzero"></path>
|
|
15
|
+
<path d="M14.1000128,10 C16.0290544,10 17.6074562,11.5233179 17.6960758,13.4365 L17.7,13.6062931 L17.6981364,13.7175331 C17.6766002,14.385967 17.4723885,15.0083538 17.1337776,15.5366789 L18.2727859,16.675699 C18.575738,16.9786512 18.575738,17.4698337 18.2727859,17.7727859 C17.9762795,18.0692923 17.4994673,18.0756009 17.1952884,17.7917118 L16.036708,16.6327724 C15.5518098,16.9430798 14.9877219,17.1407345 14.3816454,17.1887371 L14.1524712,17.1996509 L13.9818291,17.1981422 C12.0452331,17.1354211 10.5,15.5410571 10.5,13.6000261 C10.5,11.6142425 12.1142347,10 14.1000128,10 Z M14.1,11.6 C12.9954305,11.6 12.1,12.4954305 12.1,13.6 C12.1,14.7045695 12.9954305,15.6 14.1,15.6 C15.2045695,15.6 16.1,14.7045695 16.1,13.6 C16.1,12.4954305 15.2045695,11.6 14.1,11.6 Z" id="形状结合" fill="#FFFFFF" fill-rule="nonzero"></path>
|
|
16
|
+
</g>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
.app-center {
|
|
4
|
+
padding: 32px 120px 28px;
|
|
5
|
+
position: relative;
|
|
6
|
+
box-shadow: 0 8px 24px 0 rgb 127 145 180/20%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.app-center__title {
|
|
10
|
+
font-size: 24px;
|
|
11
|
+
color: #141c28;
|
|
12
|
+
line-height: 38px;
|
|
13
|
+
margin-bottom: 32px;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.app-center__app-list {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-wrap: wrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.app-center__app-item {
|
|
24
|
+
flex: 1;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
min-width: 260px;
|
|
27
|
+
min-height: 56px;
|
|
28
|
+
margin: 4px 0;
|
|
29
|
+
padding: 12px 16px;
|
|
30
|
+
border-radius: 16px;
|
|
31
|
+
position: relative;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.app-center__app-item-icon {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 16px;
|
|
38
|
+
top: 12px;
|
|
39
|
+
width: 32px;
|
|
40
|
+
height: 32px;
|
|
41
|
+
margin-right: 12px;
|
|
42
|
+
background-size: contain;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.app-center__app-item-icon--chart {
|
|
46
|
+
background-image: url(./images/chart.svg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.app-center__app-item-icon--document {
|
|
50
|
+
background-image: url("./images/file.svg");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.app-center__app-item-icon--interview {
|
|
54
|
+
background-image: url("./images/interview.svg");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.app-center__app-item-icon--learning {
|
|
58
|
+
background-image: url("./images/learning.svg");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.app-center__app-item-icon--okr {
|
|
62
|
+
background-image: url("./images/okr.svg");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.app-center__app-item-icon--performance {
|
|
66
|
+
background-image: url("./images/performance.svg");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.app-center__app-item-icon--project {
|
|
70
|
+
background-image: url("./images/project.svg");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.app-center__app-item-icon--summary {
|
|
74
|
+
background-image: url("./images/summary.svg");
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.app-center__app-item-icon--plan {
|
|
78
|
+
background-image: url("./images/plan.svg");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.app-center__app-item-desc {
|
|
82
|
+
margin-top: 3px;
|
|
83
|
+
margin-left: 44px;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.app-center__app-item-name {
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
color: #141c28;
|
|
91
|
+
line-height: 26px;
|
|
92
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.app-center__app-item-sub-title {
|
|
96
|
+
font-size: 14px;
|
|
97
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
98
|
+
color: #89919f;
|
|
99
|
+
line-height: 22px;
|
|
100
|
+
margin-top: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.app-center__app-item-placeholder {
|
|
104
|
+
flex: 1;
|
|
105
|
+
height: 0;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
min-width: 260px;
|
|
108
|
+
padding: 0 16px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.app-center__app-item--okr:hover {
|
|
112
|
+
background-color: rgba(40, 121, 255, 0.1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.app-center__app-item--performance:hover {
|
|
116
|
+
background-color: rgba(255, 178, 0, 0.1);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.app-center__app-item--plan:hover {
|
|
120
|
+
background-color: rgba(90, 216, 166, 0.1);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.app-center__app-item--work:hover {
|
|
124
|
+
background-color: rgba(98, 77, 255, 0.1);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.app-center__app-item--report:hover {
|
|
128
|
+
background-color: rgba(63, 73, 255, 0.1);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.app-center__app-item--learning:hover {
|
|
132
|
+
background-color: rgba(240, 94, 94, 0.1);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.app-center__app-item--interview:hover {
|
|
136
|
+
background-color: rgba(240, 94, 94, 0.1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.app-center__app-item--daily:hover {
|
|
140
|
+
background-color: rgba(255, 168, 28, 0.1);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.app-center__app-item--document:hover {
|
|
144
|
+
background-color: rgba(90, 216, 166, 0.1);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.app-center__drawer {
|
|
148
|
+
transform: translateY(54px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.app-center__drawer .drawer-content-wrapper,
|
|
152
|
+
.app-center__drawer .drawer-content {
|
|
153
|
+
border-radius: 24px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.app-center__drawer .drawer-mask {
|
|
157
|
+
border-radius: 24px 24px 0 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.app-center__app-right-img {
|
|
161
|
+
position: absolute;
|
|
162
|
+
right: 0;
|
|
163
|
+
bottom: 22px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.app-center__app-right-img__img {
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
width: 120px;
|
|
169
|
+
height: 144px;
|
|
170
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _drawer = _interopRequireDefault(require("../../../drawer"));
|
|
15
|
+
|
|
16
|
+
var _bookDemo = _interopRequireDefault(require("../../../book-demo"));
|
|
17
|
+
|
|
18
|
+
var _errorBoundary = _interopRequireDefault(require("../../../error-boundary"));
|
|
19
|
+
|
|
20
|
+
var _utils = require("../../utils");
|
|
21
|
+
|
|
22
|
+
var _errorLevel = _interopRequireDefault(require("../../../../utils/error-level"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var _interface = require("./interface");
|
|
27
|
+
|
|
28
|
+
var _yuyue = _interopRequireDefault(require("./images/yuyue.png"));
|
|
29
|
+
|
|
30
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
36
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
37
|
+
|
|
38
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39
|
+
|
|
40
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
41
|
+
|
|
42
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
43
|
+
|
|
44
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
45
|
+
|
|
46
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
|
+
|
|
48
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
49
|
+
|
|
50
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
51
|
+
|
|
52
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
53
|
+
|
|
54
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
55
|
+
|
|
56
|
+
var precls = "app-center";
|
|
57
|
+
|
|
58
|
+
var AppCenter = function AppCenter(props) {
|
|
59
|
+
var _props$appCenterVisib = props.appCenterVisible,
|
|
60
|
+
appCenterVisible = _props$appCenterVisib === void 0 ? false : _props$appCenterVisib,
|
|
61
|
+
closeAppCenter = props.closeAppCenter,
|
|
62
|
+
setMenu = props.setMenu;
|
|
63
|
+
|
|
64
|
+
var _useState = (0, _react.useState)(function () {
|
|
65
|
+
var menus = (0, _utils.getMenus)();
|
|
66
|
+
return menus.filter(function (menu) {
|
|
67
|
+
return menu.code !== "dynamic";
|
|
68
|
+
});
|
|
69
|
+
}),
|
|
70
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
71
|
+
apps = _useState2[0];
|
|
72
|
+
|
|
73
|
+
var _useState3 = (0, _react.useState)(false),
|
|
74
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
75
|
+
init = _useState4[0],
|
|
76
|
+
setInit = _useState4[1];
|
|
77
|
+
|
|
78
|
+
var _useState5 = (0, _react.useState)(function () {
|
|
79
|
+
var _window$BSGlobal, _window$BSGlobal$tena;
|
|
80
|
+
|
|
81
|
+
return ((_window$BSGlobal = window.BSGlobal) === null || _window$BSGlobal === void 0 ? void 0 : (_window$BSGlobal$tena = _window$BSGlobal.tenantAuthentication) === null || _window$BSGlobal$tena === void 0 ? void 0 : _window$BSGlobal$tena.Version) === 1;
|
|
82
|
+
}),
|
|
83
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
84
|
+
isTrial = _useState6[0];
|
|
85
|
+
|
|
86
|
+
var _useState7 = (0, _react.useState)(function () {
|
|
87
|
+
var hash = window.location.hash.split("?")[0] || "";
|
|
88
|
+
|
|
89
|
+
if (hash) {
|
|
90
|
+
var activeApp = apps.find(function (app) {
|
|
91
|
+
return hash.includes(app.key);
|
|
92
|
+
});
|
|
93
|
+
return (activeApp === null || activeApp === void 0 ? void 0 : activeApp.id) || apps[0].id;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return apps[0].id;
|
|
97
|
+
}),
|
|
98
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
99
|
+
currentAppId = _useState8[0],
|
|
100
|
+
setCurrentAppId = _useState8[1];
|
|
101
|
+
|
|
102
|
+
var bookDemoRef = (0, _react.useRef)();
|
|
103
|
+
(0, _react.useEffect)(function () {
|
|
104
|
+
setInit(true);
|
|
105
|
+
}, []);
|
|
106
|
+
(0, _react.useEffect)(function () {
|
|
107
|
+
var _apps$find;
|
|
108
|
+
|
|
109
|
+
var menus = ((_apps$find = apps.find(function (app) {
|
|
110
|
+
return app.id === currentAppId;
|
|
111
|
+
})) === null || _apps$find === void 0 ? void 0 : _apps$find.children) || [];
|
|
112
|
+
var navigations = (0, _utils.getMenus)();
|
|
113
|
+
var dynamic = navigations.filter(function (item) {
|
|
114
|
+
return item.code === "dynamic";
|
|
115
|
+
});
|
|
116
|
+
setMenu([].concat(_toConsumableArray(dynamic), _toConsumableArray(menus)));
|
|
117
|
+
|
|
118
|
+
if (init) {
|
|
119
|
+
window.location.href = menus === null || menus === void 0 ? void 0 : menus[0].href;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
closeAppCenter();
|
|
123
|
+
}, [currentAppId]);
|
|
124
|
+
|
|
125
|
+
var onAppSelectHandler = function onAppSelectHandler(app) {
|
|
126
|
+
if (app.type === "newPage") {
|
|
127
|
+
window.location.href = "".concat(window.BSGlobal.apiPath, "/").concat(app.href);
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
setCurrentAppId(app.id);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var getBookDemoVersion = function getBookDemoVersion() {
|
|
135
|
+
var menuVersion = window.BSGlobal.tenantAuthentication.MenuVersion;
|
|
136
|
+
|
|
137
|
+
if (menuVersion === _interface.ETrialVersion.OKR) {
|
|
138
|
+
return _bookDemo["default"].DemoType.TryOKR;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (menuVersion === _interface.ETrialVersion.Performance) {
|
|
142
|
+
return _bookDemo["default"].DemoType.TryPerformance;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return _bookDemo["default"].DemoType.UniversalBookDemo;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var handlePoint = function handlePoint() {
|
|
149
|
+
if (bookDemoRef.current) {
|
|
150
|
+
bookDemoRef.current.show();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (window.titaTracker) {
|
|
154
|
+
window.titaTracker("action").record({
|
|
155
|
+
actionName: "申请演示",
|
|
156
|
+
actionGroup: "试用版-申请演示",
|
|
157
|
+
productName: "系统内-申请演示"
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
return /*#__PURE__*/_react["default"].createElement(_drawer["default"], {
|
|
163
|
+
className: "".concat(precls, "__drawer"),
|
|
164
|
+
placement: "top",
|
|
165
|
+
onClose: closeAppCenter,
|
|
166
|
+
visible: appCenterVisible,
|
|
167
|
+
width: "100%",
|
|
168
|
+
autoClosable: true
|
|
169
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: precls
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
172
|
+
className: "".concat(precls, "__app-list")
|
|
173
|
+
}, apps.length > 0 && apps.map(function (app) {
|
|
174
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
+
className: "".concat(precls, "__app-item ").concat(precls, "__app-item--").concat(app.code),
|
|
176
|
+
onClick: function onClick() {
|
|
177
|
+
return onAppSelectHandler(app);
|
|
178
|
+
}
|
|
179
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
|
+
className: (0, _classnames["default"])("".concat(precls, "__app-item-icon"), "".concat(precls, "__app-item-icon--").concat(app.iconName))
|
|
181
|
+
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
182
|
+
className: "".concat(precls, "__app-item-desc")
|
|
183
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
184
|
+
className: "".concat(precls, "__app-item-name")
|
|
185
|
+
}, app.title), isTrial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
186
|
+
className: "".concat(precls, "__app-item-sub-title")
|
|
187
|
+
}, app.subTitle)));
|
|
188
|
+
}), new Array(20).fill(1).map(function () {
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
|
+
className: "".concat(precls, "__app-item-placeholder")
|
|
191
|
+
});
|
|
192
|
+
}))), isTrial && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
193
|
+
className: "".concat(precls, "__app-right-img"),
|
|
194
|
+
onClick: handlePoint
|
|
195
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
196
|
+
className: "".concat(precls, "__app-right-img__img"),
|
|
197
|
+
src: _yuyue["default"],
|
|
198
|
+
alt: "\u9884\u7EA6\u6709\u5956"
|
|
199
|
+
})), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
200
|
+
errorLevel: _errorLevel["default"].P0,
|
|
201
|
+
errorTag: "\u7533\u8BF7\u9884\u7EA6\u6F14\u793A\u5F02\u5E38"
|
|
202
|
+
}, /*#__PURE__*/_react["default"].createElement(_bookDemo["default"].BookDemoPC, {
|
|
203
|
+
visible: false,
|
|
204
|
+
ref: bookDemoRef,
|
|
205
|
+
type: getBookDemoVersion(),
|
|
206
|
+
source: 20220601
|
|
207
|
+
}))));
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
var _default = AppCenter;
|
|
211
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.ETrialVersion = void 0;
|
|
7
|
+
var ETrialVersion;
|
|
8
|
+
exports.ETrialVersion = ETrialVersion;
|
|
9
|
+
|
|
10
|
+
(function (ETrialVersion) {
|
|
11
|
+
ETrialVersion[ETrialVersion["OKR"] = 9] = "OKR";
|
|
12
|
+
ETrialVersion[ETrialVersion["Performance"] = 8] = "Performance";
|
|
13
|
+
ETrialVersion[ETrialVersion["Pro"] = 6] = "Pro";
|
|
14
|
+
})(ETrialVersion || (exports.ETrialVersion = ETrialVersion = {}));
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
ETrialVersion: ETrialVersion
|
|
18
|
+
};
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="22px" height="22px" viewBox="0 0 22 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="导航" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="试用版-滑出一级菜单1" transform="translate(-967.000000, -16.000000)" stroke="#FFFFFF" stroke-width="1.6">
|
|
6
|
+
<g id="消息" transform="translate(964.000000, 10.000000)">
|
|
7
|
+
<g id="bell" transform="translate(3.000000, 6.000000)">
|
|
8
|
+
<path d="M11.0147551,3.73333333 C11.2716347,3.73333333 11.5100213,3.81274976 11.7063493,3.94879059 C11.9087141,4.0890144 12.0668261,4.28879775 12.1546337,4.5230515 C13.7164592,5.35127212 14.628956,6.03022217 15.271064,6.91744287 C15.8964201,7.78151685 16.2647551,8.84360493 16.2647551,9.99166667 L16.2647551,9.99166667 L16.2647551,14.1995335 L17.2351572,15.7271908 L13.1381228,16.3419612 C13.0764552,16.9803581 12.7329879,17.5356623 12.2344854,17.8838935 C11.8888575,18.1253335 11.4682834,18.2666667 11.0147551,18.2666667 C10.5612267,18.2666667 10.1406527,18.1253335 9.79502475,17.8838935 C9.29652228,17.5356623 8.95305493,16.9803581 8.89138739,16.3419612 L8.89138739,16.3419612 L5.13199196,16.3416667 L5.76475508,14.1995335 L5.76475508,9.99166667 C5.76475508,8.84366279 6.13305178,7.78162343 6.75832153,6.91759709 C7.40033245,6.03043703 8.31267653,5.35153921 9.37484426,5.00264003 C9.9622003,4.2892328 10.1205014,4.08920232 10.3230866,3.94883346 C10.5194668,3.81276391 10.7578617,3.73333333 11.0147551,3.73333333 Z"></path>
|
|
9
|
+
</g>
|
|
10
|
+
</g>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</svg>
|