Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
Tea.context(function () {
this.minMB = 0
this.minSize = ""
this.maxMB = 0
this.maxSize = ""
this.$delay(function () {
let that = this
this.$watch("minMB", function (v) {
v = parseInt(v)
if (isNaN(v) || v <= 0) {
that.minSize = ""
} else {
that.minSize = teaweb.formatBits(v * Math.pow(1024, 2))
}
})
this.$watch("maxMB", function (v) {
v = parseInt(v)
if (isNaN(v) || v < 0) {
that.maxSize = ""
} else if (v == 0) {
that.maxSize = "∞"
} else {
that.maxSize = teaweb.formatBits(v * Math.pow(1024, 2))
}
})
this.minMB = this.item.minMB
this.maxMB = this.item.maxMB
})
})