mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-24 14:10:24 +08:00
Compare commits
2 Commits
66188231bc
...
f1e3b76d85
Author | SHA1 | Date | |
---|---|---|---|
f1e3b76d85 | |||
2736ee0398 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "zzz-signal-search-export",
|
"name": "zzz-signal-search-export",
|
||||||
"version": "1.0.6",
|
"version": "1.0.7",
|
||||||
"main": "./dist/electron/main/main.js",
|
"main": "./dist/electron/main/main.js",
|
||||||
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
|
"author": "earthjasonlin <https://git.loliquq.cn/earthjasonlin>",
|
||||||
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",
|
"homepage": "https://github.com/earthjasonlin/zzz-signal-search-export",
|
||||||
|
@ -82,11 +82,17 @@ const start = async () => {
|
|||||||
arr.push(log.time)
|
arr.push(log.time)
|
||||||
arr.push(log.name)
|
arr.push(log.name)
|
||||||
arr.push(log.item_type)
|
arr.push(log.item_type)
|
||||||
arr.push(log.rank_type)
|
if(log.rank_type === '2') {
|
||||||
|
arr.push(i18n.ui.data.star2)
|
||||||
|
} else if(log.rank_type === '3') {
|
||||||
|
arr.push(i18n.ui.data.star3)
|
||||||
|
} else {
|
||||||
|
arr.push(i18n.ui.data.star4)
|
||||||
|
}
|
||||||
arr.push(total)
|
arr.push(total)
|
||||||
arr.push(pity)
|
arr.push(pity)
|
||||||
temp.push(arr)
|
temp.push(arr)
|
||||||
if (log.rank_type === '5') {
|
if (log.rank_type === '4') {
|
||||||
pity = 0
|
pity = 0
|
||||||
}
|
}
|
||||||
// if (key === '301') {
|
// if (key === '301') {
|
||||||
@ -133,14 +139,14 @@ const start = async () => {
|
|||||||
}
|
}
|
||||||
// rare rank background color
|
// rare rank background color
|
||||||
const rankColor = {
|
const rankColor = {
|
||||||
3: "ff8e8e8e",
|
2: "ff8e8e8e",
|
||||||
4: "ffa256e1",
|
3: "ffa256e1",
|
||||||
5: "ffbd6932",
|
4: "ffbd6932",
|
||||||
}
|
}
|
||||||
sheet.getCell(`${c}${i + 2}`).font = {
|
sheet.getCell(`${c}${i + 2}`).font = {
|
||||||
name: customFont,
|
name: customFont,
|
||||||
color: { argb: rankColor[v.rank_type] },
|
color: { argb: rankColor[v.rank_type] },
|
||||||
bold : v.rank_type != "3"
|
bold : v.rank_type != "2"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user