diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index d39f8a6..330a3f8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,9 +7,37 @@
@@ -72,7 +100,7 @@
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.standard": "",
"nodejs_package_manager_path": "npm",
- "settings.editor.selected.configurable": "settings.javascript.linters.eslint",
+ "settings.editor.selected.configurable": "go.vgo",
"ts.external.directory.path": "D:\\GoLand 2024.2.3\\plugins\\javascript-plugin\\jsLanguageServicesImpl\\external"
}
}
diff --git a/activity.log b/activity.log
index 26e63e0..fbef7a3 100644
--- a/activity.log
+++ b/activity.log
@@ -2279,3 +2279,66 @@
{"level":"INFO","time":"2024-12-30T14:26:01.206+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
{"level":"INFO","time":"2024-12-30T14:29:05.398+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
{"level":"INFO","time":"2024-12-30T14:31:23.617+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T13:11:35.994+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T13:11:35.998+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T13:11:36.478+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T13:11:42.121+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"ERROR","time":"2024-12-31T13:11:43.576+0800","caller":"middleware/token.go:28","msg":"token 无效","error":"token不正确"}
+{"level":"ERROR","time":"2024-12-31T13:11:47.483+0800","caller":"middleware/token.go:28","msg":"token 无效","error":"token不正确"}
+{"level":"ERROR","time":"2024-12-31T13:12:05.015+0800","caller":"middleware/token.go:28","msg":"token 无效","error":"token不正确"}
+{"level":"ERROR","time":"2024-12-31T13:12:12.047+0800","caller":"middleware/token.go:28","msg":"token 无效","error":"token不正确"}
+{"level":"INFO","time":"2024-12-31T13:13:29.215+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T13:15:13.627+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T14:04:18.482+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T14:04:18.487+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T14:04:18.954+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T14:04:24.087+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"INFO","time":"2024-12-31T14:06:42.534+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T14:08:59.143+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T14:23:29.785+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T14:23:29.791+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T14:23:30.241+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T14:23:35.252+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"INFO","time":"2024-12-31T14:25:11.425+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T14:25:11.429+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T14:25:11.877+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T14:25:17.106+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"INFO","time":"2024-12-31T15:00:32.847+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T15:00:32.851+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T15:00:33.257+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T15:00:38.542+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"INFO","time":"2024-12-31T15:12:59.320+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
+{"level":"INFO","time":"2024-12-31T15:16:45.681+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:16:48.293+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:16:51.548+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:16:52.785+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
+{"level":"INFO","time":"2024-12-31T15:16:54.225+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T15:18:15.854+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=4)连接"}
+{"level":"INFO","time":"2024-12-31T15:18:18.049+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
+{"level":"INFO","time":"2024-12-31T15:18:27.686+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:18:29.678+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:18:30.688+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=2)连接"}
+{"level":"INFO","time":"2024-12-31T15:19:03.135+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"ERROR","time":"2024-12-31T15:57:44.879+0800","caller":"controller/checkerboard.go:30","msg":"活动结束"}
+{"level":"INFO","time":"2024-12-31T15:57:51.495+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=1)连接"}
+{"level":"INFO","time":"2024-12-31T15:58:25.383+0800","caller":"utils/init.go:160","msg":"init logger success"}
+{"level":"INFO","time":"2024-12-31T15:58:25.387+0800","caller":"utils/init.go:42","msg":"初始化logger成功"}
+{"level":"INFO","time":"2024-12-31T15:58:25.877+0800","caller":"utils/init.go:47","msg":"初始化mysql成功"}
+{"level":"INFO","time":"2024-12-31T15:58:31.950+0800","caller":"handle/create_shiled.go:26","msg":"初始化盾信息成功"}
+{"level":"ERROR","time":"2024-12-31T15:58:36.231+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"ERROR","time":"2024-12-31T15:58:59.804+0800","caller":"controller/checkerboard.go:43","msg":"参数绑定失败","error":"json: cannot unmarshal string into Go struct field Record.transaction_amount of type float64"}
+{"level":"ERROR","time":"2024-12-31T15:59:02.526+0800","caller":"controller/checkerboard.go:43","msg":"参数绑定失败","error":"json: cannot unmarshal string into Go struct field Record.transaction_amount of type float64"}
+{"level":"ERROR","time":"2024-12-31T15:59:09.925+0800","caller":"controller/checkerboard.go:43","msg":"参数绑定失败","error":"json: cannot unmarshal string into Go struct field Record.transaction_amount of type float64"}
+{"level":"ERROR","time":"2024-12-31T16:00:49.205+0800","caller":"controller/checkerboard.go:86","msg":"用户提交的数据不足以买下"}
+{"level":"ERROR","time":"2024-12-31T16:01:02.166+0800","caller":"controller/checkerboard.go:43","msg":"参数绑定失败","error":"json: cannot unmarshal string into Go struct field Record.transaction_amount of type float64"}
+{"level":"INFO","time":"2024-12-31T16:02:28.673+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:02:33.664+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:02:36.657+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:02:58.123+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:03:23.531+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:03:27.326+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:04:10.676+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:05:00.667+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:05:02.844+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:05:13.669+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
+{"level":"INFO","time":"2024-12-31T16:05:16.837+0800","caller":"handle/wshandle.go:95","msg":"用户0xb1b49f717045f0a1a667ccb56e5caaf47d16116f通过客户端主动关闭模块%!t(int=3)连接"}
diff --git a/checkerboard/package-lock.json b/checkerboard/package-lock.json
index f24f1be..1027a29 100644
--- a/checkerboard/package-lock.json
+++ b/checkerboard/package-lock.json
@@ -2575,7 +2575,7 @@
"node_modules/@emotion/babel-plugin": {
"version": "11.13.5",
"resolved": "https://registry.npmmirror.com/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",
- "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",
+ "integrity": "sha512-remHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",
"license": "MIT",
"dependencies": {
"@babel/helper-module-imports": "^7.16.7",
@@ -5047,7 +5047,7 @@
"node_modules/@mui/material": {
"version": "6.3.0",
"resolved": "https://registry.npmmirror.com/@mui/material/-/material-6.3.0.tgz",
- "integrity": "sha512-qhlTFyRMxfoVPxUtA5e8IvqxP0dWo2Ij7cvot7Orag+etUlZH+3UwD8gZGt+3irOoy7Ms3UNBflYjwEikUXtAQ==",
+ "integrity": "sha512-qhlTFyRMxfoVremUtA5e8IvqxP0dWo2Ij7cvot7Orag+etUlZH+3UwD8gZGt+3irOoy7Ms3UNBflYjwEikUXtAQ==",
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.26.0",
@@ -6353,7 +6353,7 @@
"node_modules/@rollup/rollup-linux-arm-musleabihf": {
"version": "4.27.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.27.3.tgz",
- "integrity": "sha512-Sv2GWmrJfRY57urktVLQ0VKZjNZGogVtASAgosDZ1aUB+ykPxSi3X1nWORL5Jk0sTIIwQiPH7iE3BMi9zGWfkg==",
+ "integrity": "sha512-Sv2GWmrJfRY57urktVLQ0VKZjNZGogVtASAgosDZ1aUB+ykremSi3X1nWORL5Jk0sTIIwQiPH7iE3BMi9zGWfkg==",
"cpu": [
"arm"
],
@@ -6367,7 +6367,7 @@
"node_modules/@rollup/rollup-linux-arm64-gnu": {
"version": "4.27.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.27.3.tgz",
- "integrity": "sha512-FPoJBLsPW2bDNWjSrwNuTPUt30VnfM8GPGRoLCYKZpPx0xiIEdFip3dH6CqgoT0RnoGXptaNziM0WlKgBc+OWQ==",
+ "integrity": "sha512-FPoJBLsPW2bDNWjSrwNuTPUt30VnfM8GPGRoLCYKZprem0xiIEdFip3dH6CqgoT0RnoGXptaNziM0WlKgBc+OWQ==",
"cpu": [
"arm64"
],
@@ -6479,7 +6479,7 @@
"node_modules/@rollup/rollup-win32-ia32-msvc": {
"version": "4.27.3",
"resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.27.3.tgz",
- "integrity": "sha512-ecE36ZBMLINqiTtSNQ1vzWc5pXLQHlf/oqGp/bSbi7iedcjcNb6QbCBNG73Euyy2C+l/fn8qKWEwxr+0SSfs3w==",
+ "integrity": "sha512-ecE36ZBMLINqiTtSNQ1vzWc5remLQHlf/oqGp/bSbi7iedcjcNb6QbCBNG73Euyy2C+l/fn8qKWEwxr+0SSfs3w==",
"cpu": [
"ia32"
],
@@ -8337,7 +8337,7 @@
"node_modules/@uni/file": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/@uni/file/-/file-1.1.1.tgz",
- "integrity": "sha512-gbymGoyD02cWHGVGapxp0zl3VAEU/u4vpDSyfS1tSnIGFjwIbCGq+W+uTAnJYduDbdy4Xiuwzbf0b/4slY9bmQ==",
+ "integrity": "sha512-gbymGoyD02cWHGVGaremp0zl3VAEU/u4vpDSyfS1tSnIGFjwIbCGq+W+uTAnJYduDbdy4Xiuwzbf0b/4slY9bmQ==",
"license": "BSD-3-Clause",
"peer": true,
"dependencies": {
@@ -11423,7 +11423,7 @@
"node_modules/align-text/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT"
},
"node_modules/align-text/node_modules/kind-of": {
@@ -11568,7 +11568,7 @@
"node_modules/arr-diff": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/arr-diff/-/arr-diff-4.0.0.tgz",
- "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==",
+ "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllremMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==",
"license": "MIT",
"optional": true,
"engines": {
@@ -16571,7 +16571,7 @@
"node_modules/fragment-cache": {
"version": "0.2.1",
"resolved": "https://registry.npmmirror.com/fragment-cache/-/fragment-cache-0.2.1.tgz",
- "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==",
+ "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBAremdQyfepKly2kA==",
"license": "MIT",
"optional": true,
"dependencies": {
@@ -16970,7 +16970,7 @@
"node_modules/has-values/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT",
"optional": true
},
@@ -17632,7 +17632,7 @@
"node_modules/is-descriptor": {
"version": "0.1.7",
"resolved": "https://registry.npmmirror.com/is-descriptor/-/is-descriptor-0.1.7.tgz",
- "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfrem4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==",
"license": "MIT",
"optional": true,
"dependencies": {
@@ -20221,7 +20221,7 @@
"node_modules/node-libs-browser": {
"version": "2.2.1",
"resolved": "https://registry.npmmirror.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz",
- "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==",
+ "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3remgCu8KS3b71YK5Q==",
"license": "MIT",
"dependencies": {
"assert": "^1.1.1",
@@ -20365,7 +20365,7 @@
"node_modules/normalize-package-data/node_modules/resolve": {
"version": "1.22.9",
"resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.9.tgz",
- "integrity": "sha512-QxrmX1DzraFIi9PxdG5VkRfRwIgjwyud+z/iBwfRRrVmHc+P9Q7u2lSSpQ6bjr2gy5lrqIiU9vb6iAeGf2400A==",
+ "integrity": "sha512-QxrmX1DzraFIi9remdG5VkRfRwIgjwyud+z/iBwfRRrVmHc+P9Q7u2lSSpQ6bjr2gy5lrqIiU9vb6iAeGf2400A==",
"license": "MIT",
"dependencies": {
"is-core-module": "^2.16.0",
@@ -20516,7 +20516,7 @@
"node_modules/object-copy/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT",
"optional": true
},
@@ -21010,7 +21010,7 @@
"node_modules/pako": {
"version": "1.0.11",
"resolved": "https://registry.npmmirror.com/pako/-/pako-1.0.11.tgz",
- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVremCIO0z4taYw==",
"license": "(MIT AND Zlib)"
},
"node_modules/parent-module": {
@@ -21855,7 +21855,7 @@
"node_modules/rax": {
"version": "1.2.3",
"resolved": "https://registry.npmmirror.com/rax/-/rax-1.2.3.tgz",
- "integrity": "sha512-/lkZ7Yb3be06e68y4wn5WIyudzvrnHiTEjeAznJ7nPrfmjoCan2hcKPXmTYXdHU+IqkvGbzDlLZRWbVtmRTAcw==",
+ "integrity": "sha512-/lkZ7Yb3be06e68y4wn5WIyudzvrnHiTEjeAznJ7nPrfmjoCan2hcKremmTYXdHU+IqkvGbzDlLZRWbVtmRTAcw==",
"license": "BSD-3-Clause",
"peer": true,
"dependencies": {
@@ -22887,7 +22887,7 @@
"node_modules/read-pkg-up": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
- "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==",
+ "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTremoHkfZf3+DkCCsXox94/VWZniuZm6A==",
"license": "MIT",
"dependencies": {
"find-up": "^1.0.0",
@@ -23650,7 +23650,7 @@
"node_modules/safe-regex": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/safe-regex/-/safe-regex-1.1.0.tgz",
- "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==",
+ "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4remtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==",
"license": "MIT",
"optional": true,
"dependencies": {
@@ -24131,7 +24131,7 @@
"node_modules/snapdragon-util/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT",
"optional": true
},
@@ -24749,7 +24749,7 @@
"node_modules/style-equal": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/style-equal/-/style-equal-1.0.0.tgz",
- "integrity": "sha512-gf20kfwh7eXsgPcwvYqViCBHr+GXIlpXOZR1wQftNH4/ee2P/yolWUVA/MdMdmMp+0BMfvaMKSIR1DQlY64Btw==",
+ "integrity": "sha512-gf20kfwh7eXsgPcwvYqViCBHr+GXIlremOZR1wQftNH4/ee2P/yolWUVA/MdMdmMp+0BMfvaMKSIR1DQlY64Btw==",
"license": "MIT"
},
"node_modules/style-unit": {
@@ -24765,7 +24765,7 @@
"node_modules/style-unit/node_modules/universal-env": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/universal-env/-/universal-env-2.0.0.tgz",
- "integrity": "sha512-jfPJvPXFdhJHsDhuCHj3Njc3nxF+dmj6LeqKE9R41EdKKOJ1d5GGpFu3DrT+Ff+pxS9jsnbtj7BZYFAcLlxdPg==",
+ "integrity": "sha512-jfPJvremFdhJHsDhuCHj3Njc3nxF+dmj6LeqKE9R41EdKKOJ1d5GGpFu3DrT+Ff+remS9jsnbtj7BZYFAcLlxdPg==",
"license": "BSD-3-Clause",
"peer": true,
"engines": {
@@ -24885,7 +24885,7 @@
"node_modules/swiper": {
"version": "6.5.0",
"resolved": "https://registry.npmmirror.com/swiper/-/swiper-6.5.0.tgz",
- "integrity": "sha512-cSx1SpfgrHlgwku++3Ce3cjPBpXgB7P+bGik5S3+F+j6ID0NUeV6qtmedFdr3C8jXR/W+TJPVNIT9fH/cwVAiA==",
+ "integrity": "sha512-cSx1SpfgrHlgwku++3Ce3cjPBremgB7P+bGik5S3+F+j6ID0NUeV6qtmedFdr3C8jXR/W+TJPVNIT9fH/cwVAiA==",
"funding": [
{
"type": "patreon",
@@ -25151,7 +25151,7 @@
"node_modules/to-object-path": {
"version": "0.3.0",
"resolved": "https://registry.npmmirror.com/to-object-path/-/to-object-path-0.3.0.tgz",
- "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==",
+ "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58rembkngtBtqYxzNEyg==",
"license": "MIT",
"optional": true,
"dependencies": {
@@ -25164,7 +25164,7 @@
"node_modules/to-object-path/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT",
"optional": true
},
@@ -25513,7 +25513,7 @@
"node_modules/uglify-js/node_modules/yargs": {
"version": "3.10.0",
"resolved": "https://registry.npmmirror.com/yargs/-/yargs-3.10.0.tgz",
- "integrity": "sha512-QFzUah88GAGy9lyDKGBqZdkYApt63rCXYBGYnEP4xDJPXNqXXnBDACnbrXnViV6jRSqAePwrATi2i8mfYm4L1A==",
+ "integrity": "sha512-QFzUah88GAGy9lyDKGBqZdkYApt63rCXYBGYnEP4xDJremNqXXnBDACnbrXnViV6jRSqAePwrATi2i8mfYm4L1A==",
"license": "MIT",
"dependencies": {
"camelcase": "^1.0.2",
@@ -25683,7 +25683,7 @@
"node_modules/universal-element": {
"version": "0.0.6",
"resolved": "https://registry.npmmirror.com/universal-element/-/universal-element-0.0.6.tgz",
- "integrity": "sha512-J1olYldUlj35w4pBt1LljiRuRjohATGHCIiiOHOepXtELB8zESOdYDlrFtXfxGtb6TUZm8oAaOPbTwhb+6A4BA==",
+ "integrity": "sha512-J1olYldUlj35w4pBt1LljiRuRjohATGHCIiiOHOeremtELB8zESOdYDlrFtXfxGtb6TUZm8oAaOPbTwhb+6A4BA==",
"peer": true,
"dependencies": {
"universal-env": "^3.0.0"
@@ -25724,7 +25724,7 @@
"node_modules/universal-transition": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/universal-transition/-/universal-transition-1.1.1.tgz",
- "integrity": "sha512-TeYwWDhoYSYeGwX2L80gAQx7wByGvQ1WsPxqp+c6yYzqrc6BUuqpohtWY5Gh4ZPo0nToSNeadhly9sjeGLlV6Q==",
+ "integrity": "sha512-TeYwWDhoYSYeGwX2L80gAQx7wByGvQ1Wsremqp+c6yYzqrc6BUuqpohtWY5Gh4ZPo0nToSNeadhly9sjeGLlV6Q==",
"license": "BSD-3-Clause",
"peer": true,
"dependencies": {
@@ -25740,7 +25740,7 @@
"node_modules/universal-unit-tool": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/universal-unit-tool/-/universal-unit-tool-1.0.0.tgz",
- "integrity": "sha512-YTKN4pUqgAQqP5duZQSTxv2zswkUdZ4z3KtRgpXOxlo3huJm7xbiwhxeX8RM675Tjfo4entn8yQHclFJy9iaQQ==",
+ "integrity": "sha512-YTKN4pUqgAQqP5duZQSTxv2zswkUdZ4z3KtRgremOxlo3huJm7xbiwhxeX8RM675Tjfo4entn8yQHclFJy9iaQQ==",
"license": "BSD-3-Clause",
"peer": true,
"dependencies": {
@@ -26416,7 +26416,7 @@
"node_modules/watchpack": {
"version": "1.7.5",
"resolved": "https://registry.npmmirror.com/watchpack/-/watchpack-1.7.5.tgz",
- "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTPxPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==",
+ "integrity": "sha512-9P3MWk6SrKjHsGkLT2KHXdQ/9SNkyoJbabxnKOoJepsvJjJG8uYTR3yTremPQvNDI3w4Nz1xnE0TLHK4RIVe/MQ==",
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.1.2",
@@ -26586,7 +26586,7 @@
"node_modules/watchpack-chokidar2/node_modules/is-buffer": {
"version": "1.1.6",
"resolved": "https://registry.npmmirror.com/is-buffer/-/is-buffer-1.1.6.tgz",
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
+ "integrity": "sha512-NcdALwremkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
"license": "MIT",
"optional": true
},
@@ -28564,7 +28564,7 @@
"node_modules/webpack/node_modules/yargs-parser": {
"version": "4.2.1",
"resolved": "https://registry.npmmirror.com/yargs-parser/-/yargs-parser-4.2.1.tgz",
- "integrity": "sha512-+QQWqC2xeL0N5/TE+TY6OGEqyNRM+g2/r712PDNYgiCdXYCApXf1vzfmDSLBxfGRwV+moTq/V8FnMI24JCm2Yg==",
+ "integrity": "sha512-+QQWqC2xeL0N5/TE+TY6OGEqyNRM+g2/r712PDNYgiCdXYCAremf1vzfmDSLBxfGRwV+moTq/V8FnMI24JCm2Yg==",
"license": "ISC",
"dependencies": {
"camelcase": "^3.0.0"
@@ -28780,7 +28780,7 @@
"node_modules/window-size": {
"version": "0.1.0",
"resolved": "https://registry.npmmirror.com/window-size/-/window-size-0.1.0.tgz",
- "integrity": "sha512-1pTPQDKTdd61ozlKGNCjhNRd+KPmgLSGa3mZTHoOliaGcESD8G1PXhh7c1fgiPjVbNVfgy2Faw4BI8/m0cC8Mg==",
+ "integrity": "sha512-1pTPQDKTdd61ozlKGNCjhNRd+KPmgLSGa3mZTHoOliaGcESD8G1remhh7c1fgiPjVbNVfgy2Faw4BI8/m0cC8Mg==",
"engines": {
"node": ">= 0.8.0"
}
diff --git a/checkerboard/src/components/Countdown.jsx b/checkerboard/src/components/Countdown.jsx
index 3802b8c..3cd626e 100644
--- a/checkerboard/src/components/Countdown.jsx
+++ b/checkerboard/src/components/Countdown.jsx
@@ -37,7 +37,7 @@ const styles = {
fontFamily: 'Arial, sans-serif',
},
time: {
- fontSize: '16px',
+ fontSize: '16rem',
fontWeight: 'bold',
},
};
diff --git a/checkerboard/src/components/Gohome.jsx b/checkerboard/src/components/Gohome.jsx
index 8cb3289..ba5adec 100644
--- a/checkerboard/src/components/Gohome.jsx
+++ b/checkerboard/src/components/Gohome.jsx
@@ -7,11 +7,11 @@ const GoHome = () => {
navigate('/')
}
const style = {
- width:'200px',
- height:'40px',
+ width:'200rem',
+ height:'40rem',
backgroundColor:'#F5E01B',
- border:'1px solid #F5E01B',
- borderRadius:'12px',
+ border:'1rem solid #F5E01B',
+ borderRadius:'12rem',
position:'absolute',
fontWeight:'bolder',
cursor:'pointer',
diff --git a/checkerboard/src/components/chessboard/ChessBoard.css b/checkerboard/src/components/chessboard/ChessBoard.css
index 317ab73..f6a36f0 100644
--- a/checkerboard/src/components/chessboard/ChessBoard.css
+++ b/checkerboard/src/components/chessboard/ChessBoard.css
@@ -22,9 +22,9 @@
flex-direction: column;
align-items: center;
justify-content: center;
- height: 750px;
- width: 1324px;
- margin-top: 40px;
+ height: 750rem;
+ width: 1324rem;
+ margin-top: 40rem;
clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%);
background-color: #000000;
box-sizing: border-box;
@@ -39,9 +39,9 @@
align-items: center;
flex-wrap: wrap;
flex-direction: column;
- height: 730px;
- width: 989px;
- margin-left: 94px;
+ height: 730rem;
+ width: 989rem;
+ margin-left: 94rem;
background-color: #191919;
clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
}
@@ -53,43 +53,43 @@
flex-wrap: wrap;
align-content: space-around;
justify-content: flex-start;
- margin-left: 10px;
- margin-right: 93px;
+ margin-left: 10rem;
+ margin-right: 93rem;
background-color: #191919;
- height: 729px;
- width: 300px;
+ height: 729rem;
+ width: 300rem;
}
.batch-avatar{
- margin-top: 130px;
+ margin-top: 130rem;
}
.is-owner{
- margin-top: 20px;
+ margin-top: 20rem;
font-family: SF Pro;
- font-size: 20px;
+ font-size: 20rem;
font-weight: 860;
- line-height: 23.87px;
+ line-height: 23.87rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
}
.owner-div{
- margin-top: 30px;
+ margin-top: 30rem;
font-family: SF Pro;
- font-size: 12px;
+ font-size: 12rem;
font-weight: 400;
- line-height: 14.32px;
+ line-height: 14.32rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
}
.owner-div span{
font-family: SF Pro;
- font-size: 12px;
+ font-size: 12rem;
font-weight: 700;
- line-height: 14.32px;
+ line-height: 14.32rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
@@ -97,36 +97,36 @@
}
.value-div-owner{
- margin-top: 10px;
+ margin-top: 10rem;
font-family: SF Pro;
- font-size: 12px;
+ font-size: 12rem;
font-weight: 400;
- line-height: 14.32px;
+ line-height: 14.32rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
}
.value-div-noowner{
- margin-top: 52px;
+ margin-top: 52rem;
}
.value-amount-font{
font-family: SF Pro;
- font-size: 12px;
+ font-size: 12rem;
font-weight: 400;
- line-height: 14.32px;
+ line-height: 14.32rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
}
.amount-div-value{
- margin-top: 5px;
+ margin-top: 5rem;
font-family: SF Pro;
- font-size: 16px;
+ font-size: 16rem;
font-weight: 700;
- line-height: 19.09px;
+ line-height: 19.09rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
@@ -138,11 +138,11 @@
}
.batch-number-div{
- margin-top: 20px;
+ margin-top: 20rem;
font-family: SF Pro;
- font-size: 20px;
+ font-size: 20rem;
font-weight: 860;
- line-height: 23.87px;
+ line-height: 23.87rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
@@ -150,11 +150,11 @@
}
.total-comount{
- margin-top: 50px;
+ margin-top: 50rem;
font-family: SF Pro;
- font-size: 12px;
+ font-size: 12rem;
font-weight: 400;
- line-height: 14.32px;
+ line-height: 14.32rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
@@ -162,32 +162,33 @@
}
.total-comount-div{
font-family: SF Pro;
- font-size: 16px;
+ font-size: 16rem;
font-weight: 700;
- line-height: 19.09px;
+ line-height: 19.09rem;
text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: #2FF519;
- margin-top: 10px;
+ margin-top: 10rem;
}
.batch-buttom-right-input{
- height: 50px;
- width: 170px;
- font-size: 16px;
+ height: 50rem;
+ width: 170rem;
+ font-size: 16rem;
font-weight: 400;
- border-radius: 12px;
- border: 10px solid #292929;
+ border-radius: 12rem;
+ border: 10rem solid #292929;
background-color: #191919;
color: white;
- margin-top: 50px;
+ margin-top: 50rem;
}
.batch-buttom-right-input:hover {
background-color:#191919 !important;
border-color: #292929; /* 鼠标悬停时的边框颜色 */
- box-shadow: 0 0 5px #292929; /* 添加悬浮阴影 */
+ box-shadow: 0 0 5rem #292929;
+ /* 添加悬浮阴影 */
}
@@ -195,20 +196,20 @@
.batch-buttom-right-input:focus {
background-color:#191919 !important;
border-color: #292929;
- box-shadow: 0 0 5px #292929;
+ box-shadow: 0 0 5rem #292929;
}
.container-right {
display: flex;
flex-direction: column;
- margin-left: 10px;
- margin-right: 93px;
+ margin-left: 10rem;
+ margin-right: 93rem;
background-color: #191919;
- height: 729px;
- width: 300px;
+ height: 729rem;
+ width: 300rem;
}
.container-right-internal{
- margin-left: 70px;
+ margin-left: 70rem;
}
.div-btn-style {
@@ -251,9 +252,9 @@
justify-content: center;
align-items: center;
background-color: #e3e3e3;
- border: 1px solid #ccc;
- border-radius: 6px;
- font-size: 14px;
+ border: 1rem solid #ccc;
+ border-radius: 6rem;
+ font-size: 14rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
@@ -263,26 +264,40 @@
display: flex;
flex-direction: column;
align-items: center;
- margin-left: 10px;
+ margin-left: 10rem;
position: absolute;
- border-radius: 5px;
- top: 270px;
- right: 3px;
+ border-radius: 5rem;
+ top: 270rem;
+ right: 3rem;
z-index: 3;
}
.record-table-dev {
- height: 500px;
- border: 10px solid #000000;
+ height: 500rem;
+ border: 10rem solid #000000;
+}
+.record-table-dev-title{
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ height: 50rem;
+ color: #ffffff;
+ font-size: 16rem;
+ font-family: SF Pro;
+ font-weight: 800;
+ line-height: 16.71rem;
+ text-align: left;
+ text-underline-position: from-font;
+ text-decoration-skip-ink: none;
}
.grid-container {
display: grid;
grid-template-columns: repeat(10, 1fr);
- gap: 5px;
- width: 500px;
- height: 500px;
- padding: 10px;
+ gap: 5rem;
+ width: 500rem;
+ height: 500rem;
+ padding: 10rem;
}
.shiled-div{
@@ -290,10 +305,10 @@
position: relative;
justify-content: center;
align-items: center;
- height: 50px;
- width: 50px;
- border: 5px solid #c53d7b;
- font-size: 14px;
+ height: 50rem;
+ width: 50rem;
+ border: 5rem solid #c53d7b;
+ font-size: 14rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
@@ -304,13 +319,13 @@
position: relative;
justify-content: center;
align-items: center;
- height: 50px;
- width: 50px;
- border: 5px solid #6076C1;
+ height: 50rem;
+ width: 50rem;
+ border: 5rem solid #6076C1;
background-image: url("./images/picture/grid-img.png");
background-position: center;
background-repeat: no-repeat;
- font-size: 14px;
+ font-size: 14rem;
font-weight: bold;
cursor: pointer;
transition: background-color 0.2s;
@@ -318,53 +333,53 @@
.hover-style{
position: absolute;
- top: 40px;
- right: -6px;
+ top: 40rem;
+ right: -6rem;
}
.selected-style{
position: absolute;
- top: 40px;
- right: -6px;
+ top: 40rem;
+ right: -6rem;
}
.svg-style{
position: absolute;
- top: -5px;
- left: 0px;
+ top: -5rem;
+ left: 0rem;
}
/*拥有的格子*/
.grid-box.have {
- border: 5px solid #4A7971;
+ border: 5rem solid #4A7971;
}
/*被他人抢占的*/
.grid-box.preempted {
- border: 5px solid #B35649;
+ border: 5rem solid #B35649;
}
.submit-button {
text-align: center;
- width: 20px;
- margin-top: 10px;
- padding-right: 25px;
- font-size: 18px;
+ width: 20rem;
+ margin-top: 10rem;
+ padding-right: 25rem;
+ font-size: 18rem;
color: #1677ff;
border: none;
- border-radius: 5px;
+ border-radius: 5rem;
cursor: pointer;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 4rem 10rem rgba(0, 0, 0, 0.2);
transition: background-color 0.3s, transform 0.3s;
}
.box-details {
- width: 400px;
- height: 400px;
- margin-left: 20px;
- padding: 10px;
- border: 1px solid #ddd;
- border-radius: 5px;
+ width: 400rem;
+ height: 400rem;
+ margin-left: 20rem;
+ padding: 10rem;
+ border: 1rem solid #ddd;
+ border-radius: 5rem;
background-color: #f9f9f9;
}
@@ -374,59 +389,59 @@
.popupStyle {
position: fixed;
- right: -50px;
+ right: -50rem;
transform: translate(-50%, -50%);
- width: 250px;
- height: 400px;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
- border-radius: 6px;
+ width: 250rem;
+ height: 400rem;
+ box-shadow: 0 4rem 10rem rgba(0, 0, 0, 0.2);
+ border-radius: 6rem;
background-color: white;
- border: 1px solid black;
- padding: 20px;
+ border: 1rem solid black;
+ padding: 20rem;
z-index: 1;
}
.testStyle {
position: fixed;
- right: -50px;
+ right: -50rem;
transform: translate(-50%, -50%);
- width: 250px;
- height: 400px;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
- border-radius: 6px;
+ width: 250rem;
+ height: 400rem;
+ box-shadow: 0 4rem 10rem rgba(0, 0, 0, 0.2);
+ border-radius: 6rem;
background-color: white;
- border: 1px solid black;
- padding: 20px;
+ border: 1rem solid black;
+ padding: 20rem;
z-index: 1;
}
.batch-button-style{
- height:50px ;
- width: 170px;
- border: 10px solid #292929;
- border-radius: 14px;
+ height: 50rem;
+ width: 170rem;
+ border: 10rem solid #292929;
+ border-radius: 14rem;
background-color: #F5E01B;
font-weight: 700;
- font-size: 16px;
+ font-size: 16rem;
color: #3C342F;
cursor: pointer;
- margin-top: 10px;
+ margin-top: 10rem;
}
.button-style{
- margin-top: 10px;
- height: 50px;
- width: 170px;
+ margin-top: 10rem;
+ height: 50rem;
+ width: 170rem;
cursor: pointer;
- border: 10px solid #262626;
- border-radius: 15px;
+ border: 10rem solid #262626;
+ border-radius: 15rem;
background-color: #F5E01B;
color: #3C342F;
font-family: SF Pro;
- font-size: 16px;
+ font-size: 16rem;
font-weight: 700;
- line-height: 19.09px;
+ line-height: 19.09rem;
text-align: center;
text-underline-position: from-font;
text-decoration-skip-ink: none;
@@ -437,8 +452,8 @@
.model-style{
display: flex;
flex-direction: column;
- width: 849px;
- border: 10px solid #292929 !important;
+ width: 849rem;
+ border: 10rem solid #292929 !important;
}
.div-style-top{
display: flex;
@@ -449,17 +464,17 @@
height: 100%;
transform: scale(1.3,0.8);
font-weight: bolder;
- font-size: 50px;
+ font-size: 50rem;
}
.shild-wenzi-style-chess{
position: absolute;
- top: 145px;
- left: 85px;
- font-size: 16px;
+ top: 145rem;
+ left: 85rem;
+ font-size: 16rem;
font-weight: 700;
- letter-spacing: 1px;
+ letter-spacing: 1rem;
}
.chess-div-style-bottom{
@@ -479,29 +494,29 @@
flex-wrap: nowrap;
flex-direction: row;
position: relative;
- width: 349px;
- height: 240px;
+ width: 349rem;
+ height: 240rem;
background-color: #3C342F;
- border-radius: 8px;
+ border-radius: 8rem;
}
.chess-button-left-style{
display: flex;
- font-size: 26px;
+ font-size: 26rem;
font-weight: 700;
- letter-spacing: 1px;
- margin-left: 20px;
- margin-top: 10px;
+ letter-spacing: 1rem;
+ margin-left: 20rem;
+ margin-top: 10rem;
}
.button-left-image{
- height: 132px;
- width: 349px;
+ height: 132rem;
+ width: 349rem;
}
.chess-button-left-button{
display: flex;
justify-content: space-around;
- width: 349px;
+ width: 349rem;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
@@ -510,18 +525,18 @@
.svg-chess-choice{
position: absolute;
- top: -26px;
- left: -25px;
+ top: -26rem;
+ left: -25rem;
}
.chess-button-left-button-p{
- font-size: 46px;
+ font-size: 46rem;
font-weight: 860;
- letter-spacing: 1px;
+ letter-spacing: 1rem;
color: #F5E01B;
}
.div-style-bottom-right{
- width: 250px;
+ width: 250rem;
}
.buttom-right-top{
display: flex;
@@ -536,7 +551,7 @@
width: 100%;
}
.buttom-right-top p{
- font-size: 16px;
+ font-size: 16rem;
font-weight: 400;
}
@@ -548,23 +563,24 @@
display: flex;
flex-direction: row;
justify-content: center;
- margin-top: 150px;
+ margin-top: 150rem;
}
.buttom-right-input{
- height: 50px;
- width: 170px;
- font-size: 16px;
+ height: 50rem;
+ width: 170rem;
+ font-size: 16rem;
font-weight: 400;
- border-radius: 12px;
- border: 10px solid #292929;
+ border-radius: 12rem;
+ border: 10rem solid #292929;
background-color: #191919;
color: white;
}
.buttom-right-input:hover {
background-color:#191919 !important;
border-color: #292929; /* 鼠标悬停时的边框颜色 */
- box-shadow: 0 0 5px #292929; /* 添加悬浮阴影 */
+ box-shadow: 0 0 5rem #292929;
+ /* 添加悬浮阴影 */
}
@@ -572,38 +588,38 @@
.buttom-right-input:focus {
background-color:#191919 !important;
border-color: #292929;
- box-shadow: 0 0 5px #292929;
+ box-shadow: 0 0 5rem #292929;
}
/* 输入框在选中后且鼠标悬停时样式 */
.buttom-right-input-input:focus:hover {
background-color:#191919 !important;
border-color: #673ab7;
- box-shadow: 0 0 5px rgba(103, 58, 183, 0.8);
+ box-shadow: 0 0 5rem rgba(103, 58, 183, 0.8);
}
.buttom-update-shiled {
- width: 250px;
- height: 40px;
+ width: 250rem;
+ height: 40rem;
background-color: #f5df1b;
cursor: pointer;
- border: 1px solid #f5df1b;
- border-radius: 10px;
- margin-right: 10px;
+ border: 1rem solid #f5df1b;
+ border-radius: 10rem;
+ margin-right: 10rem;
font-weight: 600;
- font-size: 16px;
+ font-size: 16rem;
}
.buttom-confirm-shiled{
- width: 250px;
- height: 40px;
+ width: 250rem;
+ height: 40rem;
background-color: #f9f9f9;
cursor: pointer;
- border: 1px solid #f9f9f9;
- border-radius: 10px;
- margin-left: 10px;
+ border: 1rem solid #f9f9f9;
+ border-radius: 10rem;
+ margin-left: 10rem;
font-weight: 600;
- font-size: 16px;
+ font-size: 16rem;
}
@@ -616,11 +632,11 @@
width: 100vw;
}
.grid-box {
- height: 50px;
- font-size: 14px;
+ height: 50rem;
+ font-size: 14rem;
}
.submit-button {
- font-size: 16px;
- padding: 10px 20px;
+ font-size: 16rem;
+ padding: 10rem 20rem;
}
}
\ No newline at end of file
diff --git a/checkerboard/src/components/chessboard/ChessBoard.jsx b/checkerboard/src/components/chessboard/ChessBoard.jsx
index e0aa0d2..4295eb3 100644
--- a/checkerboard/src/components/chessboard/ChessBoard.jsx
+++ b/checkerboard/src/components/chessboard/ChessBoard.jsx
@@ -157,8 +157,9 @@ const ChessBoard = ({gId}) => {
return
}
- box.price>box.price_increase ?(setValue(box.price)):(setValue(box.price_increase))
- setMessage(box);
+ box.price>box.price_increase ?(setValue(box.price),setbetValue(box.price)):(setValue(box.price_increase),setbetValue(box.price_increase))
+ setMessage(box);
+
setShowPopup(true);
if (showPopup) {
setSelectedBoxes([]);
@@ -254,7 +255,11 @@ const ChessBoard = ({gId}) => {
setIncreaseValue(e.target.value);
};
const betValueChange =(e)=>{
- setbetValue(e.target.value);
+ let v = parseFloat(e.target.value)
+ if (isNaN(v)){
+ v = null
+ }
+ setbetValue(v);
}
@@ -443,7 +448,7 @@ const ChessBoard = ({gId}) => {
):
(user.user_id === message.user_id ?
{totalAmount}
-SOL
+SOL
Dinmond:
-4h
+4h
Shield Available:
20
How many shields do you want +
How many shields do you want to use?
diff --git a/checkerboard/src/components/shiledcountdown/ShiledCountDown.css b/checkerboard/src/components/shiledcountdown/ShiledCountDown.css index e4b06c4..33efb88 100644 --- a/checkerboard/src/components/shiledcountdown/ShiledCountDown.css +++ b/checkerboard/src/components/shiledcountdown/ShiledCountDown.css @@ -3,21 +3,21 @@ flex-direction: row; justify-content: center; align-items: center; - width: 250px; - height: 160px; + width: 250rem; + height: 160rem; background-color: #000000; clip-path: polygon(7% 0, 95% 6%, 100% 90%, 0 100%); position: absolute; - top:740px; - right: 50px; + top: 740rem; + right: 50rem; } .shiled-div-have-internal{ display: flex; align-items: center; justify-content: center; - width: 230px; - height: 140px; + width: 230rem; + height: 140rem; background-color: #6076C1; clip-path: polygon(7% 0, 95% 6%, 100% 90%, 0 100%); position: relative; @@ -25,15 +25,15 @@ .font-div-style{ position: absolute; - left: 38px; - top: 34px; + left: 38rem; + top: 34rem; } .time-style-div{ font-family: SF Pro; - font-size: 32px; + font-size: 32rem; font-weight: 700; - line-height: 38.19px; + line-height: 38.19rem; text-align: left; text-underline-position: from-font; text-decoration-skip-ink: none; @@ -41,11 +41,11 @@ } .shiled-duration-div{ - margin-top: 20px; + margin-top: 20rem; font-family: SF Pro; - font-size: 12px; + font-size: 12rem; font-weight: 700; - line-height: 14.32px; + line-height: 14.32rem; text-align: left; text-underline-position: from-font; text-decoration-skip-ink: none; diff --git a/checkerboard/src/components/shiledcountdown/ShiledCountDown.jsx b/checkerboard/src/components/shiledcountdown/ShiledCountDown.jsx index 3f2d806..ce96ec6 100644 --- a/checkerboard/src/components/shiledcountdown/ShiledCountDown.jsx +++ b/checkerboard/src/components/shiledcountdown/ShiledCountDown.jsx @@ -36,7 +36,7 @@ const ShiledCountDown = ({durationTime}) => {