@antv/dumi-theme-antv 0.2.2 → 0.3.0-beta.10

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 (265) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -33
  3. package/dist/builtins/Playground/index.d.ts +21 -0
  4. package/dist/builtins/Playground/index.js +69 -0
  5. package/dist/builtins/Playground/index.module.less +15 -0
  6. package/dist/context.d.ts +6 -0
  7. package/dist/context.js +2 -0
  8. package/dist/layouts/DocLayout.d.ts +7 -0
  9. package/dist/layouts/DocLayout.js +48 -0
  10. package/dist/layouts/entry/API.d.ts +10 -0
  11. package/dist/layouts/entry/API.js +12 -0
  12. package/dist/layouts/entry/Index.d.ts +7 -0
  13. package/dist/layouts/entry/Index.js +79 -0
  14. package/dist/layouts/entry/Manual.d.ts +8 -0
  15. package/dist/layouts/entry/Manual.js +13 -0
  16. package/dist/locales/en.json +98 -0
  17. package/dist/locales/zh.json +98 -0
  18. package/dist/pages/404.d.ts +6 -0
  19. package/dist/pages/404.js +18 -0
  20. package/dist/pages/Example/index.d.ts +6 -0
  21. package/dist/pages/Example/index.js +115 -0
  22. package/dist/pages/Example/index.module.less +82 -0
  23. package/dist/pages/Example/utils.d.ts +1 -0
  24. package/dist/pages/Example/utils.js +9 -0
  25. package/dist/pages/Examples/components/Accouncement/index.d.ts +6 -0
  26. package/dist/pages/Examples/components/Accouncement/index.js +60 -0
  27. package/dist/pages/Examples/components/Accouncement/index.module.less +9 -0
  28. package/dist/pages/Examples/components/Article/index.d.ts +2 -0
  29. package/dist/pages/Examples/components/Article/index.js +8 -0
  30. package/dist/pages/Examples/components/Article/index.module.less +2 -0
  31. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.d.ts +10 -0
  32. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.js +74 -0
  33. package/dist/pages/Examples/components/ExampleTopicMenu/index.d.ts +9 -0
  34. package/{es/builtins/Example.js → dist/pages/Examples/components/ExampleTopicMenu/index.js} +47 -33
  35. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.d.ts +10 -0
  36. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.js +33 -0
  37. package/dist/pages/Examples/components/GalleryPageContent/index.d.ts +10 -0
  38. package/dist/pages/Examples/components/GalleryPageContent/index.js +81 -0
  39. package/dist/pages/Examples/index.d.ts +8 -0
  40. package/dist/pages/Examples/index.js +95 -0
  41. package/dist/pages/Examples/index.module.less +607 -0
  42. package/dist/pages/Examples/types.d.ts +34 -0
  43. package/dist/pages/Examples/types.js +1 -0
  44. package/dist/plugin/examples.d.ts +21 -0
  45. package/dist/plugin/examples.js +105 -0
  46. package/dist/plugin/index.d.ts +3 -0
  47. package/dist/plugin/index.js +113 -0
  48. package/dist/plugin/utils.d.ts +5 -0
  49. package/dist/plugin/utils.js +46 -0
  50. package/dist/slots/404.d.ts +2 -0
  51. package/{es/antv/404/index.js → dist/slots/404.js} +4 -9
  52. package/{es/antv/Cases/Cases.d.ts → dist/slots/Cases/index.d.ts} +5 -4
  53. package/{es/antv/Cases/Cases.js → dist/slots/Cases/index.js} +25 -25
  54. package/{src/antv/Cases/Cases.module.less → dist/slots/Cases/index.module.less} +36 -5
  55. package/dist/slots/CodeEditor/Toolbar.d.ts +67 -0
  56. package/dist/slots/CodeEditor/Toolbar.js +140 -0
  57. package/dist/slots/CodeEditor/Toolbar.module.less +81 -0
  58. package/dist/slots/CodeEditor/index.d.ts +58 -0
  59. package/dist/slots/CodeEditor/index.js +226 -0
  60. package/dist/slots/CodeEditor/index.module.less +11 -0
  61. package/dist/slots/CodeEditor/utils.d.ts +42 -0
  62. package/dist/slots/CodeEditor/utils.js +157 -0
  63. package/dist/slots/CodePreview/CodeHeader.d.ts +19 -0
  64. package/dist/slots/CodePreview/CodeHeader.js +32 -0
  65. package/dist/slots/CodePreview/CodeHeader.module.less +0 -0
  66. package/dist/slots/CodePreview/index.d.ts +17 -0
  67. package/dist/slots/CodePreview/index.js +29 -0
  68. package/dist/slots/CodePreview/index.module.less +43 -0
  69. package/dist/slots/CodeRunner/index.d.ts +15 -0
  70. package/dist/slots/CodeRunner/index.js +79 -0
  71. package/dist/slots/CodeRunner/index.module.less +0 -0
  72. package/dist/slots/CodeRunner/utils.d.ts +11 -0
  73. package/dist/slots/CodeRunner/utils.js +36 -0
  74. package/dist/slots/Companies/index.d.ts +13 -0
  75. package/dist/slots/Companies/index.js +49 -0
  76. package/dist/slots/Companies/index.module.less +82 -0
  77. package/dist/slots/Detail/News.d.ts +10 -0
  78. package/{es/antv/Banner/Notification.js → dist/slots/Detail/News.js} +8 -11
  79. package/{src/antv/Banner/Notification.module.less → dist/slots/Detail/News.module.less} +15 -3
  80. package/dist/slots/Detail/index.d.ts +27 -0
  81. package/dist/slots/Detail/index.js +124 -0
  82. package/{src/antv/Banner/Banner.module.less → dist/slots/Detail/index.module.less} +42 -74
  83. package/dist/slots/ExampleSider/index.d.ts +21 -0
  84. package/dist/slots/ExampleSider/index.js +196 -0
  85. package/dist/slots/ExampleSider/index.module.less +141 -0
  86. package/{es/antv → dist/slots}/Features/FeatureCard.d.ts +2 -1
  87. package/{es/antv → dist/slots}/Features/FeatureCard.js +6 -6
  88. package/{src/antv → dist/slots}/Features/FeatureCard.module.less +8 -1
  89. package/{es/antv → dist/slots}/Features/index.d.ts +2 -2
  90. package/{es/antv → dist/slots}/Features/index.js +19 -26
  91. package/{src/antv/Features/Features.module.less → dist/slots/Features/index.module.less} +34 -3
  92. package/dist/slots/Footer/index.d.ts +18 -0
  93. package/dist/slots/Footer/index.js +188 -0
  94. package/dist/slots/Footer/index.module.less +86 -0
  95. package/dist/slots/Header/Logo.d.ts +7 -0
  96. package/{es/antv → dist/slots}/Header/Logo.js +6 -2
  97. package/dist/slots/Header/LogoWhite.d.ts +7 -0
  98. package/dist/slots/Header/LogoWhite.js +19 -0
  99. package/dist/slots/Header/Navs.d.ts +26 -0
  100. package/dist/slots/Header/Navs.js +63 -0
  101. package/dist/slots/Header/Products/NavigatorBanner.d.ts +10 -0
  102. package/dist/slots/Header/Products/NavigatorBanner.js +34 -0
  103. package/dist/slots/Header/Products/NavigatorBanner.module.less +39 -0
  104. package/{es/antv → dist/slots/Header}/Products/Product.d.ts +3 -3
  105. package/{es/antv → dist/slots/Header}/Products/Product.js +11 -16
  106. package/{src/antv → dist/slots/Header}/Products/Product.module.less +10 -8
  107. package/{es/antv → dist/slots/Header}/Products/getProducts.d.ts +2 -7
  108. package/dist/slots/Header/Products/getProducts.js +67 -0
  109. package/dist/slots/Header/Products/index.d.ts +9 -0
  110. package/{es/antv → dist/slots/Header}/Products/index.js +15 -22
  111. package/dist/slots/Header/Search.d.ts +12 -0
  112. package/dist/slots/Header/Search.js +90 -0
  113. package/dist/slots/Header/Search.module.less +39 -0
  114. package/dist/slots/Header/index.d.ts +66 -0
  115. package/dist/slots/Header/index.js +380 -0
  116. package/dist/slots/Header/index.module.less +382 -0
  117. package/dist/slots/Header/utils.d.ts +1 -0
  118. package/dist/slots/Header/utils.js +26 -0
  119. package/dist/slots/Loading/index.d.ts +7 -0
  120. package/dist/slots/Loading/index.js +79 -0
  121. package/dist/slots/Loading/index.module.less +279 -0
  122. package/dist/slots/ManualContent/NavigatorBanner.d.ts +9 -0
  123. package/dist/slots/ManualContent/NavigatorBanner.js +36 -0
  124. package/dist/slots/ManualContent/NavigatorBanner.module.less +39 -0
  125. package/dist/slots/ManualContent/ReadingTime.d.ts +3 -0
  126. package/dist/slots/ManualContent/ReadingTime.js +10 -0
  127. package/dist/slots/ManualContent/index.d.ts +9 -0
  128. package/dist/slots/ManualContent/index.js +344 -0
  129. package/dist/slots/ManualContent/index.module.less +668 -0
  130. package/dist/slots/ManualContent/utils.d.ts +3 -0
  131. package/dist/slots/ManualContent/utils.js +35 -0
  132. package/dist/slots/SEO.d.ts +10 -0
  133. package/dist/slots/SEO.js +59 -0
  134. package/dist/slots/TOC.d.ts +5 -0
  135. package/dist/slots/TOC.js +6 -0
  136. package/dist/slots/_.less +83 -0
  137. package/dist/slots/global.d.ts +1 -0
  138. package/dist/slots/global.js +7 -0
  139. package/dist/slots/hooks.d.ts +16 -0
  140. package/{es/antv → dist/slots}/hooks.js +60 -37
  141. package/dist/slots/utils.d.ts +5 -0
  142. package/dist/slots/utils.js +112 -0
  143. package/dist/types.d.ts +86 -0
  144. package/dist/types.js +1 -0
  145. package/dist/typings.d.ts +24 -0
  146. package/package.json +110 -47
  147. package/es/antv/404/index.d.ts +0 -2
  148. package/es/antv/Banner/Banner.module.less +0 -412
  149. package/es/antv/Banner/Notification.d.ts +0 -10
  150. package/es/antv/Banner/Notification.module.less +0 -108
  151. package/es/antv/Banner/index.d.ts +0 -25
  152. package/es/antv/Banner/index.js +0 -104
  153. package/es/antv/Cases/Cases.module.less +0 -203
  154. package/es/antv/Features/FeatureCard.module.less +0 -51
  155. package/es/antv/Features/Features.module.less +0 -169
  156. package/es/antv/Footer/Footer.module.less +0 -36
  157. package/es/antv/Footer/index.d.ts +0 -12
  158. package/es/antv/Footer/index.js +0 -237
  159. package/es/antv/Header/Logo.d.ts +0 -4
  160. package/es/antv/Products/Product.module.less +0 -146
  161. package/es/antv/Products/getNewProducts.d.ts +0 -24
  162. package/es/antv/Products/getNewProducts.js +0 -35
  163. package/es/antv/Products/getProducts.js +0 -460
  164. package/es/antv/Products/index.d.ts +0 -9
  165. package/es/antv/hooks.d.ts +0 -14
  166. package/es/antv/mixins.less +0 -21
  167. package/es/antv/utils.d.ts +0 -5
  168. package/es/antv/utils.js +0 -49
  169. package/es/builtins/API.d.ts +0 -3
  170. package/es/builtins/API.js +0 -37
  171. package/es/builtins/Alert.d.ts +0 -3
  172. package/es/builtins/Alert.js +0 -7
  173. package/es/builtins/Alert.less +0 -62
  174. package/es/builtins/Badge.d.ts +0 -3
  175. package/es/builtins/Badge.js +0 -7
  176. package/es/builtins/Badge.less +0 -31
  177. package/es/builtins/Example.d.ts +0 -5
  178. package/es/builtins/Example.less +0 -47
  179. package/es/builtins/Previewer.d.ts +0 -39
  180. package/es/builtins/Previewer.js +0 -225
  181. package/es/builtins/Previewer.less +0 -406
  182. package/es/builtins/SourceCode.d.ts +0 -10
  183. package/es/builtins/SourceCode.js +0 -70
  184. package/es/builtins/SourceCode.less +0 -103
  185. package/es/builtins/Table.d.ts +0 -4
  186. package/es/builtins/Table.js +0 -56
  187. package/es/builtins/Table.less +0 -43
  188. package/es/builtins/Tree.d.ts +0 -4
  189. package/es/builtins/Tree.js +0 -213
  190. package/es/builtins/Tree.less +0 -159
  191. package/es/components/Dark.d.ts +0 -9
  192. package/es/components/Dark.js +0 -125
  193. package/es/components/Dark.less +0 -121
  194. package/es/components/LocaleSelect.d.ts +0 -6
  195. package/es/components/LocaleSelect.js +0 -53
  196. package/es/components/LocaleSelect.less +0 -59
  197. package/es/components/Navbar.d.ts +0 -10
  198. package/es/components/Navbar.js +0 -155
  199. package/es/components/Navbar.less +0 -180
  200. package/es/components/SearchBar.d.ts +0 -4
  201. package/es/components/SearchBar.js +0 -81
  202. package/es/components/SearchBar.less +0 -165
  203. package/es/components/SideMenu.d.ts +0 -10
  204. package/es/components/SideMenu.js +0 -99
  205. package/es/components/SideMenu.less +0 -379
  206. package/es/components/SlugList.d.ts +0 -7
  207. package/es/components/SlugList.js +0 -38
  208. package/es/components/SlugList.less +0 -18
  209. package/es/declaration.d.ts +0 -1
  210. package/es/layout.d.ts +0 -5
  211. package/es/layout.js +0 -276
  212. package/es/style/layout.less +0 -402
  213. package/es/style/markdown.less +0 -240
  214. package/es/style/variables.less +0 -37
  215. package/src/antv/404/index.tsx +0 -25
  216. package/src/antv/Banner/Notification.tsx +0 -45
  217. package/src/antv/Banner/index.tsx +0 -139
  218. package/src/antv/Cases/Cases.tsx +0 -116
  219. package/src/antv/Features/FeatureCard.tsx +0 -24
  220. package/src/antv/Features/index.tsx +0 -86
  221. package/src/antv/Footer/Footer.module.less +0 -36
  222. package/src/antv/Footer/index.tsx +0 -272
  223. package/src/antv/Header/Logo.tsx +0 -85
  224. package/src/antv/Products/Product.tsx +0 -80
  225. package/src/antv/Products/getNewProducts.tsx +0 -53
  226. package/src/antv/Products/getProducts.tsx +0 -626
  227. package/src/antv/Products/index.tsx +0 -70
  228. package/src/antv/hooks.ts +0 -87
  229. package/src/antv/mixins.less +0 -21
  230. package/src/antv/utils.ts +0 -44
  231. package/src/builtins/API.tsx +0 -57
  232. package/src/builtins/Alert.less +0 -62
  233. package/src/builtins/Alert.tsx +0 -4
  234. package/src/builtins/Badge.less +0 -31
  235. package/src/builtins/Badge.tsx +0 -4
  236. package/src/builtins/Example.less +0 -47
  237. package/src/builtins/Example.tsx +0 -34
  238. package/src/builtins/Previewer.less +0 -406
  239. package/src/builtins/Previewer.tsx +0 -264
  240. package/src/builtins/SourceCode.less +0 -103
  241. package/src/builtins/SourceCode.tsx +0 -55
  242. package/src/builtins/Table.less +0 -43
  243. package/src/builtins/Table.tsx +0 -42
  244. package/src/builtins/Tree.less +0 -159
  245. package/src/builtins/Tree.tsx +0 -130
  246. package/src/components/Dark.less +0 -121
  247. package/src/components/Dark.tsx +0 -78
  248. package/src/components/LocaleSelect.less +0 -59
  249. package/src/components/LocaleSelect.tsx +0 -53
  250. package/src/components/Navbar.less +0 -180
  251. package/src/components/Navbar.tsx +0 -152
  252. package/src/components/SearchBar.less +0 -165
  253. package/src/components/SearchBar.tsx +0 -68
  254. package/src/components/SideMenu.less +0 -379
  255. package/src/components/SideMenu.tsx +0 -148
  256. package/src/components/SlugList.less +0 -18
  257. package/src/components/SlugList.tsx +0 -20
  258. package/src/declaration.d.ts +0 -1
  259. package/src/layout.tsx +0 -225
  260. package/src/style/layout.less +0 -402
  261. package/src/style/markdown.less +0 -240
  262. package/src/style/variables.less +0 -37
  263. package/src/test/SearchBar.test.ts +0 -32
  264. package/src/test/Table.test.tsx +0 -41
  265. package/src/test/index.test.tsx +0 -377
@@ -0,0 +1,382 @@
1
+ @import '../_.less';
2
+
3
+ @nav-height: 64px;
4
+
5
+ .header {
6
+ background: #fff;
7
+ box-shadow: 0 2px 8px #f0f1f2;
8
+ padding: 0;
9
+ position: relative;
10
+ z-index: 200;
11
+ font-family: Avenir, @font-family;
12
+ transition: box-shadow 0.3s, background 0.3s;
13
+
14
+ &.transparent {
15
+ background: transparent;
16
+ box-shadow: none;
17
+ }
18
+
19
+ &.fixed {
20
+ position: fixed;
21
+ left: 0;
22
+ top: 0;
23
+ width: 100%;
24
+ background: #fff;
25
+ }
26
+
27
+ .container {
28
+ max-width: calc(100% - 80px);
29
+ margin: auto;
30
+ display: flex;
31
+ justify-content: space-between;
32
+ align-items: center;
33
+ height: @nav-height;
34
+ line-height: @nav-height;
35
+ }
36
+
37
+ &.isHomePage {
38
+ margin-bottom: -@nav-height;
39
+
40
+ .container {
41
+ .container1440;
42
+ }
43
+ }
44
+
45
+ &.lightTheme {
46
+ margin-bottom: -@nav-height;
47
+
48
+ nav {
49
+
50
+ a,
51
+ span,
52
+ .versions {
53
+ color: rgba(255, 255, 255, 0.8) !important;
54
+
55
+ &:hover {
56
+ color: rgba(255, 255, 255, 1) !important;
57
+ }
58
+ }
59
+
60
+ .translation {
61
+ fill: rgba(255, 255, 255, 0.8) !important;
62
+
63
+ &:hover {
64
+ fill: rgba(255, 255, 255, 1) !important;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ .left {
71
+ display: flex;
72
+ align-items: center;
73
+ height: 100%;
74
+
75
+ h1 {
76
+ margin: 0;
77
+ height: 100%;
78
+
79
+ a {
80
+ display: block;
81
+ height: 100%;
82
+
83
+ svg {
84
+ display: inline-block;
85
+ vertical-align: middle;
86
+ position: relative;
87
+ top: -1.5px;
88
+ }
89
+
90
+ img {
91
+ height: 30px;
92
+ position: relative;
93
+ top: -1.5px;
94
+ }
95
+ }
96
+ }
97
+
98
+ .divider {
99
+ width: 1px;
100
+ height: 24px;
101
+ background-color: #ccc;
102
+ display: inline-block;
103
+ margin: 0 20px;
104
+ transition: all 0.3s;
105
+ }
106
+
107
+ .subProduceName {
108
+ margin: 0;
109
+ white-space: nowrap;
110
+ font-size: 18px;
111
+
112
+ a {
113
+ color: rgba(0, 0, 0, 0.85);
114
+ transition: all 0.3s;
115
+
116
+ &:hover {
117
+ color: rgba(0, 0, 0, 1);
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .nav {
124
+ display: flex;
125
+ align-items: center;
126
+ overflow: hidden;
127
+
128
+ .menu {
129
+ font-weight: normal;
130
+ color: #697b8c;
131
+ margin: 0;
132
+ padding: 0;
133
+ list-style: none;
134
+ white-space: nowrap;
135
+
136
+ li {
137
+ display: inline-block;
138
+ margin-right: 28px;
139
+ transition: box-shadow 0.3s;
140
+ box-shadow: 0 2px 0 transparent inset;
141
+
142
+ &.activeItem {
143
+ box-shadow: 0 2px 0 @primary-color inset;
144
+
145
+ a {
146
+ color: @primary-color;
147
+ }
148
+ }
149
+
150
+ a {
151
+ color: #697b8c;
152
+ transition: all 0.3s;
153
+ display: block;
154
+
155
+ &:hover {
156
+ color: @primary-color;
157
+ }
158
+ }
159
+
160
+ &:last-child {
161
+ margin-right: 0;
162
+ }
163
+ }
164
+
165
+ .ecoSystems {
166
+ cursor: pointer;
167
+ transition: all 0.3s;
168
+
169
+ svg {
170
+ opacity: 0.3;
171
+ }
172
+
173
+ &:hover {
174
+ & {
175
+ color: @primary-color;
176
+ }
177
+
178
+ svg {
179
+ color: #697b8c;
180
+ opacity: 0.5;
181
+ }
182
+ }
183
+ }
184
+
185
+ .githubCorner {
186
+ i {
187
+ font-size: 20px;
188
+ position: relative;
189
+ top: 2px;
190
+ }
191
+ }
192
+
193
+ .githubStar {
194
+ &::after {
195
+ display: block;
196
+ content: '';
197
+ clear: both;
198
+ }
199
+
200
+ >span {
201
+ float: left;
202
+ height: 28px;
203
+ transition: all 0.3s;
204
+ }
205
+ }
206
+
207
+ .translation {
208
+ fill: #697b8c;
209
+ width: 20px;
210
+ cursor: pointer;
211
+ display: inline-block;
212
+ vertical-align: middle;
213
+ position: relative;
214
+ top: -1px;
215
+
216
+ .translationIcon {
217
+ font-size: 20px;
218
+ }
219
+
220
+ &:hover {
221
+ fill: @primary-color;
222
+ }
223
+ }
224
+
225
+ .versions {
226
+ color: #697b8c;
227
+ margin-right: -16px;
228
+ transition: all 0.3s;
229
+
230
+ :global {
231
+ .ant-select-arrow {
232
+ transition: all 0.3s;
233
+ font-size: 10px;
234
+ }
235
+ }
236
+
237
+ &:hover {
238
+ color: @primary-color;
239
+
240
+ :global .ant-select-arrow {
241
+ color: rgba(0, 0, 0, 0.5);
242
+ }
243
+ }
244
+ }
245
+
246
+ .arrow {
247
+ width: 14px;
248
+ margin-left: 2px;
249
+ position: relative;
250
+ top: -2px;
251
+ transition: all 0.3s;
252
+
253
+ &.open {
254
+ transform: rotate(180deg);
255
+ }
256
+ }
257
+
258
+ &.popup {
259
+ position: fixed;
260
+ top: 64px;
261
+ left: 0;
262
+ right: 0;
263
+ background: #fff;
264
+ padding: 8px 0;
265
+ text-align: center;
266
+ transition: all 0.3s;
267
+ height: calc(100vh - 64px);
268
+ overflow: auto;
269
+ opacity: 1;
270
+
271
+ li {
272
+ display: block;
273
+ line-height: 64px;
274
+ margin-right: 0;
275
+ font-size: 16px;
276
+
277
+ &.activeItem {
278
+ box-shadow: none;
279
+ background: tint(@primary-color, 90%);
280
+
281
+ a {
282
+ color: @primary-color;
283
+ }
284
+ }
285
+
286
+ .productsMenu {
287
+ position: static !important;
288
+ text-align: left;
289
+ max-height: none;
290
+ height: 0;
291
+
292
+ // hide mask
293
+ +div {
294
+ display: none;
295
+ }
296
+ }
297
+ }
298
+
299
+ &.popupHidden {
300
+ height: 0;
301
+ opacity: 0;
302
+ overflow: hidden;
303
+ transition: all 0.3s;
304
+ }
305
+ }
306
+ }
307
+
308
+ .menuIcon {
309
+ font-size: 24px;
310
+ cursor: pointer;
311
+ color: #666;
312
+ padding: 0 8px;
313
+ transition: all 0.3s;
314
+
315
+ &:hover {
316
+ color: #222;
317
+ }
318
+ }
319
+ }
320
+ }
321
+
322
+ .remindHref {
323
+ margin: 0px 6px 0px 5px;
324
+ }
325
+
326
+ .modalContent {
327
+ padding: 16px;
328
+ }
329
+
330
+ @media only screen and (max-width: 1024px) {
331
+ .header {
332
+ .nav {
333
+ .menu {
334
+ li {
335
+ margin-right: 24px;
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+
342
+ @media only screen and (max-width: 931.99px) {
343
+ .header {
344
+ .nav {
345
+ .menu {
346
+ li {
347
+ margin-right: 16px;
348
+ }
349
+ }
350
+ }
351
+
352
+ .left {
353
+ .divider {
354
+ margin: 0 12px;
355
+ }
356
+
357
+ .subProduceName {
358
+ font-size: 16px;
359
+ margin-right: 8px;
360
+ }
361
+ }
362
+
363
+ .container {
364
+ max-width: calc(100% - 60px);
365
+ }
366
+ }
367
+ }
368
+
369
+ @media only screen and (max-width: 767.99px) {
370
+ .header {
371
+ .container {
372
+ max-width: calc(100% - 32px);
373
+ }
374
+
375
+ .menu {
376
+ opacity: 0;
377
+ height: 0;
378
+ overflow: hidden;
379
+ position: fixed;
380
+ }
381
+ }
382
+ }
@@ -0,0 +1 @@
1
+ export declare function getLangUrl(url: string, lang: string): string;
@@ -0,0 +1,26 @@
1
+ import URI from 'uri-parse';
2
+ /*
3
+ * parse url like this
4
+ *
5
+ * schema://username:password@host:port/path?key=value#fragment;key=value
6
+ * \____/ \______/ \______/ \__/ \__/ \__/ \_______/ \______/ \______/
7
+ * | | | | | | | | |
8
+ * schema | password | port | query fragment |
9
+ * username host path extension
10
+ *
11
+ * note:
12
+ * - username, password, port, path, query, fragment, extension is optional.
13
+ * - scheme, host must be setting.
14
+ * - username and password must be paired.
15
+ */
16
+
17
+ export function getLangUrl(url, lang) {
18
+ var uri = new URI(url);
19
+
20
+ if (uri.path.startsWith('en') || uri.path.startsWith('zh')) {
21
+ uri.path = uri.path.slice(3);
22
+ }
23
+
24
+ uri.path = lang === 'en' ? "en/".concat(uri.path) : uri.path;
25
+ return uri.toURI();
26
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * Loading
4
+ */
5
+ declare const Loading: React.FC;
6
+ declare const PageLoading: React.FC;
7
+ export { Loading, PageLoading };
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import styles from "./index.module.less";
3
+ /**
4
+ * Loading
5
+ */
6
+
7
+ var Loading = function Loading() {
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ style: {
10
+ position: 'relative',
11
+ height: '100%',
12
+ width: '100%'
13
+ }
14
+ }, /*#__PURE__*/React.createElement("div", {
15
+ className: styles.loading
16
+ }, /*#__PURE__*/React.createElement("div", {
17
+ className: "container"
18
+ }, /*#__PURE__*/React.createElement("div", {
19
+ className: "loader"
20
+ }, /*#__PURE__*/React.createElement("svg", {
21
+ viewBox: "0 0 80 80"
22
+ }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
23
+ id: "gradient",
24
+ x1: ".004%",
25
+ x2: "100.131%",
26
+ y1: "49.993%",
27
+ y2: "49.993%"
28
+ }, /*#__PURE__*/React.createElement("stop", {
29
+ offset: "0%",
30
+ stopColor: "#6500FF"
31
+ }), /*#__PURE__*/React.createElement("stop", {
32
+ offset: "16%",
33
+ stopColor: "#6A09FF"
34
+ }), /*#__PURE__*/React.createElement("stop", {
35
+ offset: "43%",
36
+ stopColor: "#7623FF"
37
+ }), /*#__PURE__*/React.createElement("stop", {
38
+ offset: "77%",
39
+ stopColor: "#8A4CFF"
40
+ }), /*#__PURE__*/React.createElement("stop", {
41
+ offset: "99%",
42
+ stopColor: "#996BFF"
43
+ }))), /*#__PURE__*/React.createElement("circle", {
44
+ id: "test",
45
+ cx: "40",
46
+ cy: "40",
47
+ r: "32",
48
+ stroke: "url(#gradient)"
49
+ }))), /*#__PURE__*/React.createElement("div", {
50
+ className: "loader triangle"
51
+ }, /*#__PURE__*/React.createElement("svg", {
52
+ viewBox: "0 0 86 80"
53
+ }, /*#__PURE__*/React.createElement("polygon", {
54
+ points: "43 8 79 72 7 72",
55
+ stroke: "url(#gradient)"
56
+ }))), /*#__PURE__*/React.createElement("div", {
57
+ className: "loader"
58
+ }, /*#__PURE__*/React.createElement("svg", {
59
+ viewBox: "0 0 80 80"
60
+ }, /*#__PURE__*/React.createElement("rect", {
61
+ x: "8",
62
+ y: "8",
63
+ width: "64",
64
+ height: "64",
65
+ stroke: "url(#gradient)"
66
+ }))), /*#__PURE__*/React.createElement("div", {
67
+ className: "loading-text"
68
+ }, /*#__PURE__*/React.createElement("p", null, "Loading...")))));
69
+ };
70
+
71
+ var PageLoading = function PageLoading() {
72
+ return /*#__PURE__*/React.createElement("div", {
73
+ style: {
74
+ height: '100vh'
75
+ }
76
+ }, /*#__PURE__*/React.createElement(Loading, null));
77
+ };
78
+
79
+ export { Loading, PageLoading };