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,38 @@
Tea.context(function () {
this.isSubmitting = false
this.encodedFrom = window.encodeURIComponent(this.from)
this.$delay(function () {
this.$find("form input[name='otpCode']").focus()
});
// 更多选项
this.moreOptionsVisible = false;
this.showMoreOptions = function () {
this.moreOptionsVisible = !this.moreOptionsVisible;
};
this.submitBefore = function () {
this.isSubmitting = true;
};
this.submitDone = function () {
this.isSubmitting = false;
};
this.submitSuccess = function (resp) {
// store information to local
localStorage.setItem("sid", resp.data.localSid)
localStorage.setItem("ip", resp.data.ip)
// redirect back
this.$delay(function () {
if (this.from.length == 0) {
window.location = "/dashboard";
} else {
window.location = this.from;
}
})
};
});