VNOI-Admin / OJ

A modern open-source online judge and contest platform system.
https://oj.vnoi.info
GNU Affero General Public License v3.0
153 stars 67 forks source link

Add debounce in form select2 #396

Closed slo248 closed 2 months ago

slo248 commented 2 months ago

Description

Add debounce in form select2

Type of change: improvement

What

Add debounce 300ms in form select2

Why

For example, in searching for users, the client sends requests to the server when the user types a character, which is not only inefficient but also blocked by the rate limit.

How Has This Been Tested?

Test locally and manually

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.