@antv/dumi-theme-antv 0.8.0-beta.2 → 0.8.0-beta.21

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 (88) hide show
  1. package/dist/builtins/Playground/index.module.less +0 -1
  2. package/dist/components/AI/HomeDialog/AntVBanner/index.module.less +2 -2
  3. package/dist/components/AI/HomeDialog/ModeSelector/ModeSelectorDropdown.js +42 -0
  4. package/dist/components/AI/HomeDialog/ModeSelector/index.module.less +39 -22
  5. package/dist/components/AI/HomeDialog/PromptTextarea/ChooseLib/index.js +12 -4
  6. package/dist/components/AI/HomeDialog/PromptTextarea/ChooseLib/index.module.less +0 -1
  7. package/dist/components/AI/HomeDialog/PromptTextarea/DatasourceCard/index.module.less +3 -3
  8. package/dist/components/AI/HomeDialog/PromptTextarea/index.js +38 -36
  9. package/dist/components/AI/HomeDialog/PromptTextarea/index.module.less +8 -8
  10. package/dist/components/AI/HomeDialog/RecommendCase/Card.js +14 -11
  11. package/dist/components/AI/HomeDialog/RecommendCase/card.module.less +3 -3
  12. package/dist/components/AI/HomeDialog/RecommendCase/index.js +73 -24
  13. package/dist/components/AI/HomeDialog/RecommendCase/index.module.less +4 -2
  14. package/dist/components/AI/HomeDialog/RecommendCase/recommend.json +41 -17
  15. package/dist/components/AI/HomeDialog/index.js +21 -33
  16. package/dist/components/AI/constant.js +4 -2
  17. package/dist/components/Login/Captcha/index.js +185 -0
  18. package/dist/components/Login/Captcha/index.less +91 -0
  19. package/dist/components/Login/CheckCode/index.js +244 -0
  20. package/dist/components/Login/CheckCode/index.less +137 -0
  21. package/dist/components/Login/CountDownButton/index.js +109 -0
  22. package/dist/components/Login/CountDownButton/index.less +8 -0
  23. package/dist/components/Login/LoginForm.js +239 -0
  24. package/dist/components/Login/LoginForm.less +409 -0
  25. package/dist/components/Login/index.js +24 -0
  26. package/dist/components/Login/openAuthWindow.js +54 -0
  27. package/dist/components/Login/types.js +5 -0
  28. package/dist/components/Login/utils.js +47 -0
  29. package/dist/hooks/useProducts.js +22 -1
  30. package/dist/layouts/DocLayout.js +2 -1
  31. package/dist/layouts/GlobalLayout/index.js +11 -4
  32. package/dist/locales/en.json +43 -2
  33. package/dist/locales/zh.json +43 -2
  34. package/dist/model/AIChat.js +93 -6
  35. package/dist/model/auth.js +147 -0
  36. package/dist/pages/AIPlayground/components/ConversationsMenu/index.js +15 -7
  37. package/dist/pages/AIPlayground/components/ConversationsMenu/index.module.less +2 -0
  38. package/dist/pages/AIPlayground/components/MarkdownComponent/MarkdownCodeBlock.js +26 -17
  39. package/dist/pages/AIPlayground/components/MarkdownComponent/MarkdownCodeBlock.module.less +1 -2
  40. package/dist/pages/AIPlayground/components/MarkdownComponent/index.js +7 -4
  41. package/dist/pages/AIPlayground/components/MsgBox/index.js +266 -149
  42. package/dist/pages/AIPlayground/components/MsgBox/index.module.less +3 -2
  43. package/dist/pages/AIPlayground/components/MsgBox/useAutoScroll.js +46 -0
  44. package/dist/pages/AIPlayground/components/SessionLayout/index.js +41 -12
  45. package/dist/pages/AIPlayground/components/SessionLayout/index.module.less +4 -4
  46. package/dist/pages/AIPlayground/components/TaskBox/generateCode.js +129 -8
  47. package/dist/pages/AIPlayground/components/TaskBox/index.js +92 -55
  48. package/dist/pages/AIPlayground/components/TaskBox/index.module.less +1 -0
  49. package/dist/pages/AIPlayground/index.js +4 -1
  50. package/dist/pages/AIPlayground/index.module.less +5 -0
  51. package/dist/pages/Examples/components/Accouncement/index.module.less +1 -1
  52. package/dist/pages/Examples/index.module.less +11 -11
  53. package/dist/pages/Index/components/Cases/index.module.less +8 -8
  54. package/dist/pages/Index/components/Companies/index.module.less +4 -3
  55. package/dist/pages/Index/components/Features/FeatureCard.module.less +4 -5
  56. package/dist/pages/Index/components/Features/index.module.less +5 -5
  57. package/dist/pages/Index/components/_.less +9 -9
  58. package/dist/slots/Banner/Notification.module.less +8 -8
  59. package/dist/slots/Banner/index.module.less +10 -9
  60. package/dist/slots/CodeEditor/Toolbar.js +7 -25
  61. package/dist/slots/CodeEditor/index.js +34 -12
  62. package/dist/slots/CodeEditor/index.module.less +3 -1
  63. package/dist/slots/CodeEditor/utils.js +2 -1
  64. package/dist/slots/CodePreview/index.module.less +0 -3
  65. package/dist/slots/CodeRunner/index.js +23 -11
  66. package/dist/slots/ContentTable/index.module.less +2 -1
  67. package/dist/slots/Detail/News.module.less +9 -9
  68. package/dist/slots/Detail/index.js +2 -1
  69. package/dist/slots/Detail/index.module.less +11 -14
  70. package/dist/slots/ExampleSider/index.module.less +3 -4
  71. package/dist/slots/Footer/index.module.less +2 -2
  72. package/dist/slots/Header/Products/Product.module.less +2 -2
  73. package/dist/slots/Header/Search/SearchResult.js +20 -8
  74. package/dist/slots/Header/Search/SearchResult.module.less +1 -0
  75. package/dist/slots/Header/index.js +51 -25
  76. package/dist/slots/Header/index.module.less +13 -5
  77. package/dist/slots/LiveExample/index.module.less +1 -1
  78. package/dist/slots/Loading/index.module.less +30 -28
  79. package/dist/slots/ManualContent/index.module.less +14 -17
  80. package/dist/slots/_.less +9 -9
  81. package/dist/static/user.svg +3 -0
  82. package/dist/typings.d.ts +6 -0
  83. package/dist/utils/analytics.js +16 -0
  84. package/dist/utils/env.js +63 -0
  85. package/dist/utils/index.js +7 -0
  86. package/dist/utils/request.js +42 -0
  87. package/package.json +9 -5
  88. package/dist/static/SearchAiIcon.svg +0 -14
@@ -3,13 +3,14 @@
3
3
  .wrapper {
4
4
  min-height: 1000px;
5
5
  max-height: 1150px;
6
- background: linear-gradient(225deg, #ffffff, #f0f5ff);
6
+ background: linear-gradient(225deg, #fff, #f0f5ff);
7
7
  height: calc(94vh);
8
8
  position: relative;
9
9
  overflow: hidden;
10
10
 
11
11
  .content {
12
12
  .container1440();
13
+
13
14
  height: 100%;
14
15
  position: relative;
15
16
  }
@@ -28,7 +29,7 @@
28
29
 
29
30
  .title {
30
31
  font-size: 3.4em; //2.875em;
31
- color: rgba(0, 0, 0, 1);
32
+ color: rgba(0, 0, 0, 100%);
32
33
  position: relative;
33
34
  font-family: AlibabaPuHuiTiRHeavy;
34
35
 
@@ -39,8 +40,7 @@
39
40
 
40
41
  .description {
41
42
  margin-top: 0.83%; //12px;
42
- margin-bottom: 0px;
43
- color: rgba(106, 123, 140, 1);
43
+ margin-bottom: 0;
44
44
  font-weight: 200;
45
45
  position: relative;
46
46
  width: 40%;
@@ -52,7 +52,7 @@
52
52
  overflow: hidden;
53
53
  text-overflow: ellipsis;
54
54
  -webkit-line-clamp: 4;
55
- display: -webkit-box;
55
+ display: box;
56
56
  -webkit-box-orient: vertical;
57
57
  }
58
58
 
@@ -64,7 +64,6 @@
64
64
  display: flex;
65
65
  align-items: center;
66
66
  justify-content: center;
67
- cursor: pointer;
68
67
  border-radius: 12px;
69
68
  z-index: 10;
70
69
  position: relative;
@@ -73,13 +72,12 @@
73
72
  height: 54px;
74
73
  min-width: 166px;
75
74
  padding: 0 10px;
76
- box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.1);
77
75
  background-color: #691eff;
78
76
  font-size: 18px;
79
77
  cursor: pointer;
80
78
  box-shadow: 0 8px 28px 0 #f2f2f2;
81
79
  margin-right: 20px;
82
- color: #ffffff;
80
+ color: #fff;
83
81
  overflow: hidden;
84
82
 
85
83
  .icon {
@@ -94,8 +92,7 @@
94
92
  }
95
93
 
96
94
  &.primary {
97
- color: #fff;
98
- background-color: #ffffff;
95
+ background-color: #fff;
99
96
  color: #000;
100
97
  border: 1px solid #e8e8e8;
101
98
 
@@ -123,8 +120,8 @@
123
120
  display: flex;
124
121
  height: 54px;
125
122
  cursor: pointer;
126
- box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.05);
127
- background-color: #ffffff;
123
+ box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 5%);
124
+ background-color: #fff;
128
125
  border: 1px solid #e8e8e8;
129
126
  justify-content: center;
130
127
  align-items: center;
@@ -146,6 +143,7 @@
146
143
 
147
144
  .gh-btn {
148
145
  padding: 16px;
146
+
149
147
  .gh-ico {
150
148
  display: block;
151
149
  width: 20px;
@@ -172,7 +170,7 @@
172
170
  margin-left: -8px;
173
171
  color: #1d2129;
174
172
  letter-spacing: 0;
175
- font-family: AlibabaSans102-Medium;
173
+ font-family: "AlibabaSans102-Medium";
176
174
  }
177
175
  }
178
176
  }
@@ -195,7 +193,6 @@
195
193
  display: flex;
196
194
  position: absolute;
197
195
  right: 0;
198
- margin-top: -300px;
199
196
  width: 32%;
200
197
  max-width: 598px;
201
198
  height: 324px;
@@ -11,7 +11,7 @@
11
11
  z-index: 1;
12
12
  top: 0;
13
13
  height: 100%;
14
- box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0);
14
+ box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0%);
15
15
  width: 1px;
16
16
  transition: all 0.3s;
17
17
  }
@@ -45,7 +45,7 @@
45
45
  user-select: none;
46
46
  background-color: #fff;
47
47
 
48
- &:after {
48
+ &::after {
49
49
  transition: all 0.3s;
50
50
  background-color: transparent;
51
51
  border: 1px solid transparent;
@@ -60,7 +60,7 @@
60
60
  &:hover {
61
61
  border-color: var(--primary-color);
62
62
 
63
- &:before {
63
+ &::before {
64
64
  transition: all 0.3s;
65
65
  content: '';
66
66
  position: absolute;
@@ -127,7 +127,6 @@
127
127
  display: inline-block;
128
128
  width: 100%;
129
129
  vertical-align: bottom;
130
-
131
130
  overflow: hidden;
132
131
  text-overflow: ellipsis;
133
132
  white-space: nowrap;
@@ -36,7 +36,7 @@
36
36
  display: flex;
37
37
  justify-content: center;
38
38
  font-size: 14px;
39
- border-bottom: 1px solid rgba(255, 255, 255, 0.25);
39
+ border-bottom: 1px solid rgba(255, 255, 255, 25%);
40
40
  margin-bottom: 16px;
41
41
  box-sizing: border-box;
42
42
  padding-bottom: 16px;
@@ -72,7 +72,7 @@
72
72
  :global(.anticon),
73
73
  a {
74
74
  margin-right: 8px;
75
- color: rgba(255, 255, 255, 0.6);
75
+ color: rgba(255, 255, 255, 60%);
76
76
  }
77
77
 
78
78
  &.light {
@@ -57,7 +57,7 @@
57
57
  ul {
58
58
  list-style: none;
59
59
  padding: 0;
60
- margin: 0 0 20px 0;
60
+ margin: 0 0 20px;
61
61
 
62
62
  &:last-child {
63
63
  margin-bottom: 32px;
@@ -87,7 +87,7 @@
87
87
  margin-bottom: 4px;
88
88
  font-size: 14px;
89
89
  line-height: 22px;
90
- color: rgba(0, 0, 0, 0.85);
90
+ color: rgba(0, 0, 0, 85%);
91
91
  transition: all 0.3s;
92
92
 
93
93
  &:hover {
@@ -2,7 +2,9 @@ import { useIntl, useSiteData } from 'dumi';
2
2
  import React from 'react';
3
3
  import styles from "./SearchResult.module.less";
4
4
  import classnames from "classnames";
5
- import { createNewSession } from "../../../model/AIChat";
5
+ import { AIChatStore, createNewSession } from "../../../model/AIChat";
6
+ import { authStore, showLoginModal } from "../../../model/auth";
7
+ import { useSnapshot } from "valtio";
6
8
  var getHighlightInfo = function getHighlightInfo(textSegments) {
7
9
  return /*#__PURE__*/React.createElement(React.Fragment, null, textSegments.map(function (segment) {
8
10
  return /*#__PURE__*/React.createElement("span", {
@@ -21,6 +23,18 @@ export var SearchResult = function SearchResult(_ref) {
21
23
  var _useSiteData = useSiteData(),
22
24
  themeConfig = _useSiteData.themeConfig;
23
25
  var intl = useIntl();
26
+ var authSnap = useSnapshot(authStore);
27
+ function pureSearch() {
28
+ AIChatStore.mode = 'solve';
29
+ createNewSession({
30
+ promptText: keywords,
31
+ mode: 'solve',
32
+ lib: !themeConfig.isAntVSite ? themeConfig.title : undefined,
33
+ jump: true,
34
+ lang: intl.locale === 'zh' ? 'zh' : 'en',
35
+ entry_point: 'SearchResult'
36
+ });
37
+ }
24
38
  return /*#__PURE__*/React.createElement("div", {
25
39
  className: styles.searchResult
26
40
  }, /*#__PURE__*/React.createElement("div", {
@@ -35,13 +49,11 @@ export var SearchResult = function SearchResult(_ref) {
35
49
  }), /*#__PURE__*/React.createElement("a", {
36
50
  className: styles.result,
37
51
  onClick: function onClick() {
38
- createNewSession({
39
- promptText: keywords,
40
- mode: "solve",
41
- lib: !themeConfig.isAntVSite ? themeConfig.title : undefined,
42
- jump: true,
43
- lang: intl.locale === 'zh' ? 'zh' : 'en'
44
- });
52
+ if (!authSnap.isAuthenticated) {
53
+ showLoginModal(pureSearch);
54
+ return;
55
+ }
56
+ pureSearch();
45
57
  }
46
58
  }, /*#__PURE__*/React.createElement("div", {
47
59
  className: classnames(styles.title, styles.highlighted)
@@ -51,6 +51,7 @@
51
51
  color: rgb(160, 161, 167);
52
52
  max-height: 55px;
53
53
  overflow: hidden;
54
+
54
55
  .segment {
55
56
  padding-left: 1px;
56
57
  padding-right: 1px;
@@ -13,12 +13,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
13
13
  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; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- import { CaretDownFilled, DownOutlined, GithubOutlined, LinkOutlined, MenuOutlined, WechatOutlined } from '@ant-design/icons';
16
+ import { CaretDownFilled, DownOutlined, GithubOutlined, LinkOutlined, LogoutOutlined, MenuOutlined, MessageOutlined, UserDeleteOutlined, WechatOutlined } from '@ant-design/icons';
17
17
  import { Alert, Button, Dropdown, Menu, Modal, Popover } from 'antd';
18
18
  import cx from 'classnames';
19
- import { FormattedMessage, Link, useLocale, useSiteData } from 'dumi';
19
+ import { FormattedMessage, Link, useLocale, useSiteData, useIntl, history } from 'dumi';
20
20
  import { get, map, size } from 'lodash-es';
21
- import React, { useEffect, useMemo, useState } from 'react';
21
+ import React, { useEffect, useState } from 'react';
22
22
  import { useMedia } from 'react-use';
23
23
  import { getPurePathname } from "../../utils/location";
24
24
  import { ic, icWithLocale } from "../hooks";
@@ -26,11 +26,15 @@ import { Navs } from "./Navs";
26
26
  import { Products } from "./Products";
27
27
  import { Search } from "./Search";
28
28
  import { findVersion } from "./utils";
29
+ import { ReactComponent as UserIcon } from "../../static/user.svg";
29
30
  import { Assistant } from '@petercatai/assistant';
30
31
  import '@petercatai/assistant/style';
31
32
  import { useLocation } from 'react-router-dom';
32
33
  import { determineUserType } from "../../utils/user";
33
34
  import styles from "./index.module.less";
35
+ import { useSnapshot } from "valtio";
36
+ import { authStore, logout } from "../../model/auth";
37
+ import { clearAllChatData } from "../../model/AIChat";
34
38
  function redirectChinaMirror(chinaMirrorOrigin) {
35
39
  window.location.href = window.location.href.replace(window.location.origin, chinaMirrorOrigin);
36
40
  }
@@ -53,9 +57,6 @@ var HeaderComponent = function HeaderComponent(_ref) {
53
57
  showAntVProductsCard = _ref$showAntVProducts === void 0 ? true : _ref$showAntVProducts,
54
58
  _ref$showLanguageSwit = _ref.showLanguageSwitcher,
55
59
  showLanguageSwitcher = _ref$showLanguageSwit === void 0 ? true : _ref$showLanguageSwit,
56
- _ref$showWeavefox = _ref.showWeavefox,
57
- showWeavefox = _ref$showWeavefox === void 0 ? {} : _ref$showWeavefox,
58
- isInternalUser = _ref.isInternalUser,
59
60
  logo = _ref.logo,
60
61
  onLanguageChange = _ref.onLanguageChange,
61
62
  _ref$showWxQrcode = _ref.showWxQrcode,
@@ -76,11 +77,12 @@ var HeaderComponent = function HeaderComponent(_ref) {
76
77
  ecosystems = _ref.ecosystems,
77
78
  announcement = _ref.announcement;
78
79
  var isAntVHome = isAntVSite && isHomePage; // 是否为AntV官网首页
79
-
80
+ var authSnap = useSnapshot(authStore);
80
81
  var _useState = useState(false),
81
82
  _useState2 = _slicedToArray(_useState, 2),
82
83
  bannerVisible = _useState2[0],
83
84
  setBannerVisible = _useState2[1];
85
+ var intl = useIntl();
84
86
  var showChinaMirror = !!internalSite;
85
87
  var chinaMirrorUrl = get(internalSite, 'url');
86
88
  var _useState3 = useState(false),
@@ -149,8 +151,7 @@ var HeaderComponent = function HeaderComponent(_ref) {
149
151
  }),
150
152
  link: ''
151
153
  }, logo),
152
- img = _img$link$logo.img,
153
- link = _img$link$logo.link;
154
+ img = _img$link$logo.img;
154
155
  var _useLocation = useLocation(),
155
156
  pathname = _useLocation.pathname;
156
157
  useEffect(function () {
@@ -185,27 +186,13 @@ var HeaderComponent = function HeaderComponent(_ref) {
185
186
  var handleSwitchLanguage = function handleSwitchLanguage() {
186
187
  onLanguageChange === null || onLanguageChange === void 0 || onLanguageChange(lang);
187
188
  };
188
- var weavefox = useMemo(function () {
189
- var configKey = isInternalUser ? 'internal' : 'public';
190
- var configValue = showWeavefox[configKey];
191
- if (!configValue) return /*#__PURE__*/React.createElement(React.Fragment, null);
192
- var defaultLink = isInternalUser ? 'https://weavefox.antgroup-inc.cn/agent/@huiyu.zjt/AntV' : 'https://weavefox.alipay.com/agent/@ufox-b8tydq-0758/202505AP7vfl00422922';
193
- var href = typeof configValue === 'string' ? configValue : defaultLink;
194
- return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("a", {
195
- href: href,
196
- target: "_blank",
197
- rel: "noreferrer"
198
- }, /*#__PURE__*/React.createElement(FormattedMessage, {
199
- id: "header.ai.code"
200
- })));
201
- }, [isInternalUser, showWeavefox]);
202
189
  var menu = /*#__PURE__*/React.createElement("ul", {
203
190
  className: cx(styles.menu, _defineProperty(_defineProperty({}, styles.popup, !isWide), styles.popupHidden, !popupMenuVisible))
204
191
  }, /** 最左侧的菜单,一般是 教程、API、示例,或者其他自定义,有配置文件中的 `navs` 决定 */
205
192
  size(navs) ? /*#__PURE__*/React.createElement(Navs, {
206
193
  navs: navs,
207
194
  path: pathname
208
- }) : null, weavefox, /** 生态产品 */
195
+ }) : null, /** 生态产品 */
209
196
  size(ecosystems) ? /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Dropdown, {
210
197
  className: styles.ecoSystems,
211
198
  overlay: /*#__PURE__*/React.createElement(Menu, null, map(ecosystems, function (_ref2) {
@@ -403,7 +390,46 @@ var HeaderComponent = function HeaderComponent(_ref) {
403
390
  href: githubUrl,
404
391
  target: "_blank",
405
392
  rel: "noreferrer"
406
- }, /*#__PURE__*/React.createElement(GithubOutlined, null))));
393
+ }, /*#__PURE__*/React.createElement(GithubOutlined, null))), authSnap.isAuthenticated && /*#__PURE__*/React.createElement("li", {
394
+ className: cx(styles.navIcon, styles.githubCorner)
395
+ }, /*#__PURE__*/React.createElement(Dropdown, {
396
+ menu: {
397
+ items: [{
398
+ key: 'history',
399
+ label: /*#__PURE__*/React.createElement("a", {
400
+ onClick: function onClick() {
401
+ return history.push("/".concat(lang || 'zh', "/ai-playground"));
402
+ }
403
+ }, intl.formatMessage({
404
+ id: 'header.user.history'
405
+ })),
406
+ icon: /*#__PURE__*/React.createElement(MessageOutlined, null)
407
+ }, {
408
+ key: 'logout',
409
+ label: /*#__PURE__*/React.createElement("a", {
410
+ onClick: function onClick() {
411
+ return logout();
412
+ }
413
+ }, intl.formatMessage({
414
+ id: 'header.user.logout'
415
+ })),
416
+ icon: /*#__PURE__*/React.createElement(LogoutOutlined, null)
417
+ }, {
418
+ key: 'deleteAccount',
419
+ label: /*#__PURE__*/React.createElement("a", {
420
+ onClick: function onClick() {
421
+ logout();
422
+ clearAllChatData();
423
+ }
424
+ }, intl.formatMessage({
425
+ id: 'header.user.deleteAccount'
426
+ })),
427
+ icon: /*#__PURE__*/React.createElement(UserDeleteOutlined, null)
428
+ }]
429
+ }
430
+ }, /*#__PURE__*/React.createElement("a", null, /*#__PURE__*/React.createElement(UserIcon, {
431
+ className: styles.userIcon
432
+ })))));
407
433
  return /*#__PURE__*/React.createElement("header", {
408
434
  className: cx(styles.header, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.transparent, !!transparent && !productMenuVisible), styles.isHomePage, !!isHomePage && !isAntVHome), styles.lightTheme, !!isAntVHome && !productMenuVisible && isWide), styles.isAntVHome, !!isAntVHome), styles.fixed, popupMenuVisible))
409
435
  }, bannerVisible && announcementTitle && /*#__PURE__*/React.createElement(Alert, {
@@ -65,7 +65,7 @@
65
65
  .container {
66
66
  max-width: 100%;
67
67
  padding: 0 20px;
68
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
68
+ border-bottom: 1px solid rgba(0, 0, 0, 10%);
69
69
  }
70
70
 
71
71
  .nav {
@@ -87,7 +87,7 @@
87
87
 
88
88
  &:hover {
89
89
  background: #fff;
90
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
90
+ box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 10%);
91
91
  }
92
92
  }
93
93
  }
@@ -174,11 +174,11 @@
174
174
  font-size: 18px;
175
175
 
176
176
  a {
177
- color: rgba(0, 0, 0, 0.85);
177
+ color: rgba(0, 0, 0, 85%);
178
178
  transition: all 0.3s;
179
179
 
180
180
  &:hover {
181
- color: rgba(0, 0, 0, 1);
181
+ color: rgba(0, 0, 0, 100%);
182
182
  }
183
183
  }
184
184
  }
@@ -400,7 +400,7 @@
400
400
  }
401
401
 
402
402
  .remindHref {
403
- margin: 0px 6px 0px 5px;
403
+ margin: 0 6px 0 5px;
404
404
  }
405
405
 
406
406
  .modalContent {
@@ -460,3 +460,11 @@
460
460
  }
461
461
  }
462
462
  }
463
+
464
+ .userIcon {
465
+ font-size: 16px;
466
+ width: 1em;
467
+ height: 1em;
468
+ vertical-align: -0.2em;
469
+ fill: currentColor;
470
+ }
@@ -54,7 +54,7 @@
54
54
  display: block;
55
55
  color: #fb1716;
56
56
  padding: 0.25rem 0;
57
- border-left: 3px solid #ff0000;
57
+ border-left: 3px solid #f00;
58
58
  padding-left: 12px;
59
59
  }
60
60
  }
@@ -15,8 +15,10 @@
15
15
  top: 50%;
16
16
  margin: -50px 0 0 -120px;
17
17
  }
18
+
18
19
  .loader {
19
20
  --duration: 3s;
21
+
20
22
  width: 44px;
21
23
  height: 44px;
22
24
  position: relative;
@@ -24,7 +26,7 @@
24
26
  margin: 0 16px;
25
27
  }
26
28
 
27
- .loader:before {
29
+ .loader::before {
28
30
  content: ' ';
29
31
  width: 6px;
30
32
  height: 6px;
@@ -34,9 +36,9 @@
34
36
  background: #ff700a;
35
37
  top: 37px;
36
38
  left: 19px;
37
- -webkit-transform: translate(-18px, -18px);
38
39
  transform: translate(-18px, -18px);
39
- -webkit-animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
40
+ transform: translate(-18px, -18px);
41
+ animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
40
42
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
41
43
  }
42
44
 
@@ -58,21 +60,21 @@
58
60
  .loader svg polygon {
59
61
  stroke-dasharray: 145 76 145 76;
60
62
  stroke-dashoffset: 0;
61
- -webkit-animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
63
+ animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
62
64
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
63
65
  }
64
66
 
65
67
  .loader svg rect {
66
68
  stroke-dasharray: 192 64 192 64;
67
69
  stroke-dashoffset: 0;
68
- -webkit-animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
70
+ animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
69
71
  animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
70
72
  }
71
73
 
72
74
  .loader svg circle {
73
75
  stroke-dasharray: 150 50 150 50;
74
76
  stroke-dashoffset: 75;
75
- -webkit-animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
77
+ animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
76
78
  animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
77
79
  }
78
80
 
@@ -80,11 +82,11 @@
80
82
  width: 48px;
81
83
  }
82
84
 
83
- .loader.triangle:before {
85
+ .loader.triangle::before {
84
86
  left: 21px;
85
- -webkit-transform: translate(-10px, -18px);
86
87
  transform: translate(-10px, -18px);
87
- -webkit-animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
88
+ transform: translate(-10px, -18px);
89
+ animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
88
90
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
89
91
  }
90
92
 
@@ -99,7 +101,7 @@
99
101
  }
100
102
  }
101
103
 
102
- @-webkit-keyframes ~":global(pathTriangle)" {
104
+ @keyframes ~":global(pathTriangle)" {
103
105
  33% {
104
106
  stroke-dashoffset: 74;
105
107
  }
@@ -127,41 +129,41 @@
127
129
  }
128
130
  }
129
131
 
130
- @-webkit-keyframes ~":global(dotTriangle)" {
132
+ @keyframes ~":global(dotTriangle)" {
131
133
  33% {
132
- -webkit-transform: translate(0, 0);
134
+ transform: translate(0, 0);
133
135
  transform: translate(0, 0);
134
136
  }
135
137
 
136
138
  66% {
137
- -webkit-transform: translate(10px, -18px);
139
+ transform: translate(10px, -18px);
138
140
  transform: translate(10px, -18px);
139
141
  }
140
142
 
141
143
  100% {
142
- -webkit-transform: translate(-10px, -18px);
144
+ transform: translate(-10px, -18px);
143
145
  transform: translate(-10px, -18px);
144
146
  }
145
147
  }
146
148
 
147
149
  @keyframes ~":global(dotTriangle)" {
148
150
  33% {
149
- -webkit-transform: translate(0, 0);
151
+ transform: translate(0, 0);
150
152
  transform: translate(0, 0);
151
153
  }
152
154
 
153
155
  66% {
154
- -webkit-transform: translate(10px, -18px);
156
+ transform: translate(10px, -18px);
155
157
  transform: translate(10px, -18px);
156
158
  }
157
159
 
158
160
  100% {
159
- -webkit-transform: translate(-10px, -18px);
161
+ transform: translate(-10px, -18px);
160
162
  transform: translate(-10px, -18px);
161
163
  }
162
164
  }
163
165
 
164
- @-webkit-keyframes ~":global(pathRect)" {
166
+ @keyframes ~":global(pathRect)" {
165
167
  25% {
166
168
  stroke-dashoffset: 64;
167
169
  }
@@ -197,51 +199,51 @@
197
199
  }
198
200
  }
199
201
 
200
- @-webkit-keyframes ~":global(dotRect)" {
202
+ @keyframes ~":global(dotRect)" {
201
203
  25% {
202
- -webkit-transform: translate(0, 0);
204
+ transform: translate(0, 0);
203
205
  transform: translate(0, 0);
204
206
  }
205
207
 
206
208
  50% {
207
- -webkit-transform: translate(18px, -18px);
209
+ transform: translate(18px, -18px);
208
210
  transform: translate(18px, -18px);
209
211
  }
210
212
 
211
213
  75% {
212
- -webkit-transform: translate(0, -36px);
214
+ transform: translate(0, -36px);
213
215
  transform: translate(0, -36px);
214
216
  }
215
217
 
216
218
  100% {
217
- -webkit-transform: translate(-18px, -18px);
219
+ transform: translate(-18px, -18px);
218
220
  transform: translate(-18px, -18px);
219
221
  }
220
222
  }
221
223
 
222
224
  @keyframes ~":global(dotRect)" {
223
225
  25% {
224
- -webkit-transform: translate(0, 0);
226
+ transform: translate(0, 0);
225
227
  transform: translate(0, 0);
226
228
  }
227
229
 
228
230
  50% {
229
- -webkit-transform: translate(18px, -18px);
231
+ transform: translate(18px, -18px);
230
232
  transform: translate(18px, -18px);
231
233
  }
232
234
 
233
235
  75% {
234
- -webkit-transform: translate(0, -36px);
236
+ transform: translate(0, -36px);
235
237
  transform: translate(0, -36px);
236
238
  }
237
239
 
238
240
  100% {
239
- -webkit-transform: translate(-18px, -18px);
241
+ transform: translate(-18px, -18px);
240
242
  transform: translate(-18px, -18px);
241
243
  }
242
244
  }
243
245
 
244
- @-webkit-keyframes ~":global(pathCircle)" {
246
+ @keyframes ~":global(pathCircle)" {
245
247
  25% {
246
248
  stroke-dashoffset: 125;
247
249
  }