poi-plugin-koushu-rate 2.0.18 → 2.0.20
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/index.js +10 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -29,6 +29,12 @@ const HELP_UPDATE_NOTES = {
|
|
|
29
29
|
"优化了我变强了页中的目标/已有装备的显示,现在不会自动拆分已完成的装备单独置顶显示了;",
|
|
30
30
|
"在改修列表页新增了改修计划的显示(装备名称的下方)。",
|
|
31
31
|
],
|
|
32
|
+
"2.0.19": [
|
|
33
|
+
"“我变强了”页中,完成数与目标数相等并置顶时,完成数列改为显示 clear!。",
|
|
34
|
+
],
|
|
35
|
+
"2.0.20": [
|
|
36
|
+
"“我变强了”页中,低于目标星级的库存行会在完成数列显示对应库存数量,并以红色提示。",
|
|
37
|
+
],
|
|
32
38
|
}
|
|
33
39
|
const CURRENT_HELP_UPDATE_NOTES = HELP_UPDATE_NOTES[PLUGIN_VERSION] || ["本次更新暂无详细说明。"]
|
|
34
40
|
|
|
@@ -3296,6 +3302,9 @@ class StrongPage extends React.Component {
|
|
|
3296
3302
|
const completionLineClass = (item, group) => "kr2-strong-owned-line " + (item.stock == null ? "kr2-strong-owned-line-missing" : group.qty > 0 && (item.completed || 0) >= group.qty ? "kr2-strong-owned-line-clear" : "kr2-strong-owned-line-short")
|
|
3297
3303
|
const completionLineText = (item, group) => {
|
|
3298
3304
|
if (item.stock == null) return "--"
|
|
3305
|
+
if (item.levelShort) {
|
|
3306
|
+
return React.createElement("span", { className: "kr2-strong-completion-stock" }, String(item.stock))
|
|
3307
|
+
}
|
|
3299
3308
|
const completed = item.completed || 0
|
|
3300
3309
|
if (group.qty > 0 && completed >= group.qty) return String(completed)
|
|
3301
3310
|
return completed > 0 ? React.createElement("span", { className: "kr2-strong-completion-done" }, String(completed)) : String(completed)
|
|
@@ -3350,7 +3359,7 @@ class StrongPage extends React.Component {
|
|
|
3350
3359
|
!group.evolved && group.row.improveable !== false ? React.createElement("span", { className: "kr2-strong-level" }, group.targetLevel) : null
|
|
3351
3360
|
),
|
|
3352
3361
|
React.createElement("td", { className: "kr2-strong-stock" }, group.items.map((item) => React.createElement("div", { key: item.key, className: "kr2-strong-stock-line " + stockClass(item), "data-level": item.inventoryLevel == null ? "" : String(item.inventoryLevel) }, stockText(item)))),
|
|
3353
|
-
React.createElement("td", { className: "kr2-strong-owned " + groupOwnedClass(group), "data-completed": String(group.completed || 0), "data-stock": group.stockLoaded ? String(group.stock) : "", "data-level": String(group.maxInventoryLevel) }, group.items.map((item) => React.createElement("div", { key: item.key, className: completionLineClass(item, group), "data-level": item.inventoryLevel == null ? "" : String(item.inventoryLevel) }, completionLineText(item, group)))),
|
|
3362
|
+
React.createElement("td", { className: "kr2-strong-owned " + groupOwnedClass(group), "data-completed": String(group.completed || 0), "data-stock": group.stockLoaded ? String(group.stock) : "", "data-level": String(group.maxInventoryLevel) }, group.clear ? "clear!" : group.items.map((item) => React.createElement("div", { key: item.key, className: completionLineClass(item, group), "data-level": item.inventoryLevel == null ? "" : String(item.inventoryLevel), "data-count-type": item.levelShort ? "stock" : "completed" }, completionLineText(item, group)))),
|
|
3354
3363
|
React.createElement("td", { className: "kr2-strong-target", "data-target": String(group.qty) }, String(group.qty))
|
|
3355
3364
|
)
|
|
3356
3365
|
)
|