poi-plugin-koushu-rate 2.0.19 → 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 +7 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -32,6 +32,9 @@ const HELP_UPDATE_NOTES = {
|
|
|
32
32
|
"2.0.19": [
|
|
33
33
|
"“我变强了”页中,完成数与目标数相等并置顶时,完成数列改为显示 clear!。",
|
|
34
34
|
],
|
|
35
|
+
"2.0.20": [
|
|
36
|
+
"“我变强了”页中,低于目标星级的库存行会在完成数列显示对应库存数量,并以红色提示。",
|
|
37
|
+
],
|
|
35
38
|
}
|
|
36
39
|
const CURRENT_HELP_UPDATE_NOTES = HELP_UPDATE_NOTES[PLUGIN_VERSION] || ["本次更新暂无详细说明。"]
|
|
37
40
|
|
|
@@ -3299,6 +3302,9 @@ class StrongPage extends React.Component {
|
|
|
3299
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")
|
|
3300
3303
|
const completionLineText = (item, group) => {
|
|
3301
3304
|
if (item.stock == null) return "--"
|
|
3305
|
+
if (item.levelShort) {
|
|
3306
|
+
return React.createElement("span", { className: "kr2-strong-completion-stock" }, String(item.stock))
|
|
3307
|
+
}
|
|
3302
3308
|
const completed = item.completed || 0
|
|
3303
3309
|
if (group.qty > 0 && completed >= group.qty) return String(completed)
|
|
3304
3310
|
return completed > 0 ? React.createElement("span", { className: "kr2-strong-completion-done" }, String(completed)) : String(completed)
|
|
@@ -3353,7 +3359,7 @@ class StrongPage extends React.Component {
|
|
|
3353
3359
|
!group.evolved && group.row.improveable !== false ? React.createElement("span", { className: "kr2-strong-level" }, group.targetLevel) : null
|
|
3354
3360
|
),
|
|
3355
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)))),
|
|
3356
|
-
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) }, 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)))),
|
|
3357
3363
|
React.createElement("td", { className: "kr2-strong-target", "data-target": String(group.qty) }, String(group.qty))
|
|
3358
3364
|
)
|
|
3359
3365
|
)
|