oc-webkit-xiamen 0.10.0
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.md +37 -0
- package/dist/assets/svg/arrow.svg.js +1 -0
- package/dist/assets/svg/blueNewLogo.svg.js +1 -0
- package/dist/assets/svg/blueNewLogoEn.svg.js +1 -0
- package/dist/assets/svg/evaluation/comprehensive.svg.js +1 -0
- package/dist/assets/svg/evaluation/customize.svg.js +1 -0
- package/dist/assets/svg/evaluation/done.svg.js +1 -0
- package/dist/assets/svg/evaluation/part.svg.js +1 -0
- package/dist/assets/svg/evaluation/quick.svg.js +1 -0
- package/dist/assets/svg/footer/github.svg.js +1 -0
- package/dist/assets/svg/footer/twitter.svg.js +1 -0
- package/dist/assets/svg/footer/wechat.svg.js +1 -0
- package/dist/assets/svg/footer/zhihu.svg.js +1 -0
- package/dist/assets/svg/left-wing.svg.js +1 -0
- package/dist/assets/svg/llm-evaluation.svg.js +1 -0
- package/dist/assets/svg/mm-evaluation.svg.js +1 -0
- package/dist/assets/svg/newLogo.svg.js +1 -0
- package/dist/assets/svg/newLogoEn.svg.js +1 -0
- package/dist/assets/svg/right-wing.svg.js +1 -0
- package/dist/components/dropdown/dropdown.js +1 -0
- package/dist/components/dropdown/dropdown.module.less.js +175 -0
- package/dist/components/dropdown/index.js +1 -0
- package/dist/components/footer/footer.js +1 -0
- package/dist/components/footer/footer.module.less.js +68 -0
- package/dist/components/footer/index.js +1 -0
- package/dist/components/footer-expansion/footer-expansion.js +1 -0
- package/dist/components/footer-expansion/footer-expansion.module.less.js +120 -0
- package/dist/components/footer-expansion/index.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/create-evaluation/create-evaluation.module.less.js +249 -0
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/evaluation-button/evaluation-button.module.less.js +19 -0
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.js +1 -0
- package/dist/components/header/components/create-online-evaluation/component/pre-create-evaluation/index.module.less.js +68 -0
- package/dist/components/header/components/create-online-evaluation/component/sidebar/sidebar.module.less.js +18 -0
- package/dist/components/header/firstHeader.module.less.js +305 -0
- package/dist/components/header/header.js +1 -0
- package/dist/components/header/header.module.less.js +434 -0
- package/dist/components/header/hooks/useUrl.js +1 -0
- package/dist/components/header/index.js +1 -0
- package/dist/components/header/secondHeader.js +1 -0
- package/dist/components/md-render/index.js +6 -0
- package/dist/components/md-render/index.module.less.js +328 -0
- package/dist/components/online-evaluation/index.js +1 -0
- package/dist/components/online-evaluation/online-evaluation.js +1 -0
- package/dist/components/side-nav/index.js +1 -0
- package/dist/components/side-nav/side-nav.js +1 -0
- package/dist/components/side-nav/side-nav.module.less.js +80 -0
- package/dist/extraComponents/button/button.js +1 -0
- package/dist/extraComponents/button/button.module.less.js +52 -0
- package/dist/extraComponents/icon-font/index.js +1 -0
- package/dist/google-log/home.js +1 -0
- package/dist/helper/index.js +1 -0
- package/dist/index.js +1 -0
- package/dist/locale/en.js +3 -0
- package/dist/locale/index.js +1 -0
- package/dist/locale/zh.js +3 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js +1 -0
- package/dist/providers/OcConfigContext.js +1 -0
- package/dist/providers/OcContext.js +1 -0
- package/dist/types/components/dropdown/dropdown.d.ts +39 -0
- package/dist/types/components/dropdown/index.d.ts +2 -0
- package/dist/types/components/footer/index.d.ts +6 -0
- package/dist/types/components/footer-expansion/index.d.ts +6 -0
- package/dist/types/components/header/index.d.ts +6 -0
- package/dist/types/components/md-render/index.d.ts +9 -0
- package/dist/types/components/online-evaluation/index.d.ts +6 -0
- package/dist/types/components/side-nav/index.d.ts +6 -0
- package/dist/types/google-log/home.d.ts +9 -0
- package/dist/types/helper/index.d.ts +13 -0
- package/dist/types/index.d.ts +117 -0
- package/dist/utils/utils.js +1 -0
- package/package.json +140 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import n from"../../../../../../node_modules/style-inject/dist/style-inject.es.js";var e=`.evaluation-button-module_reviewButton__zHdme {
|
|
2
|
+
color: var(--Brand1-6, #1B3882);
|
|
3
|
+
font-family: "PingFang SC";
|
|
4
|
+
font-size: 16px;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 400;
|
|
7
|
+
line-height: 24px;
|
|
8
|
+
/* 150% */
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
border-radius: 40px;
|
|
11
|
+
border: 1px solid #1B3882;
|
|
12
|
+
padding: 4px 16px;
|
|
13
|
+
}
|
|
14
|
+
.evaluation-button-module_reviewButton__zHdme:hover {
|
|
15
|
+
color: #4568C1;
|
|
16
|
+
border: 1px solid #4568C1;
|
|
17
|
+
background: var(--Brand1-1, #F5F6FD);
|
|
18
|
+
}
|
|
19
|
+
`,o={reviewButton:"evaluation-button-module_reviewButton__zHdme"};n(e);export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a,{useContext as s,useMemo as i}from"react";import{Modal as u}from"antd";import o from"./index.module.less.js";import p from"../../../../../../assets/svg/llm-evaluation.svg.js";import f from"../../../../../../assets/svg/mm-evaluation.svg.js";import{OcContext as v}from"../../../../../../providers/OcContext.js";import d from"../../../../hooks/useUrl.js";import{evaluationTypeEnum as E}from"../../../../../../index.js";var _=Object.defineProperty,l=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(t,e,r)=>e in t?_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O=(t,e)=>{for(var r in e||(e={}))g.call(e,r)&&m(t,r,e[r]);if(l)for(var r of l(e))y.call(e,r)&&m(t,r,e[r]);return t};const j=t=>{const{locales:e}=s(v),{urls:r}=d(),c=i(()=>[{icon:p,name:e.llmEvaluation,click:()=>{t.llmClick()}},{icon:f,name:e.mmEvaluation,click:()=>{window.open(`${r.VITE_RANK_URL}/create/custom?type=${E.mm}`,"self")}}],[t]);return a.createElement(a.Fragment,null,a.createElement(u,O({centered:!0,className:o.modal,width:800,footer:[a.createElement("button",{key:"cancel",className:o.cancel,onClick:t.onCancel},e.cancel)]},t),a.createElement("div",{className:o.container},c.map(n=>a.createElement("div",{className:o.content,onClick:n.click},a.createElement("img",{src:n.icon}),a.createElement("span",null,n.name))))))};export{j as default};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import n from"../../../../../../node_modules/style-inject/dist/style-inject.es.js";var e=`.index-module_modal__hRoZJ .ant-modal-content {
|
|
2
|
+
padding: 24px 32px;
|
|
3
|
+
}
|
|
4
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: 8px;
|
|
9
|
+
padding-top: 60px;
|
|
10
|
+
padding-bottom: 44px;
|
|
11
|
+
}
|
|
12
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: 24px;
|
|
16
|
+
padding: 12px 24px;
|
|
17
|
+
width: 192px;
|
|
18
|
+
height: 248px;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
border-radius: 2px;
|
|
22
|
+
border: 1px solid var(----line-3, #d7d8dd);
|
|
23
|
+
background: var(---fill-0, #fff);
|
|
24
|
+
}
|
|
25
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M:hover {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M:active {
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
border: 1px solid var(--Brand1-5, #36569B);
|
|
31
|
+
background: #F1F7FE;
|
|
32
|
+
color: var(--Brand1-6, #1B3882);
|
|
33
|
+
}
|
|
34
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M img {
|
|
35
|
+
width: 40px;
|
|
36
|
+
height: 40px;
|
|
37
|
+
}
|
|
38
|
+
.index-module_modal__hRoZJ .index-module_container__GuNuJ .index-module_content__C008M span {
|
|
39
|
+
text-align: center;
|
|
40
|
+
color: var(--100-text-5, #121316);
|
|
41
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
42
|
+
/* \u4E09\u7EA7\u7EC4\u4EF6\u6807\u9898/\u52A0\u7C97title-3-semibold */
|
|
43
|
+
font-family: 'PingFang SC';
|
|
44
|
+
font-size: 16px;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 600;
|
|
47
|
+
line-height: 24px;
|
|
48
|
+
/* 150% */
|
|
49
|
+
}
|
|
50
|
+
.index-module_modal__hRoZJ .index-module_cancel__xUlEC {
|
|
51
|
+
border-radius: 2px;
|
|
52
|
+
background: var(--fill-2, #f4f5f9);
|
|
53
|
+
color: var(--80-text-4, rgba(18, 19, 22, 0.8));
|
|
54
|
+
text-align: center;
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
line-height: 21px;
|
|
59
|
+
border: 0px;
|
|
60
|
+
width: 76px;
|
|
61
|
+
height: 36px;
|
|
62
|
+
}
|
|
63
|
+
.index-module_modal__hRoZJ .index-module_cancel__xUlEC:hover {
|
|
64
|
+
background: var(--fill-2, #f4f5f9) !important;
|
|
65
|
+
color: var(--80-text-4, rgba(18, 19, 22, 0.8)) !important;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
`,o={modal:"index-module_modal__hRoZJ",container:"index-module_container__GuNuJ",content:"index-module_content__C008M",cancel:"index-module_cancel__xUlEC"};n(e);export{o as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import n from"../../../../../../node_modules/style-inject/dist/style-inject.es.js";var e=`.sidebar-module_sidebars__-rpRK {
|
|
2
|
+
padding: 32px 12px;
|
|
3
|
+
}
|
|
4
|
+
.sidebar-module_sidebars__-rpRK .sidebar-module_sidebar__dAYEP {
|
|
5
|
+
padding: 12px 16px;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
background: rgba(27, 56, 130, 0.05);
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
align-items: center;
|
|
13
|
+
line-height: 24px;
|
|
14
|
+
row-gap: 4px;
|
|
15
|
+
color: #1b3882;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
`;n(e);
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import e from"../../node_modules/style-inject/dist/style-inject.es.js";var r=`.firstHeader-module_firstHeader__L3Yly {
|
|
2
|
+
height: 64px;
|
|
3
|
+
display: flex;
|
|
4
|
+
background: rgba(255, 255, 255, 0.08);
|
|
5
|
+
padding-left: 64px;
|
|
6
|
+
padding-right: 20px;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
position: sticky;
|
|
10
|
+
z-index: 999;
|
|
11
|
+
}
|
|
12
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_logo__r1F7S {
|
|
13
|
+
height: 48px;
|
|
14
|
+
}
|
|
15
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_logo__r1F7S img {
|
|
16
|
+
height: 48px;
|
|
17
|
+
}
|
|
18
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_lang__0QHnx {
|
|
19
|
+
font-size: 20px;
|
|
20
|
+
color: #ffffff;
|
|
21
|
+
}
|
|
22
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_lang__0QHnx:hover {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
color: rgba(255, 255, 255, 0.75);
|
|
25
|
+
}
|
|
26
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir {
|
|
27
|
+
display: flex;
|
|
28
|
+
gap: 32px;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k {
|
|
32
|
+
height: 64px;
|
|
33
|
+
line-height: 64px;
|
|
34
|
+
color: #fff;
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
}
|
|
38
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:hover {
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
color: rgba(255, 255, 255, 0.75);
|
|
41
|
+
}
|
|
42
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb {
|
|
43
|
+
display: flex;
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
.firstHeader-module_firstHeader__L3Yly .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb::after {
|
|
47
|
+
content: '';
|
|
48
|
+
left: 0;
|
|
49
|
+
bottom: 0;
|
|
50
|
+
position: absolute;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 2px;
|
|
53
|
+
background-color: #fff;
|
|
54
|
+
}
|
|
55
|
+
.firstHeader-module_lightHeader__3XdWF {
|
|
56
|
+
background: rgba(255, 255, 255, 0.6) !important;
|
|
57
|
+
border-bottom: 1px solid var(----line-2, #ebecf0);
|
|
58
|
+
backdrop-filter: blur(2px);
|
|
59
|
+
}
|
|
60
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir {
|
|
61
|
+
display: flex;
|
|
62
|
+
gap: 32px;
|
|
63
|
+
align-items: center;
|
|
64
|
+
}
|
|
65
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k {
|
|
66
|
+
height: 64px;
|
|
67
|
+
line-height: 64px;
|
|
68
|
+
color: var(--100-text-5, #121316);
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
}
|
|
72
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:hover {
|
|
73
|
+
color: var(--Brand1-5, #36569b);
|
|
74
|
+
}
|
|
75
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb {
|
|
76
|
+
display: flex;
|
|
77
|
+
position: relative;
|
|
78
|
+
}
|
|
79
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_rightBox__9V7Ir .firstHeader-module_activeMenu__he8Lb::after {
|
|
80
|
+
content: '';
|
|
81
|
+
left: 0;
|
|
82
|
+
bottom: 0;
|
|
83
|
+
position: absolute;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 2px;
|
|
86
|
+
background-color: #365091;
|
|
87
|
+
}
|
|
88
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_lang__0QHnx {
|
|
89
|
+
color: #464a53;
|
|
90
|
+
}
|
|
91
|
+
.firstHeader-module_lightHeader__3XdWF .firstHeader-module_lang__0QHnx:hover {
|
|
92
|
+
color: #121316;
|
|
93
|
+
}
|
|
94
|
+
.firstHeader-module_blueBackHeaderBox__MuAHr {
|
|
95
|
+
background: #192668;
|
|
96
|
+
}
|
|
97
|
+
.firstHeader-module_lightBackHeader__DusJi {
|
|
98
|
+
border-bottom: 1px solid var(----line-2, #ebecf0);
|
|
99
|
+
background: rgba(255, 255, 255, 0.8) !important;
|
|
100
|
+
backdrop-filter: blur(8px);
|
|
101
|
+
}
|
|
102
|
+
.firstHeader-module_blackMiniWeb__q2Qq5 {
|
|
103
|
+
background-color: rgba(5, 20, 90, 0.9) !important;
|
|
104
|
+
backdrop-filter: blur(4px);
|
|
105
|
+
}
|
|
106
|
+
.firstHeader-module_animateHide__Zu85W {
|
|
107
|
+
display: none;
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
.firstHeader-module_animateShow__Nk-zI {
|
|
111
|
+
display: flex;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
.firstHeader-module_headerBox__oDPHm {
|
|
115
|
+
background: var(--Brand1-6, #1b3882);
|
|
116
|
+
position: sticky;
|
|
117
|
+
top: 0;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
z-index: 9999;
|
|
120
|
+
}
|
|
121
|
+
.firstHeader-module_transparentWeb__bRqGL {
|
|
122
|
+
background: transparent;
|
|
123
|
+
}
|
|
124
|
+
.firstHeader-module_onlyFirstHeaderBox__C-k3Q {
|
|
125
|
+
height: 64px !important;
|
|
126
|
+
position: sticky;
|
|
127
|
+
top: 0;
|
|
128
|
+
z-index: 999;
|
|
129
|
+
}
|
|
130
|
+
.firstHeader-module_lightHeadBox__54aA7 {
|
|
131
|
+
background: transparent;
|
|
132
|
+
}
|
|
133
|
+
.firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ {
|
|
134
|
+
border-radius: 2px;
|
|
135
|
+
border: 1px solid var(--Brand1-6, #1b3882) !important;
|
|
136
|
+
color: var(--Brand1-6, #1b3882) !important;
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-weight: 400;
|
|
140
|
+
line-height: 24px;
|
|
141
|
+
/* 171.429% */
|
|
142
|
+
padding: 4px 16px;
|
|
143
|
+
}
|
|
144
|
+
.firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
|
|
145
|
+
.firstHeader-module_lightHeadBox__54aA7 .firstHeader-module_loginBtn__j16aQ:hover {
|
|
146
|
+
border-radius: 2px;
|
|
147
|
+
border: 1px solid var(--Brand1-5, #36569b) !important;
|
|
148
|
+
background: var(--fill-2, #f4f5f9) !important;
|
|
149
|
+
}
|
|
150
|
+
.firstHeader-module_lightMiniWeb__xAj6X {
|
|
151
|
+
background-color: #fff !important;
|
|
152
|
+
border-bottom: 1px solid var(----line-3, #d7d8dd);
|
|
153
|
+
}
|
|
154
|
+
.firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ {
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
border: 1px solid var(--Brand1-6, #1b3882) !important;
|
|
157
|
+
color: var(--Brand1-6, #1b3882) !important;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
font-style: normal;
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
line-height: 24px;
|
|
162
|
+
/* 171.429% */
|
|
163
|
+
padding: 4px 16px;
|
|
164
|
+
}
|
|
165
|
+
.firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
|
|
166
|
+
.firstHeader-module_lightMiniWeb__xAj6X .firstHeader-module_loginBtn__j16aQ:hover {
|
|
167
|
+
border-radius: 2px;
|
|
168
|
+
border: 1px solid var(--Brand1-5, #36569b) !important;
|
|
169
|
+
background: var(--fill-2, #f4f5f9) !important;
|
|
170
|
+
}
|
|
171
|
+
.firstHeader-module_miniWeb__WKbf1 {
|
|
172
|
+
background-color: transparent;
|
|
173
|
+
}
|
|
174
|
+
.firstHeader-module_userWrapper__tPSXF {
|
|
175
|
+
height: 32px;
|
|
176
|
+
display: flex;
|
|
177
|
+
}
|
|
178
|
+
.firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ {
|
|
179
|
+
border-radius: 2px;
|
|
180
|
+
border: 1px solid var(---fill-0, #fff);
|
|
181
|
+
background: rgba(255, 255, 255, 0.15);
|
|
182
|
+
color: var(---fill-0, #fff);
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
font-style: normal;
|
|
185
|
+
font-weight: 400;
|
|
186
|
+
line-height: 24px;
|
|
187
|
+
/* 171.429% */
|
|
188
|
+
padding: 4px 16px;
|
|
189
|
+
}
|
|
190
|
+
.firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ .firstHeader-module_active__wapX5,
|
|
191
|
+
.firstHeader-module_userWrapper__tPSXF .firstHeader-module_loginBtn__j16aQ:hover {
|
|
192
|
+
cursor: pointer;
|
|
193
|
+
border-radius: 2px;
|
|
194
|
+
border: 1px solid var(---fill-0, #fff);
|
|
195
|
+
background: rgba(255, 255, 255, 0.2);
|
|
196
|
+
}
|
|
197
|
+
.firstHeader-module_userWrapper__tPSXF .firstHeader-module_avatar__kEK-Q {
|
|
198
|
+
line-height: 32px;
|
|
199
|
+
height: 32px;
|
|
200
|
+
font-size: 24px;
|
|
201
|
+
text-align: center;
|
|
202
|
+
}
|
|
203
|
+
.firstHeader-module_collaboration__8cU7r {
|
|
204
|
+
width: 144px;
|
|
205
|
+
display: inline-block;
|
|
206
|
+
}
|
|
207
|
+
@keyframes firstHeader-module_appear__-4PeY {
|
|
208
|
+
0% {
|
|
209
|
+
opacity: 0;
|
|
210
|
+
transform: translateY(-64px);
|
|
211
|
+
}
|
|
212
|
+
100% {
|
|
213
|
+
opacity: 1;
|
|
214
|
+
transform: translateY(0);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
@keyframes firstHeader-module_disappear__PAK2P {
|
|
218
|
+
0% {
|
|
219
|
+
opacity: 1;
|
|
220
|
+
transform: translateY(0px);
|
|
221
|
+
}
|
|
222
|
+
100% {
|
|
223
|
+
opacity: 0;
|
|
224
|
+
transform: translateY(-64px);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
.firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu {
|
|
228
|
+
border-radius: 2px;
|
|
229
|
+
background: rgba(255, 255, 255, 0.06);
|
|
230
|
+
backdrop-filter: blur(5px);
|
|
231
|
+
padding: 4px 0px;
|
|
232
|
+
}
|
|
233
|
+
.firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-item {
|
|
234
|
+
height: 24px;
|
|
235
|
+
padding: 8px 20px 8px 24px !important;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: flex-start;
|
|
239
|
+
}
|
|
240
|
+
.firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-item:hover {
|
|
241
|
+
background: rgba(255, 255, 255, 0.2) !important;
|
|
242
|
+
}
|
|
243
|
+
.firstHeader-module_customDropdown__DXqrC .ant-dropdown-menu-title-content {
|
|
244
|
+
color: var(---fill-0, #fff);
|
|
245
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
246
|
+
/* \u6BB5\u843D\u6B63\u6587/\u5E38\u89C4 */
|
|
247
|
+
font-family: 'PingFang SC';
|
|
248
|
+
font-size: 14px;
|
|
249
|
+
font-style: normal;
|
|
250
|
+
font-weight: 400;
|
|
251
|
+
line-height: 24px;
|
|
252
|
+
/* 171.429% */
|
|
253
|
+
}
|
|
254
|
+
.firstHeader-module_whiteCustomDropdown__-clCl {
|
|
255
|
+
z-index: 10000;
|
|
256
|
+
}
|
|
257
|
+
.firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu {
|
|
258
|
+
border-radius: 2px;
|
|
259
|
+
background: #fff;
|
|
260
|
+
/* \u6295\u5F71/\u6B21\u6295\u5F71 */
|
|
261
|
+
box-shadow: 0px 2px 10px 0px rgba(18, 19, 22, 0.1);
|
|
262
|
+
padding: 4px 0px;
|
|
263
|
+
}
|
|
264
|
+
.firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item {
|
|
265
|
+
height: 24px;
|
|
266
|
+
padding: 8px 20px 8px 24px !important;
|
|
267
|
+
display: flex;
|
|
268
|
+
align-items: center;
|
|
269
|
+
justify-content: flex-start;
|
|
270
|
+
}
|
|
271
|
+
.firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item:hover {
|
|
272
|
+
background: var(--fill-2, #f4f5f9) !important;
|
|
273
|
+
}
|
|
274
|
+
.firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-item:hover .ant-dropdown-menu-title-content {
|
|
275
|
+
color: #36569b !important;
|
|
276
|
+
}
|
|
277
|
+
.firstHeader-module_whiteCustomDropdown__-clCl .ant-dropdown-menu-title-content {
|
|
278
|
+
color: var(--100-text-5, #121316);
|
|
279
|
+
font-feature-settings: 'liga' off, 'clig' off;
|
|
280
|
+
/* \u6BB5\u843D\u6B63\u6587/\u5E38\u89C4 */
|
|
281
|
+
font-family: 'PingFang SC';
|
|
282
|
+
font-size: 14px;
|
|
283
|
+
font-style: normal;
|
|
284
|
+
font-weight: 400;
|
|
285
|
+
line-height: 24px;
|
|
286
|
+
/* 171.429% */
|
|
287
|
+
}
|
|
288
|
+
.firstHeader-module_userInfoDropdown__lhNV2 {
|
|
289
|
+
z-index: 10000 !important;
|
|
290
|
+
}
|
|
291
|
+
@media screen and (max-width: 1439px) {
|
|
292
|
+
.firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir {
|
|
293
|
+
gap: 0px;
|
|
294
|
+
}
|
|
295
|
+
.firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:nth-child(-n+5) {
|
|
296
|
+
margin-right: 30px;
|
|
297
|
+
}
|
|
298
|
+
.firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_firstMenuItem__mtc1k:nth-child(6) {
|
|
299
|
+
margin-right: 8px;
|
|
300
|
+
}
|
|
301
|
+
.firstHeader-module_enHeader__xyOyE .firstHeader-module_rightBox__9V7Ir .firstHeader-module_lang__0QHnx {
|
|
302
|
+
margin-right: 8px;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
`,n={firstHeader:"firstHeader-module_firstHeader__L3Yly",logo:"firstHeader-module_logo__r1F7S",lang:"firstHeader-module_lang__0QHnx",rightBox:"firstHeader-module_rightBox__9V7Ir",firstMenuItem:"firstHeader-module_firstMenuItem__mtc1k",activeMenu:"firstHeader-module_activeMenu__he8Lb",lightHeader:"firstHeader-module_lightHeader__3XdWF",blueBackHeaderBox:"firstHeader-module_blueBackHeaderBox__MuAHr",lightBackHeader:"firstHeader-module_lightBackHeader__DusJi",blackMiniWeb:"firstHeader-module_blackMiniWeb__q2Qq5",animateHide:"firstHeader-module_animateHide__Zu85W",animateShow:"firstHeader-module_animateShow__Nk-zI",headerBox:"firstHeader-module_headerBox__oDPHm",transparentWeb:"firstHeader-module_transparentWeb__bRqGL",onlyFirstHeaderBox:"firstHeader-module_onlyFirstHeaderBox__C-k3Q",lightHeadBox:"firstHeader-module_lightHeadBox__54aA7",loginBtn:"firstHeader-module_loginBtn__j16aQ",active:"firstHeader-module_active__wapX5",lightMiniWeb:"firstHeader-module_lightMiniWeb__xAj6X",miniWeb:"firstHeader-module_miniWeb__WKbf1",userWrapper:"firstHeader-module_userWrapper__tPSXF",avatar:"firstHeader-module_avatar__kEK-Q",collaboration:"firstHeader-module_collaboration__8cU7r",customDropdown:"firstHeader-module_customDropdown__DXqrC",whiteCustomDropdown:"firstHeader-module_whiteCustomDropdown__-clCl",userInfoDropdown:"firstHeader-module_userInfoDropdown__lhNV2",enHeader:"firstHeader-module_enHeader__xyOyE",appear:"firstHeader-module_appear__-4PeY",disappear:"firstHeader-module_disappear__PAK2P"};e(r);export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o,{useContext as H,useState as R,useEffect as T,useMemo as d}from"react";import{Dropdown as P,message as J}from"antd";import{goCommon as E,goOCHome as Q}from"../../google-log/home.js";import y from"classnames";import{webTypeEnum as i,langTypeEnum as L}from"../../index.js";import{OcContext as X}from"../../providers/OcContext.js";import Z from"./hooks/useUrl.js";import{OcConfigContext as ee}from"../../providers/OcConfigContext.js";import n from"./firstHeader.module.less.js";import te from"../../assets/svg/newLogo.svg.js";import ne from"../../assets/svg/newLogoEn.svg.js";import W from"../../extraComponents/icon-font/index.js";import oe from"../../assets/svg/blueNewLogo.svg.js";import le from"../../assets/svg/blueNewLogoEn.svg.js";import V from"./secondHeader.js";import{useLocation as re}from"react-router-dom";var ie=Object.defineProperty,ae=Object.defineProperties,se=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,x=(s,t,c)=>t in s?ie(s,t,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[t]=c,j=(s,t)=>{for(var c in t||(t={}))ce.call(t,c)&&x(s,c,t[c]);if($)for(var c of $(t))ue.call(t,c)&&x(s,c,t[c]);return s},F=(s,t)=>ae(s,se(t)),me=(s,t,c)=>new Promise((f,a)=>{var k=m=>{try{e(c.next(m))}catch(_){a(_)}},u=m=>{try{e(c.throw(m))}catch(_){a(_)}},e=m=>m.done?f(m.value):Promise.resolve(m.value).then(k,u);e((c=c.apply(s,t)).next())});const de=64,fe=57;let z,I=0;const he=s=>{const{locales:t}=H(X),{setConfig:c,config:f}=H(ee),{locale:a,setLocale:k}=f,{pathname:u}=re(),{urls:e}=Z(),{handleUnauth:m,logout:_,userInfo:B,jumpLogin:G,webType:l,isDefaultShowSecondMenu:U}=s,[b,C]=R(!1),[h,A]=R(!0);T(()=>{c(s)},[s]),T(()=>{U&&C(!0)},[U]);const M=d(()=>[{title:{"zh-CN":"\u5927\u6A21\u578B\u8BC4\u6D4B","en-US":"LLM"},key:"large-model",href:`${e==null?void 0:e.VITE_COMPASS_URL}large-model`,onClick:E,isActive:u.startsWith("/large-model")||u.startsWith("/arena")||u.startsWith("/doc")||u.startsWith("/rule")||u.startsWith("/policy")||window.location.href.startsWith(e==null?void 0:e.VITE_RANK_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_HUB_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_DOC_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_SPECIAL_LIST_URL)||window.location.href.startsWith(e==null?void 0:e.VITE_DATA_URL)},{title:{"zh-CN":"\u79D1\u5B66\u667A\u80FD\u8BC4\u6D4B","en-US":"Scientific Intelligence"},key:"Intern-Discovery-Eval",href:`${e==null?void 0:e.VITE_COMPASS_URL}Intern-Discovery-Eval`,onClick:E,isActive:u.startsWith("/Intern-Discovery-Eval")},{title:{"zh-CN":"\u5177\u8EAB\u667A\u80FD\u8BC4\u6D4B","en-US":"Embodied Intelligence"},key:"Embodied-Intelligence",href:`${e==null?void 0:e.VITE_COMPASS_URL}embodied-intelligence`,onClick:E,isActive:u.startsWith("/embodied-intelligence")},{title:{"zh-CN":"\u5B89\u5168\u8BC4\u6D4B","en-US":"Safety"},key:"security-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}safety`,onClick:E,isActive:u.startsWith("/safety")},{title:{"zh-CN":"AI \u8BA1\u7B97\u7CFB\u7EDF\u8BC4\u6D4B","en-US":"AI Computing System"},key:"computing-system-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}computing-system`,onClick:E,isActive:u.startsWith("/computing-system")||u.startsWith("/evaluation-plan")},{title:{"zh-CN":"\u5782\u7C7B\u9886\u57DF\u8BC4\u6D4B","en-US":"Industry Verticals"},key:"Vertical-domain-evaluation",href:`${e==null?void 0:e.VITE_COMPASS_URL}ecosystem/finance`,onClick:E,isActive:u.startsWith("/ecosystem/finance")}],[e,u,window.location]),q=r=>me(void 0,[r],function*({key:w}){if(w==="logout")try{yield _()}catch(p){J.error("request error!")}finally{m(),window.location.reload()}}),v=d(()=>l!==i.miniWeb&&l!==i.lightMiniWeb,[l]),K=d(()=>[{label:o.createElement("div",null,t==null?void 0:t.finance," ",o.createElement(W,{type:"icon-GotoOutline"})),key:"https://cnfinbench.opencompass.org.cn/"},{label:o.createElement("div",null,t==null?void 0:t.medical," ",o.createElement(W,{type:"icon-GotoOutline"})),key:"https://medbench.opencompass.org.cn/home"}],[t,e]),O=d(()=>l===i.blueWeb||l===i.miniWeb||l===i.transparentWeb?a==="en-US"?ne:te:a==="en-US"?le:oe,[l,a]),Y=({key:r})=>{r.startsWith(e==null?void 0:e.VITE_COMPASS_URL)?location.href=r:window.open(r)},g=d(()=>!!(f.navMenuList&&f.navMenuList.length>1||!f.navMenuList),[f.navMenuList]),D=d(()=>[{key:"myEvaluation",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_RANK_URL}/online-evaluation?lang=${a}`},t==null?void 0:t.myEvaluation)},{key:"myBenchmark",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_HUB_URL}/benchmarks?lang=${a}`},t==null?void 0:t.myBenchmark)},{key:"myModel",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_RANK_URL}/models?lang=${a}`},t==null?void 0:t.myModel)},{key:"collaboration",label:o.createElement("a",{className:n.collaboration,href:`${e==null?void 0:e.VITE_DATA_URL}/data-list?lang=${a}`},t==null?void 0:t.commitRecord)},{key:"user-center",label:o.createElement("a",{href:`${e==null?void 0:e.VITE_SSO_URL}/usercenter?lang=${a}`,target:"_blank",rel:"noreferrer"},t==null?void 0:t.userCenter)},{key:"logout",label:t==null?void 0:t.logout}],[t==null?void 0:t.myEvaluation,t==null?void 0:t.logout,t==null?void 0:t.userCenter,t==null?void 0:t.myBenchmark,a,e]),N=d(()=>o.createElement("header",{className:y(n.firstHeader,b&&g&&v&&n.animateHide,!b&&v&&n.animateShow,l===i.lightWeb&&n.lightHeader,l===i.lightMiniWeb&&n.lightHeader,l===i.miniWeb&&n.miniWeb,!h&&l===i.miniWeb&&n.blackMiniWeb,l===i.transparentWeb&&!h&&n.blueBackHeaderBox,l===i.lightWeb&&!h&&n.lightBackHeader,a==="en-US"&&n.enHeader)},o.createElement("a",{className:n.logo,href:`${e==null?void 0:e.VITE_COMPASS_URL}?lang=${a}`,onClick:r=>{r.preventDefault(),Q(a,"header",e==null?void 0:e.VITE_COMPASS_URL)}},o.createElement("img",{src:O,alt:"logo"})),o.createElement("div",{className:n.rightBox},M.map(r=>r.key==="Vertical-domain-evaluation"?o.createElement(P,{placement:"bottom",overlayClassName:n.whiteCustomDropdown,menu:{items:K,onClick:Y}},o.createElement("a",{key:r.key,className:y(n.firstMenuItem,r.isActive&&n.activeMenu),target:"_self",rel:"noreferrer"},r.title[a])):o.createElement("a",{key:r.key,className:y(n.firstMenuItem,r.isActive&&n.activeMenu),target:"_self",rel:"noreferrer",onClick:w=>{w.preventDefault(),r.onClick&&r.onClick(a,"header",r.href)}},r.title[a])),o.createElement("div",{onClick:()=>k(a===L.zh?L.en:L.zh),className:n.lang},o.createElement(W,{type:a!=="zh-CN"?"icon-zhongyingqiehuanyingTranslateE":"icon-zhongyingqiehuanzhongTranslateC"})),o.createElement("div",{className:n.userWrapper},B&&B.token?o.createElement(P,{overlayClassName:n.userInfoDropdown,menu:{items:D,onClick:q}},o.createElement("div",{className:n.avatar},o.createElement(W,{type:l===i.lightMiniWeb||l===i.lightWeb?"icon-a-Frame1321316814":"icon-a-Frame1321316813"}))):o.createElement("a",{className:y(n.loginBtn),onClick:()=>{let r=G();r&&(window.location.href=r)}},t==null?void 0:t.login)))),[b,l,v,O,t,h,M,D,g,e,B]),S=d(()=>g?de:fe,[g]);return T(()=>{console.log("scrollOffset",S);const r=w=>{let p=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;window.clearTimeout(z),z=setTimeout(function(){p===0?(C(!1),A(!0)):(A(!1),p>I+S+5?(console.log("\u5411\u4E0B\u6EDA\u52A8"),p>=I&&C(!0)):p<I-S-5&&C(!1)),I=p},50)};return window.addEventListener("scroll",r),()=>{window.removeEventListener("scroll",r)}},[window.location.pathname,l,g,S]),o.createElement(o.Fragment,null,b&&v?g?o.createElement(V,F(j({},s),{isTop:!1,isScrollDown:b})):o.createElement("div",{className:y(n.headerBox,n.onlyFirstHeaderBox,l===i.lightWeb&&n.lightHeadBox,l===i.lightMiniWeb&&n.lightMiniWeb,l===i.miniWeb&&n.miniWeb,l===i.transparentWeb&&n.transparentWeb)},N):o.createElement("div",{className:y(n.headerBox,!v&&n.onlyFirstHeaderBox,l===i.lightWeb&&n.lightHeadBox,l===i.lightMiniWeb&&n.lightMiniWeb,l===i.miniWeb&&n.miniWeb,l===i.transparentWeb&&n.transparentWeb,l===i.lightWeb&&!h&&n.lightBackHeadBox)},N,v&&o.createElement(V,F(j({},s),{isTop:h,isScrollDown:!1}))))};export{he as default};
|