Skip to content

Commit b919f0b

Browse files
authored
Release site (#2783)
* chore: 更新 版本号 * chore: 更新版本号 * chore: 更新版本 * chore: eslint 升级导致lint 错误较多 * chore: lint error * chore: add change set * fix: ts lint error * chore: 单测优化 * fix: 类型转换 * chore: 移除一样安全风险的ci * fix: lint error * chore: 优化移动端layerpopoup * chore: cadd changeset * chore: 更新变更集 * chore: changeset * chore: 修复官网 monaco code preview * chore: 移除自定义官网 * chore: 移除changeset
1 parent 7f85fdb commit b919f0b

File tree

32 files changed

+75
-2345
lines changed

32 files changed

+75
-2345
lines changed

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,13 @@
131131
"vite-plugin-cp": "^4.0.8",
132132
"vite-plugin-string": "^1.2.2",
133133
"webpack-bundle-analyzer": "^4.10.1"
134+
},
135+
"resolutions": {
136+
"@monaco-editor/loader": "1.5.0"
137+
},
138+
"pnpm": {
139+
"overrides": {
140+
"@monaco-editor/loader": "1.5.0"
141+
}
134142
}
135143
}

site/.dumi/global.ts

Lines changed: 42 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
1-
require('@/site/css/demo.css');
2-
require('antd/dist/antd.less');
1+
import '@/site/css/demo.css';
32

4-
if (window) {
5-
(window as any).geotiff = require('geotiff');
6-
(window as any).lerc = require('lerc');
7-
(window as any).g2 = require('@antv/g2');
8-
(window as any).l7 = require('@antv/l7');
9-
(window as any).l7Maps = require('@antv/l7-maps');
10-
(window as any).l7plot = require('@antv/l7plot');
11-
(window as any).l7CompositeLayers = require('@antv/l7-composite-layers');
12-
(window as any).l7Draw = require('@antv/l7-draw');
13-
(window as any).l7Three = require('@antv/l7-three');
14-
(window as any).three = require('three');
15-
(window as any).GLTFLoader = require('three/examples/jsm/loaders/GLTFLoader');
16-
(window as any).FBXLoader = require('three/examples/jsm/loaders/FBXLoader');
17-
(window as any).react = require('react');
18-
(window as any).popmotion = require('popmotion');
19-
(window as any).reactDom = require('react-dom');
20-
(window as any).antd = require('antd');
21-
(window as any).gcoord = require('gcoord');
22-
(window as any).pmtiles = require('pmtiles');
23-
(window as any).District = require('district-data');
3+
import * as geotiff from 'geotiff';
4+
// @ts-ignore: no types for lerc
5+
import * as g2 from '@antv/g2';
6+
import * as l7 from '@antv/l7';
7+
import * as l7CompositeLayers from '@antv/l7-composite-layers';
8+
import * as l7Draw from '@antv/l7-draw';
9+
import * as l7Maps from '@antv/l7-maps';
10+
import * as l7Three from '@antv/l7-three';
11+
import * as l7plot from '@antv/l7plot';
12+
import * as antd from 'antd';
13+
import * as District from 'district-data';
14+
import * as gcoord from 'gcoord';
15+
import * as lerc from 'lerc';
16+
import * as pmtiles from 'pmtiles';
17+
import * as popmotion from 'popmotion';
18+
import * as React from 'react';
19+
import * as ReactDOM from 'react-dom';
20+
import * as THREE from 'three';
21+
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
22+
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
23+
24+
if (typeof window !== 'undefined') {
25+
(window as any).geotiff = geotiff;
26+
(window as any).lerc = lerc;
27+
(window as any).g2 = g2;
28+
(window as any).l7 = l7;
29+
(window as any).l7Maps = l7Maps;
30+
(window as any).l7plot = l7plot;
31+
(window as any).l7CompositeLayers = l7CompositeLayers;
32+
(window as any).l7Draw = l7Draw;
33+
(window as any).l7Three = l7Three;
34+
(window as any).three = THREE;
35+
(window as any).GLTFLoader = GLTFLoader;
36+
(window as any).FBXLoader = FBXLoader;
37+
(window as any).react = React;
38+
(window as any).popmotion = popmotion;
39+
(window as any).reactDom = ReactDOM;
40+
(window as any).antd = antd;
41+
(window as any).gcoord = gcoord;
42+
(window as any).pmtiles = pmtiles;
43+
(window as any).District = District;
2444
}

site/.dumi/pages/Example/index.module.less

Lines changed: 0 additions & 82 deletions
This file was deleted.

site/.dumi/pages/Example/index.tsx

Lines changed: 0 additions & 124 deletions
This file was deleted.

site/.dumi/pages/Example/utils.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

site/.dumi/pages/Examples/components/GalleryPageContent/DemoCard/index.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)