@jetthai/cuora 1.1.343-dev-1 → 1.1.343-dev-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +66 -0
- package/package.json +1 -1
- package/src/machine/dragon_tiger_ranking.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,72 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.343-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-6...v1.1.343-dev-3) (2025-03-13)
|
|
6
|
+
|
|
7
|
+
### [1.1.343-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-5...v1.1.343-dev-2) (2025-03-13)
|
|
8
|
+
|
|
9
|
+
### [1.1.343-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-12...v1.1.343-dev-1) (2025-03-13)
|
|
10
|
+
|
|
11
|
+
### [1.1.341-dev-12](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-4...v1.1.341-dev-12) (2025-03-12)
|
|
12
|
+
|
|
13
|
+
### [1.1.341-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-10...v1.1.341-dev-11) (2025-03-11)
|
|
14
|
+
|
|
15
|
+
### [1.1.341-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.343...v1.1.341-dev-10) (2025-03-11)
|
|
16
|
+
|
|
17
|
+
### [1.1.343](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-9...v1.1.343) (2025-03-11)
|
|
18
|
+
|
|
19
|
+
### [1.1.341-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-3...v1.1.341-dev-9) (2025-03-10)
|
|
20
|
+
|
|
21
|
+
### [1.1.341-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-7...v1.1.341-dev-8) (2025-03-10)
|
|
22
|
+
|
|
23
|
+
### [1.1.341-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.342...v1.1.341-dev-7) (2025-03-10)
|
|
24
|
+
|
|
25
|
+
### [1.1.342](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-6...v1.1.342) (2025-03-10)
|
|
26
|
+
|
|
27
|
+
### [1.1.341-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-2...v1.1.341-dev-6) (2025-03-06)
|
|
28
|
+
|
|
29
|
+
### [1.1.341-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-1...v1.1.341-dev-5) (2025-03-06)
|
|
30
|
+
|
|
31
|
+
### [1.1.341-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-3...v1.1.341-dev-4) (2025-03-03)
|
|
32
|
+
|
|
33
|
+
### [1.1.341-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-2...v1.1.341-dev-3) (2025-03-03)
|
|
34
|
+
|
|
35
|
+
### [1.1.341-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-1...v1.1.341-dev-2) (2025-02-27)
|
|
36
|
+
|
|
37
|
+
### [1.1.341-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341...v1.1.341-dev-1) (2025-02-27)
|
|
38
|
+
|
|
39
|
+
### [1.1.343-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-5...v1.1.343-dev-2) (2025-03-13)
|
|
40
|
+
|
|
41
|
+
### [1.1.343-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-12...v1.1.343-dev-1) (2025-03-13)
|
|
42
|
+
|
|
43
|
+
### [1.1.341-dev-12](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-4...v1.1.341-dev-12) (2025-03-12)
|
|
44
|
+
|
|
45
|
+
### [1.1.341-dev-11](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-10...v1.1.341-dev-11) (2025-03-11)
|
|
46
|
+
|
|
47
|
+
### [1.1.341-dev-10](https://github.com/jetthai/cuora-module/compare/v1.1.343...v1.1.341-dev-10) (2025-03-11)
|
|
48
|
+
|
|
49
|
+
### [1.1.343](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-9...v1.1.343) (2025-03-11)
|
|
50
|
+
|
|
51
|
+
### [1.1.341-dev-9](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-3...v1.1.341-dev-9) (2025-03-10)
|
|
52
|
+
|
|
53
|
+
### [1.1.341-dev-8](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-7...v1.1.341-dev-8) (2025-03-10)
|
|
54
|
+
|
|
55
|
+
### [1.1.341-dev-7](https://github.com/jetthai/cuora-module/compare/v1.1.342...v1.1.341-dev-7) (2025-03-10)
|
|
56
|
+
|
|
57
|
+
### [1.1.342](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-6...v1.1.342) (2025-03-10)
|
|
58
|
+
|
|
59
|
+
### [1.1.341-dev-6](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-2...v1.1.341-dev-6) (2025-03-06)
|
|
60
|
+
|
|
61
|
+
### [1.1.341-dev-5](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-1...v1.1.341-dev-5) (2025-03-06)
|
|
62
|
+
|
|
63
|
+
### [1.1.341-dev-4](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-3...v1.1.341-dev-4) (2025-03-03)
|
|
64
|
+
|
|
65
|
+
### [1.1.341-dev-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-2...v1.1.341-dev-3) (2025-03-03)
|
|
66
|
+
|
|
67
|
+
### [1.1.341-dev-2](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-1...v1.1.341-dev-2) (2025-02-27)
|
|
68
|
+
|
|
69
|
+
### [1.1.341-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341...v1.1.341-dev-1) (2025-02-27)
|
|
70
|
+
|
|
5
71
|
### [1.1.343-dev-1](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-12...v1.1.343-dev-1) (2025-03-13)
|
|
6
72
|
|
|
7
73
|
### [1.1.343](https://github.com/jetthai/cuora-module/compare/v1.1.341-dev-9...v1.1.343) (2025-03-11)
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ export default function (request) {
|
|
|
37
37
|
playerRanking: {},
|
|
38
38
|
gameRanking: [],
|
|
39
39
|
topRanking: [],
|
|
40
|
+
settleStatus: false,
|
|
40
41
|
// 前端這邊用的選單資料 { cycle, round }
|
|
41
42
|
options: {},
|
|
42
43
|
},
|
|
@@ -77,7 +78,7 @@ export default function (request) {
|
|
|
77
78
|
invoke: {
|
|
78
79
|
src: 'fetchRankingOptions',
|
|
79
80
|
onDone: {
|
|
80
|
-
target: '
|
|
81
|
+
target: 'getRankingGames',
|
|
81
82
|
actions: 'setRankingOptions',
|
|
82
83
|
},
|
|
83
84
|
onError: {
|
|
@@ -90,7 +91,7 @@ export default function (request) {
|
|
|
90
91
|
invoke: {
|
|
91
92
|
src: 'fetchRankingDetail',
|
|
92
93
|
onDone: {
|
|
93
|
-
target: '
|
|
94
|
+
target: 'idle',
|
|
94
95
|
actions: 'setRanking',
|
|
95
96
|
},
|
|
96
97
|
onError: {
|
|
@@ -102,7 +103,7 @@ export default function (request) {
|
|
|
102
103
|
invoke: {
|
|
103
104
|
src: 'fetchRankingGames',
|
|
104
105
|
onDone: {
|
|
105
|
-
target: '
|
|
106
|
+
target: 'getRankingDetail',
|
|
106
107
|
actions: 'setRankingGames',
|
|
107
108
|
},
|
|
108
109
|
onError: {
|
|
@@ -121,12 +122,13 @@ export default function (request) {
|
|
|
121
122
|
}
|
|
122
123
|
}),
|
|
123
124
|
setRanking: assign((context, event) => {
|
|
124
|
-
const topRanking = event.data?.topRanking?.map((rank) => transGameData(rank))
|
|
125
|
+
const topRanking = event.data?.topRanking?.map((rank) => transGameData(rank)) || []
|
|
125
126
|
return {
|
|
126
127
|
description: event.data?.description,
|
|
127
128
|
descriptionUrl: event.data?.descriptionUrl,
|
|
128
|
-
topRanking: topRanking
|
|
129
|
+
topRanking: topRanking,
|
|
129
130
|
playerRanking: transGameData(event.data?.playerRanking) || {},
|
|
131
|
+
settleStatus: !!topRanking[0]?.settleStatus,
|
|
130
132
|
}
|
|
131
133
|
}),
|
|
132
134
|
setRankingGames: assign((context, event) => {
|