Skip to content

Commit

Permalink
mod: use @vesoft-inc/icons instead of local file
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxiabuluo committed Nov 14, 2023
1 parent f96c7d4 commit f15d715
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@vesoft-inc/i18n": "^1.0.1",
"@vesoft-inc/nebula-explain-graph": "^1.0.2-beta.1",
"@vesoft-inc/veditor": "^4.4.8",
"@vesoft-inc/icons": "^1.0.0-beta.5",
"antd": "^5.8.4",
"axios": "^0.23.0",
"bezier-js": "^4.1.1",
Expand Down
1 change: 0 additions & 1 deletion public/icons/iconpark.tpl

This file was deleted.

3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import path from 'node:path';
import fs from 'node:fs';
import { defineConfig, loadEnv } from 'vite';
import type { Plugin, ResolvedConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import autoprefixer from 'autoprefixer';
import postCssPresetEnv from 'postcss-preset-env';
import ejs from 'ejs';
import SVGElement from '@vesoft-inc/icons/lib/NebulaGraph-Explorer/svg-tpl.cjs';
// import legacy from '@vitejs/plugin-legacy';
// import topLevelAwait from 'vite-plugin-top-level-await';
import { getAppConfig } from './build/config';
import pkg from './package.json';

const appConfig = getAppConfig();
const SVGElement = fs.readFileSync('./public/icons/iconpark.tpl', 'utf-8');
const proxyHost = '127.0.0.1:9000';

const htmlPlugin = (data?: Record<string, unknown>): Plugin => {
Expand Down

0 comments on commit f15d715

Please sign in to comment.