Skip to content

Commit 2289703

Browse files
committed
Update commodity-crisis game: source code and compiled assets for GitHub Action deploy
1 parent 82e2ea2 commit 2289703

10 files changed

Lines changed: 91 additions & 39 deletions

File tree

commodity-crisis/dist/assets/index-BchEAEkB.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commodity-crisis/dist/assets/index-DwnJhM1k.js renamed to commodity-crisis/dist/assets/index-BfpNz4CJ.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commodity-crisis/dist/assets/index-NpnwUV57.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

commodity-crisis/dist/index.html

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Commodity Crisis - Futures Simulator</title>
7-
<script type="module" crossorigin src="/games/commodity-crisis/assets/index-DwnJhM1k.js"></script>
8-
<link rel="stylesheet" crossorigin href="/games/commodity-crisis/assets/index-NpnwUV57.css">
9-
</head>
10-
<body>
11-
<div id="root"></div>
12-
</body>
13-
</html>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Commodity Crisis - Futures Simulator</title>
7+
<!-- Baidu Analytics -->
8+
<script>
9+
var _hmt = _hmt || [];
10+
(function() {
11+
var hm = document.createElement("script");
12+
hm.src = "https://hm.baidu.com/hm.js?301a591b476305494eb47a7821a42915";
13+
var s = document.getElementsByTagName("script")[0];
14+
s.parentNode.insertBefore(hm, s);
15+
})();
16+
</script>
17+
<!-- Busuanzi -->
18+
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
19+
<script type="module" crossorigin src="/games/commodity-crisis/assets/index-BfpNz4CJ.js"></script>
20+
<link rel="stylesheet" crossorigin href="/games/commodity-crisis/assets/index-BchEAEkB.css">
21+
</head>
22+
<body>
23+
<div id="root"></div>
24+
</body>
25+
</html>

commodity-crisis/package-lock.json

Lines changed: 26 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commodity-crisis/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ const App: React.FC = () => {
135135

136136
// 随机分配新闻质量:NORMAL(正常), INVERSE(反转), NONE(失效)
137137
const rand = Math.random();
138-
const type = rand > 0.85 ? 'INVERSE' : (rand > 0.7 ? 'NONE' : 'NORMAL');
138+
const type = (rand > 0.85 ? 'INVERSE' : (rand > 0.7 ? 'NONE' : 'NORMAL')) as 'NORMAL' | 'INVERSE' | 'NONE';
139139

140-
const newEvent = { ...randomNews, id: Date.now(), type };
140+
const newEvent: NewsEvent = { ...randomNews, id: Date.now(), type };
141141
setNews(prev => [newEvent, ...prev].slice(0, 5));
142142

143143
// Apply immediate impact based on type
@@ -152,7 +152,7 @@ const App: React.FC = () => {
152152

153153
// Check Liquidation: 资金使用率超过 120% 爆仓
154154
if (currentUtilization > 1.2) {
155-
setIsLiquidated(true);
155+
setIsLiquated(true);
156156
clearInterval(timer);
157157
}
158158
}, TICK_MS);

package-lock.json

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/games/commodity-crisis/assets/index-BchEAEkB.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/games/commodity-crisis/assets/index-BfpNz4CJ.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Commodity Crisis - Futures Simulator</title>
7-
<script type="module" crossorigin src="/games/commodity-crisis/assets/index-DJZjaj_k.js"></script>
8-
<link rel="stylesheet" crossorigin href="/games/commodity-crisis/assets/index-qMKPHBUE.css">
9-
</head>
10-
<body>
11-
<div id="root"></div>
12-
</body>
13-
</html>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Commodity Crisis - Futures Simulator</title>
7+
<!-- Baidu Analytics -->
8+
<script>
9+
var _hmt = _hmt || [];
10+
(function() {
11+
var hm = document.createElement("script");
12+
hm.src = "https://hm.baidu.com/hm.js?301a591b476305494eb47a7821a42915";
13+
var s = document.getElementsByTagName("script")[0];
14+
s.parentNode.insertBefore(hm, s);
15+
})();
16+
</script>
17+
<!-- Busuanzi -->
18+
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
19+
<script type="module" crossorigin src="/games/commodity-crisis/assets/index-BfpNz4CJ.js"></script>
20+
<link rel="stylesheet" crossorigin href="/games/commodity-crisis/assets/index-BchEAEkB.css">
21+
</head>
22+
<body>
23+
<div id="root"></div>
24+
</body>
25+
</html>

0 commit comments

Comments
 (0)