This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 4148f29c Add compatibility for building this project with pnpm. (#450)
4148f29c is described below
commit 4148f29c8d312531b282ea8385200e97a014dc49
Author: Kerwin Bryant <[email protected]>
AuthorDate: Tue May 28 16:02:19 2024 +0800
Add compatibility for building this project with pnpm. (#450)
---
.gitignore | 1 +
package.json | 3 +++
src/index.ejs | 2 +-
src/index.js | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index faad0e32..9de6675e 100755
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ yarn-error.log
/coverage
.idea
yarn.lock
+pnpm-lock.yaml
package-lock.json
*bak
diff --git a/package.json b/package.json
index 693988cc..4f7efdf8 100755
--- a/package.json
+++ b/package.json
@@ -28,12 +28,15 @@
"dva": "^2.2.3",
"dva-loading": "^2.0.3",
"enquire-js": "^0.2.1",
+ "history": "^5.3.0",
"lodash": "^4.17.10",
"lodash-decorators": "^6.0.0",
+ "moment": "^2.30.1",
"omit.js": "^1.0.0",
"path-to-regexp": "^2.1.0",
"prop-types": "^15.5.10",
"qs": "^6.5.0",
+ "rc-drawer": "^7.1.0",
"react": "^16.14.0",
"react-captcha-code": "^1.0.7",
"react-container-query": "^0.11.0",
diff --git a/src/index.ejs b/src/index.ejs
index bc9e86c0..19dbe013 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -27,7 +27,7 @@
</head>
<body>
- <div id="httpPath" style="display: none"
th:text="<%='$'%>{domain}">${process.env.NODE_ENV === 'production' ? '' :
'http://localhost:9095'}</div>
+ <div id="httpPath" style="display: none"
th:text="<%='$'%>{domain}">${process.env.NODE_ENV === 'production' ? '' :
'.'}</div>
<div id="root"></div>
</body>
diff --git a/src/index.js b/src/index.js
index 0204ee10..def17205 100644
--- a/src/index.js
+++ b/src/index.js
@@ -18,7 +18,7 @@
import "./polyfill";
import dva from "dva";
-import createHistory from "history/createHashHistory";
+import { createHashHistory as createHistory } from "history";
// user BrowserHistory
// import createHistory from 'history/createBrowserHistory';
import createLoading from "dva-loading";