Skip to content

Commit

Permalink
package upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
MrWangJustToDo committed Jan 11, 2022
1 parent 92699e6 commit 1a317d5
Show file tree
Hide file tree
Showing 6 changed files with 737 additions and 746 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PROD_HOST=localhost
PUBLIC_API_HOST=localhost:9000
CRYPTO_KEY=ad$cr3efW89ypg
SSR=true
UI=chakra
UI=antd
MIDDLEWARE=false
ANIMATE_ROUTER=false
SERVER_ENTRY=./src/server/entry.ts
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"@emotion/styled": "^11.6.0",
"@loadable/component": "^5.15.2",
"@loadable/server": "^5.15.2",
"@mui/material": "^5.2.7",
"antd": "^4.18.2",
"@mui/material": "^5.2.8",
"antd": "^4.18.3",
"axios": "^0.24.0",
"chalk": "4",
"compression": "^1.7.4",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"dotenv": "^11.0.0",
"express": "^4.17.2",
"express-session": "^1.17.1",
"framer-motion": "^5.5.6",
"immer": "^9.0.7",
"immer": "^9.0.12",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
"multer": "^1.4.4",
"pretty-error": "^4.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-helmet-async": "^1.2.2",
"react-intl": "^5.24.1",
"react-intl": "^5.24.2",
"react-redux": "^7.2.6",
"react-router": "6.2.1",
"react-router-dom": "6.2.1",
Expand All @@ -43,10 +43,10 @@
"redux-thunk": "^2.4.1",
"spark-md5": "^3.0.1",
"webpack": "^5.65.0",
"zustand": "^3.6.8"
"zustand": "^3.6.9"
},
"devDependencies": {
"@babel/cli": "^7.16.7",
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.7",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-decorators": "^7.16.7",
Expand All @@ -55,9 +55,9 @@
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/plugin-proposal-private-methods": "^7.16.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.16.7",
"@babel/preset-env": "^7.16.7",
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"@babel/plugin-transform-runtime": "^7.16.8",
"@babel/preset-env": "^7.16.8",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@loadable/babel-plugin": "^5.13.2",
Expand All @@ -80,8 +80,8 @@
"@types/webpack-dev-middleware": "^5.0.2",
"@types/webpack-env": "^1.16.3",
"@types/webpack-hot-middleware": "^2.25.4",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"autoprefixer": "^10.4.2",
"babel-loader": "^8.2.2",
"babel-plugin-import": "^1.13.3",
Expand Down
2 changes: 1 addition & 1 deletion script/dev-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const withMiddleWare = async () => {
const [_, serverConfig] = multiConfig;
const serverCompiler = webpack(serverConfig);
const serverPromise = compilerPromise("server", serverCompiler);
startServerWatch(serverCompiler);
serverCompiler.run()
try {
await serverPromise;
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/UI.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function UI() {
return (
<div>
<h3>当前UI Component: {__UI__}</h3>
<h3>当前UI Component: {__UI__} 5555</h3>
</div>
);
}
6 changes: 5 additions & 1 deletion src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ class Cache<T, K> {
}
log(`error, nothing need to delete. keys: [${tryKeys.join(", ")}]`, "error");
};

has = (key: T) => {
return this.store.has(key);
};
}

export { Cache };
export { Cache, CacheData };
Loading

0 comments on commit 1a317d5

Please sign in to comment.