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

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 (258) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -33
  3. package/dist/builtins/Playground/index.d.ts +24 -0
  4. package/{es/builtins/Example.js → dist/builtins/Playground/index.js} +40 -33
  5. package/dist/builtins/Playground/index.module.less +15 -0
  6. package/dist/context.d.ts +5 -0
  7. package/dist/context.js +2 -0
  8. package/dist/layouts/DocLayout.d.ts +7 -0
  9. package/dist/layouts/DocLayout.js +38 -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 +71 -0
  14. package/dist/layouts/entry/Manual.d.ts +8 -0
  15. package/dist/layouts/entry/Manual.js +14 -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 +14 -0
  20. package/dist/pages/Example/index.d.ts +6 -0
  21. package/dist/pages/Example/index.js +139 -0
  22. package/dist/pages/Example/index.module.less +40 -0
  23. package/dist/pages/Examples/components/Accouncement/index.d.ts +6 -0
  24. package/dist/pages/Examples/components/Accouncement/index.js +60 -0
  25. package/dist/pages/Examples/components/Accouncement/index.module.less +9 -0
  26. package/dist/pages/Examples/components/Article/index.d.ts +2 -0
  27. package/dist/pages/Examples/components/Article/index.js +8 -0
  28. package/dist/pages/Examples/components/Article/index.module.less +2 -0
  29. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.d.ts +10 -0
  30. package/dist/pages/Examples/components/ExampleTopicMenu/components/LeftMenu/index.js +74 -0
  31. package/dist/pages/Examples/components/ExampleTopicMenu/index.d.ts +9 -0
  32. package/{es/builtins/Table.js → dist/pages/Examples/components/ExampleTopicMenu/index.js} +47 -41
  33. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.d.ts +10 -0
  34. package/dist/pages/Examples/components/GalleryPageContent/DemoCard/index.js +33 -0
  35. package/dist/pages/Examples/components/GalleryPageContent/index.d.ts +10 -0
  36. package/dist/pages/Examples/components/GalleryPageContent/index.js +81 -0
  37. package/dist/pages/Examples/index.d.ts +8 -0
  38. package/dist/pages/Examples/index.js +75 -0
  39. package/dist/pages/Examples/index.module.less +605 -0
  40. package/dist/pages/Examples/types.d.ts +33 -0
  41. package/dist/pages/Examples/types.js +1 -0
  42. package/dist/plugin/examples.d.ts +7 -0
  43. package/dist/plugin/examples.js +83 -0
  44. package/dist/plugin/index.d.ts +3 -0
  45. package/dist/plugin/index.js +103 -0
  46. package/dist/slots/404.d.ts +2 -0
  47. package/{es/antv/404/index.js → dist/slots/404.js} +4 -9
  48. package/{es/antv/Cases/Cases.d.ts → dist/slots/Cases/index.d.ts} +4 -4
  49. package/{es/antv/Cases/Cases.js → dist/slots/Cases/index.js} +25 -25
  50. package/{src/antv/Cases/Cases.module.less → dist/slots/Cases/index.module.less} +36 -5
  51. package/dist/slots/CodeEditor/Toolbar.d.ts +67 -0
  52. package/dist/slots/CodeEditor/Toolbar.js +152 -0
  53. package/dist/slots/CodeEditor/Toolbar.module.less +81 -0
  54. package/dist/slots/CodeEditor/index.d.ts +58 -0
  55. package/dist/slots/CodeEditor/index.js +200 -0
  56. package/dist/slots/CodeEditor/index.module.less +11 -0
  57. package/dist/slots/CodeEditor/utils.d.ts +42 -0
  58. package/dist/slots/CodeEditor/utils.js +157 -0
  59. package/dist/slots/CodePreview/CodeHeader.d.ts +19 -0
  60. package/dist/slots/CodePreview/CodeHeader.js +32 -0
  61. package/dist/slots/CodePreview/CodeHeader.module.less +0 -0
  62. package/dist/slots/CodePreview/index.d.ts +17 -0
  63. package/dist/slots/CodePreview/index.js +29 -0
  64. package/dist/slots/CodePreview/index.module.less +42 -0
  65. package/dist/slots/CodeRunner/index.d.ts +14 -0
  66. package/dist/slots/CodeRunner/index.js +76 -0
  67. package/dist/slots/CodeRunner/index.module.less +0 -0
  68. package/dist/slots/CodeRunner/utils.d.ts +10 -0
  69. package/dist/slots/CodeRunner/utils.js +36 -0
  70. package/dist/slots/Companies/index.d.ts +13 -0
  71. package/dist/slots/Companies/index.js +49 -0
  72. package/dist/slots/Companies/index.module.less +82 -0
  73. package/dist/slots/Detail/News.d.ts +9 -0
  74. package/{es/antv/Banner/Notification.js → dist/slots/Detail/News.js} +8 -11
  75. package/{src/antv/Banner/Notification.module.less → dist/slots/Detail/News.module.less} +15 -3
  76. package/dist/slots/Detail/index.d.ts +26 -0
  77. package/dist/slots/Detail/index.js +124 -0
  78. package/{src/antv/Banner/Banner.module.less → dist/slots/Detail/index.module.less} +42 -74
  79. package/dist/slots/ExampleSider/index.d.ts +55 -0
  80. package/dist/slots/ExampleSider/index.js +218 -0
  81. package/dist/slots/ExampleSider/index.module.less +141 -0
  82. package/{es/antv → dist/slots}/Features/FeatureCard.d.ts +1 -1
  83. package/{es/antv → dist/slots}/Features/FeatureCard.js +6 -6
  84. package/{src/antv → dist/slots}/Features/FeatureCard.module.less +8 -1
  85. package/{es/antv → dist/slots}/Features/index.d.ts +2 -2
  86. package/{es/antv → dist/slots}/Features/index.js +17 -25
  87. package/{src/antv/Features/Features.module.less → dist/slots/Features/index.module.less} +34 -3
  88. package/dist/slots/Footer/index.d.ts +18 -0
  89. package/dist/slots/Footer/index.js +187 -0
  90. package/dist/slots/Footer/index.module.less +85 -0
  91. package/dist/slots/Header/Logo.d.ts +7 -0
  92. package/{es/antv → dist/slots}/Header/Logo.js +6 -2
  93. package/dist/slots/Header/LogoWhite.d.ts +7 -0
  94. package/dist/slots/Header/LogoWhite.js +19 -0
  95. package/dist/slots/Header/Navs.d.ts +17 -0
  96. package/dist/slots/Header/Navs.js +46 -0
  97. package/dist/slots/Header/Products/NavigatorBanner.d.ts +10 -0
  98. package/dist/slots/Header/Products/NavigatorBanner.js +34 -0
  99. package/dist/slots/Header/Products/NavigatorBanner.module.less +39 -0
  100. package/{es/antv → dist/slots/Header}/Products/Product.d.ts +3 -3
  101. package/{es/antv → dist/slots/Header}/Products/Product.js +11 -16
  102. package/{src/antv → dist/slots/Header}/Products/Product.module.less +10 -8
  103. package/{es/antv → dist/slots/Header}/Products/getProducts.d.ts +2 -7
  104. package/dist/slots/Header/Products/getProducts.js +67 -0
  105. package/dist/slots/Header/Products/index.d.ts +9 -0
  106. package/{es/antv → dist/slots/Header}/Products/index.js +15 -22
  107. package/dist/slots/Header/Search.d.ts +12 -0
  108. package/dist/slots/Header/Search.js +90 -0
  109. package/dist/slots/Header/Search.module.less +39 -0
  110. package/dist/slots/Header/index.d.ts +66 -0
  111. package/dist/slots/Header/index.js +379 -0
  112. package/dist/slots/Header/index.module.less +382 -0
  113. package/dist/slots/Header/utils.d.ts +1 -0
  114. package/dist/slots/Header/utils.js +26 -0
  115. package/dist/slots/Loading/index.d.ts +2 -0
  116. package/dist/slots/Loading/index.js +65 -0
  117. package/dist/slots/Loading/index.module.less +12 -0
  118. package/dist/slots/Loading.d.ts +5 -0
  119. package/dist/slots/Loading.js +8 -0
  120. package/dist/slots/ManualContent/NavigatorBanner.d.ts +9 -0
  121. package/dist/slots/ManualContent/NavigatorBanner.js +36 -0
  122. package/dist/slots/ManualContent/NavigatorBanner.module.less +39 -0
  123. package/dist/slots/ManualContent/ReadingTime.d.ts +3 -0
  124. package/dist/slots/ManualContent/ReadingTime.js +10 -0
  125. package/dist/slots/ManualContent/index.d.ts +9 -0
  126. package/dist/slots/ManualContent/index.js +321 -0
  127. package/dist/slots/ManualContent/index.module.less +656 -0
  128. package/dist/slots/TOC.d.ts +5 -0
  129. package/dist/slots/TOC.js +6 -0
  130. package/dist/slots/_.less +83 -0
  131. package/dist/slots/global.d.ts +1 -0
  132. package/dist/slots/global.js +7 -0
  133. package/dist/slots/hooks.d.ts +16 -0
  134. package/{es/antv → dist/slots}/hooks.js +60 -37
  135. package/dist/slots/utils.d.ts +20 -0
  136. package/dist/slots/utils.js +154 -0
  137. package/dist/types.d.ts +3 -0
  138. package/dist/types.js +1 -0
  139. package/dist/typings.d.ts +137 -0
  140. package/package.json +108 -47
  141. package/es/antv/404/index.d.ts +0 -2
  142. package/es/antv/Banner/Banner.module.less +0 -412
  143. package/es/antv/Banner/Notification.d.ts +0 -10
  144. package/es/antv/Banner/Notification.module.less +0 -108
  145. package/es/antv/Banner/index.d.ts +0 -25
  146. package/es/antv/Banner/index.js +0 -104
  147. package/es/antv/Cases/Cases.module.less +0 -203
  148. package/es/antv/Features/FeatureCard.module.less +0 -51
  149. package/es/antv/Features/Features.module.less +0 -169
  150. package/es/antv/Footer/Footer.module.less +0 -36
  151. package/es/antv/Footer/index.d.ts +0 -12
  152. package/es/antv/Footer/index.js +0 -237
  153. package/es/antv/Header/Logo.d.ts +0 -4
  154. package/es/antv/Products/Product.module.less +0 -146
  155. package/es/antv/Products/getNewProducts.d.ts +0 -24
  156. package/es/antv/Products/getNewProducts.js +0 -35
  157. package/es/antv/Products/getProducts.js +0 -460
  158. package/es/antv/Products/index.d.ts +0 -9
  159. package/es/antv/hooks.d.ts +0 -14
  160. package/es/antv/mixins.less +0 -21
  161. package/es/antv/utils.d.ts +0 -5
  162. package/es/antv/utils.js +0 -49
  163. package/es/builtins/API.d.ts +0 -3
  164. package/es/builtins/API.js +0 -37
  165. package/es/builtins/Alert.d.ts +0 -3
  166. package/es/builtins/Alert.js +0 -7
  167. package/es/builtins/Alert.less +0 -62
  168. package/es/builtins/Badge.d.ts +0 -3
  169. package/es/builtins/Badge.js +0 -7
  170. package/es/builtins/Badge.less +0 -31
  171. package/es/builtins/Example.d.ts +0 -5
  172. package/es/builtins/Example.less +0 -47
  173. package/es/builtins/Previewer.d.ts +0 -39
  174. package/es/builtins/Previewer.js +0 -225
  175. package/es/builtins/Previewer.less +0 -406
  176. package/es/builtins/SourceCode.d.ts +0 -10
  177. package/es/builtins/SourceCode.js +0 -70
  178. package/es/builtins/SourceCode.less +0 -103
  179. package/es/builtins/Table.d.ts +0 -4
  180. package/es/builtins/Table.less +0 -43
  181. package/es/builtins/Tree.d.ts +0 -4
  182. package/es/builtins/Tree.js +0 -213
  183. package/es/builtins/Tree.less +0 -159
  184. package/es/components/Dark.d.ts +0 -9
  185. package/es/components/Dark.js +0 -125
  186. package/es/components/Dark.less +0 -121
  187. package/es/components/LocaleSelect.d.ts +0 -6
  188. package/es/components/LocaleSelect.js +0 -53
  189. package/es/components/LocaleSelect.less +0 -59
  190. package/es/components/Navbar.d.ts +0 -10
  191. package/es/components/Navbar.js +0 -155
  192. package/es/components/Navbar.less +0 -180
  193. package/es/components/SearchBar.d.ts +0 -4
  194. package/es/components/SearchBar.js +0 -81
  195. package/es/components/SearchBar.less +0 -165
  196. package/es/components/SideMenu.d.ts +0 -10
  197. package/es/components/SideMenu.js +0 -99
  198. package/es/components/SideMenu.less +0 -379
  199. package/es/components/SlugList.d.ts +0 -7
  200. package/es/components/SlugList.js +0 -38
  201. package/es/components/SlugList.less +0 -18
  202. package/es/declaration.d.ts +0 -1
  203. package/es/layout.d.ts +0 -5
  204. package/es/layout.js +0 -276
  205. package/es/style/layout.less +0 -402
  206. package/es/style/markdown.less +0 -240
  207. package/es/style/variables.less +0 -37
  208. package/src/antv/404/index.tsx +0 -25
  209. package/src/antv/Banner/Notification.tsx +0 -45
  210. package/src/antv/Banner/index.tsx +0 -139
  211. package/src/antv/Cases/Cases.tsx +0 -116
  212. package/src/antv/Features/FeatureCard.tsx +0 -24
  213. package/src/antv/Features/index.tsx +0 -86
  214. package/src/antv/Footer/Footer.module.less +0 -36
  215. package/src/antv/Footer/index.tsx +0 -272
  216. package/src/antv/Header/Logo.tsx +0 -85
  217. package/src/antv/Products/Product.tsx +0 -80
  218. package/src/antv/Products/getNewProducts.tsx +0 -53
  219. package/src/antv/Products/getProducts.tsx +0 -626
  220. package/src/antv/Products/index.tsx +0 -70
  221. package/src/antv/hooks.ts +0 -87
  222. package/src/antv/mixins.less +0 -21
  223. package/src/antv/utils.ts +0 -44
  224. package/src/builtins/API.tsx +0 -57
  225. package/src/builtins/Alert.less +0 -62
  226. package/src/builtins/Alert.tsx +0 -4
  227. package/src/builtins/Badge.less +0 -31
  228. package/src/builtins/Badge.tsx +0 -4
  229. package/src/builtins/Example.less +0 -47
  230. package/src/builtins/Example.tsx +0 -34
  231. package/src/builtins/Previewer.less +0 -406
  232. package/src/builtins/Previewer.tsx +0 -264
  233. package/src/builtins/SourceCode.less +0 -103
  234. package/src/builtins/SourceCode.tsx +0 -55
  235. package/src/builtins/Table.less +0 -43
  236. package/src/builtins/Table.tsx +0 -42
  237. package/src/builtins/Tree.less +0 -159
  238. package/src/builtins/Tree.tsx +0 -130
  239. package/src/components/Dark.less +0 -121
  240. package/src/components/Dark.tsx +0 -78
  241. package/src/components/LocaleSelect.less +0 -59
  242. package/src/components/LocaleSelect.tsx +0 -53
  243. package/src/components/Navbar.less +0 -180
  244. package/src/components/Navbar.tsx +0 -152
  245. package/src/components/SearchBar.less +0 -165
  246. package/src/components/SearchBar.tsx +0 -68
  247. package/src/components/SideMenu.less +0 -379
  248. package/src/components/SideMenu.tsx +0 -148
  249. package/src/components/SlugList.less +0 -18
  250. package/src/components/SlugList.tsx +0 -20
  251. package/src/declaration.d.ts +0 -1
  252. package/src/layout.tsx +0 -225
  253. package/src/style/layout.less +0 -402
  254. package/src/style/markdown.less +0 -240
  255. package/src/style/variables.less +0 -37
  256. package/src/test/SearchBar.test.ts +0 -32
  257. package/src/test/Table.test.tsx +0 -41
  258. package/src/test/index.test.tsx +0 -377
@@ -1,460 +0,0 @@
1
- import { AreaChartOutlined, DingdingOutlined, GithubOutlined, HistoryOutlined, HomeOutlined, PieChartOutlined, ReadOutlined, YuqueOutlined } from "@ant-design/icons";
2
- import { each } from "lodash";
3
- import React from "react";
4
- import { getChinaMirrorHost } from "../utils";
5
-
6
- var tuple = function tuple() {
7
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8
- args[_key] = arguments[_key];
9
- }
10
-
11
- return args;
12
- };
13
-
14
- var Categories = tuple("basic", "extension", "ecology");
15
- var Link = tuple("home", "example", "api");
16
- var ANTV_DOMAIN = "antv.vision";
17
- export var getProducts = function getProducts(_ref) {
18
- var t = _ref.t,
19
- language = _ref.language,
20
- _ref$isChinaMirrorHos = _ref.isChinaMirrorHost,
21
- isChinaMirrorHost = _ref$isChinaMirrorHos === void 0 ? false : _ref$isChinaMirrorHos;
22
- var hosts = {};
23
- ["g2", "g2plot", "g6", "l7", "f2", "f2native", "graphin", "g", "x6", "ava"].forEach(function (name) {
24
- hosts[name] = isChinaMirrorHost ? getChinaMirrorHost("".concat(name, ".").concat(ANTV_DOMAIN)) : "".concat(name, ".").concat(ANTV_DOMAIN);
25
- });
26
- var products = [{
27
- title: "G2",
28
- icon: "https://gw.alipayobjects.com/zos/antfincdn/trEfLRh5pc/G2%252520keshihuatuxingyufa.svg",
29
- slogan: t("可视化引擎"),
30
- description: t("数据驱动,高度易用,可扩展的可视化图形语法。"),
31
- category: Categories[0],
32
- links: [{
33
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
34
- title: t("产品首页"),
35
- url: "https://".concat(hosts.g2, "/").concat(language)
36
- }, {
37
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
38
- title: t("图表示例"),
39
- url: "https://".concat(hosts.g2, "/").concat(language, "/examples")
40
- }, {
41
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
42
- title: t("使用文档"),
43
- url: "https://".concat(hosts.g2, "/").concat(language, "/docs/manual")
44
- }, {
45
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
46
- title: t("API 文档"),
47
- url: "https://".concat(hosts.g2, "/").concat(language, "/docs/api")
48
- }, {
49
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
50
- title: t("更新日志"),
51
- url: "https://github.com/antvis/g2/blob/master/CHANGELOG.md",
52
- openExternal: true
53
- }, {
54
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
55
- title: t("GitHub 仓库"),
56
- url: "https://github.com/antvis/g2",
57
- openExternal: true
58
- }, {
59
- icon: "🇨🇳",
60
- title: t("国内镜像"),
61
- url: "https://antv-g2.gitee.io",
62
- openExternal: true
63
- }]
64
- }, {
65
- title: "F2",
66
- icon: "https://gw.alipayobjects.com/zos/antfincdn/D%26fDbWqVkv/F2%252520yidongduankeshihuafangan.svg",
67
- slogan: t("移动可视化方案"),
68
- description: t("专注于移动端的可视化解决方案,兼容 H5/小程序/Weex 等多端环境"),
69
- category: Categories[0],
70
- links: [{
71
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
72
- title: t("产品首页"),
73
- url: "https://".concat(hosts.f2, "/").concat(language)
74
- }, {
75
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
76
- title: t("图表示例"),
77
- url: "https://".concat(hosts.f2, "/").concat(language, "/examples")
78
- }, {
79
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
80
- title: t("使用文档"),
81
- url: "https://".concat(hosts.f2, "/").concat(language, "/docs/tutorial/getting-started")
82
- }, {
83
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
84
- title: t("API 文档"),
85
- url: "https://".concat(hosts.f2, "/").concat(language, "/docs/api")
86
- }, {
87
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
88
- title: t("更新日志"),
89
- url: "https://github.com/antvis/f2/blob/master/CHANGELOG.md",
90
- openExternal: true
91
- }, {
92
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
93
- title: t("GitHub 仓库"),
94
- url: "https://github.com/antvis/f2",
95
- openExternal: true
96
- }, {
97
- icon: "🇨🇳",
98
- title: t("国内镜像"),
99
- url: "https://antv-f2.gitee.io",
100
- openExternal: true
101
- }]
102
- }, {
103
- title: "G6",
104
- icon: "https://gw.alipayobjects.com/zos/antfincdn/zS1wZZJVcJ/G6%252520tukeshihuayinqing.svg",
105
- slogan: t("图可视化引擎"),
106
- description: t("便捷的关系数据可视化引擎与图分析工具。"),
107
- category: Categories[0],
108
- links: [{
109
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
110
- title: t("产品首页"),
111
- url: "https://".concat(hosts.g6, "/").concat(language)
112
- }, {
113
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
114
- title: t("图表示例"),
115
- url: "https://".concat(hosts.g6, "/").concat(language, "/examples")
116
- }, {
117
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
118
- title: t("使用文档"),
119
- url: "https://".concat(hosts.g6, "/").concat(language, "/docs/manual")
120
- }, {
121
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
122
- title: t("API 文档"),
123
- url: "https://".concat(hosts.g6, "/").concat(language, "/docs/api")
124
- }, {
125
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
126
- title: t("更新日志"),
127
- url: "https://github.com/antvis/g6/blob/master/CHANGELOG.md",
128
- openExternal: true
129
- }, {
130
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
131
- title: t("GitHub 仓库"),
132
- url: "https://github.com/antvis/g6",
133
- openExternal: true
134
- }, {
135
- icon: "🇨🇳",
136
- title: t("国内镜像"),
137
- url: "https://antv-g6.gitee.io",
138
- openExternal: true
139
- }]
140
- }, {
141
- title: "X6",
142
- icon: "https://gw.alipayobjects.com/zos/bmw-prod/1d5e84d0-d153-4648-81c0-397b3d383d2c.svg",
143
- slogan: t("图编辑引擎"),
144
- description: t("极易定制、开箱即用、数据驱动的图编辑引擎"),
145
- category: Categories[0],
146
- links: [{
147
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
148
- title: t("产品首页"),
149
- url: "https://".concat(hosts.x6, "/").concat(language)
150
- }, {
151
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
152
- title: t("图表示例"),
153
- url: "https://".concat(hosts.x6, "/").concat(language, "/examples")
154
- }, {
155
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
156
- title: t("使用文档"),
157
- url: "https://".concat(hosts.x6, "/").concat(language, "/docs/tutorial/about/")
158
- }, {
159
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
160
- title: t("API 文档"),
161
- url: "https://".concat(hosts.x6, "/").concat(language, "/docs/api/graph/")
162
- }, {
163
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
164
- title: t("GitHub 仓库"),
165
- url: "https://github.com/antvis/x6",
166
- openExternal: true
167
- }, {
168
- icon: "🇨🇳",
169
- title: t("国内镜像"),
170
- url: "https://antv-x6.gitee.io",
171
- openExternal: true
172
- }]
173
- }, {
174
- title: "L7",
175
- icon: "https://gw.alipayobjects.com/zos/antfincdn/OI%26h7HXH33/L7%252520dilikongjianshujukeshihua.svg",
176
- slogan: t("地理空间数据可视化"),
177
- description: t("高性能/高渲染质量的地理空间数据可视化框架。"),
178
- category: Categories[0],
179
- links: [{
180
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
181
- title: t("产品首页"),
182
- url: "https://".concat(hosts.l7, "/").concat(language)
183
- }, {
184
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
185
- title: t("图表示例"),
186
- url: "https://".concat(hosts.l7, "/").concat(language, "/examples")
187
- }, {
188
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
189
- title: t("使用文档"),
190
- url: "https://".concat(hosts.l7, "/").concat(language, "/docs/tutorial")
191
- }, {
192
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
193
- title: t("API 文档"),
194
- url: "https://".concat(hosts.l7, "/").concat(language, "/docs/api/l7")
195
- }, {
196
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
197
- title: t("更新日志"),
198
- url: "https://github.com/antvis/L7/blob/master/CHANGELOG.md",
199
- openExternal: true
200
- }, {
201
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
202
- title: t("GitHub 仓库"),
203
- url: "https://github.com/antvis/L7",
204
- openExternal: true
205
- }, {
206
- icon: "🇨🇳",
207
- title: t("国内镜像"),
208
- url: "https://antv-l7.gitee.io",
209
- openExternal: true
210
- }]
211
- }, {
212
- title: "G2Plot",
213
- icon: "https://gw.alipayobjects.com/zos/antfincdn/SlbIagEvT7/G2plot.svg",
214
- slogan: t("开箱即用的图表库"),
215
- description: t("开箱即用、易于配置、极致体验的通用图表库。"),
216
- category: Categories[1],
217
- links: [{
218
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
219
- title: t("产品首页"),
220
- url: "https://".concat(hosts.g2plot, "/").concat(language)
221
- }, {
222
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
223
- title: t("图表示例"),
224
- url: "https://".concat(hosts.g2plot, "/").concat(language, "/examples")
225
- }, {
226
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
227
- title: t("使用文档"),
228
- url: "https://".concat(hosts.g2plot, "/").concat(language, "/docs/manual")
229
- }, {
230
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
231
- title: t("API 文档"),
232
- url: "https://".concat(hosts.g2plot, "/").concat(language, "/docs/api")
233
- }, {
234
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
235
- title: t("更新日志"),
236
- url: "https://github.com/antvis/g2plot/blob/master/CHANGELOG.md",
237
- openExternal: true
238
- }, {
239
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
240
- title: t("GitHub 仓库"),
241
- url: "https://github.com/antvis/g2plot",
242
- openExternal: true
243
- }, {
244
- icon: "🇨🇳",
245
- title: t("国内镜像"),
246
- url: "https://antv-g2plot.gitee.io",
247
- openExternal: true
248
- }]
249
- }, {
250
- title: "F2Native",
251
- icon: "https://gw.alipayobjects.com/zos/antfincdn/D%26fDbWqVkv/F2%252520yidongduankeshihuafangan.svg",
252
- slogan: t("移动可视化方案"),
253
- description: t("跨平台高性能的移动端可视化解决方案,满足你的各种图表需求。"),
254
- category: Categories[1],
255
- links: [{
256
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
257
- title: t("产品首页"),
258
- url: "https://".concat(hosts.f2native, "/").concat(language)
259
- }, {
260
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
261
- title: t("图表示例"),
262
- url: "https://".concat(hosts.f2native, "/").concat(language, "/docs/examples")
263
- }, {
264
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
265
- title: t("使用文档"),
266
- url: "https://".concat(hosts.f2native, "/").concat(language, "/docs/tutorial/getting-started")
267
- }, {
268
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
269
- title: t("API 文档"),
270
- url: "https://".concat(hosts.f2native, "/").concat(language, "/docs/api/API")
271
- }, {
272
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
273
- title: t("GitHub 仓库"),
274
- url: "https://github.com/antvis/f2",
275
- openExternal: true
276
- }, {
277
- icon: "🇨🇳",
278
- title: t("国内镜像"),
279
- url: "https://antv-f2.gitee.io",
280
- openExternal: true
281
- }]
282
- }, {
283
- title: "Graphin",
284
- icon: "https://gw.alipayobjects.com/zos/antfincdn/0b4HzOcEJY/Graphin.svg",
285
- slogan: t(""),
286
- description: t("基于 G6 封装的图分析应用组件。"),
287
- category: Categories[1],
288
- links: [{
289
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
290
- title: t("产品首页"),
291
- url: "https://".concat(hosts.graphin, "/").concat(language)
292
- }, {
293
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
294
- title: t("组件示例"),
295
- url: "https://".concat(hosts.graphin, "/").concat(language, "/examples")
296
- }, {
297
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
298
- title: t("使用文档"),
299
- url: "https://".concat(hosts.graphin, "/").concat(language, "/docs/manual/introduction")
300
- }, {
301
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
302
- title: t("API 文档"),
303
- url: "https://".concat(hosts.graphin, "/").concat(language, "/docs/api/graphin")
304
- }, {
305
- icon: /*#__PURE__*/React.createElement(HistoryOutlined, null),
306
- title: t("更新日志"),
307
- url: "https://github.com/antvis/graphin/blob/master/CHANGELOG.md",
308
- openExternal: true
309
- }, {
310
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
311
- title: t("GitHub 仓库"),
312
- url: "https://github.com/antvis/graphin",
313
- openExternal: true
314
- }, {
315
- icon: "🇨🇳",
316
- title: t("国内镜像"),
317
- url: "https://antv-graphin.gitee.io",
318
- openExternal: true
319
- }]
320
- }, {
321
- title: "AVA",
322
- icon: "https://gw.alipayobjects.com/zos/bmw-prod/1069c628-7460-4b09-a649-0f2ad64dfc78.svg",
323
- slogan: t(""),
324
- description: t("AVA 是为了更简便的可视分析而生的技术框架。"),
325
- category: Categories[1],
326
- links: [{
327
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
328
- title: t("产品首页"),
329
- url: "https://".concat(hosts.ava, "/").concat(language)
330
- }, {
331
- icon: /*#__PURE__*/React.createElement(PieChartOutlined, null),
332
- title: t("图表示例"),
333
- url: "https://".concat(hosts.ava, "/").concat(language, "/examples")
334
- }, {
335
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
336
- title: t("使用文档"),
337
- url: "https://".concat(hosts.ava, "/").concat(language, "/docs/guide")
338
- }, {
339
- icon: /*#__PURE__*/React.createElement(ReadOutlined, null),
340
- title: t("API 文档"),
341
- url: "https://".concat(hosts.ava, "/").concat(language, "/docs/api")
342
- }, {
343
- icon: /*#__PURE__*/React.createElement(GithubOutlined, null),
344
- title: t("GitHub 仓库"),
345
- url: "https://github.com/antvis/ava",
346
- openExternal: true
347
- }, {
348
- icon: "🇨🇳",
349
- title: t("国内镜像"),
350
- url: "https://antv-ava.gitee.io",
351
- openExternal: true
352
- }]
353
- }, {
354
- title: "ChartCube",
355
- icon: "https://gw.alipayobjects.com/zos/antfincdn/Zr74jx8YNX/chartcube.svg",
356
- slogan: t("图表魔方"),
357
- description: t("AntV 在线图表制作利器。"),
358
- category: Categories[1],
359
- links: [{
360
- icon: /*#__PURE__*/React.createElement(HomeOutlined, null),
361
- title: t("产品首页"),
362
- url: "https://chartcube.alipay.com",
363
- openExternal: true
364
- }, {
365
- icon: /*#__PURE__*/React.createElement(AreaChartOutlined, null),
366
- title: t("生成图表"),
367
- url: "https://chartcube.alipay.com/guide",
368
- openExternal: true
369
- }, {
370
- icon: /*#__PURE__*/React.createElement(YuqueOutlined, null),
371
- title: t("语雀社区"),
372
- url: "https://www.yuque.com/chartcube",
373
- openExternal: true
374
- }, {
375
- icon: /*#__PURE__*/React.createElement(DingdingOutlined, null),
376
- title: t("钉钉服务群"),
377
- url: "dingtalk://dingtalkclient/action/joingroup?cid=8305538734",
378
- openExternal: true
379
- }]
380
- }, {
381
- title: t("墨者学院"),
382
- icon: "https://gw.alipayobjects.com/zos/antfincdn/12j36RPVldO/mozhexueyuan.svg",
383
- description: t("数据可视化社团"),
384
- category: Categories[2],
385
- links: [{
386
- title: t("学院首页"),
387
- url: "https://www.yuque.com/mo-college",
388
- openExternal: true
389
- }]
390
- }, {
391
- title: "BizCharts",
392
- icon: "https://gw.alipayobjects.com/zos/antfincdn/Q1pbg%26O2TM/BizCharts.svg",
393
- description: t("基于商业场景下的数据可视化解决方案"),
394
- category: Categories[2],
395
- links: [{
396
- title: t("产品首页"),
397
- url: "https://bizcharts.net",
398
- openExternal: true
399
- }]
400
- }, {
401
- title: "Ant Design Charts",
402
- icon: "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",
403
- description: t("基于 G2Plot 实现的 React 可视化图表库"),
404
- category: Categories[2],
405
- links: [{
406
- title: t("产品首页"),
407
- url: "https://charts.ant.design/",
408
- openExternal: true
409
- }]
410
- }];
411
- return products;
412
- };
413
- var CATEGORY_TYPE = tuple("basic", "extension", "mobile", "ecology");
414
- export var CATEGORIES = [{
415
- type: "basic",
416
- name: "标准版基础产品"
417
- }, {
418
- type: "extension",
419
- name: "标准版扩展产品"
420
- }, {
421
- type: "mobile",
422
- name: "移动定制(F版)产品"
423
- }, {
424
- type: "ecology",
425
- name: "周边生态"
426
- }];
427
- export function getNewProducts(_ref2) {
428
- var language = _ref2.language,
429
- isChinaMirrorHost = _ref2.isChinaMirrorHost;
430
- // 如需要修改产品信息,请到 https://yuyan.antfin-inc.com/datavprod/antv-site-datas/schemas/site-products-h5data/console 修改区块内容
431
- return fetch("https://render.alipay.com/p/h5data/antv-site-datas_site-products-h5data.json").then(function (res) {
432
- return res.json();
433
- }).then(function (products) {
434
- return products.filter(function (d) {
435
- return d.lang === language;
436
- }).map(function (d) {
437
- var links = typeof d.links === "string" ? JSON.parse(d.links) : Object.assign({}, d.links);
438
- var newLinks = {};
439
- each(links, function (value, k) {
440
- var actualUrl = (value === null || value === void 0 ? void 0 : value.url) || "";
441
-
442
- if (isChinaMirrorHost) {
443
- // g2plot.antv.vision => antv-g2plot.gitee.io
444
- var match = actualUrl.match(/([http|https]):\/\/(.*)\.antv\.vision/);
445
-
446
- if (match && match[2]) {
447
- actualUrl = actualUrl.replace("".concat(match[2], ".antv.vision"), "antv-".concat(match[2], ".gitee.io"));
448
- }
449
- }
450
-
451
- newLinks[k] = Object.assign(Object.assign({}, value), {
452
- url: actualUrl
453
- });
454
- });
455
- return Object.assign(Object.assign({}, d), {
456
- links: newLinks
457
- });
458
- });
459
- });
460
- }
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface ProductsProps {
3
- show: boolean;
4
- rootDomain: string;
5
- language?: "zh" | "en";
6
- className?: string;
7
- }
8
- declare const Products: React.FC<ProductsProps>;
9
- export default Products;
@@ -1,14 +0,0 @@
1
- export interface NavigatorBannerProps {
2
- post?: {
3
- slug?: string;
4
- title?: string;
5
- };
6
- type: "prev" | "next";
7
- }
8
- export declare const useChinaMirrorHost: () => [boolean];
9
- export declare const usePrevAndNext: () => NavigatorBannerProps["post"][];
10
- export declare const useLogoLink: ({ link, siteUrl, lang, }: {
11
- link?: string;
12
- siteUrl?: string;
13
- lang?: string;
14
- }) => [string];
@@ -1,21 +0,0 @@
1
- @import "~antd/es/style/themes/default.less";
2
- @primaryColor: #873bf4;
3
-
4
- .container1440() {
5
- width: 1440px;
6
- max-width: calc(100% - 80px);
7
- margin-left: auto;
8
- margin-right: auto;
9
-
10
- @media only screen and (max-width: 931.99px) {
11
- & {
12
- max-width: calc(100% - 60px);
13
- }
14
- }
15
-
16
- @media only screen and (max-width: 767.99px) {
17
- & {
18
- max-width: calc(100% - 32px);
19
- }
20
- }
21
- }
@@ -1,5 +0,0 @@
1
- declare type Status = 'responded' | 'error' | 'timeout';
2
- export declare const ping: (callback: (status: Status) => void) => NodeJS.Timeout;
3
- export declare const capitalize: (s: string) => string;
4
- export declare const getChinaMirrorHost: (host?: string) => string;
5
- export {};
package/es/antv/utils.js DELETED
@@ -1,49 +0,0 @@
1
- export var ping = function ping(callback) {
2
- var url = 'https://private-a' + 'lipay' + 'objects.alip' + 'ay.com/alip' + 'ay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png';
3
- var img = new Image();
4
- var done = false;
5
-
6
- var finish = function finish(status) {
7
- if (!done) {
8
- done = true;
9
- img.src = '';
10
- callback(status);
11
- }
12
- };
13
-
14
- img.onload = function () {
15
- return finish('responded');
16
- };
17
-
18
- img.onerror = function () {
19
- return finish('error');
20
- };
21
-
22
- img.src = url;
23
- return setTimeout(function () {
24
- return finish('timeout');
25
- }, 1500);
26
- };
27
- export var capitalize = function capitalize(s) {
28
- if (typeof s !== 'string') {
29
- return '';
30
- }
31
-
32
- return s.charAt(0).toUpperCase() + s.slice(1);
33
- };
34
- export var getChinaMirrorHost = function getChinaMirrorHost(host) {
35
- var hostString = typeof host === 'undefined' ? window.location.host : host; // antv.vision => antv.gitee.io
36
-
37
- if (hostString === 'antv.vision') {
38
- return 'antv.gitee.io';
39
- } // g2plot.antv.vision => antv-g2plot.gitee.io
40
-
41
-
42
- var match = hostString.match(/(.*)\.antv\.vision/);
43
-
44
- if (match && match[1]) {
45
- return "antv-".concat(match[1], ".gitee.io");
46
- }
47
-
48
- return hostString;
49
- };
@@ -1,3 +0,0 @@
1
- import type { IApiComponentProps } from 'dumi/theme';
2
- declare const _default: ({ identifier, export: expt }: IApiComponentProps) => JSX.Element;
3
- export default _default;
@@ -1,37 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { context, useApiData } from 'dumi/theme';
3
- var LOCALE_TEXTS = {
4
- 'zh-CN': {
5
- name: '属性名',
6
- description: '描述',
7
- type: '类型',
8
- default: '默认值',
9
- required: '(必选)'
10
- },
11
- 'en-US': {
12
- name: 'Name',
13
- description: 'Description',
14
- type: 'Type',
15
- default: 'Default',
16
- required: '(required)'
17
- }
18
- };
19
- export default (function (_ref) {
20
- var identifier = _ref.identifier,
21
- expt = _ref.export;
22
- var data = useApiData(identifier);
23
-
24
- var _useContext = useContext(context),
25
- locale = _useContext.locale;
26
-
27
- var texts = /^zh|cn$/i.test(locale) ? LOCALE_TEXTS['zh-CN'] : LOCALE_TEXTS['en-US'];
28
- return /*#__PURE__*/React.createElement(React.Fragment, null, data && /*#__PURE__*/React.createElement("table", {
29
- style: {
30
- marginTop: 24
31
- }
32
- }, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, texts.name), /*#__PURE__*/React.createElement("th", null, texts.description), /*#__PURE__*/React.createElement("th", null, texts.type), /*#__PURE__*/React.createElement("th", null, texts.default))), /*#__PURE__*/React.createElement("tbody", null, data[expt].map(function (row) {
33
- return /*#__PURE__*/React.createElement("tr", {
34
- key: row.identifier
35
- }, /*#__PURE__*/React.createElement("td", null, row.identifier), /*#__PURE__*/React.createElement("td", null, row.description || '--'), /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("code", null, row.type)), /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("code", null, row.default || row.required && texts.required || '--')));
36
- }))));
37
- });
@@ -1,3 +0,0 @@
1
- import './Alert.less';
2
- declare const _default: (props: any) => JSX.Element;
3
- export default _default;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './Alert.less';
3
- export default (function (props) {
4
- return /*#__PURE__*/React.createElement("div", Object.assign({
5
- className: "__dumi-default-alert"
6
- }, props));
7
- });
@@ -1,62 +0,0 @@
1
- @import (reference) '../style/variables.less';
2
-
3
- .@{prefix}-alert {
4
- @s-border-right: 3px;
5
-
6
- position: relative;
7
- margin: 24px 0;
8
- padding: 10px 20px;
9
- color: @c-text;
10
- font-size: 14px;
11
- line-height: 20px;
12
- border-left: 0;
13
- background: #ffffff;
14
- box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06);
15
- border-radius: 1px;
16
-
17
- [data-prefers-color=dark] & {
18
- color: @c-text-dark;
19
- background: @c-bg-dark;
20
- box-shadow: 0 1px 2px -2px rgba(0,0,0,0.64), 0 3px 6px 0 rgba(0,0,0,0.48), 0 5px 12px 4px rgba(0,0,0,0.36);
21
- }
22
-
23
- &::after {
24
- content: '';
25
- position: absolute;
26
- display: inline-block;
27
- top: 0;
28
- left: 0;
29
- bottom: 0;
30
- width: @s-border-right;
31
- border-radius: 1px;
32
- }
33
-
34
- &:first-child {
35
- margin-top: 0;
36
- }
37
-
38
- &:not([type]),
39
- &[type='warning'] {
40
- &::after {
41
- background: #ffc121;
42
- }
43
- }
44
-
45
- &[type='info'] {
46
- &::after {
47
- background: #69b9ff;
48
- }
49
- }
50
-
51
- &[type='success'] {
52
- &::after {
53
- background: #8cd225;
54
- }
55
- }
56
-
57
- &[type='error'] {
58
- &::after {
59
- background: #ff4646;
60
- }
61
- }
62
- }