say goodbye to xmcp/react-lazyload

This commit is contained in:
2022-04-08 00:42:21 +08:00
parent 9ecc008341
commit eb311d92f6
6 changed files with 10 additions and 10 deletions

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "src/react-lazyload"]
path = src/react-lazyload
url = https://github.com/xmcp/react-lazyload

View File

@@ -2,14 +2,11 @@
## 获取源码
`git clone --recurse-submodules https://git.thu.monster/newthuhole/hole_thu_frontend.git`
`git clone https://git.thu.monster/newthuhole/hole_thu_frontend.git`
注意,由于改造自P大树洞网页版额包含了由xmcp维护的submodule
## 部署
推荐使用yarn
+ 本地调试
```
yarn install
@@ -18,6 +15,7 @@ yarn start
+ 打包部署
```
export REACT_APP_BUILD_INFO="your version"
yarn run build
```

View File

@@ -17,7 +17,8 @@
"react-timeago": "^4.4.0",
"typescript": "^4.0.2",
"workbox-sw": "^5.1.3",
"react-polls": "^1.2.0"
"react-polls": "^1.2.0",
"react-lazyload": "^3.2.0"
},
"scripts": {
"start": "react-scripts start",

View File

@@ -11,7 +11,7 @@ import {
HighlightedMarkdown,
} from './Common';
import './Flows.css';
import LazyLoad, { forceCheck } from './react-lazyload/src';
import LazyLoad, { forceCheck } from 'react-lazyload';
import { TokenCtx, ReplyForm } from './UserAction';
import { API, parse_replies } from './flows_api';
import { cache } from './cache';

View File

@@ -8792,6 +8792,11 @@ react-is@^16.8.1, react-is@^16.8.4:
resolved "https://registry.npm.taobao.org/react-is/download/react-is-16.13.1.tgz?cache=0&sync_timestamp=1598612913326&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-is%2Fdownload%2Freact-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha1-eJcppNw23imZ3BVt1sHZwYzqVqQ=
react-lazyload@^3.2.0:
version "3.2.0"
resolved "https://registry.npmmirror.com/react-lazyload/-/react-lazyload-3.2.0.tgz#497bd06a6dbd7015e3376e1137a67dc47d2dd021"
integrity sha512-zJlrG8QyVZz4+xkYZH5v1w3YaP5wEFaYSUWC4CT9UXfK75IfRAIEdnyIUF+dXr3kX2MOtL1lUaZmaQZqrETwgw==
react-polls@^1.2.0:
version "1.2.0"
resolved "https://registry.npmmirror.com/react-polls/download/react-polls-1.2.0.tgz#4d2e9802efe7e83ee8b37ae3d1368f7bf7869675"