删除 screenlog

This commit is contained in:
eson 2020-08-26 09:54:57 +08:00
parent 2e6814fb8c
commit 6fd40fa634
8 changed files with 19 additions and 94 deletions

2
.gitignore vendored
View File

@ -16,4 +16,4 @@ npm-debug.log
#go
debug.test
intimate_server

3
goserver/.gitignore vendored
View File

@ -1,3 +1,4 @@
initmate_server
intimate_server
log
*.html
screenlog.*

View File

@ -1,12 +1,12 @@
module initmate_server
module intimate_server
go 1.15
require (
github.com/474420502/focus v0.12.0
github.com/Pallinder/go-randomdata v1.1.0
github.com/Pallinder/go-randomdata v1.2.0
github.com/gin-gonic/gin v1.6.3
github.com/go-sql-driver/mysql v1.5.0
github.com/jinzhu/gorm v1.9.16 // indirect
gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2 v2.3.0
)

View File

@ -2,6 +2,8 @@ github.com/474420502/focus v0.12.0 h1:+icbmj7IEOefvTegHt5EpcHt6WFbe2miIrceUJx2Ev
github.com/474420502/focus v0.12.0/go.mod h1:d0PMjtMxFz1a9HIhwyFPkWa+JF+0LgOrEUfd8iZka6s=
github.com/Pallinder/go-randomdata v1.1.0 h1:gUubB1IEUliFmzjqjhf+bgkg1o6uoFIkRsP3VrhEcx8=
github.com/Pallinder/go-randomdata v1.1.0/go.mod h1:yHmJgulpD2Nfrm0cR9tI/+oAgRqCQQixsA8HyRZfV9Y=
github.com/Pallinder/go-randomdata v1.2.0 h1:DZ41wBchNRb/0GfsePLiSwb0PHZmT67XY00lCDlaYPg=
github.com/Pallinder/go-randomdata v1.2.0/go.mod h1:yHmJgulpD2Nfrm0cR9tI/+oAgRqCQQixsA8HyRZfV9Y=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@ -70,3 +72,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

View File

@ -1,77 +0,0 @@
2020/08/24 16:31:09 find config: ./config.yaml
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /twitcasting/query --> main.TwitcastingQuery (3 handlers)
[GIN-debug] GET /openrec/query --> main.OpenrecQuery (3 handlers)
[GIN-debug] GET /twitch/query --> main.TwitchQuery (3 handlers)
[GIN-debug] GET /tag/count --> main.CountTag (3 handlers)
[GIN-debug] GET /tag/allcount --> main.CountTag (3 handlers)
[GIN-debug] Listening and serving HTTP on :5500
16:33:16 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: followers descend
[GIN] 2020/08/24 - 16:33:17 | 200 | 397.857448ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=followers&ordertype=descend"
[GIN] 2020/08/24 - 16:33:17 | 200 | 630.949609ms | 192.168.16.130 | GET  "/tag/count?platform=twitcasting"
16:33:18 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: followers descend
[GIN] 2020/08/24 - 16:33:18 | 200 | 251.472068ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=followers&ordertype=descend"
16:36:32 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:36:32 | 200 | 65.723084ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:36:32 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:36:32 | 200 | 67.82141ms | 192.168.16.103 | GET  "/openrec/query?page=1&psize=20"
16:36:33 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:36:33 | 200 | 62.965398ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:36:37 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:36:38 | 200 | 231.238484ms | 192.168.16.130 | GET  "/twitch/query?page=1&psize=20"
16:37:23 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:23 | 200 | 77.816922ms | 192.168.16.103 | GET  "/openrec/query?page=1&psize=20"
16:37:23 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:23 | 200 | 60.302602ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:37:24 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:24 | 200 | 55.982297ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:37:28 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:37:28 | 200 | 72.116427ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:37:32 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views ascend
[GIN] 2020/08/24 - 16:37:32 | 200 | 60.815908ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20&orderfield=views&ordertype=ascend"
16:37:33 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: undefined
[GIN] 2020/08/24 - 16:37:33 | 200 | 49.692998ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20&orderfield=&ordertype=undefined"
16:37:35 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: undefined
[GIN] 2020/08/24 - 16:37:36 | 200 | 138.6536ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=&ordertype=undefined"
16:37:42 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:37:43 | 200 | 275.719131ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:37:44 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views ascend
[GIN] 2020/08/24 - 16:37:44 | 200 | 300.06176ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=views&ordertype=ascend"
16:37:45 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: undefined
[GIN] 2020/08/24 - 16:37:45 | 200 | 226.08364ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=&ordertype=undefined"
16:37:46 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:37:46 | 200 | 250.248182ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:37:54 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:54 | 200 | 54.738324ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:37:54 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:54 | 200 | 52.897355ms | 192.168.16.103 | GET  "/openrec/query?page=1&psize=20"
16:37:54 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 16:37:54 | 200 | 36.935769ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
16:37:56 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:37:56 | 200 | 57.870346ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:37:58 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:37:59 | 200 | 315.446812ms | 192.168.16.130 | GET  "/twitch/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:38:00 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views ascend
[GIN] 2020/08/24 - 16:38:00 | 200 | 233.687395ms | 192.168.16.130 | GET  "/twitch/query?page=1&psize=20&orderfield=views&ordertype=ascend"
16:38:01 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: undefined
[GIN] 2020/08/24 - 16:38:01 | 200 | 226.263587ms | 192.168.16.130 | GET  "/twitch/query?page=1&psize=20&orderfield=&ordertype=undefined"
16:38:02 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:38:02 | 200 | 219.708245ms | 192.168.16.130 | GET  "/twitch/query?page=1&psize=20&orderfield=views&ordertype=descend"
16:38:09 /home/eson/test/create-react-app-antd/goserver/query_data.go:35: views descend
[GIN] 2020/08/24 - 16:38:09 | 200 | 311.05848ms | 192.168.16.130 | GET  "/twitcasting/query?page=1&psize=20&orderfield=views&ordertype=descend"
[GIN] 2020/08/24 - 16:40:23 | 200 | 114.314µs | 192.168.16.130 | GET  "/tag/count?platform=twitcasting"
17:50:21 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 17:50:21 | 200 | 48.105852ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
17:50:21 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 17:50:21 | 200 | 29.279913ms | 192.168.16.103 | GET  "/openrec/query?page=1&psize=20"
17:50:36 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 17:50:36 | 200 | 28.115392ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
17:50:37 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 17:50:37 | 200 | 40.507783ms | 192.168.16.103 | GET  "/openrec/query?page=1&psize=20"
17:53:07 /home/eson/test/create-react-app-antd/goserver/query_data.go:35:
[GIN] 2020/08/24 - 17:53:07 | 200 | 22.445236ms | 192.168.16.130 | GET  "/openrec/query?page=1&psize=20"
[GIN] 2020/08/24 - 17:53:08 | 200 | 42.924993ms | 192.168.16.130 | GET  "/tag/count?platform=openrec&countkey=count"
^[[A^[[A^[[A^[[B^[[B^[[B^C

View File

@ -121,21 +121,17 @@ class ChartsCount extends React.Component {
}
countMethod(countkey, title) {
this.setState({countkey: countkey, title: title}, ()=>{this.updateData()});
this.setState({ countkey: countkey, title: title }, () => { this.updateData() });
}
render() {
return (
<div style={{ padding: 24, background: '#fff', minHeight: 780 }} >
<div>
<Row justify="start">
<Col span={3}> <Button type="primary" onClick={(e)=>{ this.countMethod("count", e.target.innerText) }} >统计数量关系</Button> </Col>
<Col span={3}>
<Button type="primary" onClick={(e)=>{
this.countMethod("followers", e.target.innerText)
}}>统计关注关系</Button>
</Col>
<Col span={3}> <Button type="primary" onClick={(e)=>{ this.countMethod("gratuity", e.target.innerText) }} >统计赏币关系</Button> </Col>
<Row justify="start" gutter={{ xs: 8, sm: 16, md: 24, lg: 32 }}>
<Col span={4}> <Button type="primary" onClick={(e) => { this.countMethod("count", e.target.innerText) }} >与数量关系</Button> </Col>
<Col span={4}> <Button type="primary" onClick={(e) => { this.countMethod("followers", e.target.innerText) }}>与关注关系</Button> </Col>
<Col span={4}> <Button type="primary" onClick={(e) => { this.countMethod("gratuity", e.target.innerText) }} >与赏币关系</Button> </Col>
</Row>
</div>
<Divider />

View File

@ -1 +1,2 @@
yarn start
cd goserver && screen -dmS initmate_web -L ./intimate_server && cd ..
screen -dmS yarn-intimate yarn start

View File

@ -9252,8 +9252,8 @@ react-route@^1.0.3:
react-router-dom@^5.2.0:
version "5.2.0"
resolved "https://registry.npm.taobao.org/react-router-dom/download/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662"
integrity sha1-nmWk0MReEyieZsexfH4XXQ6hVmI=
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-5.2.0.tgz#9e65a4d0c45e13289e66c7b17c7e175d0ea15662"
integrity sha512-gxAmfylo2QUjcwxI63RhQ5G85Qqt4voZpUXSEqCwykV0baaOTQDR1f0PmY8AELqIyVc0NEZUj0Gov5lNGcXgsA==
dependencies:
"@babel/runtime" "^7.1.2"
history "^4.9.0"