Normal-OJ / new-front-end

v2 client for Normal Online Judge
https://noj.tw
Mozilla Public License 2.0
0 stars 7 forks source link

fix: stop submit if the sum of score isn't 100 #94

Closed laporchen closed 1 year ago

laporchen commented 1 year ago

Add some checks on edit.vue and new.vue to prevent invalid task score being submitted.

laporchen commented 1 year ago

I think I can change it to vuelidate, but I need to take a look at the custom validator part.

cloudflare-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 47459a5
Status: ✅  Deploy successful!
Preview URL: https://1ad73ae9.nfe.pages.dev
Branch Preview URL: https://fix-problem-score-setting-by.nfe.pages.dev

View logs

laporchen commented 1 year ago

I update it to use vuelidate now.

laporchen commented 1 year ago

Now it should look like this if the score isn't correct.

Screenshot 2023-03-23 at 3 54 17 PM