@antv/dumi-theme-antv 0.7.7 → 0.7.9

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.
@@ -137,6 +137,7 @@
137
137
  "体验科技专栏": "Ant Financial Experience Tech",
138
138
  "帮助": "Help",
139
139
  "蚂蚁体验科技大会": "Experience Tech Conference",
140
+ "WeaveFox 智能研发技术社区": "AI Developer Community",
140
141
  "标准版基础产品": "Standard basic products",
141
142
  "标准版扩展产品": "Standard extended products",
142
143
  "移动定制(F版)产品": "Mobile (F series) products",
@@ -177,5 +178,5 @@
177
178
  "企业级 Node 开发框架": "Enterprise-class Node development framework",
178
179
  "Sketch 工具集": "Sketch Tool set",
179
180
  "互动图形解决方案": "Interactive solution",
180
- "蚂蚁体验科技": "Liven Experience technology"
181
+ "前端智能研发": "AI Coding Assistant"
181
182
  }
@@ -136,6 +136,7 @@
136
136
  "体验科技专栏": "体验科技专栏",
137
137
  "帮助": "帮助",
138
138
  "蚂蚁体验科技大会": "蚂蚁体验科技大会",
139
+ "WeaveFox 智能研发技术社区": "智能研发技术社区",
139
140
  "标准版基础产品": "标准版基础产品",
140
141
  "标准版扩展产品": "标准版扩展产品",
141
142
  "移动定制(F版)产品": "移动定制(F版)产品",
@@ -176,5 +177,5 @@
176
177
  "企业级 Node 开发框架": "企业级 Node 开发框架",
177
178
  "Sketch 工具集": "Sketch 工具集",
178
179
  "互动图形解决方案": "互动图形解决方案",
179
- "蚂蚁体验科技": "蚂蚁体验科技"
180
+ "前端智能研发": "前端智能研发"
180
181
  }
@@ -64,8 +64,11 @@ var CodeEditor = function CodeEditor(_ref) {
64
64
  es5 = _themeConfig$es === void 0 ? true : _themeConfig$es,
65
65
  _themeConfig$showSpec = themeConfig.showSpecTab,
66
66
  showSpecTab = _themeConfig$showSpec === void 0 ? false : _themeConfig$showSpec;
67
- var _themeConfig$playgrou = themeConfig.playground.extraLib,
68
- extraLib = _themeConfig$playgrou === void 0 ? '' : _themeConfig$playgrou;
67
+ var _themeConfig$playgrou = themeConfig.playground,
68
+ _themeConfig$playgrou2 = _themeConfig$playgrou.extraLib,
69
+ extraLib = _themeConfig$playgrou2 === void 0 ? '' : _themeConfig$playgrou2,
70
+ _themeConfig$playgrou3 = _themeConfig$playgrou.playgroundBeforeExecute,
71
+ playgroundBeforeExecute = _themeConfig$playgrou3 === void 0 ? '' : _themeConfig$playgrou3;
69
72
  // 编辑器两个 tab,分别是代码和数据
70
73
  var _useState = useState(null),
71
74
  _useState2 = _slicedToArray(_useState, 2),
@@ -132,6 +135,13 @@ var CodeEditor = function CodeEditor(_ref) {
132
135
  };
133
136
  }, []);
134
137
  var executeCode = useCallback(debounce(function (v) {
138
+ try {
139
+ var playgroundBeforeExecuteFunction = new Function('containerId', playgroundBeforeExecute);
140
+ playgroundBeforeExecuteFunction(containerId);
141
+ } catch (e) {
142
+ reportError(e);
143
+ // 执行出错,不影响后面流程
144
+ }
135
145
  if (currentEditorTab !== EDITOR_TABS.JAVASCRIPT) return;
136
146
  if (!v) return;
137
147
 
@@ -70,6 +70,13 @@ var Footer = function Footer(props) {
70
70
  }),
71
71
  url: 'https://github.com/alibaba/hooks',
72
72
  openExternal: true
73
+ }, {
74
+ title: 'WeaveFox',
75
+ description: /*#__PURE__*/React.createElement(FormattedMessage, {
76
+ id: "\u524D\u7AEF\u667A\u80FD\u7814\u53D1"
77
+ }),
78
+ url: 'https://github.com/weavefox',
79
+ openExternal: true
73
80
  }]
74
81
  };
75
82
  var col2 = {
@@ -98,6 +105,17 @@ var Footer = function Footer(props) {
98
105
  }),
99
106
  url: 'https://seeconf.antfin.com/',
100
107
  openExternal: true
108
+ }, {
109
+ icon: /*#__PURE__*/React.createElement("img", {
110
+ src: "https://mdn.alipayobjects.com/huamei_4qpv3u/afts/img/iH6wQKX4WCYAAAAAAAAAAAAAeocTAQFr/original",
111
+ alt: "weavefox"
112
+ }),
113
+ title: 'WeaveFox',
114
+ description: /*#__PURE__*/React.createElement(FormattedMessage, {
115
+ id: "WeaveFox \u667A\u80FD\u7814\u53D1\u6280\u672F\u793E\u533A"
116
+ }),
117
+ url: 'https://www.yuque.com/weavefox/blog',
118
+ openExternal: true
101
119
  }]
102
120
  };
103
121
  var col3 = {
@@ -183,17 +201,18 @@ var Footer = function Footer(props) {
183
201
  description: /*#__PURE__*/React.createElement(FormattedMessage, {
184
202
  id: "\u4E92\u52A8\u56FE\u5F62\u89E3\u51B3\u65B9\u6848"
185
203
  }),
186
- url: 'https://galacean.antgroup.com/',
204
+ url: 'https://galacean.antgroup.com',
187
205
  openExternal: true
188
206
  }, {
189
207
  icon: /*#__PURE__*/React.createElement("img", {
190
- src: "https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg",
191
- alt: "xtech"
208
+ src: "https://mdn.alipayobjects.com/huamei_4qpv3u/afts/img/iH6wQKX4WCYAAAAAAAAAAAAAeocTAQFr/original",
209
+ alt: "weavefox"
192
210
  }),
193
- title: /*#__PURE__*/React.createElement(FormattedMessage, {
194
- id: "\u8682\u8681\u4F53\u9A8C\u79D1\u6280"
211
+ title: 'WeaveFox',
212
+ description: /*#__PURE__*/React.createElement(FormattedMessage, {
213
+ id: "\u524D\u7AEF\u667A\u80FD\u7814\u53D1"
195
214
  }),
196
- url: 'https://xtech.antfin.com/',
215
+ url: 'https://weavefox.alipay.com',
197
216
  openExternal: true
198
217
  }]
199
218
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "keywords": [
6
6
  "dumi",
@@ -20,6 +20,17 @@
20
20
  "files": [
21
21
  "dist"
22
22
  ],
23
+ "scripts": {
24
+ "build": "npm run prepare && father build",
25
+ "dev": "father dev",
26
+ "fix": "prettier ./src --write",
27
+ "lint": "npm run lint:es && npm run lint:css",
28
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
29
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
30
+ "prepare": "father link-dev-theme",
31
+ "prepublishOnly": "npm run build",
32
+ "start": "cd example && npm run dev"
33
+ },
23
34
  "commitlint": {
24
35
  "extends": [
25
36
  "@commitlint/config-conventional"
@@ -150,14 +161,5 @@
150
161
  "authors": [
151
162
  "dumi",
152
163
  "antv"
153
- ],
154
- "scripts": {
155
- "build": "npm run prepare && father build",
156
- "dev": "father dev",
157
- "fix": "prettier ./src --write",
158
- "lint": "npm run lint:es && npm run lint:css",
159
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
160
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
161
- "start": "cd example && npm run dev"
162
- }
163
- }
164
+ ]
165
+ }