Skip to content

Commit 135a91f

Browse files
authored
chore: 修复官网加载失败 (#2102)
1 parent 4693818 commit 135a91f

File tree

3 files changed

+29
-50
lines changed

3 files changed

+29
-50
lines changed

site/.dumi/global.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ if (typeof window != 'undefined' && window) {
88
window.gPluginRoughCanvasRenderer = require('@antv/g-plugin-rough-canvas-renderer');
99
(window as any).lilGui = window.lil;
1010
(window as any).stats = require('stats.js');
11+
(window as any).InsertCss = require('insert-css');
12+
console.log((window as any).InsertCss);
1113
// window.f2 = require('./src/index-all.js');
1214
// window.DataSet = require('@antv/data-set');
1315
window.lodash = require('lodash');

site/.dumirc.ts

Lines changed: 26 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineConfig } from 'dumi';
2-
import { repository, version } from './package.json';
2+
import { repository } from './package.json';
33

44
export default defineConfig({
55
locales: [
@@ -11,10 +11,8 @@ export default defineConfig({
1111
metas: {
1212
title: { zh: 'F2 移动端可视化引擎', en: 'F2 Mobile Visualization Engine' },
1313
description: {
14-
zh:
15-
'F2 是一个专注于移动端,面向常规统计图表,开箱即用的可视化引擎,完美支持 H5 环境同时兼容多种环境(Node, 小程序),完备的图形语法理论,满足你的各种可视化需求,专业的移动设计指引为你带来最佳的移动端图表体验。',
16-
en:
17-
'F2 is a mobile-focused, ready-to-use visualization engine designed for standard statistical charts. It perfectly supports H5 environments while being compatible with various platforms (Node, Mini Programs). With a comprehensive graphical syntax theory, it meets all your visualization needs. Its professional mobile design guidelines provide the best charting experience on mobile devices.',
14+
zh: 'F2 是一个专注于移动端,面向常规统计图表,开箱即用的可视化引擎,完美支持 H5 环境同时兼容多种环境(Node, 小程序),完备的图形语法理论,满足你的各种可视化需求,专业的移动设计指引为你带来最佳的移动端图表体验。',
15+
en: 'F2 is a mobile-focused, ready-to-use visualization engine designed for standard statistical charts. It perfectly supports H5 environments while being compatible with various platforms (Node, Mini Programs). With a comprehensive graphical syntax theory, it meets all your visualization needs. Its professional mobile design guidelines provide the best charting experience on mobile devices.',
1816
},
1917
},
2018
siteUrl: 'https://f2.antv.antgroup.com',
@@ -40,7 +38,7 @@ export default defineConfig({
4038
showChartResize: true, // 是否在 demo 页展示图表视图切换
4139
showAPIDoc: false, // 是否在 demo 页展示API文档
4240
versions: {
43-
[version]: 'https://f2.antv.antgroup.com',
41+
['5.10.0']: 'https://f2.antv.antgroup.com',
4442
'4.x': 'https://f2-v4.antv.vision',
4543
'3.x': 'https://f2-v3.antv.vision',
4644
},
@@ -117,10 +115,8 @@ export default defineConfig({
117115
en: 'Ant Fortune',
118116
},
119117
description: {
120-
zh:
121-
'已广泛应用于基金、定期、黄金、股票等各个金融业务场景中,支撑着蚂蚁财富 app 上众多可视化场景。同时通过深入剖析用户的可视化诉求,沉淀出多套面向金融的可视化方案。',
122-
en:
123-
'It has been widely used in various financial business scenarios such as funds, fixed-term, gold, and stocks, and supports many visualization scenarios on the Ant Fortune app. At the same time, through in-depth analysis of users visualization demands, a number of financial-oriented visualization solutions have been developed',
118+
zh: '已广泛应用于基金、定期、黄金、股票等各个金融业务场景中,支撑着蚂蚁财富 app 上众多可视化场景。同时通过深入剖析用户的可视化诉求,沉淀出多套面向金融的可视化方案。',
119+
en: 'It has been widely used in various financial business scenarios such as funds, fixed-term, gold, and stocks, and supports many visualization scenarios on the Ant Fortune app. At the same time, through in-depth analysis of users visualization demands, a number of financial-oriented visualization solutions have been developed',
124120
},
125121
link: 'https://www.yuque.com/mo-college/f2-fund-course',
126122
image:
@@ -133,10 +129,8 @@ export default defineConfig({
133129
en: 'Alipay',
134130
},
135131
description: {
136-
zh:
137-
'覆盖蚂蚁会员、支付宝月账单、个人总资产等业务场景,通过可视化的形式帮助您更快更好得了解您的消费数据。',
138-
en:
139-
'Covering business scenarios such as ant membership, Alipay monthly bills, personal total assets, etc., helping you to understand your consumption data faster and better through visualization',
132+
zh: '覆盖蚂蚁会员、支付宝月账单、个人总资产等业务场景,通过可视化的形式帮助您更快更好得了解您的消费数据。',
133+
en: 'Covering business scenarios such as ant membership, Alipay monthly bills, personal total assets, etc., helping you to understand your consumption data faster and better through visualization',
140134
},
141135
image: 'https://antv.alipay.com/assets/image/home/f2/usecase-alipay.png',
142136
},
@@ -147,10 +141,8 @@ export default defineConfig({
147141
en: 'Beacon Pro',
148142
},
149143
description: {
150-
zh:
151-
'灯塔专业版,为影视人提供有价值的数据。整合阿里海量用户数据,提供全面专业数据,让行业更加公开透明,提升行业决策效率。',
152-
en:
153-
'Beacon Professional Edition, providing valuable data for film and television people. Integrate Alibabas massive user data, provide comprehensive professional data, make the industry more open and transparent, and improve the efficiency of industry decision-making',
144+
zh: '灯塔专业版,为影视人提供有价值的数据。整合阿里海量用户数据,提供全面专业数据,让行业更加公开透明,提升行业决策效率。',
145+
en: 'Beacon Professional Edition, providing valuable data for film and television people. Integrate Alibabas massive user data, provide comprehensive professional data, make the industry more open and transparent, and improve the efficiency of industry decision-making',
154146
},
155147
image: 'https://antv.alipay.com/assets/image/home/f2/usecase-tpp.png',
156148
},
@@ -165,10 +157,8 @@ export default defineConfig({
165157
en: 'F2·Mobile visualization engine',
166158
},
167159
description: {
168-
zh:
169-
'F2 是一个专注于移动端,面向常规统计图表,开箱即用的可视化引擎,完美支持 H5 环境同时兼容多种环境(Node, 小程序),完备的图形语法理论,满足你的各种可视化需求,专业的移动设计指引为你带来最佳的移动端图表体验。',
170-
en:
171-
'F2 is an out-of-the-box visualization engine focused on the mobile terminal, oriented to conventional statistical charts, perfectly supporting the H5 environment and compatible with multiple environments (Node, applet), complete graphics grammar theory, to meet your various visualization needs , professional mobile design guidelines to bring you the best mobile graphics experience',
160+
zh: 'F2 是一个专注于移动端,面向常规统计图表,开箱即用的可视化引擎,完美支持 H5 环境同时兼容多种环境(Node, 小程序),完备的图形语法理论,满足你的各种可视化需求,专业的移动设计指引为你带来最佳的移动端图表体验。',
161+
en: 'F2 is an out-of-the-box visualization engine focused on the mobile terminal, oriented to conventional statistical charts, perfectly supporting the H5 environment and compatible with multiple environments (Node, applet), complete graphics grammar theory, to meet your various visualization needs , professional mobile design guidelines to bring you the best mobile graphics experience',
172162
},
173163
image:
174164
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*wi05Q7Za5ZIAAAAAAAAAAAAADmJ7AQ/original',
@@ -197,85 +187,71 @@ export default defineConfig({
197187
},
198188
features: [
199189
{
200-
icon:
201-
'https://gw.alipayobjects.com/zos/basement_prod/5dbaf094-c064-4a0d-9968-76020b9f1510.svg',
190+
icon: 'https://gw.alipayobjects.com/zos/basement_prod/5dbaf094-c064-4a0d-9968-76020b9f1510.svg',
202191
title: {
203192
zh: '专注移动,体验优雅',
204193
en: 'focus on mobile, experience elegance',
205194
},
206195
description: {
207196
zh: '围绕设计、性能以及异构环境,为用户提供移动端图表的最佳实践',
208-
en:
209-
'provide users with best practices for mobile charts around design, performance, and heterogeneous environments',
197+
en: 'provide users with best practices for mobile charts around design, performance, and heterogeneous environments',
210198
},
211199
},
212200
{
213-
icon:
214-
'https://gw.alipayobjects.com/zos/basement_prod/0a0371ab-6bed-41ad-a99b-87a5044ba11b.svg',
201+
icon: 'https://gw.alipayobjects.com/zos/basement_prod/0a0371ab-6bed-41ad-a99b-87a5044ba11b.svg',
215202
title: {
216203
zh: '图表丰富,组件完备',
217204
en: 'rich charts and complete components',
218205
},
219206
description: {
220207
zh: '基于图形语法,可灵活构建各类图表(50+),组件完备,覆盖各类场景',
221-
en:
222-
'based on graphics syntax, various charts (50+) can be flexibly constructed, with complete components, covering various scenarios',
208+
en: 'based on graphics syntax, various charts (50+) can be flexibly constructed, with complete components, covering various scenarios',
223209
},
224210
},
225211
{
226-
icon:
227-
'https://gw.alipayobjects.com/zos/basement_prod/716d0bc0-e311-4b28-b79f-afdd16e8148e.svg',
212+
icon: 'https://gw.alipayobjects.com/zos/basement_prod/716d0bc0-e311-4b28-b79f-afdd16e8148e.svg',
228213
title: {
229214
zh: '扩展灵活,创意无限',
230215
en: 'flexible expansion, unlimited creativity',
231216
},
232217
description: {
233218
zh: '插件机制,图形、动画、交互均可灵活扩展,使用更自由',
234-
en:
235-
'plug-in mechanism, graphics, animations, and interactions can be flexibly expanded and used more freely',
219+
en: 'plug-in mechanism, graphics, animations, and interactions can be flexibly expanded and used more freely',
236220
},
237221
},
238222
],
239223
companies: [
240224
{
241225
name: '蚂蚁财富',
242-
img:
243-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/89790c1c-cc08-4270-8489-99893a57b20c.png',
226+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/89790c1c-cc08-4270-8489-99893a57b20c.png',
244227
},
245228
{
246229
name: '淘票票',
247-
img:
248-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/4664f031-d79c-4030-a14a-3bbf3709b51c.png',
230+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/4664f031-d79c-4030-a14a-3bbf3709b51c.png',
249231
},
250232
{
251233
name: '钉钉',
252-
img:
253-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/ce76cb7b-f916-4784-9475-6c16ad62df42.png',
234+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/ce76cb7b-f916-4784-9475-6c16ad62df42.png',
254235
},
255236
{
256237
name: '掌上运维',
257-
img:
258-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/2f9d94fc-0fae-4618-9563-3be0cc9be5eb.png',
238+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/2f9d94fc-0fae-4618-9563-3be0cc9be5eb.png',
259239
},
260240
{
261241
name: '支付宝',
262-
img:
263-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/0014f3ad-ec8c-4023-97b4-740090cd78a2.png',
242+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/0014f3ad-ec8c-4023-97b4-740090cd78a2.png',
264243
},
265244
{
266245
name: '小红书',
267-
img:
268-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/8a401562-c488-49a5-9f7e-bc1d2c6873bf.png',
246+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/8a401562-c488-49a5-9f7e-bc1d2c6873bf.png',
269247
},
270248
{
271249
name: '盒马',
272-
img:
273-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/ed57edff-e5d5-4e50-bccd-7002e0a4048e.png',
250+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/ed57edff-e5d5-4e50-bccd-7002e0a4048e.png',
274251
},
275252
{
276253
name: '口碑',
277-
img:
278-
'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/9fb6be41-76d6-4ca0-be56-71a247cac5a4.png',
254+
img: 'https://gw.alipayobjects.com/zos/finxbff/compress-tinypng/9fb6be41-76d6-4ca0-be56-71a247cac5a4.png',
279255
},
280256
],
281257
examples: [

site/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"dumi": "2.4.18",
3333
"f2-touchemulator": "~0.0.1",
3434
"gh-pages": "^2.1.1",
35+
"insert-css": "^2.0.0",
3536
"stats.js": "^0.17.0"
3637
},
3738
"devDependencies": {

0 commit comments

Comments
 (0)