This commit is contained in:
728
2023-06-02 01:16:58 +08:00
parent e3f42e30e3
commit 8b341389f3
2 changed files with 8 additions and 3 deletions

View File

@ -78,6 +78,12 @@ export async function db(
partialFilterExpression: { work: "live" },
}]
})
await c.fund.createIndexes({
indexes: [{
key: { rd: 1, "_id.uid": 1, "_id.utc": -1 }, name: "rd",
partialFilterExpression: { rd: { $exists: true } },
}]
})
await c.dst.createIndexes({
indexes: [{
key: { "_id.rd": 1, "_id.aid": 1, "_id.uid": 1 }, name: "rd-aid-uid",

View File

@ -48,9 +48,8 @@
for (const n of document.getElementsByTagName("nav")) n.addEventListener("wheel", e => {
if (e.deltaX != 0) return
e.preventDefault()
const s = n.querySelector("li").scrollWidth
if (e.deltaY > 0) n.scrollLeft -= s
else if (e.deltaY < 0) n.scrollLeft += s
if (e.deltaY > 0) n.scrollLeft -= 60
else if (e.deltaY < 0) n.scrollLeft += 60
})
</script>