Skip to content

Commit

Permalink
feat: Update antd antv version
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Nov 29, 2024
1 parent 94a7d65 commit a4a9a1a
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions examples/graphy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@antv/g2": "^5.2.7",
"@antv/g2": "^5.2.8",
"@graphscope/studio-components": "workspace:*",
"@graphscope/studio-driver": "workspace:*",
"@graphscope/studio-graph": "workspace:*",
"@graphscope/studio-importor": "workspace:*",
"@graphscope/studio-query": "workspace:*",
"@kuzu/kuzu-wasm": "0.7.0",
"antd": "^5.21.0",
"antd": "^5.22.2",
"d3-force": "latest",
"html-to-image": "^1.11.11",
"js-yaml": "^4.1.0",
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.0"
"@types/react-dom": "18.2.0",
"@ant-design/colors": "^7.1.0",
"antd": "^5.22.2",
"@antv/g2": "^5.2.8"
}
},
"dependencies": {
"@ant-design/colors": "^7.1.0",
"antd": "^5.22.2",
"@ant-design/icons": "^5.2.6",
"@uiw/codemirror-themes": "^4.21.24",
"antd": "^5.17.0",
"buffer": "^6.0.3",
"buffer-browserify": "^0.2.5",
"copy-to-clipboard": "^3.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-draw-pattern/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@ant-design/icons": "^5.2.6",
"@graphscope/studio-components": "workspace:*",
"@graphscope/studio-graph-editor": "workspace:*",
"antd": "^5.17.0",
"antd": "^5.22.2",
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-explore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@antv/g2": "^5.2.7",
"@antv/g2": "^5.2.8",
"@graphscope/studio-components": "workspace:*",
"@graphscope/studio-driver": "workspace:*",
"@graphscope/studio-graph": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-graph-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"dependencies": {
"@graphscope/studio-components": "workspace:*",
"antd": "^5.17.0",
"antd": "^5.22.2",
"d3-force": "latest",
"dagre": "latest",
"html-to-image": "^1.11.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@fortawesome/free-solid-svg-icons": "latest",
"@fortawesome/react-fontawesome": "latest",
"@fortawesome/fontawesome-svg-core": "latest",
"@antv/g2": "5.1.13",
"@antv/g2": "^5.2.8",
"uuid": "^9.0.1",
"dayjs": "^1.11.10",
"@graphscope/_test_gremlin_": "^0.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/studio-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@graphscope/use-zustand": "workspace:*",
"@graphscope/graphy-website": "workspace:*",
"@uiw/react-codemirror": "^4.21.21",
"antd": "^5.17.0",
"antd": "^5.22.2",
"js-yaml": "^4.1.0",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
Expand Down
8 changes: 8 additions & 0 deletions packages/studio-website/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ const {
gremlin_endpoint,
} = params;

// 设置全局响应头
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*'); // 允许跨域访问
res.header('Cross-Origin-Embedder-Policy', 'require-corp');
res.header('Cross-Origin-Opener-Policy', 'same-origin');
next();
});

// static
app.use(express.static(WORKSPACE + '/dist'));

Expand Down
4 changes: 2 additions & 2 deletions packages/studio-website/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import react from '@vitejs/plugin-react';
import { viteSingleFile } from 'vite-plugin-singlefile';
import dotenv from 'dotenv';
import wasm from 'vite-plugin-wasm';
import topLevelAwait from 'vite-plugin-top-level-await';

// 获取传递的参数
const args = process.argv.slice(2);
Expand All @@ -20,7 +19,7 @@ const isSingle = mode === 'single' && process.env.NODE_ENV === 'production';

console.log('params', params, args);

const plugins = isSingle ? [react(), viteSingleFile(), wasm(), topLevelAwait()] : [react(), wasm(), topLevelAwait()];
const plugins = isSingle ? [react(), viteSingleFile(), wasm()] : [react(), wasm()];

const { parsed } = dotenv.configDotenv();

Expand Down Expand Up @@ -51,6 +50,7 @@ export default defineConfig({
},
},
build: {
// minify: false,
outDir: './dist',
rollupOptions: {
external: ['node:os', 'fsevents'], // 要排除的模块
Expand Down

0 comments on commit a4a9a1a

Please sign in to comment.