@jetthai/cuora 1.1.341-rank-4 → 1.1.341-rank-6
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.341-rank-6](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-5...v1.1.341-rank-6) (2025-03-13)
|
|
6
|
+
|
|
7
|
+
### [1.1.341-rank-5](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-4...v1.1.341-rank-5) (2025-03-13)
|
|
8
|
+
|
|
5
9
|
### [1.1.341-rank-4](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-3...v1.1.341-rank-4) (2025-03-12)
|
|
6
10
|
|
|
7
11
|
### [1.1.341-rank-3](https://github.com/jetthai/cuora-module/compare/v1.1.341-rank-2...v1.1.341-rank-3) (2025-03-10)
|
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) => {
|